Skip to content

Commit cd1cd23

Browse files
feat(api): api update
1 parent 6b4583e commit cd1cd23

File tree

8 files changed

+22539
-342
lines changed

8 files changed

+22539
-342
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-5bb582f84f0b4cf7bef84833fefd48a5f2734dc25805da2028fd8a6f1198da07.yml
3-
openapi_spec_hash: ced0e30dc67faa2414df511819408f12
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-dafe9f726a47bdf7e506af8f10c6abcf4321dcc58106ce2b806a918778dfe2be.yml
3+
openapi_spec_hash: 8e9827f2e8818d011e6afb203adb825f
44
config_hash: 3279841440b02d4e8303c961d6983492

src/orb/resources/customers/credits/ledger.py

Lines changed: 60 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ def create_entry(
290290
also generate a one-off invoice for the customer for the credits pre-purchase.
291291
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
292292
on the invoice are calculated by multiplying the cost basis with the number of
293-
credit units added.
293+
credit units added. If you invoice or handle payment of credits outside of Orb
294+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
295+
`true` to prevent duplicate invoicing effects.
294296
295297
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
296298
and `invoice_settings` must be included
@@ -468,7 +470,9 @@ def create_entry(
468470
also generate a one-off invoice for the customer for the credits pre-purchase.
469471
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
470472
on the invoice are calculated by multiplying the cost basis with the number of
471-
credit units added.
473+
credit units added. If you invoice or handle payment of credits outside of Orb
474+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
475+
`true` to prevent duplicate invoicing effects.
472476
473477
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
474478
and `invoice_settings` must be included
@@ -633,7 +637,9 @@ def create_entry(
633637
also generate a one-off invoice for the customer for the credits pre-purchase.
634638
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
635639
on the invoice are calculated by multiplying the cost basis with the number of
636-
credit units added.
640+
credit units added. If you invoice or handle payment of credits outside of Orb
641+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
642+
`true` to prevent duplicate invoicing effects.
637643
638644
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
639645
and `invoice_settings` must be included
@@ -806,7 +812,9 @@ def create_entry(
806812
also generate a one-off invoice for the customer for the credits pre-purchase.
807813
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
808814
on the invoice are calculated by multiplying the cost basis with the number of
809-
credit units added.
815+
credit units added. If you invoice or handle payment of credits outside of Orb
816+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
817+
`true` to prevent duplicate invoicing effects.
810818
811819
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
812820
and `invoice_settings` must be included
@@ -973,7 +981,9 @@ def create_entry(
973981
also generate a one-off invoice for the customer for the credits pre-purchase.
974982
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
975983
on the invoice are calculated by multiplying the cost basis with the number of
976-
credit units added.
984+
credit units added. If you invoice or handle payment of credits outside of Orb
985+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
986+
`true` to prevent duplicate invoicing effects.
977987
978988
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
979989
and `invoice_settings` must be included
@@ -1217,7 +1227,9 @@ def create_entry_by_external_id(
12171227
also generate a one-off invoice for the customer for the credits pre-purchase.
12181228
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
12191229
on the invoice are calculated by multiplying the cost basis with the number of
1220-
credit units added.
1230+
credit units added. If you invoice or handle payment of credits outside of Orb
1231+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
1232+
`true` to prevent duplicate invoicing effects.
12211233
12221234
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
12231235
and `invoice_settings` must be included
@@ -1395,7 +1407,9 @@ def create_entry_by_external_id(
13951407
also generate a one-off invoice for the customer for the credits pre-purchase.
13961408
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
13971409
on the invoice are calculated by multiplying the cost basis with the number of
1398-
credit units added.
1410+
credit units added. If you invoice or handle payment of credits outside of Orb
1411+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
1412+
`true` to prevent duplicate invoicing effects.
13991413
14001414
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
14011415
and `invoice_settings` must be included
@@ -1560,7 +1574,9 @@ def create_entry_by_external_id(
15601574
also generate a one-off invoice for the customer for the credits pre-purchase.
15611575
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
15621576
on the invoice are calculated by multiplying the cost basis with the number of
1563-
credit units added.
1577+
credit units added. If you invoice or handle payment of credits outside of Orb
1578+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
1579+
`true` to prevent duplicate invoicing effects.
15641580
15651581
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
15661582
and `invoice_settings` must be included
@@ -1733,7 +1749,9 @@ def create_entry_by_external_id(
17331749
also generate a one-off invoice for the customer for the credits pre-purchase.
17341750
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
17351751
on the invoice are calculated by multiplying the cost basis with the number of
1736-
credit units added.
1752+
credit units added. If you invoice or handle payment of credits outside of Orb
1753+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
1754+
`true` to prevent duplicate invoicing effects.
17371755
17381756
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
17391757
and `invoice_settings` must be included
@@ -1900,7 +1918,9 @@ def create_entry_by_external_id(
19001918
also generate a one-off invoice for the customer for the credits pre-purchase.
19011919
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
19021920
on the invoice are calculated by multiplying the cost basis with the number of
1903-
credit units added.
1921+
credit units added. If you invoice or handle payment of credits outside of Orb
1922+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
1923+
`true` to prevent duplicate invoicing effects.
19041924
19051925
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
19061926
and `invoice_settings` must be included
@@ -2491,7 +2511,9 @@ async def create_entry(
24912511
also generate a one-off invoice for the customer for the credits pre-purchase.
24922512
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
24932513
on the invoice are calculated by multiplying the cost basis with the number of
2494-
credit units added.
2514+
credit units added. If you invoice or handle payment of credits outside of Orb
2515+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
2516+
`true` to prevent duplicate invoicing effects.
24952517
24962518
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
24972519
and `invoice_settings` must be included
@@ -2669,7 +2691,9 @@ async def create_entry(
26692691
also generate a one-off invoice for the customer for the credits pre-purchase.
26702692
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
26712693
on the invoice are calculated by multiplying the cost basis with the number of
2672-
credit units added.
2694+
credit units added. If you invoice or handle payment of credits outside of Orb
2695+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
2696+
`true` to prevent duplicate invoicing effects.
26732697
26742698
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
26752699
and `invoice_settings` must be included
@@ -2834,7 +2858,9 @@ async def create_entry(
28342858
also generate a one-off invoice for the customer for the credits pre-purchase.
28352859
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
28362860
on the invoice are calculated by multiplying the cost basis with the number of
2837-
credit units added.
2861+
credit units added. If you invoice or handle payment of credits outside of Orb
2862+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
2863+
`true` to prevent duplicate invoicing effects.
28382864
28392865
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
28402866
and `invoice_settings` must be included
@@ -3007,7 +3033,9 @@ async def create_entry(
30073033
also generate a one-off invoice for the customer for the credits pre-purchase.
30083034
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
30093035
on the invoice are calculated by multiplying the cost basis with the number of
3010-
credit units added.
3036+
credit units added. If you invoice or handle payment of credits outside of Orb
3037+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3038+
`true` to prevent duplicate invoicing effects.
30113039
30123040
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
30133041
and `invoice_settings` must be included
@@ -3174,7 +3202,9 @@ async def create_entry(
31743202
also generate a one-off invoice for the customer for the credits pre-purchase.
31753203
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
31763204
on the invoice are calculated by multiplying the cost basis with the number of
3177-
credit units added.
3205+
credit units added. If you invoice or handle payment of credits outside of Orb
3206+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3207+
`true` to prevent duplicate invoicing effects.
31783208
31793209
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
31803210
and `invoice_settings` must be included
@@ -3418,7 +3448,9 @@ async def create_entry_by_external_id(
34183448
also generate a one-off invoice for the customer for the credits pre-purchase.
34193449
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
34203450
on the invoice are calculated by multiplying the cost basis with the number of
3421-
credit units added.
3451+
credit units added. If you invoice or handle payment of credits outside of Orb
3452+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3453+
`true` to prevent duplicate invoicing effects.
34223454
34233455
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
34243456
and `invoice_settings` must be included
@@ -3596,7 +3628,9 @@ async def create_entry_by_external_id(
35963628
also generate a one-off invoice for the customer for the credits pre-purchase.
35973629
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
35983630
on the invoice are calculated by multiplying the cost basis with the number of
3599-
credit units added.
3631+
credit units added. If you invoice or handle payment of credits outside of Orb
3632+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3633+
`true` to prevent duplicate invoicing effects.
36003634
36013635
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
36023636
and `invoice_settings` must be included
@@ -3761,7 +3795,9 @@ async def create_entry_by_external_id(
37613795
also generate a one-off invoice for the customer for the credits pre-purchase.
37623796
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
37633797
on the invoice are calculated by multiplying the cost basis with the number of
3764-
credit units added.
3798+
credit units added. If you invoice or handle payment of credits outside of Orb
3799+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3800+
`true` to prevent duplicate invoicing effects.
37653801
37663802
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
37673803
and `invoice_settings` must be included
@@ -3934,7 +3970,9 @@ async def create_entry_by_external_id(
39343970
also generate a one-off invoice for the customer for the credits pre-purchase.
39353971
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
39363972
on the invoice are calculated by multiplying the cost basis with the number of
3937-
credit units added.
3973+
credit units added. If you invoice or handle payment of credits outside of Orb
3974+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
3975+
`true` to prevent duplicate invoicing effects.
39383976
39393977
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
39403978
and `invoice_settings` must be included
@@ -4101,7 +4139,9 @@ async def create_entry_by_external_id(
41014139
also generate a one-off invoice for the customer for the credits pre-purchase.
41024140
Note that you _must_ provide the `per_unit_cost_basis`, since the total charges
41034141
on the invoice are calculated by multiplying the cost basis with the number of
4104-
credit units added.
4142+
credit units added. If you invoice or handle payment of credits outside of Orb
4143+
(i.e. marketplace customers), set `mark_as_paid` in the `invoice_settings` to
4144+
`true` to prevent duplicate invoicing effects.
41054145
41064146
- if `per_unit_cost_basis` is greater than zero, an invoice will be generated
41074147
and `invoice_settings` must be included

0 commit comments

Comments
 (0)