|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import TYPE_CHECKING, List, Union, Optional |
| 5 | +from typing import TYPE_CHECKING, Dict, List, Union, Optional |
6 | 6 | from datetime import datetime
|
7 | 7 | from typing_extensions import Literal
|
8 | 8 |
|
@@ -70,7 +70,7 @@ def create(
|
70 | 70 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
71 | 71 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
72 | 72 | external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
|
73 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 73 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
74 | 74 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
75 | 75 | | NotGiven = NOT_GIVEN,
|
76 | 76 | payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN,
|
@@ -121,8 +121,7 @@ def create(
|
121 | 121 | system as an alias for this Customer. Use this field to identify a customer by
|
122 | 122 | an existing identifier in your system.
|
123 | 123 |
|
124 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
125 |
| - or IDs. Returned as-is in the customer resource. |
| 124 | + metadata: User-specified key/value pairs for the resource. |
126 | 125 |
|
127 | 126 | payment_provider: This is used for creating charges or invoices in an external system via Orb.
|
128 | 127 | When not in test mode, the connection must first be configured in the Orb
|
@@ -275,7 +274,7 @@ def update(
|
275 | 274 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
276 | 275 | email: Optional[str] | NotGiven = NOT_GIVEN,
|
277 | 276 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
278 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 277 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
279 | 278 | name: Optional[str] | NotGiven = NOT_GIVEN,
|
280 | 279 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
281 | 280 | | NotGiven = NOT_GIVEN,
|
@@ -311,8 +310,7 @@ def update(
|
311 | 310 |
|
312 | 311 | email: A valid customer email, to be used for invoicing and notifications.
|
313 | 312 |
|
314 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
315 |
| - or IDs. Returned as-is in the customer resource. |
| 313 | + metadata: User-specified key/value pairs for the resource. |
316 | 314 |
|
317 | 315 | name: The full name of the customer
|
318 | 316 |
|
@@ -650,7 +648,7 @@ def update_by_external_id(
|
650 | 648 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
651 | 649 | email: Optional[str] | NotGiven = NOT_GIVEN,
|
652 | 650 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
653 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 651 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
654 | 652 | name: Optional[str] | NotGiven = NOT_GIVEN,
|
655 | 653 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
656 | 654 | | NotGiven = NOT_GIVEN,
|
@@ -686,8 +684,7 @@ def update_by_external_id(
|
686 | 684 |
|
687 | 685 | email: A valid customer email, to be used for invoicing and notifications.
|
688 | 686 |
|
689 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
690 |
| - or IDs. Returned as-is in the customer resource. |
| 687 | + metadata: User-specified key/value pairs for the resource. |
691 | 688 |
|
692 | 689 | name: The full name of the customer
|
693 | 690 |
|
@@ -857,7 +854,7 @@ async def create(
|
857 | 854 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
858 | 855 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
859 | 856 | external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
|
860 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 857 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
861 | 858 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
862 | 859 | | NotGiven = NOT_GIVEN,
|
863 | 860 | payment_provider_id: Optional[str] | NotGiven = NOT_GIVEN,
|
@@ -908,8 +905,7 @@ async def create(
|
908 | 905 | system as an alias for this Customer. Use this field to identify a customer by
|
909 | 906 | an existing identifier in your system.
|
910 | 907 |
|
911 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
912 |
| - or IDs. Returned as-is in the customer resource. |
| 908 | + metadata: User-specified key/value pairs for the resource. |
913 | 909 |
|
914 | 910 | payment_provider: This is used for creating charges or invoices in an external system via Orb.
|
915 | 911 | When not in test mode, the connection must first be configured in the Orb
|
@@ -1062,7 +1058,7 @@ async def update(
|
1062 | 1058 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
1063 | 1059 | email: Optional[str] | NotGiven = NOT_GIVEN,
|
1064 | 1060 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
1065 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 1061 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
1066 | 1062 | name: Optional[str] | NotGiven = NOT_GIVEN,
|
1067 | 1063 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
1068 | 1064 | | NotGiven = NOT_GIVEN,
|
@@ -1098,8 +1094,7 @@ async def update(
|
1098 | 1094 |
|
1099 | 1095 | email: A valid customer email, to be used for invoicing and notifications.
|
1100 | 1096 |
|
1101 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
1102 |
| - or IDs. Returned as-is in the customer resource. |
| 1097 | + metadata: User-specified key/value pairs for the resource. |
1103 | 1098 |
|
1104 | 1099 | name: The full name of the customer
|
1105 | 1100 |
|
@@ -1437,7 +1432,7 @@ async def update_by_external_id(
|
1437 | 1432 | currency: Optional[str] | NotGiven = NOT_GIVEN,
|
1438 | 1433 | email: Optional[str] | NotGiven = NOT_GIVEN,
|
1439 | 1434 | email_delivery: Optional[bool] | NotGiven = NOT_GIVEN,
|
1440 |
| - metadata: Optional[object] | NotGiven = NOT_GIVEN, |
| 1435 | + metadata: Optional[Dict[str, Optional[str]]] | NotGiven = NOT_GIVEN, |
1441 | 1436 | name: Optional[str] | NotGiven = NOT_GIVEN,
|
1442 | 1437 | payment_provider: Optional[Literal["quickbooks", "bill.com", "stripe_charge", "stripe_invoice", "netsuite"]]
|
1443 | 1438 | | NotGiven = NOT_GIVEN,
|
@@ -1473,8 +1468,7 @@ async def update_by_external_id(
|
1473 | 1468 |
|
1474 | 1469 | email: A valid customer email, to be used for invoicing and notifications.
|
1475 | 1470 |
|
1476 |
| - metadata: User-specified key value pairs, often useful for referencing internal resources |
1477 |
| - or IDs. Returned as-is in the customer resource. |
| 1471 | + metadata: User-specified key/value pairs for the resource. |
1478 | 1472 |
|
1479 | 1473 | name: The full name of the customer
|
1480 | 1474 |
|
|
0 commit comments