Skip to content

Commit 6fa62f5

Browse files
committed
feat(api): updates (#41)
1 parent 4385c41 commit 6fa62f5

File tree

5 files changed

+206
-248
lines changed

5 files changed

+206
-248
lines changed

src/orb/resources/customers/customers.py

+2-26
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ def update(
275275
currency: Optional[str] | NotGiven = NOT_GIVEN,
276276
email: Optional[str] | NotGiven = NOT_GIVEN,
277277
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
278-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
279278
metadata: Optional[object] | NotGiven = NOT_GIVEN,
280279
name: Optional[str] | NotGiven = NOT_GIVEN,
281280
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
@@ -296,7 +295,7 @@ def update(
296295
This endpoint can be used to update the `payment_provider`,
297296
`payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
298297
`auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
299-
`additional_emails` of an existing customer. "Other fields on a customer are
298+
`additional_emails` of an existing customer. Other fields on a customer are
300299
currently immutable.
301300
302301
Args:
@@ -312,10 +311,6 @@ def update(
312311
313312
email: A valid customer email, to be used for invoicing and notifications.
314313
315-
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
316-
system as an alias for this Customer. Use this field to identify a customer by
317-
an existing identifier in your system.
318-
319314
metadata: User-specified key value pairs, often useful for referencing internal resources
320315
or IDs. Returned as-is in the customer resource.
321316
@@ -438,7 +433,6 @@ def update(
438433
"currency": currency,
439434
"email": email,
440435
"email_delivery": email_delivery,
441-
"external_customer_id": external_customer_id,
442436
"metadata": metadata,
443437
"name": name,
444438
"payment_provider": payment_provider,
@@ -656,7 +650,6 @@ def update_by_external_id(
656650
currency: Optional[str] | NotGiven = NOT_GIVEN,
657651
email: Optional[str] | NotGiven = NOT_GIVEN,
658652
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
659-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
660653
metadata: Optional[object] | NotGiven = NOT_GIVEN,
661654
name: Optional[str] | NotGiven = NOT_GIVEN,
662655
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
@@ -693,10 +686,6 @@ def update_by_external_id(
693686
694687
email: A valid customer email, to be used for invoicing and notifications.
695688
696-
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
697-
system as an alias for this Customer. Use this field to identify a customer by
698-
an existing identifier in your system.
699-
700689
metadata: User-specified key value pairs, often useful for referencing internal resources
701690
or IDs. Returned as-is in the customer resource.
702691
@@ -819,7 +808,6 @@ def update_by_external_id(
819808
"currency": currency,
820809
"email": email,
821810
"email_delivery": email_delivery,
822-
"external_customer_id": external_customer_id,
823811
"metadata": metadata,
824812
"name": name,
825813
"payment_provider": payment_provider,
@@ -1074,7 +1062,6 @@ async def update(
10741062
currency: Optional[str] | NotGiven = NOT_GIVEN,
10751063
email: Optional[str] | NotGiven = NOT_GIVEN,
10761064
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
1077-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
10781065
metadata: Optional[object] | NotGiven = NOT_GIVEN,
10791066
name: Optional[str] | NotGiven = NOT_GIVEN,
10801067
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
@@ -1095,7 +1082,7 @@ async def update(
10951082
This endpoint can be used to update the `payment_provider`,
10961083
`payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
10971084
`auto_collection`, `metadata`, `shipping_address`, `billing_address`, and
1098-
`additional_emails` of an existing customer. "Other fields on a customer are
1085+
`additional_emails` of an existing customer. Other fields on a customer are
10991086
currently immutable.
11001087
11011088
Args:
@@ -1111,10 +1098,6 @@ async def update(
11111098
11121099
email: A valid customer email, to be used for invoicing and notifications.
11131100
1114-
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
1115-
system as an alias for this Customer. Use this field to identify a customer by
1116-
an existing identifier in your system.
1117-
11181101
metadata: User-specified key value pairs, often useful for referencing internal resources
11191102
or IDs. Returned as-is in the customer resource.
11201103
@@ -1237,7 +1220,6 @@ async def update(
12371220
"currency": currency,
12381221
"email": email,
12391222
"email_delivery": email_delivery,
1240-
"external_customer_id": external_customer_id,
12411223
"metadata": metadata,
12421224
"name": name,
12431225
"payment_provider": payment_provider,
@@ -1455,7 +1437,6 @@ async def update_by_external_id(
14551437
currency: Optional[str] | NotGiven = NOT_GIVEN,
14561438
email: Optional[str] | NotGiven = NOT_GIVEN,
14571439
email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
1458-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
14591440
metadata: Optional[object] | NotGiven = NOT_GIVEN,
14601441
name: Optional[str] | NotGiven = NOT_GIVEN,
14611442
payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
@@ -1492,10 +1473,6 @@ async def update_by_external_id(
14921473
14931474
email: A valid customer email, to be used for invoicing and notifications.
14941475
1495-
external_customer_id: An optional user-defined ID for this customer resource, used throughout the
1496-
system as an alias for this Customer. Use this field to identify a customer by
1497-
an existing identifier in your system.
1498-
14991476
metadata: User-specified key value pairs, often useful for referencing internal resources
15001477
or IDs. Returned as-is in the customer resource.
15011478
@@ -1618,7 +1595,6 @@ async def update_by_external_id(
16181595
"currency": currency,
16191596
"email": email,
16201597
"email_delivery": email_delivery,
1621-
"external_customer_id": external_customer_id,
16221598
"metadata": metadata,
16231599
"name": name,
16241600
"payment_provider": payment_provider,

src/orb/types/customer_update_by_external_id_params.py

-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class CustomerUpdateByExternalIDParams(TypedDict, total=False):
4545

4646
email_delivery: Optional[bool]
4747

48-
external_customer_id: Optional[str]
49-
"""
50-
An optional user-defined ID for this customer resource, used throughout the
51-
system as an alias for this Customer. Use this field to identify a customer by
52-
an existing identifier in your system.
53-
"""
54-
5548
metadata: Optional[object]
5649
"""
5750
User-specified key value pairs, often useful for referencing internal resources

src/orb/types/customer_update_params.py

-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class CustomerUpdateParams(TypedDict, total=False):
4545

4646
email_delivery: Optional[bool]
4747

48-
external_customer_id: Optional[str]
49-
"""
50-
An optional user-defined ID for this customer resource, used throughout the
51-
system as an alias for this Customer. Use this field to identify a customer by
52-
an existing identifier in your system.
53-
"""
54-
5548
metadata: Optional[object]
5649
"""
5750
User-specified key value pairs, often useful for referencing internal resources

0 commit comments

Comments
 (0)