Skip to content

Commit 2fbc2b1

Browse files
feat(api): api update
1 parent 48e6486 commit 2fbc2b1

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-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: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c92fb451e13f157b3735f188acc8d57aa3adfbaac1683645e1ba4f432dd7a4f8.yml
3-
openapi_spec_hash: dbcd87ecfbd3976eb3b99ec6f9fbc606
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77e112caf7b2a2c7b0248b7245b5730bc72ab0ea84ba5d0777e7d0604ae04d26.yml
3+
openapi_spec_hash: 966568dd08f34db64ba0ebace678268a
44
config_hash: 3279841440b02d4e8303c961d6983492

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
125125
If not provided, a default 'Credits' item will be used.
126126
"""
127127

128+
mark_as_paid: bool
129+
"""If true, the new credits purchase invoice will be marked as paid."""
130+
128131
memo: Optional[str]
129132
"""An optional memo to display on the invoice."""
130133

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
125125
If not provided, a default 'Credits' item will be used.
126126
"""
127127

128+
mark_as_paid: bool
129+
"""If true, the new credits purchase invoice will be marked as paid."""
130+
128131
memo: Optional[str]
129132
"""An optional memo to display on the invoice."""
130133

tests/api_resources/customers/credits/test_ledger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def test_method_create_entry_with_all_params_overload_1(self, client: Orb) -> No
110110
"custom_due_date": parse_date("2019-12-27"),
111111
"invoice_date": parse_date("2019-12-27"),
112112
"item_id": "item_id",
113+
"mark_as_paid": True,
113114
"memo": "memo",
114115
"net_terms": 0,
115116
"require_successful_payment": True,
@@ -433,6 +434,7 @@ def test_method_create_entry_by_external_id_with_all_params_overload_1(self, cli
433434
"custom_due_date": parse_date("2019-12-27"),
434435
"invoice_date": parse_date("2019-12-27"),
435436
"item_id": "item_id",
437+
"mark_as_paid": True,
436438
"memo": "memo",
437439
"net_terms": 0,
438440
"require_successful_payment": True,
@@ -872,6 +874,7 @@ async def test_method_create_entry_with_all_params_overload_1(self, async_client
872874
"custom_due_date": parse_date("2019-12-27"),
873875
"invoice_date": parse_date("2019-12-27"),
874876
"item_id": "item_id",
877+
"mark_as_paid": True,
875878
"memo": "memo",
876879
"net_terms": 0,
877880
"require_successful_payment": True,
@@ -1195,6 +1198,7 @@ async def test_method_create_entry_by_external_id_with_all_params_overload_1(sel
11951198
"custom_due_date": parse_date("2019-12-27"),
11961199
"invoice_date": parse_date("2019-12-27"),
11971200
"item_id": "item_id",
1201+
"mark_as_paid": True,
11981202
"memo": "memo",
11991203
"net_terms": 0,
12001204
"require_successful_payment": True,

0 commit comments

Comments
 (0)