Skip to content

Commit 000a27c

Browse files
feat(api): api update
1 parent b00e690 commit 000a27c

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d4db2933d3d6b8c855e3351dcce658777ec9a413eb78f176b2e63b1e99fddf68.yml
3-
openapi_spec_hash: 858adc7f2e0c8c631ef733dfd8f9ea0a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0db984d367f9ae04249fb6c72789b0a38ef1785d156b438fe03290fa4e262a7d.yml
3+
openapi_spec_hash: c901c8b4fc2b0399a33b1346f8521850
44
config_hash: 3c3524be9607afb24d2139ce26ce5389

src/orb/types/customers/credits/ledger_create_entry_by_external_id_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
8888
to 0.
8989
"""
9090

91+
invoice_date: Annotated[Union[Union[str, date], Union[str, datetime], None], PropertyInfo(format="iso8601")]
92+
"""
93+
An ISO 8601 format date that denotes when this invoice should be dated in the
94+
customer's timezone. If not provided, the invoice date will default to the
95+
credit block's effective date.
96+
"""
97+
9198
memo: Optional[str]
9299
"""An optional memo to display on the invoice."""
93100

src/orb/types/customers/credits/ledger_create_entry_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
8888
to 0.
8989
"""
9090

91+
invoice_date: Annotated[Union[Union[str, date], Union[str, datetime], None], PropertyInfo(format="iso8601")]
92+
"""
93+
An ISO 8601 format date that denotes when this invoice should be dated in the
94+
customer's timezone. If not provided, the invoice date will default to the
95+
credit block's effective date.
96+
"""
97+
9198
memo: Optional[str]
9299
"""An optional memo to display on the invoice."""
93100

tests/api_resources/customers/credits/test_ledger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_method_create_entry_with_all_params_overload_1(self, client: Orb) -> No
101101
invoice_settings={
102102
"auto_collection": True,
103103
"net_terms": 0,
104+
"invoice_date": parse_date("2019-12-27"),
104105
"memo": "memo",
105106
"require_successful_payment": True,
106107
},
@@ -414,6 +415,7 @@ def test_method_create_entry_by_external_id_with_all_params_overload_1(self, cli
414415
invoice_settings={
415416
"auto_collection": True,
416417
"net_terms": 0,
418+
"invoice_date": parse_date("2019-12-27"),
417419
"memo": "memo",
418420
"require_successful_payment": True,
419421
},
@@ -843,6 +845,7 @@ async def test_method_create_entry_with_all_params_overload_1(self, async_client
843845
invoice_settings={
844846
"auto_collection": True,
845847
"net_terms": 0,
848+
"invoice_date": parse_date("2019-12-27"),
846849
"memo": "memo",
847850
"require_successful_payment": True,
848851
},
@@ -1156,6 +1159,7 @@ async def test_method_create_entry_by_external_id_with_all_params_overload_1(sel
11561159
invoice_settings={
11571160
"auto_collection": True,
11581161
"net_terms": 0,
1162+
"invoice_date": parse_date("2019-12-27"),
11591163
"memo": "memo",
11601164
"require_successful_payment": True,
11611165
},

0 commit comments

Comments
 (0)