Skip to content

Commit

Permalink
feat(api): updates (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 9, 2023
1 parent 4385c41 commit 6fa62f5
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 248 deletions.
28 changes: 2 additions & 26 deletions src/orb/resources/customers/customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ def update(
currency: Optional[str] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
metadata: Optional[object] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
Expand All @@ -296,7 +295,7 @@ def update(
This endpoint can be used to update the `payment_provider`,
`payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
`auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
`additional_emails` of an existing customer. "Other fields on a customer are
`additional_emails` of an existing customer. Other fields on a customer are
currently immutable.
Args:
Expand All @@ -312,10 +311,6 @@ def update(
email: A valid customer email, to be used for invoicing and notifications.
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
metadata: User-specified key value pairs, often useful for referencing internal resources
or IDs. Returned as-is in the customer resource.
Expand Down Expand Up @@ -438,7 +433,6 @@ def update(
"currency": currency,
"email": email,
"email_delivery": email_delivery,
"external_customer_id": external_customer_id,
"metadata": metadata,
"name": name,
"payment_provider": payment_provider,
Expand Down Expand Up @@ -656,7 +650,6 @@ def update_by_external_id(
currency: Optional[str] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
metadata: Optional[object] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
Expand Down Expand Up @@ -693,10 +686,6 @@ def update_by_external_id(
email: A valid customer email, to be used for invoicing and notifications.
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
metadata: User-specified key value pairs, often useful for referencing internal resources
or IDs. Returned as-is in the customer resource.
Expand Down Expand Up @@ -819,7 +808,6 @@ def update_by_external_id(
"currency": currency,
"email": email,
"email_delivery": email_delivery,
"external_customer_id": external_customer_id,
"metadata": metadata,
"name": name,
"payment_provider": payment_provider,
Expand Down Expand Up @@ -1074,7 +1062,6 @@ async def update(
currency: Optional[str] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
metadata: Optional[object] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
Expand All @@ -1095,7 +1082,7 @@ async def update(
This endpoint can be used to update the `payment_provider`,
`payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
`auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
`additional_emails` of an existing customer. "Other fields on a customer are
`additional_emails` of an existing customer. Other fields on a customer are
currently immutable.
Args:
Expand All @@ -1111,10 +1098,6 @@ async def update(
email: A valid customer email, to be used for invoicing and notifications.
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
metadata: User-specified key value pairs, often useful for referencing internal resources
or IDs. Returned as-is in the customer resource.
Expand Down Expand Up @@ -1237,7 +1220,6 @@ async def update(
"currency": currency,
"email": email,
"email_delivery": email_delivery,
"external_customer_id": external_customer_id,
"metadata": metadata,
"name": name,
"payment_provider": payment_provider,
Expand Down Expand Up @@ -1455,7 +1437,6 @@ async def update_by_external_id(
currency: Optional[str] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
metadata: Optional[object] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
Expand Down Expand Up @@ -1492,10 +1473,6 @@ async def update_by_external_id(
email: A valid customer email, to be used for invoicing and notifications.
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
metadata: User-specified key value pairs, often useful for referencing internal resources
or IDs. Returned as-is in the customer resource.
Expand Down Expand Up @@ -1618,7 +1595,6 @@ async def update_by_external_id(
"currency": currency,
"email": email,
"email_delivery": email_delivery,
"external_customer_id": external_customer_id,
"metadata": metadata,
"name": name,
"payment_provider": payment_provider,
Expand Down
7 changes: 0 additions & 7 deletions src/orb/types/customer_update_by_external_id_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ class CustomerUpdateByExternalIDParams(TypedDict, total=False):

email_delivery: Optional[bool]

external_customer_id: Optional[str]
"""
An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
"""

metadata: Optional[object]
"""
User-specified key value pairs, often useful for referencing internal resources
Expand Down
7 changes: 0 additions & 7 deletions src/orb/types/customer_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ class CustomerUpdateParams(TypedDict, total=False):

email_delivery: Optional[bool]

external_customer_id: Optional[str]
"""
An optional user-defined ID for this customer resource, used throughout the
system as an alias for this Customer. Use this field to identify a customer by
an existing identifier in your system.
"""

metadata: Optional[object]
"""
User-specified key value pairs, often useful for referencing internal resources
Expand Down
Loading

0 comments on commit 6fa62f5

Please sign in to comment.