Skip to content

Commit 98d744d

Browse files
feat(api): api update
1 parent f8f6143 commit 98d744d

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-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: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d0eaf664d43e26c42ebf8740ff1b6ee34c4d424c7048a7f04df994cb65627f89.yml
3-
openapi_spec_hash: 4d7622040380d5c7bd2e5a5ec9b86783
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2b5eeb4a60cbec92f80b4a54f33c2d17b36cbac4739886f737108f2ad74ff12d.yml
3+
openapi_spec_hash: ebbe8419f5831506de5b4c0b4eb56acf
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
104104
credit block's effective date.
105105
"""
106106

107+
item_id: Optional[str]
108+
"""The ID of the Item to be used for the invoice line item.
109+
110+
If not provided, a default 'Credits' item will be used.
111+
"""
112+
107113
memo: Optional[str]
108114
"""An optional memo to display on the invoice."""
109115

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
104104
credit block's effective date.
105105
"""
106106

107+
item_id: Optional[str]
108+
"""The ID of the Item to be used for the invoice line item.
109+
110+
If not provided, a default 'Credits' item will be used.
111+
"""
112+
107113
memo: Optional[str]
108114
"""An optional memo to display on the invoice."""
109115

tests/api_resources/customers/credits/test_ledger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_method_create_entry_with_all_params_overload_1(self, client: Orb) -> No
103103
"net_terms": 0,
104104
"custom_due_date": parse_date("2019-12-27"),
105105
"invoice_date": parse_date("2019-12-27"),
106+
"item_id": "item_id",
106107
"memo": "memo",
107108
"require_successful_payment": True,
108109
},
@@ -418,6 +419,7 @@ def test_method_create_entry_by_external_id_with_all_params_overload_1(self, cli
418419
"net_terms": 0,
419420
"custom_due_date": parse_date("2019-12-27"),
420421
"invoice_date": parse_date("2019-12-27"),
422+
"item_id": "item_id",
421423
"memo": "memo",
422424
"require_successful_payment": True,
423425
},
@@ -849,6 +851,7 @@ async def test_method_create_entry_with_all_params_overload_1(self, async_client
849851
"net_terms": 0,
850852
"custom_due_date": parse_date("2019-12-27"),
851853
"invoice_date": parse_date("2019-12-27"),
854+
"item_id": "item_id",
852855
"memo": "memo",
853856
"require_successful_payment": True,
854857
},
@@ -1164,6 +1167,7 @@ async def test_method_create_entry_by_external_id_with_all_params_overload_1(sel
11641167
"net_terms": 0,
11651168
"custom_due_date": parse_date("2019-12-27"),
11661169
"invoice_date": parse_date("2019-12-27"),
1170+
"item_id": "item_id",
11671171
"memo": "memo",
11681172
"require_successful_payment": True,
11691173
},

0 commit comments

Comments
 (0)