@0to1pay/fulfillment-sdk 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,176 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
+
"/billing/plans": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List request plans and subscription prices
|
|
15
|
+
* @description Plan prices, included API requests, and configured USDC collection options with available recipients. Live collection options use Ethereum or Base connections. Paid periods last 30 days.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["listBillingPlans"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/billing/subscription": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Read the scoped subscription and request usage
|
|
35
|
+
* @description Current prepaid period and admitted API requests. The test allowance follows UTC calendar months.
|
|
36
|
+
*/
|
|
37
|
+
get: operations["getBillingSubscription"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/billing/invoices": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* List recent subscription invoices to resume checkout or reconciliation
|
|
55
|
+
* @description Returns up to 20 invoices for the caller's project and current collection environment, newest first. Open, reconciling and scheduled invoices are retained ahead of older history.
|
|
56
|
+
*/
|
|
57
|
+
get: operations["listBillingInvoices"];
|
|
58
|
+
put?: never;
|
|
59
|
+
/**
|
|
60
|
+
* Create a USDC subscription invoice and payer challenge
|
|
61
|
+
* @description Select an offered USDC network with network_id, or omit it for the configured default. The server snapshots the selected plan terms and network.
|
|
62
|
+
*/
|
|
63
|
+
post: operations["createBillingInvoice"];
|
|
64
|
+
delete?: never;
|
|
65
|
+
options?: never;
|
|
66
|
+
head?: never;
|
|
67
|
+
patch?: never;
|
|
68
|
+
trace?: never;
|
|
69
|
+
};
|
|
70
|
+
"/billing/invoices/{invoice_id}": {
|
|
71
|
+
parameters: {
|
|
72
|
+
query?: never;
|
|
73
|
+
header?: never;
|
|
74
|
+
path: {
|
|
75
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
76
|
+
};
|
|
77
|
+
cookie?: never;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Read the scoped subscription invoice
|
|
81
|
+
* @description Returns the invoice, frozen quote, wallet authorization message and entitlement state.
|
|
82
|
+
*/
|
|
83
|
+
get: operations["getBillingInvoice"];
|
|
84
|
+
put?: never;
|
|
85
|
+
post?: never;
|
|
86
|
+
delete?: never;
|
|
87
|
+
options?: never;
|
|
88
|
+
head?: never;
|
|
89
|
+
patch?: never;
|
|
90
|
+
trace?: never;
|
|
91
|
+
};
|
|
92
|
+
"/billing/invoices/{invoice_id}/authorize": {
|
|
93
|
+
parameters: {
|
|
94
|
+
query?: never;
|
|
95
|
+
header?: never;
|
|
96
|
+
path: {
|
|
97
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
98
|
+
};
|
|
99
|
+
cookie?: never;
|
|
100
|
+
};
|
|
101
|
+
get?: never;
|
|
102
|
+
put?: never;
|
|
103
|
+
/**
|
|
104
|
+
* Authorize the subscription invoice with the payer wallet
|
|
105
|
+
* @description Sign the exact invoice intent signing_message with the wallet that will pay.
|
|
106
|
+
*/
|
|
107
|
+
post: operations["authorizeBillingInvoice"];
|
|
108
|
+
delete?: never;
|
|
109
|
+
options?: never;
|
|
110
|
+
head?: never;
|
|
111
|
+
patch?: never;
|
|
112
|
+
trace?: never;
|
|
113
|
+
};
|
|
114
|
+
"/billing/invoices/{invoice_id}/submit": {
|
|
115
|
+
parameters: {
|
|
116
|
+
query?: never;
|
|
117
|
+
header?: never;
|
|
118
|
+
path: {
|
|
119
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
120
|
+
};
|
|
121
|
+
cookie?: never;
|
|
122
|
+
};
|
|
123
|
+
get?: never;
|
|
124
|
+
put?: never;
|
|
125
|
+
/**
|
|
126
|
+
* Submit the signed subscription transaction claim
|
|
127
|
+
* @description Submit a second signature binding the claimed transaction ID to the authorization. The worker independently verifies the payment.
|
|
128
|
+
*/
|
|
129
|
+
post: operations["submitBillingInvoice"];
|
|
130
|
+
delete?: never;
|
|
131
|
+
options?: never;
|
|
132
|
+
head?: never;
|
|
133
|
+
patch?: never;
|
|
134
|
+
trace?: never;
|
|
135
|
+
};
|
|
136
|
+
"/billing/keys": {
|
|
137
|
+
parameters: {
|
|
138
|
+
query?: never;
|
|
139
|
+
header?: never;
|
|
140
|
+
path?: never;
|
|
141
|
+
cookie?: never;
|
|
142
|
+
};
|
|
143
|
+
get?: never;
|
|
144
|
+
put?: never;
|
|
145
|
+
/**
|
|
146
|
+
* Issue a scoped server key for the active subscription
|
|
147
|
+
* @description Requires an active subscription. Keep the returned secret server-side and reuse the same idempotency key if the response is lost.
|
|
148
|
+
*/
|
|
149
|
+
post: operations["issueBillingKey"];
|
|
150
|
+
delete?: never;
|
|
151
|
+
options?: never;
|
|
152
|
+
head?: never;
|
|
153
|
+
patch?: never;
|
|
154
|
+
trace?: never;
|
|
155
|
+
};
|
|
156
|
+
"/billing/test-keys": {
|
|
157
|
+
parameters: {
|
|
158
|
+
query?: never;
|
|
159
|
+
header?: never;
|
|
160
|
+
path?: never;
|
|
161
|
+
cookie?: never;
|
|
162
|
+
};
|
|
163
|
+
get?: never;
|
|
164
|
+
put?: never;
|
|
165
|
+
/**
|
|
166
|
+
* Issue a scoped Sandbox server key
|
|
167
|
+
* @description Issue a test-only integration key without a paid subscription. A project may issue up to five Sandbox keys per rolling 24 hours and hold up to five active Sandbox keys. Keep the returned secret server-side. If the response is lost, retry with the same billing credential and Idempotency-Key. Regular reads never expose the secret.
|
|
168
|
+
*/
|
|
169
|
+
post: operations["issueTestBillingKey"];
|
|
170
|
+
delete?: never;
|
|
171
|
+
options?: never;
|
|
172
|
+
head?: never;
|
|
173
|
+
patch?: never;
|
|
174
|
+
trace?: never;
|
|
175
|
+
};
|
|
6
176
|
"/chain/assets": {
|
|
7
177
|
parameters: {
|
|
8
178
|
query?: never;
|
|
@@ -10,7 +180,10 @@ export interface paths {
|
|
|
10
180
|
path?: never;
|
|
11
181
|
cookie?: never;
|
|
12
182
|
};
|
|
13
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* List supported USDC and USDT deployments on configured networks
|
|
185
|
+
* @description Live checkout supports Ethereum native USDC and USDT, TRON USDT, and Base native USDC. Only configured networks in the caller's environment are returned. Base Sepolia's test USDC can appear for Sandbox keys when the deployment enables it.
|
|
186
|
+
*/
|
|
14
187
|
get: operations["listChainAssets"];
|
|
15
188
|
put?: never;
|
|
16
189
|
post?: never;
|
|
@@ -29,7 +202,10 @@ export interface paths {
|
|
|
29
202
|
};
|
|
30
203
|
get?: never;
|
|
31
204
|
put?: never;
|
|
32
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Create a watch-only chain connection for the scoped merchant
|
|
207
|
+
* @description Select a network returned by listChainAssets for this environment.
|
|
208
|
+
*/
|
|
33
209
|
post: operations["createChainConnection"];
|
|
34
210
|
delete?: never;
|
|
35
211
|
options?: never;
|
|
@@ -68,7 +244,7 @@ export interface paths {
|
|
|
68
244
|
put?: never;
|
|
69
245
|
/**
|
|
70
246
|
* Create immutable order payment obligation
|
|
71
|
-
* @description Same scoped order_ref/order_revision and identical specification returns the existing resource. Changed snapshot requires explicit revision but retains the same business grant identity.
|
|
247
|
+
* @description Same scoped order_ref/order_revision and identical specification returns the existing resource. Changed snapshot requires explicit revision but retains the same business grant identity. For new payments, every allowed connection must support the price denomination in listChainAssets.
|
|
72
248
|
*/
|
|
73
249
|
post: operations["createPayment"];
|
|
74
250
|
delete?: never;
|
|
@@ -109,7 +285,7 @@ export interface paths {
|
|
|
109
285
|
put?: never;
|
|
110
286
|
/**
|
|
111
287
|
* Freeze stablecoin payable terms
|
|
112
|
-
* @description Reserve a unique recipient for the selected network and freeze the amount and token. Quote expiry cannot exceed the payment expiry.
|
|
288
|
+
* @description Reserve a unique recipient for the selected network and freeze the amount and token. Quote expiry cannot exceed the payment expiry. New quotes use the selected network's matching asset from listChainAssets.
|
|
113
289
|
*/
|
|
114
290
|
post: operations["createQuote"];
|
|
115
291
|
delete?: never;
|
|
@@ -589,7 +765,7 @@ export interface components {
|
|
|
589
765
|
* @description EVM or TRON chain ID, or a local or Solana selector. Use network_id for the network reference.
|
|
590
766
|
* @enum {integer}
|
|
591
767
|
*/
|
|
592
|
-
ChainSelectorId: 1 | 999 | 8453 | 42161 | 31337 | 31338 | 31339 | 31340 | 900001 | 900002 | 728126428 | 900003;
|
|
768
|
+
ChainSelectorId: 1 | 999 | 8453 | 84532 | 42161 | 31337 | 31338 | 31339 | 31340 | 900001 | 900002 | 728126428 | 900003;
|
|
593
769
|
/** @description Decimal TRON identifiers are emitted. The hexadecimal TRON mainnet alias is accepted on connection creation. */
|
|
594
770
|
ChainNetworkId: string;
|
|
595
771
|
/** @enum {string} */
|
|
@@ -605,7 +781,7 @@ export interface components {
|
|
|
605
781
|
*/
|
|
606
782
|
ChainTokenSymbol: "USDC" | "USDT" | "USDT0";
|
|
607
783
|
/**
|
|
608
|
-
* @description Token deployment type. USDT0
|
|
784
|
+
* @description Token deployment type. Historical quotes can include USDT0 or a Standard Bridge token. New live quotes use native tokens.
|
|
609
785
|
* @enum {string}
|
|
610
786
|
*/
|
|
611
787
|
ChainAssetRepresentation: "native" | "usdt0" | "standard_bridge" | "fixture";
|
|
@@ -948,6 +1124,91 @@ export interface components {
|
|
|
948
1124
|
attempt: components["schemas"]["Attempt"];
|
|
949
1125
|
operation: components["schemas"]["Operation"] | null;
|
|
950
1126
|
};
|
|
1127
|
+
/** @enum {string} */
|
|
1128
|
+
BillingPlanId: "sandbox" | "starter" | "growth" | "scale";
|
|
1129
|
+
/** @enum {string} */
|
|
1130
|
+
PaidBillingPlanId: "starter" | "growth" | "scale";
|
|
1131
|
+
BillingPrice: {
|
|
1132
|
+
/** @constant */
|
|
1133
|
+
asset: "stable:USDC";
|
|
1134
|
+
amount_atomic: string;
|
|
1135
|
+
/** @constant */
|
|
1136
|
+
scale: 6;
|
|
1137
|
+
};
|
|
1138
|
+
BillingPlan: {
|
|
1139
|
+
plan_id: components["schemas"]["BillingPlanId"];
|
|
1140
|
+
environment: components["schemas"]["Environment"];
|
|
1141
|
+
price: components["schemas"]["BillingPrice"];
|
|
1142
|
+
request_limit: number;
|
|
1143
|
+
/**
|
|
1144
|
+
* @description The free test plan uses UTC calendar months.
|
|
1145
|
+
* @enum {integer|null}
|
|
1146
|
+
*/
|
|
1147
|
+
period_days: 30 | null;
|
|
1148
|
+
};
|
|
1149
|
+
BillingPlans: {
|
|
1150
|
+
plans: components["schemas"]["BillingPlan"][];
|
|
1151
|
+
/** @description Currently offered USDC networks. Existing servers may omit this field. */
|
|
1152
|
+
collection_options?: components["schemas"]["BillingCollectionOption"][];
|
|
1153
|
+
};
|
|
1154
|
+
BillingCollectionOption: {
|
|
1155
|
+
network_id: components["schemas"]["ChainNetworkId"];
|
|
1156
|
+
network_name: string;
|
|
1157
|
+
/** @enum {string} */
|
|
1158
|
+
family: "evm" | "solana";
|
|
1159
|
+
is_default: boolean;
|
|
1160
|
+
};
|
|
1161
|
+
BillingSubscription: {
|
|
1162
|
+
environment: components["schemas"]["Environment"];
|
|
1163
|
+
/** @enum {string} */
|
|
1164
|
+
status: "active" | "inactive";
|
|
1165
|
+
plan_id: components["schemas"]["BillingPlanId"] | null;
|
|
1166
|
+
/** Format: date-time */
|
|
1167
|
+
period_start: string | null;
|
|
1168
|
+
/** Format: date-time */
|
|
1169
|
+
period_end: string | null;
|
|
1170
|
+
request_limit: number;
|
|
1171
|
+
requests_used: number;
|
|
1172
|
+
};
|
|
1173
|
+
CreateBillingInvoice: {
|
|
1174
|
+
plan_id: components["schemas"]["PaidBillingPlanId"];
|
|
1175
|
+
payer_address: components["schemas"]["ChainAddress"];
|
|
1176
|
+
checkout_session_ref: components["schemas"]["ChainCheckoutSessionRef"];
|
|
1177
|
+
/** @description USDC collection network offered in BillingPlans. The deployment's default connection is used when omitted. */
|
|
1178
|
+
network_id?: components["schemas"]["ChainNetworkId"];
|
|
1179
|
+
};
|
|
1180
|
+
BillingInvoice: {
|
|
1181
|
+
/** Format: uuid */
|
|
1182
|
+
invoice_id: string;
|
|
1183
|
+
plan_id: components["schemas"]["PaidBillingPlanId"];
|
|
1184
|
+
environment: components["schemas"]["Environment"];
|
|
1185
|
+
/**
|
|
1186
|
+
* @description Reconciling means a wallet-authorized invoice still awaits final reconciliation after transaction submission or quote expiry. Resume that invoice and wait before paying another one.
|
|
1187
|
+
* @enum {string}
|
|
1188
|
+
*/
|
|
1189
|
+
status: "pending" | "reconciling" | "active" | "scheduled" | "expired" | "revoked";
|
|
1190
|
+
quote: components["schemas"]["Quote"];
|
|
1191
|
+
intent: components["schemas"]["ChainIntent"];
|
|
1192
|
+
/** Format: date-time */
|
|
1193
|
+
period_start: string | null;
|
|
1194
|
+
/** Format: date-time */
|
|
1195
|
+
period_end: string | null;
|
|
1196
|
+
};
|
|
1197
|
+
BillingInvoiceList: {
|
|
1198
|
+
invoices: components["schemas"]["BillingInvoice"][];
|
|
1199
|
+
};
|
|
1200
|
+
BillingKeyRequest: Record<string, never>;
|
|
1201
|
+
BillingKey: {
|
|
1202
|
+
/** Format: uuid */
|
|
1203
|
+
key_id: string;
|
|
1204
|
+
token: string;
|
|
1205
|
+
environment: components["schemas"]["Environment"];
|
|
1206
|
+
};
|
|
1207
|
+
TestBillingKey: components["schemas"]["BillingKey"] & {
|
|
1208
|
+
/** @constant */
|
|
1209
|
+
environment?: "test";
|
|
1210
|
+
token?: string;
|
|
1211
|
+
};
|
|
951
1212
|
/** @description Stable opaque reference assigned by the merchant server to the authenticated buyer checkout. */
|
|
952
1213
|
ChainCheckoutSessionRef: string;
|
|
953
1214
|
/** @description Use a 0x-prefixed wallet signature. Encode raw Solana Ed25519 signature bytes as hex. */
|
|
@@ -1307,7 +1568,7 @@ export interface components {
|
|
|
1307
1568
|
"application/json": components["schemas"]["Error"];
|
|
1308
1569
|
};
|
|
1309
1570
|
};
|
|
1310
|
-
/** @description Scope, environment, account or resource ownership denied. */
|
|
1571
|
+
/** @description Scope, environment, account or resource ownership denied, or an active subscription is required. */
|
|
1311
1572
|
Forbidden: {
|
|
1312
1573
|
headers: {
|
|
1313
1574
|
[name: string]: unknown;
|
|
@@ -1344,6 +1605,33 @@ export interface components {
|
|
|
1344
1605
|
"application/json": components["schemas"]["Error"];
|
|
1345
1606
|
};
|
|
1346
1607
|
};
|
|
1608
|
+
/** @description BILLING_KEY_REQUIRED for a non-billing credential or SUBSCRIPTION_REQUIRED when key issuance requires an active paid period. */
|
|
1609
|
+
BillingForbidden: {
|
|
1610
|
+
headers: {
|
|
1611
|
+
[name: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
content: {
|
|
1614
|
+
"application/json": components["schemas"]["Error"];
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
/** @description Idempotency payload mismatch, another pending or reconciling invoice (BILLING_INVOICE_IN_PROGRESS), an already scheduled renewal (BILLING_RENEWAL_SCHEDULED), or unavailable recipient capacity. */
|
|
1618
|
+
BillingInvoiceConflict: {
|
|
1619
|
+
headers: {
|
|
1620
|
+
[name: string]: unknown;
|
|
1621
|
+
};
|
|
1622
|
+
content: {
|
|
1623
|
+
"application/json": components["schemas"]["Error"];
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
/** @description API_REQUEST_LIMIT_REACHED. The current request budget is exhausted. */
|
|
1627
|
+
RequestBudgetExhausted: {
|
|
1628
|
+
headers: {
|
|
1629
|
+
[name: string]: unknown;
|
|
1630
|
+
};
|
|
1631
|
+
content: {
|
|
1632
|
+
"application/json": components["schemas"]["Error"];
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1347
1635
|
/** @description Required service unavailable. An external mutation may still have executed; retain/poll operation ID instead of creating a new payment. */
|
|
1348
1636
|
Unavailable: {
|
|
1349
1637
|
headers: {
|
|
@@ -1362,6 +1650,7 @@ export interface components {
|
|
|
1362
1650
|
payment_id: string;
|
|
1363
1651
|
attempt_id: string;
|
|
1364
1652
|
quote_id: string;
|
|
1653
|
+
invoice_id: string;
|
|
1365
1654
|
intent_id: string;
|
|
1366
1655
|
connection_id: string;
|
|
1367
1656
|
operation_id: string;
|
|
@@ -1374,6 +1663,276 @@ export interface components {
|
|
|
1374
1663
|
}
|
|
1375
1664
|
export type $defs = Record<string, never>;
|
|
1376
1665
|
export interface operations {
|
|
1666
|
+
listBillingPlans: {
|
|
1667
|
+
parameters: {
|
|
1668
|
+
query?: never;
|
|
1669
|
+
header?: never;
|
|
1670
|
+
path?: never;
|
|
1671
|
+
cookie?: never;
|
|
1672
|
+
};
|
|
1673
|
+
requestBody?: never;
|
|
1674
|
+
responses: {
|
|
1675
|
+
/** @description Successful scoped billing response. */
|
|
1676
|
+
200: {
|
|
1677
|
+
headers: {
|
|
1678
|
+
[name: string]: unknown;
|
|
1679
|
+
};
|
|
1680
|
+
content: {
|
|
1681
|
+
"application/json": components["schemas"]["BillingPlans"];
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
401: components["responses"]["Unauthorized"];
|
|
1685
|
+
403: components["responses"]["BillingForbidden"];
|
|
1686
|
+
503: components["responses"]["Unavailable"];
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
getBillingSubscription: {
|
|
1690
|
+
parameters: {
|
|
1691
|
+
query?: never;
|
|
1692
|
+
header?: never;
|
|
1693
|
+
path?: never;
|
|
1694
|
+
cookie?: never;
|
|
1695
|
+
};
|
|
1696
|
+
requestBody?: never;
|
|
1697
|
+
responses: {
|
|
1698
|
+
/** @description Successful scoped billing response. */
|
|
1699
|
+
200: {
|
|
1700
|
+
headers: {
|
|
1701
|
+
[name: string]: unknown;
|
|
1702
|
+
};
|
|
1703
|
+
content: {
|
|
1704
|
+
"application/json": components["schemas"]["BillingSubscription"];
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
401: components["responses"]["Unauthorized"];
|
|
1708
|
+
403: components["responses"]["BillingForbidden"];
|
|
1709
|
+
503: components["responses"]["Unavailable"];
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
listBillingInvoices: {
|
|
1713
|
+
parameters: {
|
|
1714
|
+
query?: never;
|
|
1715
|
+
header?: never;
|
|
1716
|
+
path?: never;
|
|
1717
|
+
cookie?: never;
|
|
1718
|
+
};
|
|
1719
|
+
requestBody?: never;
|
|
1720
|
+
responses: {
|
|
1721
|
+
/** @description Successful scoped billing response. */
|
|
1722
|
+
200: {
|
|
1723
|
+
headers: {
|
|
1724
|
+
[name: string]: unknown;
|
|
1725
|
+
};
|
|
1726
|
+
content: {
|
|
1727
|
+
"application/json": components["schemas"]["BillingInvoiceList"];
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
401: components["responses"]["Unauthorized"];
|
|
1731
|
+
403: components["responses"]["BillingForbidden"];
|
|
1732
|
+
503: components["responses"]["Unavailable"];
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
createBillingInvoice: {
|
|
1736
|
+
parameters: {
|
|
1737
|
+
query?: never;
|
|
1738
|
+
header: {
|
|
1739
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1740
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1741
|
+
};
|
|
1742
|
+
path?: never;
|
|
1743
|
+
cookie?: never;
|
|
1744
|
+
};
|
|
1745
|
+
requestBody: {
|
|
1746
|
+
content: {
|
|
1747
|
+
"application/json": components["schemas"]["CreateBillingInvoice"];
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
responses: {
|
|
1751
|
+
/** @description Successful scoped billing response. */
|
|
1752
|
+
201: {
|
|
1753
|
+
headers: {
|
|
1754
|
+
[name: string]: unknown;
|
|
1755
|
+
};
|
|
1756
|
+
content: {
|
|
1757
|
+
"application/json": components["schemas"]["BillingInvoice"];
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
400: components["responses"]["BadRequest"];
|
|
1761
|
+
401: components["responses"]["Unauthorized"];
|
|
1762
|
+
403: components["responses"]["BillingForbidden"];
|
|
1763
|
+
409: components["responses"]["BillingInvoiceConflict"];
|
|
1764
|
+
503: components["responses"]["Unavailable"];
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
getBillingInvoice: {
|
|
1768
|
+
parameters: {
|
|
1769
|
+
query?: never;
|
|
1770
|
+
header?: never;
|
|
1771
|
+
path: {
|
|
1772
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
1773
|
+
};
|
|
1774
|
+
cookie?: never;
|
|
1775
|
+
};
|
|
1776
|
+
requestBody?: never;
|
|
1777
|
+
responses: {
|
|
1778
|
+
/** @description Successful scoped billing response. */
|
|
1779
|
+
200: {
|
|
1780
|
+
headers: {
|
|
1781
|
+
[name: string]: unknown;
|
|
1782
|
+
};
|
|
1783
|
+
content: {
|
|
1784
|
+
"application/json": components["schemas"]["BillingInvoice"];
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
401: components["responses"]["Unauthorized"];
|
|
1788
|
+
403: components["responses"]["BillingForbidden"];
|
|
1789
|
+
404: components["responses"]["NotFound"];
|
|
1790
|
+
503: components["responses"]["Unavailable"];
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
authorizeBillingInvoice: {
|
|
1794
|
+
parameters: {
|
|
1795
|
+
query?: never;
|
|
1796
|
+
header: {
|
|
1797
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1798
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1799
|
+
};
|
|
1800
|
+
path: {
|
|
1801
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
1802
|
+
};
|
|
1803
|
+
cookie?: never;
|
|
1804
|
+
};
|
|
1805
|
+
requestBody: {
|
|
1806
|
+
content: {
|
|
1807
|
+
"application/json": components["schemas"]["AuthorizeChainIntent"];
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
responses: {
|
|
1811
|
+
/** @description Successful scoped billing response. */
|
|
1812
|
+
200: {
|
|
1813
|
+
headers: {
|
|
1814
|
+
[name: string]: unknown;
|
|
1815
|
+
};
|
|
1816
|
+
content: {
|
|
1817
|
+
"application/json": components["schemas"]["BillingInvoice"];
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
400: components["responses"]["BadRequest"];
|
|
1821
|
+
401: components["responses"]["Unauthorized"];
|
|
1822
|
+
403: components["responses"]["BillingForbidden"];
|
|
1823
|
+
404: components["responses"]["NotFound"];
|
|
1824
|
+
409: components["responses"]["Conflict"];
|
|
1825
|
+
503: components["responses"]["Unavailable"];
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
submitBillingInvoice: {
|
|
1829
|
+
parameters: {
|
|
1830
|
+
query?: never;
|
|
1831
|
+
header: {
|
|
1832
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1833
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1834
|
+
};
|
|
1835
|
+
path: {
|
|
1836
|
+
invoice_id: components["parameters"]["invoice_id"];
|
|
1837
|
+
};
|
|
1838
|
+
cookie?: never;
|
|
1839
|
+
};
|
|
1840
|
+
requestBody: {
|
|
1841
|
+
content: {
|
|
1842
|
+
"application/json": components["schemas"]["SubmitChainIntent"];
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
responses: {
|
|
1846
|
+
/** @description Successful scoped billing response. */
|
|
1847
|
+
200: {
|
|
1848
|
+
headers: {
|
|
1849
|
+
[name: string]: unknown;
|
|
1850
|
+
};
|
|
1851
|
+
content: {
|
|
1852
|
+
"application/json": components["schemas"]["BillingInvoice"];
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
400: components["responses"]["BadRequest"];
|
|
1856
|
+
401: components["responses"]["Unauthorized"];
|
|
1857
|
+
403: components["responses"]["BillingForbidden"];
|
|
1858
|
+
404: components["responses"]["NotFound"];
|
|
1859
|
+
409: components["responses"]["Conflict"];
|
|
1860
|
+
503: components["responses"]["Unavailable"];
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
issueBillingKey: {
|
|
1864
|
+
parameters: {
|
|
1865
|
+
query?: never;
|
|
1866
|
+
header: {
|
|
1867
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1868
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1869
|
+
};
|
|
1870
|
+
path?: never;
|
|
1871
|
+
cookie?: never;
|
|
1872
|
+
};
|
|
1873
|
+
requestBody: {
|
|
1874
|
+
content: {
|
|
1875
|
+
"application/json": components["schemas"]["BillingKeyRequest"];
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
responses: {
|
|
1879
|
+
/** @description Successful scoped billing response. */
|
|
1880
|
+
201: {
|
|
1881
|
+
headers: {
|
|
1882
|
+
[name: string]: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
content: {
|
|
1885
|
+
"application/json": components["schemas"]["BillingKey"];
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
400: components["responses"]["BadRequest"];
|
|
1889
|
+
401: components["responses"]["Unauthorized"];
|
|
1890
|
+
403: components["responses"]["BillingForbidden"];
|
|
1891
|
+
409: components["responses"]["Conflict"];
|
|
1892
|
+
503: components["responses"]["Unavailable"];
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
issueTestBillingKey: {
|
|
1896
|
+
parameters: {
|
|
1897
|
+
query?: never;
|
|
1898
|
+
header: {
|
|
1899
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1900
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1901
|
+
};
|
|
1902
|
+
path?: never;
|
|
1903
|
+
cookie?: never;
|
|
1904
|
+
};
|
|
1905
|
+
requestBody: {
|
|
1906
|
+
content: {
|
|
1907
|
+
"application/json": components["schemas"]["BillingKeyRequest"];
|
|
1908
|
+
};
|
|
1909
|
+
};
|
|
1910
|
+
responses: {
|
|
1911
|
+
/** @description Test-only server key. */
|
|
1912
|
+
201: {
|
|
1913
|
+
headers: {
|
|
1914
|
+
[name: string]: unknown;
|
|
1915
|
+
};
|
|
1916
|
+
content: {
|
|
1917
|
+
"application/json": components["schemas"]["TestBillingKey"];
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
400: components["responses"]["BadRequest"];
|
|
1921
|
+
401: components["responses"]["Unauthorized"];
|
|
1922
|
+
403: components["responses"]["BillingForbidden"];
|
|
1923
|
+
409: components["responses"]["Conflict"];
|
|
1924
|
+
/** @description Sandbox key limit reached. */
|
|
1925
|
+
429: {
|
|
1926
|
+
headers: {
|
|
1927
|
+
[name: string]: unknown;
|
|
1928
|
+
};
|
|
1929
|
+
content: {
|
|
1930
|
+
"application/json": components["schemas"]["Error"];
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
503: components["responses"]["Unavailable"];
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1377
1936
|
listChainAssets: {
|
|
1378
1937
|
parameters: {
|
|
1379
1938
|
query?: never;
|
|
@@ -1394,6 +1953,7 @@ export interface operations {
|
|
|
1394
1953
|
};
|
|
1395
1954
|
401: components["responses"]["Unauthorized"];
|
|
1396
1955
|
403: components["responses"]["Forbidden"];
|
|
1956
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
1397
1957
|
};
|
|
1398
1958
|
};
|
|
1399
1959
|
createChainConnection: {
|
|
@@ -1489,7 +2049,7 @@ export interface operations {
|
|
|
1489
2049
|
403: components["responses"]["Forbidden"];
|
|
1490
2050
|
404: components["responses"]["NotFound"];
|
|
1491
2051
|
409: components["responses"]["Conflict"];
|
|
1492
|
-
429: components["responses"]["
|
|
2052
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
1493
2053
|
503: components["responses"]["Unavailable"];
|
|
1494
2054
|
};
|
|
1495
2055
|
};
|
|
@@ -1524,7 +2084,7 @@ export interface operations {
|
|
|
1524
2084
|
403: components["responses"]["Forbidden"];
|
|
1525
2085
|
404: components["responses"]["NotFound"];
|
|
1526
2086
|
409: components["responses"]["Conflict"];
|
|
1527
|
-
429: components["responses"]["
|
|
2087
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
1528
2088
|
503: components["responses"]["Unavailable"];
|
|
1529
2089
|
};
|
|
1530
2090
|
};
|
|
@@ -1591,7 +2151,7 @@ export interface operations {
|
|
|
1591
2151
|
403: components["responses"]["Forbidden"];
|
|
1592
2152
|
404: components["responses"]["NotFound"];
|
|
1593
2153
|
409: components["responses"]["Conflict"];
|
|
1594
|
-
429: components["responses"]["
|
|
2154
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
1595
2155
|
503: components["responses"]["Unavailable"];
|
|
1596
2156
|
};
|
|
1597
2157
|
};
|
|
@@ -1764,7 +2324,7 @@ export interface operations {
|
|
|
1764
2324
|
403: components["responses"]["Forbidden"];
|
|
1765
2325
|
404: components["responses"]["NotFound"];
|
|
1766
2326
|
409: components["responses"]["Conflict"];
|
|
1767
|
-
429: components["responses"]["
|
|
2327
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
1768
2328
|
503: components["responses"]["Unavailable"];
|
|
1769
2329
|
};
|
|
1770
2330
|
};
|
|
@@ -1801,7 +2361,6 @@ export interface operations {
|
|
|
1801
2361
|
403: components["responses"]["Forbidden"];
|
|
1802
2362
|
404: components["responses"]["NotFound"];
|
|
1803
2363
|
409: components["responses"]["Conflict"];
|
|
1804
|
-
429: components["responses"]["RateLimited"];
|
|
1805
2364
|
503: components["responses"]["Unavailable"];
|
|
1806
2365
|
};
|
|
1807
2366
|
};
|
|
@@ -2013,7 +2572,7 @@ export interface operations {
|
|
|
2013
2572
|
403: components["responses"]["Forbidden"];
|
|
2014
2573
|
404: components["responses"]["NotFound"];
|
|
2015
2574
|
409: components["responses"]["Conflict"];
|
|
2016
|
-
429: components["responses"]["
|
|
2575
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
2017
2576
|
503: components["responses"]["Unavailable"];
|
|
2018
2577
|
};
|
|
2019
2578
|
};
|
|
@@ -2043,7 +2602,7 @@ export interface operations {
|
|
|
2043
2602
|
403: components["responses"]["Forbidden"];
|
|
2044
2603
|
404: components["responses"]["NotFound"];
|
|
2045
2604
|
409: components["responses"]["Conflict"];
|
|
2046
|
-
429: components["responses"]["
|
|
2605
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
2047
2606
|
503: components["responses"]["Unavailable"];
|
|
2048
2607
|
};
|
|
2049
2608
|
};
|
|
@@ -2080,7 +2639,6 @@ export interface operations {
|
|
|
2080
2639
|
403: components["responses"]["Forbidden"];
|
|
2081
2640
|
404: components["responses"]["NotFound"];
|
|
2082
2641
|
409: components["responses"]["Conflict"];
|
|
2083
|
-
429: components["responses"]["RateLimited"];
|
|
2084
2642
|
503: components["responses"]["Unavailable"];
|
|
2085
2643
|
};
|
|
2086
2644
|
};
|
|
@@ -2115,7 +2673,6 @@ export interface operations {
|
|
|
2115
2673
|
403: components["responses"]["Forbidden"];
|
|
2116
2674
|
404: components["responses"]["NotFound"];
|
|
2117
2675
|
409: components["responses"]["Conflict"];
|
|
2118
|
-
429: components["responses"]["RateLimited"];
|
|
2119
2676
|
503: components["responses"]["Unavailable"];
|
|
2120
2677
|
};
|
|
2121
2678
|
};
|
|
@@ -2145,7 +2702,7 @@ export interface operations {
|
|
|
2145
2702
|
403: components["responses"]["Forbidden"];
|
|
2146
2703
|
404: components["responses"]["NotFound"];
|
|
2147
2704
|
409: components["responses"]["Conflict"];
|
|
2148
|
-
429: components["responses"]["
|
|
2705
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
2149
2706
|
503: components["responses"]["Unavailable"];
|
|
2150
2707
|
};
|
|
2151
2708
|
};
|
|
@@ -2182,7 +2739,6 @@ export interface operations {
|
|
|
2182
2739
|
403: components["responses"]["Forbidden"];
|
|
2183
2740
|
404: components["responses"]["NotFound"];
|
|
2184
2741
|
409: components["responses"]["Conflict"];
|
|
2185
|
-
429: components["responses"]["RateLimited"];
|
|
2186
2742
|
503: components["responses"]["Unavailable"];
|
|
2187
2743
|
};
|
|
2188
2744
|
};
|
|
@@ -2213,7 +2769,7 @@ export interface operations {
|
|
|
2213
2769
|
403: components["responses"]["Forbidden"];
|
|
2214
2770
|
404: components["responses"]["NotFound"];
|
|
2215
2771
|
409: components["responses"]["Conflict"];
|
|
2216
|
-
429: components["responses"]["
|
|
2772
|
+
429: components["responses"]["RequestBudgetExhausted"];
|
|
2217
2773
|
503: components["responses"]["Unavailable"];
|
|
2218
2774
|
};
|
|
2219
2775
|
};
|