@marcohefti/request-network-api-client 0.5.12 → 0.6.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.
- package/README.md +2 -2
- package/dist/cjs/domains/currencies/v1/index.js +288 -0
- package/dist/cjs/domains/currencies/v1/index.js.map +1 -0
- package/dist/cjs/domains/pay/index.js +251 -0
- package/dist/cjs/domains/pay/index.js.map +1 -0
- package/dist/cjs/domains/pay/v1/index.js +241 -0
- package/dist/cjs/domains/pay/v1/index.js.map +1 -0
- package/dist/cjs/domains/payer/v1/index.js +355 -0
- package/dist/cjs/domains/payer/v1/index.js.map +1 -0
- package/dist/cjs/domains/payer/v2/index.js +355 -0
- package/dist/cjs/domains/payer/v2/index.js.map +1 -0
- package/dist/cjs/domains/payments/index.js +274 -0
- package/dist/cjs/domains/payments/index.js.map +1 -0
- package/dist/cjs/domains/requests/index.js +38 -10
- package/dist/cjs/domains/requests/index.js.map +1 -1
- package/dist/cjs/domains/requests/v1/index.js +499 -0
- package/dist/cjs/domains/requests/v1/index.js.map +1 -0
- package/dist/cjs/domains/secure-payments/index.js +248 -0
- package/dist/cjs/domains/secure-payments/index.js.map +1 -0
- package/dist/cjs/index.js +234 -242
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/{index-DJGHELE1.d.mts → currencies.v1.facade-ROQlpyCp.d.mts} +2 -34
- package/dist/esm/domains/client-ids/index.d.mts +2 -2
- package/dist/esm/domains/currencies/index.d.mts +3 -2
- package/dist/esm/domains/currencies/v1/index.d.mts +3 -0
- package/dist/esm/domains/currencies/v1/index.js +286 -0
- package/dist/esm/domains/currencies/v1/index.js.map +1 -0
- package/dist/esm/domains/pay/index.d.mts +3 -0
- package/dist/esm/domains/pay/index.js +248 -0
- package/dist/esm/domains/pay/index.js.map +1 -0
- package/dist/esm/domains/pay/v1/index.d.mts +2 -0
- package/dist/esm/domains/pay/v1/index.js +239 -0
- package/dist/esm/domains/pay/v1/index.js.map +1 -0
- package/dist/esm/domains/payer/index.d.mts +4 -2
- package/dist/esm/domains/payer/v1/index.d.mts +2 -0
- package/dist/esm/domains/payer/v1/index.js +353 -0
- package/dist/esm/domains/payer/v1/index.js.map +1 -0
- package/dist/esm/domains/payer/v2/index.d.mts +2 -0
- package/dist/esm/domains/payer/v2/index.js +353 -0
- package/dist/esm/domains/payer/v2/index.js.map +1 -0
- package/dist/esm/domains/payments/index.d.mts +3 -0
- package/dist/esm/domains/payments/index.js +272 -0
- package/dist/esm/domains/payments/index.js.map +1 -0
- package/dist/esm/domains/payouts/index.d.mts +2 -2
- package/dist/esm/domains/requests/index.d.mts +3 -2
- package/dist/esm/domains/requests/index.js +38 -10
- package/dist/esm/domains/requests/index.js.map +1 -1
- package/dist/esm/domains/requests/v1/index.d.mts +3 -0
- package/dist/esm/domains/requests/v1/index.js +497 -0
- package/dist/esm/domains/requests/v1/index.js.map +1 -0
- package/dist/esm/domains/secure-payments/index.d.mts +2 -0
- package/dist/esm/domains/secure-payments/index.js +246 -0
- package/dist/esm/domains/secure-payments/index.js.map +1 -0
- package/dist/esm/index-4zmukpkJ.d.mts +12 -0
- package/dist/esm/index-BPikysYP.d.mts +10 -0
- package/dist/esm/index-BlEg0bI1.d.mts +25 -0
- package/dist/esm/{index-hYoC2ndH.d.mts → index-CBcZqEQp.d.mts} +1 -1
- package/dist/esm/index-CS9UrTd6.d.mts +10 -0
- package/dist/esm/index-CeMw0yOZ.d.mts +3393 -0
- package/dist/esm/index-DPVFRK3h.d.mts +36 -0
- package/dist/esm/{index-DbnV_D6L.d.mts → index-DPx06HBi.d.mts} +18 -58
- package/dist/esm/index-DZ0iw_Xz.d.mts +10 -0
- package/dist/esm/index-DpFThmL3.d.mts +57 -0
- package/dist/esm/{index-y1nxa55y.d.mts → index-DuMayMNI.d.mts} +1 -1
- package/dist/esm/index-Kx46FKbk.d.mts +38 -0
- package/dist/esm/index-srhKdWh7.d.mts +21 -0
- package/dist/esm/index.d.mts +31 -3520
- package/dist/esm/index.js +234 -242
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{openapi-types-CQ1z27_K.d.mts → openapi-types-JhYQOcil.d.mts} +252 -117
- package/dist/esm/pay.v1.facade-wxvuDX9t.d.mts +17 -0
- package/dist/esm/payer.v1.facade-Rcl1BBPl.d.mts +31 -0
- package/dist/esm/payer.v2.facade-BqcIOIBY.d.mts +31 -0
- package/dist/esm/request.helpers-DgzNANMt.d.mts +51 -0
- package/package.json +6 -6
- package/dist/cjs/domains/payee-destination/index.js +0 -276
- package/dist/cjs/domains/payee-destination/index.js.map +0 -1
- package/dist/esm/domains/payee-destination/index.d.mts +0 -2
- package/dist/esm/domains/payee-destination/index.js +0 -274
- package/dist/esm/domains/payee-destination/index.js.map +0 -1
- package/dist/esm/index-DJjp2Jbk.d.mts +0 -79
- package/dist/esm/index-DQIf9k5x.d.mts +0 -31
|
@@ -174,9 +174,9 @@ interface operations {
|
|
|
174
174
|
id?: string;
|
|
175
175
|
};
|
|
176
176
|
header?: {
|
|
177
|
-
/** @description API key for authentication (optional if using Client ID) */
|
|
177
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
178
178
|
"x-api-key"?: string;
|
|
179
|
-
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
179
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
180
180
|
"x-client-id"?: string;
|
|
181
181
|
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
182
182
|
Origin?: string;
|
|
@@ -231,9 +231,9 @@ interface operations {
|
|
|
231
231
|
networks?: string;
|
|
232
232
|
};
|
|
233
233
|
header?: {
|
|
234
|
-
/** @description API key for authentication (optional if using Client ID) */
|
|
234
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
235
235
|
"x-api-key"?: string;
|
|
236
|
-
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
236
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
237
237
|
"x-client-id"?: string;
|
|
238
238
|
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
239
239
|
Origin?: string;
|
|
@@ -285,9 +285,9 @@ interface operations {
|
|
|
285
285
|
id?: string;
|
|
286
286
|
};
|
|
287
287
|
header?: {
|
|
288
|
-
/** @description API key for authentication (optional if using Client ID) */
|
|
288
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
289
289
|
"x-api-key"?: string;
|
|
290
|
-
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
290
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
291
291
|
"x-client-id"?: string;
|
|
292
292
|
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
293
293
|
Origin?: string;
|
|
@@ -342,9 +342,9 @@ interface operations {
|
|
|
342
342
|
networks?: string;
|
|
343
343
|
};
|
|
344
344
|
header?: {
|
|
345
|
-
/** @description API key for authentication (optional if using Client ID) */
|
|
345
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
346
346
|
"x-api-key"?: string;
|
|
347
|
-
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
347
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
348
348
|
"x-client-id"?: string;
|
|
349
349
|
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
350
350
|
Origin?: string;
|
|
@@ -1171,6 +1171,94 @@ interface operations {
|
|
|
1171
1171
|
};
|
|
1172
1172
|
};
|
|
1173
1173
|
};
|
|
1174
|
+
RequestControllerV2_listRequests_v2: {
|
|
1175
|
+
parameters: {
|
|
1176
|
+
query: {
|
|
1177
|
+
/** @description Payee wallet address to filter requests by */
|
|
1178
|
+
walletAddress: string;
|
|
1179
|
+
/** @description Number of results per page (max 100) */
|
|
1180
|
+
limit?: string;
|
|
1181
|
+
/** @description Pagination offset */
|
|
1182
|
+
offset?: string;
|
|
1183
|
+
};
|
|
1184
|
+
header?: {
|
|
1185
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
1186
|
+
"x-api-key"?: string;
|
|
1187
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
1188
|
+
"x-client-id"?: string;
|
|
1189
|
+
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
1190
|
+
Origin?: string;
|
|
1191
|
+
};
|
|
1192
|
+
path?: never;
|
|
1193
|
+
cookie?: never;
|
|
1194
|
+
};
|
|
1195
|
+
requestBody?: never;
|
|
1196
|
+
responses: {
|
|
1197
|
+
/** @description Requests listed successfully */
|
|
1198
|
+
200: {
|
|
1199
|
+
headers: {
|
|
1200
|
+
[name: string]: unknown;
|
|
1201
|
+
};
|
|
1202
|
+
content: {
|
|
1203
|
+
"application/json": {
|
|
1204
|
+
/** @description List of requests */
|
|
1205
|
+
requests: {
|
|
1206
|
+
/** @description Unique identifier of the request */
|
|
1207
|
+
requestId?: string;
|
|
1208
|
+
/** @description Unique payment reference */
|
|
1209
|
+
paymentReference?: string;
|
|
1210
|
+
/** @description Request amount in human-readable format */
|
|
1211
|
+
amount?: string | null;
|
|
1212
|
+
/** @description Invoice currency symbol (e.g. USD) */
|
|
1213
|
+
invoiceCurrency?: string;
|
|
1214
|
+
/** @description Payment currency ID */
|
|
1215
|
+
paymentCurrency?: string;
|
|
1216
|
+
/** @description Whether the request has been paid */
|
|
1217
|
+
hasBeenPaid?: boolean;
|
|
1218
|
+
/** @description Current status of the request */
|
|
1219
|
+
status?: string | null;
|
|
1220
|
+
/** @description Merchant reference */
|
|
1221
|
+
reference?: string | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Format: date-time
|
|
1224
|
+
* @description When the request was created
|
|
1225
|
+
*/
|
|
1226
|
+
createdAt?: string | null;
|
|
1227
|
+
/** @description Transaction hash of the payment, null if not yet paid */
|
|
1228
|
+
txHash?: string | null;
|
|
1229
|
+
/** @description Payee wallet address */
|
|
1230
|
+
payee?: string | null;
|
|
1231
|
+
/** @description Payer wallet address */
|
|
1232
|
+
payer?: string | null;
|
|
1233
|
+
}[];
|
|
1234
|
+
/** @description Pagination metadata */
|
|
1235
|
+
pagination: {
|
|
1236
|
+
/** @description Total number of matching requests */
|
|
1237
|
+
total?: number;
|
|
1238
|
+
/** @description Number of results per page */
|
|
1239
|
+
limit?: number;
|
|
1240
|
+
/** @description Current pagination offset */
|
|
1241
|
+
offset?: number;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
/** @description Validation failed */
|
|
1247
|
+
400: {
|
|
1248
|
+
headers: {
|
|
1249
|
+
[name: string]: unknown;
|
|
1250
|
+
};
|
|
1251
|
+
content?: never;
|
|
1252
|
+
};
|
|
1253
|
+
/** @description Too Many Requests */
|
|
1254
|
+
429: {
|
|
1255
|
+
headers: {
|
|
1256
|
+
[name: string]: unknown;
|
|
1257
|
+
};
|
|
1258
|
+
content?: never;
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
};
|
|
1174
1262
|
RequestControllerV2_createRequest_v2: {
|
|
1175
1263
|
parameters: {
|
|
1176
1264
|
query?: never;
|
|
@@ -1190,7 +1278,7 @@ interface operations {
|
|
|
1190
1278
|
"application/json": {
|
|
1191
1279
|
/** @description The wallet address of the payer */
|
|
1192
1280
|
payer?: string;
|
|
1193
|
-
/** @description The wallet address of the payee (Ethereum 0x... or TRON T...).
|
|
1281
|
+
/** @description The wallet address of the payee (Ethereum 0x... or TRON T...). Optional when using client ID authentication with a configured payee destination. */
|
|
1194
1282
|
payee?: string;
|
|
1195
1283
|
/** @description The payable amount of the invoice, in human readable format */
|
|
1196
1284
|
amount: string;
|
|
@@ -1265,15 +1353,15 @@ interface operations {
|
|
|
1265
1353
|
};
|
|
1266
1354
|
};
|
|
1267
1355
|
};
|
|
1268
|
-
/** @description Validation failed */
|
|
1356
|
+
/** @description Validation failed or no active payee destination for client ID */
|
|
1269
1357
|
400: {
|
|
1270
1358
|
headers: {
|
|
1271
1359
|
[name: string]: unknown;
|
|
1272
1360
|
};
|
|
1273
1361
|
content?: never;
|
|
1274
1362
|
};
|
|
1275
|
-
/** @description
|
|
1276
|
-
|
|
1363
|
+
/** @description Client ID has been revoked */
|
|
1364
|
+
403: {
|
|
1277
1365
|
headers: {
|
|
1278
1366
|
[name: string]: unknown;
|
|
1279
1367
|
};
|
|
@@ -1292,9 +1380,9 @@ interface operations {
|
|
|
1292
1380
|
parameters: {
|
|
1293
1381
|
query?: never;
|
|
1294
1382
|
header?: {
|
|
1295
|
-
/** @description API key for authentication (optional if using Client ID) */
|
|
1383
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
1296
1384
|
"x-api-key"?: string;
|
|
1297
|
-
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
1385
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
1298
1386
|
"x-client-id"?: string;
|
|
1299
1387
|
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
1300
1388
|
Origin?: string;
|
|
@@ -1320,6 +1408,8 @@ interface operations {
|
|
|
1320
1408
|
paymentReference?: string;
|
|
1321
1409
|
/** @description Unique identifier of the request */
|
|
1322
1410
|
requestId?: string;
|
|
1411
|
+
/** @description The payee wallet address for this request */
|
|
1412
|
+
payee?: string | null;
|
|
1323
1413
|
/** @description Whether the system is actively listening for payments on this request */
|
|
1324
1414
|
isListening?: boolean;
|
|
1325
1415
|
/** @description Transaction hash of the payment, null if not yet paid */
|
|
@@ -3428,64 +3518,60 @@ interface operations {
|
|
|
3428
3518
|
};
|
|
3429
3519
|
};
|
|
3430
3520
|
};
|
|
3431
|
-
|
|
3521
|
+
SecurePaymentController_findSecurePayment_v2: {
|
|
3432
3522
|
parameters: {
|
|
3433
3523
|
query: {
|
|
3434
|
-
/** @description
|
|
3435
|
-
|
|
3436
|
-
/** @description The action to perform (add or deactivate) */
|
|
3437
|
-
action: "add" | "deactivate";
|
|
3438
|
-
/** @description The ERC20 token address for the payee destination */
|
|
3439
|
-
tokenAddress: string;
|
|
3440
|
-
/** @description The chain ID where the token is deployed */
|
|
3441
|
-
chainId: string;
|
|
3524
|
+
/** @description Request ID to look up the associated secure payment */
|
|
3525
|
+
requestId: string;
|
|
3442
3526
|
};
|
|
3443
3527
|
header: {
|
|
3444
|
-
/** @description
|
|
3445
|
-
|
|
3446
|
-
/** @description Origin header (automatically set by browser) */
|
|
3447
|
-
Origin: string;
|
|
3528
|
+
/** @description Bearer token for session authentication (or use session_token cookie) */
|
|
3529
|
+
Authorization: string;
|
|
3448
3530
|
};
|
|
3449
3531
|
path?: never;
|
|
3450
3532
|
cookie?: never;
|
|
3451
3533
|
};
|
|
3452
3534
|
requestBody?: never;
|
|
3453
3535
|
responses: {
|
|
3454
|
-
/** @description
|
|
3536
|
+
/** @description Secure payment found */
|
|
3455
3537
|
200: {
|
|
3456
3538
|
headers: {
|
|
3457
3539
|
[name: string]: unknown;
|
|
3458
3540
|
};
|
|
3459
|
-
content
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3541
|
+
content: {
|
|
3542
|
+
"application/json": {
|
|
3543
|
+
/** @description Secure payment token */
|
|
3544
|
+
token: string;
|
|
3545
|
+
/**
|
|
3546
|
+
* Format: uri
|
|
3547
|
+
* @description URL to the secure payment page
|
|
3548
|
+
*/
|
|
3549
|
+
securePaymentUrl: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* @description Current status of the secure payment
|
|
3552
|
+
* @enum {string}
|
|
3553
|
+
*/
|
|
3554
|
+
status: "pending" | "completed" | "expired" | "invalidated";
|
|
3555
|
+
/**
|
|
3556
|
+
* @description Type of payment: single or batch
|
|
3557
|
+
* @enum {string}
|
|
3558
|
+
*/
|
|
3559
|
+
paymentType: "single" | "batch";
|
|
3560
|
+
/**
|
|
3561
|
+
* Format: date-time
|
|
3562
|
+
* @description When the secure payment was created
|
|
3563
|
+
*/
|
|
3564
|
+
createdAt: string | null;
|
|
3565
|
+
/**
|
|
3566
|
+
* Format: date-time
|
|
3567
|
+
* @description When the secure payment token expires
|
|
3568
|
+
*/
|
|
3569
|
+
expiresAt: string;
|
|
3570
|
+
};
|
|
3465
3571
|
};
|
|
3466
|
-
content?: never;
|
|
3467
|
-
};
|
|
3468
|
-
};
|
|
3469
|
-
};
|
|
3470
|
-
PayeeDestinationController_getActivePayeeDestination_v2: {
|
|
3471
|
-
parameters: {
|
|
3472
|
-
query: {
|
|
3473
|
-
/** @description The wallet address to filter payee destinations */
|
|
3474
|
-
walletAddress: string;
|
|
3475
3572
|
};
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
"x-client-id": string;
|
|
3479
|
-
/** @description Origin header (automatically set by browser) */
|
|
3480
|
-
Origin: string;
|
|
3481
|
-
};
|
|
3482
|
-
path?: never;
|
|
3483
|
-
cookie?: never;
|
|
3484
|
-
};
|
|
3485
|
-
requestBody?: never;
|
|
3486
|
-
responses: {
|
|
3487
|
-
/** @description Active payee destination retrieved successfully (or null if none exists) */
|
|
3488
|
-
200: {
|
|
3573
|
+
/** @description No secure payment found for this request ID */
|
|
3574
|
+
404: {
|
|
3489
3575
|
headers: {
|
|
3490
3576
|
[name: string]: unknown;
|
|
3491
3577
|
};
|
|
@@ -3500,14 +3586,16 @@ interface operations {
|
|
|
3500
3586
|
};
|
|
3501
3587
|
};
|
|
3502
3588
|
};
|
|
3503
|
-
|
|
3589
|
+
SecurePaymentController_createSecurePayment_v2: {
|
|
3504
3590
|
parameters: {
|
|
3505
3591
|
query?: never;
|
|
3506
|
-
header
|
|
3507
|
-
/** @description Client ID
|
|
3508
|
-
"x-
|
|
3509
|
-
/** @description
|
|
3510
|
-
|
|
3592
|
+
header?: {
|
|
3593
|
+
/** @description API key for authentication (optional if using Client ID or session) */
|
|
3594
|
+
"x-api-key"?: string;
|
|
3595
|
+
/** @description Client ID for frontend authentication (optional if using API key or session) */
|
|
3596
|
+
"x-client-id"?: string;
|
|
3597
|
+
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
3598
|
+
Origin?: string;
|
|
3511
3599
|
};
|
|
3512
3600
|
path?: never;
|
|
3513
3601
|
cookie?: never;
|
|
@@ -3515,20 +3603,39 @@ interface operations {
|
|
|
3515
3603
|
requestBody: {
|
|
3516
3604
|
content: {
|
|
3517
3605
|
"application/json": {
|
|
3518
|
-
/** @description
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3606
|
+
/** @description Array of payment requests. Single item = single payment, multiple items = batch payment. All requests must resolve to the same network. */
|
|
3607
|
+
requests: {
|
|
3608
|
+
/** @description Destination ID in composite format: ERC-7828 payee address + token address, separated by ':' (e.g., '0x742d...bEb0@eip155:11155111#80B12379:0x370D...623C') */
|
|
3609
|
+
destinationId: string;
|
|
3610
|
+
/** @description The payable amount, in human readable format */
|
|
3611
|
+
amount: string;
|
|
3612
|
+
}[];
|
|
3613
|
+
/** @description Fee percentage to apply at payment time (e.g., '2.5' for 2.5%) */
|
|
3614
|
+
feePercentage?: string;
|
|
3615
|
+
/** @description Address to receive the fee (Ethereum 0x... or TRON T...) */
|
|
3616
|
+
feeAddress?: string;
|
|
3522
3617
|
};
|
|
3523
3618
|
};
|
|
3524
3619
|
};
|
|
3525
3620
|
responses: {
|
|
3526
|
-
/** @description
|
|
3621
|
+
/** @description Secure payment entry created successfully */
|
|
3527
3622
|
201: {
|
|
3528
3623
|
headers: {
|
|
3529
3624
|
[name: string]: unknown;
|
|
3530
3625
|
};
|
|
3531
|
-
content
|
|
3626
|
+
content: {
|
|
3627
|
+
"application/json": {
|
|
3628
|
+
/** @description Array of request IDs created for this secure payment */
|
|
3629
|
+
requestIds: string[];
|
|
3630
|
+
/**
|
|
3631
|
+
* Format: uri
|
|
3632
|
+
* @description URL to the secure payment page
|
|
3633
|
+
*/
|
|
3634
|
+
securePaymentUrl: string;
|
|
3635
|
+
/** @description Secure payment token */
|
|
3636
|
+
token: string;
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3532
3639
|
};
|
|
3533
3640
|
/** @description Too Many Requests */
|
|
3534
3641
|
429: {
|
|
@@ -3539,79 +3646,107 @@ interface operations {
|
|
|
3539
3646
|
};
|
|
3540
3647
|
};
|
|
3541
3648
|
};
|
|
3542
|
-
|
|
3649
|
+
SecurePaymentController_getSecurePaymentByToken_v2: {
|
|
3543
3650
|
parameters: {
|
|
3544
|
-
query?:
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3651
|
+
query?: {
|
|
3652
|
+
/** @description The wallet address of the payer (optional, used to check existing approvals) */
|
|
3653
|
+
wallet?: string;
|
|
3654
|
+
};
|
|
3655
|
+
header?: {
|
|
3656
|
+
/** @description API key for authentication (optional if using Client ID) */
|
|
3657
|
+
"x-api-key"?: string;
|
|
3658
|
+
/** @description Client ID for frontend authentication (optional if using API key) */
|
|
3659
|
+
"x-client-id"?: string;
|
|
3660
|
+
/** @description Origin header (required for Client ID auth, automatically set by browser) */
|
|
3661
|
+
Origin?: string;
|
|
3662
|
+
};
|
|
3663
|
+
path: {
|
|
3664
|
+
token: string;
|
|
3550
3665
|
};
|
|
3551
|
-
path?: never;
|
|
3552
3666
|
cookie?: never;
|
|
3553
3667
|
};
|
|
3554
3668
|
requestBody?: never;
|
|
3555
3669
|
responses: {
|
|
3556
|
-
/** @description
|
|
3670
|
+
/** @description Secure payment data retrieved successfully */
|
|
3557
3671
|
200: {
|
|
3558
3672
|
headers: {
|
|
3559
3673
|
[name: string]: unknown;
|
|
3560
3674
|
};
|
|
3561
|
-
content
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3675
|
+
content: {
|
|
3676
|
+
"application/json": {
|
|
3677
|
+
/**
|
|
3678
|
+
* @description Type of payment: single or batch
|
|
3679
|
+
* @enum {string}
|
|
3680
|
+
*/
|
|
3681
|
+
paymentType: "single";
|
|
3682
|
+
/** @description Payee wallet address */
|
|
3683
|
+
payee: string;
|
|
3684
|
+
/** @description Blockchain network */
|
|
3685
|
+
network: string;
|
|
3686
|
+
/** @description Payment amount */
|
|
3687
|
+
amount: string;
|
|
3688
|
+
/** @description Payment currency ID */
|
|
3689
|
+
paymentCurrency: string;
|
|
3690
|
+
/** @description Whether the payment currency is the native currency (e.g., ETH) */
|
|
3691
|
+
isNativeCurrency: boolean;
|
|
3692
|
+
/**
|
|
3693
|
+
* @description Current status of the secure payment
|
|
3694
|
+
* @enum {string}
|
|
3695
|
+
*/
|
|
3696
|
+
status: "pending" | "completed" | "expired" | "invalidated";
|
|
3697
|
+
/** @description Resolved destination for this payment */
|
|
3698
|
+
destination: {
|
|
3699
|
+
/** @description Composite destination ID: ERC-7828 payee address + token address (e.g., '0x742d...bEb0@eip155:11155111#80B12379:0x370D...623C') */
|
|
3700
|
+
destinationId: string;
|
|
3701
|
+
/** @description Payee address in ERC-7828 human-readable format */
|
|
3702
|
+
payeeAddress: string;
|
|
3703
|
+
/** @description ERC20 token contract address */
|
|
3704
|
+
tokenAddress: string;
|
|
3705
|
+
/** @description Raw wallet address */
|
|
3706
|
+
walletAddress: string;
|
|
3707
|
+
/** @description Blockchain network name */
|
|
3708
|
+
network: string;
|
|
3709
|
+
};
|
|
3710
|
+
/** @description Array of prepared transactions (includes approval and payment transactions) */
|
|
3711
|
+
transactions: unknown[];
|
|
3712
|
+
/** @description Payment metadata */
|
|
3713
|
+
metadata?: {
|
|
3714
|
+
stepsRequired: number;
|
|
3715
|
+
needsApproval: boolean;
|
|
3716
|
+
approvalTransactionIndex?: number;
|
|
3717
|
+
paymentTransactionIndex: number;
|
|
3718
|
+
hasEnoughBalance?: boolean;
|
|
3719
|
+
hasEnoughGas?: boolean;
|
|
3720
|
+
platformFee?: {
|
|
3721
|
+
percentage: string;
|
|
3722
|
+
address: string;
|
|
3723
|
+
};
|
|
3724
|
+
};
|
|
3725
|
+
};
|
|
3567
3726
|
};
|
|
3568
|
-
content?: never;
|
|
3569
3727
|
};
|
|
3570
|
-
/** @description
|
|
3571
|
-
|
|
3728
|
+
/** @description Secure payment token expired or invalid status */
|
|
3729
|
+
403: {
|
|
3572
3730
|
headers: {
|
|
3573
3731
|
[name: string]: unknown;
|
|
3574
3732
|
};
|
|
3575
3733
|
content?: never;
|
|
3576
3734
|
};
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
PayeeDestinationController_deactivatePayeeDestination_v2: {
|
|
3580
|
-
parameters: {
|
|
3581
|
-
query?: never;
|
|
3582
|
-
header: {
|
|
3583
|
-
/** @description Client ID for frontend authentication */
|
|
3584
|
-
"x-client-id": string;
|
|
3585
|
-
/** @description Origin header (automatically set by browser) */
|
|
3586
|
-
Origin: string;
|
|
3587
|
-
};
|
|
3588
|
-
path?: never;
|
|
3589
|
-
cookie?: never;
|
|
3590
|
-
};
|
|
3591
|
-
requestBody: {
|
|
3592
|
-
content: {
|
|
3593
|
-
"application/json": {
|
|
3594
|
-
/** @description The EIP-712 signature from the payee */
|
|
3595
|
-
signature: string;
|
|
3596
|
-
/** @description The signing session nonce from /signing-data endpoint */
|
|
3597
|
-
nonce: string;
|
|
3598
|
-
};
|
|
3599
|
-
};
|
|
3600
|
-
};
|
|
3601
|
-
responses: {
|
|
3602
|
-
/** @description Payee destination deactivated successfully */
|
|
3603
|
-
200: {
|
|
3735
|
+
/** @description Secure payment not found */
|
|
3736
|
+
404: {
|
|
3604
3737
|
headers: {
|
|
3605
3738
|
[name: string]: unknown;
|
|
3606
3739
|
};
|
|
3607
3740
|
content?: never;
|
|
3608
3741
|
};
|
|
3609
|
-
/** @description
|
|
3610
|
-
|
|
3742
|
+
/** @description Secure payment has already been completed */
|
|
3743
|
+
409: {
|
|
3611
3744
|
headers: {
|
|
3612
3745
|
[name: string]: unknown;
|
|
3613
3746
|
};
|
|
3614
|
-
content
|
|
3747
|
+
content: {
|
|
3748
|
+
"application/json": unknown;
|
|
3749
|
+
};
|
|
3615
3750
|
};
|
|
3616
3751
|
/** @description Too Many Requests */
|
|
3617
3752
|
429: {
|
|
@@ -3624,4 +3759,4 @@ interface operations {
|
|
|
3624
3759
|
};
|
|
3625
3760
|
}
|
|
3626
3761
|
|
|
3627
|
-
export { DEFAULT_RETRY_CONFIG as D, type HttpAdapter as H, type Interceptor as I, type LogLevel as L, type QuerySerializer as Q, type RetryConfig as R, type RuntimeValidationOption as a, type HttpClient as b, type
|
|
3762
|
+
export { DEFAULT_RETRY_CONFIG as D, type HttpAdapter as H, type Interceptor as I, type LogLevel as L, type QuerySerializer as Q, type RetryConfig as R, type RuntimeValidationOption as a, type HttpClient as b, type RetryDecision as c, type RetryDecisionInput as d, type RetryResponseLike as e, type RetryJitter as f, computeRetryDelay as g, type HttpMethod as h, type RequestOptions as i, type RuntimeValidationConfig as j, type operations as o, shouldRetryRequest as s };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
|
|
2
|
+
|
|
3
|
+
declare const OP_PAY_REQUEST: "PayV1Controller_payRequest_v1";
|
|
4
|
+
type PayRequestBody = operations[typeof OP_PAY_REQUEST]["requestBody"]["content"]["application/json"];
|
|
5
|
+
type PayRequestResponse = operations[typeof OP_PAY_REQUEST]["responses"][201]["content"]["application/json"];
|
|
6
|
+
interface PayV1OperationOptions {
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
timeoutMs?: number;
|
|
9
|
+
validation?: RuntimeValidationOption;
|
|
10
|
+
meta?: RequestOptions["meta"];
|
|
11
|
+
}
|
|
12
|
+
interface PayV1Api {
|
|
13
|
+
payRequest(body: PayRequestBody, options?: PayV1OperationOptions): Promise<PayRequestResponse>;
|
|
14
|
+
}
|
|
15
|
+
declare function createPayV1Api(http: HttpClient): PayV1Api;
|
|
16
|
+
|
|
17
|
+
export { type PayV1Api as P, type PayV1OperationOptions as a, createPayV1Api as c };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
|
|
2
|
+
|
|
3
|
+
declare const OP_CREATE_COMPLIANCE: "PayerV1Controller_getComplianceData_v1";
|
|
4
|
+
declare const OP_GET_STATUS: "PayerV1Controller_getComplianceStatus_v1";
|
|
5
|
+
declare const OP_UPDATE_STATUS: "PayerV1Controller_updateComplianceStatus_v1";
|
|
6
|
+
declare const OP_CREATE_PAYMENT_DETAILS: "PayerV1Controller_createPaymentDetails_v1";
|
|
7
|
+
declare const OP_GET_PAYMENT_DETAILS: "PayerV1Controller_getPaymentDetails_v1";
|
|
8
|
+
type CreateComplianceBody = operations[typeof OP_CREATE_COMPLIANCE]["requestBody"]["content"]["application/json"];
|
|
9
|
+
type CreateComplianceResponse = operations[typeof OP_CREATE_COMPLIANCE]["responses"][200]["content"]["application/json"];
|
|
10
|
+
type ComplianceStatusResponse = operations[typeof OP_GET_STATUS]["responses"][200]["content"]["application/json"];
|
|
11
|
+
type UpdateComplianceBody = operations[typeof OP_UPDATE_STATUS]["requestBody"]["content"]["application/json"];
|
|
12
|
+
type UpdateComplianceResponse = operations[typeof OP_UPDATE_STATUS]["responses"][200]["content"]["application/json"];
|
|
13
|
+
type CreatePaymentDetailsBody = operations[typeof OP_CREATE_PAYMENT_DETAILS]["requestBody"]["content"]["application/json"];
|
|
14
|
+
type CreatePaymentDetailsResponse = operations[typeof OP_CREATE_PAYMENT_DETAILS]["responses"][201]["content"]["application/json"];
|
|
15
|
+
type GetPaymentDetailsResponse = operations[typeof OP_GET_PAYMENT_DETAILS]["responses"][200]["content"]["application/json"];
|
|
16
|
+
interface PayerV1OperationOptions {
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
validation?: RuntimeValidationOption;
|
|
20
|
+
meta?: RequestOptions["meta"];
|
|
21
|
+
}
|
|
22
|
+
interface PayerV1Api {
|
|
23
|
+
createComplianceData(body: CreateComplianceBody, options?: PayerV1OperationOptions): Promise<CreateComplianceResponse>;
|
|
24
|
+
getComplianceStatus(clientUserId: string, options?: PayerV1OperationOptions): Promise<ComplianceStatusResponse>;
|
|
25
|
+
updateComplianceStatus(clientUserId: string, body: UpdateComplianceBody, options?: PayerV1OperationOptions): Promise<UpdateComplianceResponse>;
|
|
26
|
+
createPaymentDetails(clientUserId: string, body: CreatePaymentDetailsBody, options?: PayerV1OperationOptions): Promise<CreatePaymentDetailsResponse>;
|
|
27
|
+
getPaymentDetails(clientUserId: string, options?: PayerV1OperationOptions): Promise<GetPaymentDetailsResponse>;
|
|
28
|
+
}
|
|
29
|
+
declare function createPayerV1Api(http: HttpClient): PayerV1Api;
|
|
30
|
+
|
|
31
|
+
export { type PayerV1Api as P, type PayerV1OperationOptions as a, createPayerV1Api as c };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
|
|
2
|
+
|
|
3
|
+
declare const OP_CREATE_COMPLIANCE: "PayerV2Controller_getComplianceData_v2";
|
|
4
|
+
declare const OP_GET_STATUS: "PayerV2Controller_getComplianceStatus_v2";
|
|
5
|
+
declare const OP_UPDATE_STATUS: "PayerV2Controller_updateComplianceStatus_v2";
|
|
6
|
+
declare const OP_CREATE_PAYMENT_DETAILS: "PayerV2Controller_createPaymentDetails_v2";
|
|
7
|
+
declare const OP_GET_PAYMENT_DETAILS: "PayerV2Controller_getPaymentDetails_v2";
|
|
8
|
+
type CreateComplianceBody = operations[typeof OP_CREATE_COMPLIANCE]["requestBody"]["content"]["application/json"];
|
|
9
|
+
type CreateComplianceResponse = operations[typeof OP_CREATE_COMPLIANCE]["responses"][200]["content"]["application/json"];
|
|
10
|
+
type ComplianceStatusResponse = operations[typeof OP_GET_STATUS]["responses"][200]["content"]["application/json"];
|
|
11
|
+
type UpdateComplianceBody = operations[typeof OP_UPDATE_STATUS]["requestBody"]["content"]["application/json"];
|
|
12
|
+
type UpdateComplianceResponse = operations[typeof OP_UPDATE_STATUS]["responses"][200]["content"]["application/json"];
|
|
13
|
+
type CreatePaymentDetailsBody = operations[typeof OP_CREATE_PAYMENT_DETAILS]["requestBody"]["content"]["application/json"];
|
|
14
|
+
type CreatePaymentDetailsResponse = operations[typeof OP_CREATE_PAYMENT_DETAILS]["responses"][201]["content"]["application/json"];
|
|
15
|
+
type GetPaymentDetailsResponse = operations[typeof OP_GET_PAYMENT_DETAILS]["responses"][200]["content"]["application/json"];
|
|
16
|
+
interface PayerV2OperationOptions {
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
validation?: RuntimeValidationOption;
|
|
20
|
+
meta?: RequestOptions["meta"];
|
|
21
|
+
}
|
|
22
|
+
interface PayerV2Api {
|
|
23
|
+
createComplianceData(body: CreateComplianceBody, options?: PayerV2OperationOptions): Promise<CreateComplianceResponse>;
|
|
24
|
+
getComplianceStatus(clientUserId: string, options?: PayerV2OperationOptions): Promise<ComplianceStatusResponse>;
|
|
25
|
+
updateComplianceStatus(clientUserId: string, body: UpdateComplianceBody, options?: PayerV2OperationOptions): Promise<UpdateComplianceResponse>;
|
|
26
|
+
createPaymentDetails(clientUserId: string, body: CreatePaymentDetailsBody, options?: PayerV2OperationOptions): Promise<CreatePaymentDetailsResponse>;
|
|
27
|
+
getPaymentDetails(clientUserId: string, options?: PayerV2OperationOptions): Promise<GetPaymentDetailsResponse>;
|
|
28
|
+
}
|
|
29
|
+
declare function createPayerV2Api(http: HttpClient): PayerV2Api;
|
|
30
|
+
|
|
31
|
+
export { type PayerV2Api as P, type PayerV2OperationOptions as a, createPayerV2Api as c };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
interface RequestStatusAddress {
|
|
2
|
+
street?: string;
|
|
3
|
+
city?: string;
|
|
4
|
+
state?: string;
|
|
5
|
+
postalCode?: string;
|
|
6
|
+
country?: string;
|
|
7
|
+
}
|
|
8
|
+
interface RequestStatusCustomerInfo {
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
address?: RequestStatusAddress;
|
|
13
|
+
}
|
|
14
|
+
type RequestStatusKind = "paid" | "pending" | "cancelled" | "overdue" | "unknown";
|
|
15
|
+
interface RequestStatusBase {
|
|
16
|
+
paymentReference?: string;
|
|
17
|
+
requestId?: string;
|
|
18
|
+
isListening?: boolean;
|
|
19
|
+
txHash: string | null;
|
|
20
|
+
status?: string;
|
|
21
|
+
recurrence?: Record<string, unknown>;
|
|
22
|
+
originalRequestId?: string;
|
|
23
|
+
originalRequestPaymentReference?: string;
|
|
24
|
+
isRecurrenceStopped?: boolean;
|
|
25
|
+
isCryptoToFiatAvailable?: boolean;
|
|
26
|
+
payments?: Array<Record<string, unknown>>;
|
|
27
|
+
customerInfo?: RequestStatusCustomerInfo | null;
|
|
28
|
+
reference?: string | null;
|
|
29
|
+
hasBeenPaid?: boolean;
|
|
30
|
+
}
|
|
31
|
+
type RequestStatusResult = (RequestStatusBase & {
|
|
32
|
+
kind: "paid";
|
|
33
|
+
hasBeenPaid: true;
|
|
34
|
+
}) | (RequestStatusBase & {
|
|
35
|
+
kind: "pending";
|
|
36
|
+
hasBeenPaid?: boolean;
|
|
37
|
+
}) | (RequestStatusBase & {
|
|
38
|
+
kind: "cancelled";
|
|
39
|
+
hasBeenPaid?: boolean;
|
|
40
|
+
}) | (RequestStatusBase & {
|
|
41
|
+
kind: "overdue";
|
|
42
|
+
hasBeenPaid?: boolean;
|
|
43
|
+
}) | (RequestStatusBase & {
|
|
44
|
+
kind: "unknown";
|
|
45
|
+
hasBeenPaid?: boolean;
|
|
46
|
+
});
|
|
47
|
+
type LegacyRequestStatusResult = Extract<RequestStatusResult, {
|
|
48
|
+
kind: "paid" | "pending";
|
|
49
|
+
}>;
|
|
50
|
+
|
|
51
|
+
export type { LegacyRequestStatusResult as L, RequestStatusResult as R, RequestStatusAddress as a, RequestStatusCustomerInfo as b, RequestStatusKind as c };
|