@leaflow/sdk 0.129.1 → 0.130.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/dist/billing/type/order/v1/generated/models.d.ts +241 -85
- package/dist/billing/type/order/v1/generated/models.js +19 -4
- package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/refund.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/refundList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/transaction.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/transactionList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/transactionType.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.d.ts +40 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +43 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalAllocation.zod.d.ts +19 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalAllocation.zod.js +17 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalCreate.zod.d.ts +25 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalCreate.zod.js +19 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.d.ts +46 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +37 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalItemList.zod.d.ts +48 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalItemList.zod.js +14 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalList.zod.d.ts +39 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalList.zod.js +14 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreview.zod.d.ts +40 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreview.zod.js +25 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +28 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreviewItem.zod.js +19 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +15 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalPreviewRequest.zod.js +13 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.d.ts +23 -0
- package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +23 -0
- package/dist/billing/v1/generated/functions.d.ts +106 -1
- package/dist/billing/v1/generated/functions.js +132 -0
- package/dist/billing/v1/generated/models.d.ts +194 -9
- package/dist/billing/v1/generated/models.js +15 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +59 -0
- package/dist/billing/v1/generated/schemas.zod.js +67 -0
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +24 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +19 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +25 -0
- package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +40 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +43 -0
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +19 -0
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +17 -0
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +25 -0
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +19 -0
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +46 -0
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +37 -0
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +48 -0
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +14 -0
- package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +39 -0
- package/dist/billing/v1/generated/validators/withdrawalList.zod.js +14 -0
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +40 -0
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +25 -0
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +28 -0
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +19 -0
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +15 -0
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +13 -0
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +23 -0
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +23 -0
- package/dist/canopy/v1/generated/models.d.ts +241 -85
- package/dist/canopy/v1/generated/models.js +19 -4
- package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/refund.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +63 -0
- package/dist/canopy/v1/generated/validators/withdrawal.zod.js +66 -0
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +42 -0
- package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +40 -0
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +48 -0
- package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +42 -0
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +69 -0
- package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +60 -0
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +71 -0
- package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +37 -0
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +62 -0
- package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +37 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +63 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +48 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +51 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +42 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +38 -0
- package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +36 -0
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +46 -0
- package/dist/compute/v1/generated/models.d.ts +241 -85
- package/dist/compute/v1/generated/models.js +19 -4
- package/dist/compute/v1/generated/validators/paymentResult.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/refund.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/refundList.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/transaction.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/transactionList.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/transactionType.zod.d.ts +1 -0
- package/dist/compute/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/compute/v1/generated/validators/withdrawal.zod.d.ts +56 -0
- package/dist/compute/v1/generated/validators/withdrawal.zod.js +59 -0
- package/dist/compute/v1/generated/validators/withdrawalAllocation.zod.d.ts +35 -0
- package/dist/compute/v1/generated/validators/withdrawalAllocation.zod.js +33 -0
- package/dist/compute/v1/generated/validators/withdrawalCreate.zod.d.ts +41 -0
- package/dist/compute/v1/generated/validators/withdrawalCreate.zod.js +35 -0
- package/dist/compute/v1/generated/validators/withdrawalItem.zod.d.ts +62 -0
- package/dist/compute/v1/generated/validators/withdrawalItem.zod.js +53 -0
- package/dist/compute/v1/generated/validators/withdrawalItemList.zod.d.ts +64 -0
- package/dist/compute/v1/generated/validators/withdrawalItemList.zod.js +30 -0
- package/dist/compute/v1/generated/validators/withdrawalList.zod.d.ts +55 -0
- package/dist/compute/v1/generated/validators/withdrawalList.zod.js +30 -0
- package/dist/compute/v1/generated/validators/withdrawalPreview.zod.d.ts +56 -0
- package/dist/compute/v1/generated/validators/withdrawalPreview.zod.js +41 -0
- package/dist/compute/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +44 -0
- package/dist/compute/v1/generated/validators/withdrawalPreviewItem.zod.js +35 -0
- package/dist/compute/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +31 -0
- package/dist/compute/v1/generated/validators/withdrawalPreviewRequest.zod.js +29 -0
- package/dist/compute/v1/generated/validators/withdrawalSource.zod.d.ts +39 -0
- package/dist/compute/v1/generated/validators/withdrawalSource.zod.js +39 -0
- package/dist/membership/v1/generated/models.d.ts +247 -85
- package/dist/membership/v1/generated/models.js +19 -4
- package/dist/membership/v1/generated/validators/grant.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/grant.zod.js +5 -0
- package/dist/membership/v1/generated/validators/membership.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/membershipList.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/period.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/periodList.zod.d.ts +2 -0
- package/dist/membership/v1/generated/validators/refund.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/refundList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/transaction.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/transactionType.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/membership/v1/generated/validators/withdrawal.zod.d.ts +40 -0
- package/dist/membership/v1/generated/validators/withdrawal.zod.js +43 -0
- package/dist/membership/v1/generated/validators/withdrawalAllocation.zod.d.ts +19 -0
- package/dist/membership/v1/generated/validators/withdrawalAllocation.zod.js +17 -0
- package/dist/membership/v1/generated/validators/withdrawalCreate.zod.d.ts +25 -0
- package/dist/membership/v1/generated/validators/withdrawalCreate.zod.js +19 -0
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.d.ts +46 -0
- package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +37 -0
- package/dist/membership/v1/generated/validators/withdrawalItemList.zod.d.ts +48 -0
- package/dist/membership/v1/generated/validators/withdrawalItemList.zod.js +14 -0
- package/dist/membership/v1/generated/validators/withdrawalList.zod.d.ts +39 -0
- package/dist/membership/v1/generated/validators/withdrawalList.zod.js +14 -0
- package/dist/membership/v1/generated/validators/withdrawalPreview.zod.d.ts +40 -0
- package/dist/membership/v1/generated/validators/withdrawalPreview.zod.js +25 -0
- package/dist/membership/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +28 -0
- package/dist/membership/v1/generated/validators/withdrawalPreviewItem.zod.js +19 -0
- package/dist/membership/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +15 -0
- package/dist/membership/v1/generated/validators/withdrawalPreviewRequest.zod.js +13 -0
- package/dist/membership/v1/generated/validators/withdrawalSource.zod.d.ts +23 -0
- package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +23 -0
- package/dist/routes.d.ts +40 -0
- package/dist/routes.js +45 -0
- package/package.json +1 -1
|
@@ -227,6 +227,12 @@ export interface Grant {
|
|
|
227
227
|
allowance_id: string | null;
|
|
228
228
|
/** @nullable */
|
|
229
229
|
feature_grant_id: string | null;
|
|
230
|
+
valid_from: string;
|
|
231
|
+
/**
|
|
232
|
+
* Exclusive expiry; null means no expiry.
|
|
233
|
+
* @nullable
|
|
234
|
+
*/
|
|
235
|
+
valid_until: string | null;
|
|
230
236
|
issued_at: string;
|
|
231
237
|
}
|
|
232
238
|
/**
|
|
@@ -422,108 +428,159 @@ export interface CursorPagination {
|
|
|
422
428
|
/** @nullable */
|
|
423
429
|
next_cursor?: string | null;
|
|
424
430
|
}
|
|
431
|
+
export interface WithdrawalAllocation {
|
|
432
|
+
source_transaction_id: string;
|
|
433
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
434
|
+
amount: string;
|
|
435
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
436
|
+
fee_amount: string;
|
|
437
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
438
|
+
refund_amount: string;
|
|
439
|
+
}
|
|
440
|
+
export type WithdrawalItemStatus = (typeof WithdrawalItemStatus)[keyof typeof WithdrawalItemStatus];
|
|
441
|
+
export declare const WithdrawalItemStatus: {
|
|
442
|
+
readonly pending: "pending";
|
|
443
|
+
readonly succeeded: "succeeded";
|
|
444
|
+
readonly failed: "failed";
|
|
445
|
+
readonly reversed: "reversed";
|
|
446
|
+
};
|
|
425
447
|
/**
|
|
426
|
-
*
|
|
427
|
-
* `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
|
|
428
|
-
* invoices state this. Only operators change it.
|
|
448
|
+
* The original top-up and its refund destination. Card details are included when the original payment method was saved; missing card details do not change the original refund route.
|
|
429
449
|
*/
|
|
430
|
-
export
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
450
|
+
export interface WithdrawalSource {
|
|
451
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
452
|
+
amount: string;
|
|
453
|
+
/**
|
|
454
|
+
* @minLength 3
|
|
455
|
+
* @maxLength 3
|
|
456
|
+
*/
|
|
457
|
+
currency: string;
|
|
458
|
+
received_at: string;
|
|
459
|
+
payment_gateway: string;
|
|
460
|
+
method_type: string;
|
|
461
|
+
card_brand?: string;
|
|
462
|
+
/** @pattern ^[0-9]{4}$ */
|
|
463
|
+
card_last4?: string;
|
|
464
|
+
}
|
|
436
465
|
/**
|
|
437
|
-
*
|
|
466
|
+
* The fixed principal deduction, withdrawal fee and exact refund obligation for one original top-up. Each item has its own refund; payment_gateway and method_type identify the original route.
|
|
438
467
|
*/
|
|
439
|
-
export interface
|
|
468
|
+
export interface WithdrawalItem {
|
|
469
|
+
source_transaction_id: string;
|
|
470
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
471
|
+
amount: string;
|
|
472
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
473
|
+
fee_amount: string;
|
|
474
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
475
|
+
refund_amount: string;
|
|
440
476
|
id: string;
|
|
477
|
+
withdrawal_id: string;
|
|
441
478
|
billing_account_id: number;
|
|
442
479
|
/**
|
|
443
|
-
* @minLength
|
|
444
|
-
* @maxLength
|
|
480
|
+
* @minLength 3
|
|
481
|
+
* @maxLength 3
|
|
445
482
|
*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
483
|
+
currency: string;
|
|
484
|
+
refund_id: string;
|
|
485
|
+
fee_transaction_id?: string;
|
|
486
|
+
status: WithdrawalItemStatus;
|
|
487
|
+
completed_at?: string;
|
|
488
|
+
payment_gateway: string;
|
|
489
|
+
method_type: string;
|
|
490
|
+
source: WithdrawalSource;
|
|
491
|
+
/** The original gateway failure code when a refund failed, or refund_reversed when a completed refund was reversed. Absent while pending or successful. */
|
|
492
|
+
failure_code?: string;
|
|
493
|
+
}
|
|
494
|
+
export type WithdrawalStatus = (typeof WithdrawalStatus)[keyof typeof WithdrawalStatus];
|
|
495
|
+
export declare const WithdrawalStatus: {
|
|
496
|
+
readonly pending: "pending";
|
|
497
|
+
readonly processing: "processing";
|
|
498
|
+
readonly succeeded: "succeeded";
|
|
499
|
+
readonly partially_completed: "partially_completed";
|
|
500
|
+
readonly failed: "failed";
|
|
501
|
+
readonly reversed: "reversed";
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* An account withdrawal to the original payment methods of its unused top-ups. Accepted amounts are fixed. deducted_amount, settled_amount and charged_fee_amount report completed source items. Failed items release their principal and fee reservations; successful items are retained when another source fails.
|
|
505
|
+
*/
|
|
506
|
+
export interface Withdrawal {
|
|
507
|
+
id: string;
|
|
508
|
+
billing_account_id: number;
|
|
465
509
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
* invoices state this. Only operators change it.
|
|
510
|
+
* @minLength 3
|
|
511
|
+
* @maxLength 3
|
|
469
512
|
*/
|
|
470
|
-
|
|
471
|
-
|
|
513
|
+
currency: string;
|
|
514
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
515
|
+
amount: string;
|
|
516
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
517
|
+
fee_amount: string;
|
|
518
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
519
|
+
refund_amount: string;
|
|
520
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
521
|
+
deducted_amount: string;
|
|
522
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
523
|
+
settled_amount: string;
|
|
524
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
525
|
+
charged_fee_amount: string;
|
|
526
|
+
status: WithdrawalStatus;
|
|
472
527
|
created_at: string;
|
|
473
|
-
|
|
474
|
-
|
|
528
|
+
completed_at?: string;
|
|
529
|
+
/** Identity that submitted this withdrawal. It can differ from the billing account owner. */
|
|
530
|
+
created_by?: string;
|
|
531
|
+
}
|
|
532
|
+
export interface WithdrawalPreviewItem {
|
|
533
|
+
source_transaction_id: string;
|
|
534
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
535
|
+
amount: string;
|
|
536
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
537
|
+
fee_amount: string;
|
|
538
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
539
|
+
refund_amount: string;
|
|
540
|
+
source: WithdrawalSource;
|
|
541
|
+
}
|
|
542
|
+
export interface WithdrawalPreview {
|
|
543
|
+
billing_account_id: number;
|
|
475
544
|
/**
|
|
476
|
-
* @minLength
|
|
477
|
-
* @maxLength
|
|
545
|
+
* @minLength 3
|
|
546
|
+
* @maxLength 3
|
|
478
547
|
*/
|
|
479
|
-
|
|
480
|
-
/** @
|
|
481
|
-
|
|
482
|
-
/** @
|
|
483
|
-
|
|
484
|
-
/** @
|
|
485
|
-
|
|
486
|
-
/** @
|
|
487
|
-
|
|
488
|
-
/** @
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
address_postal_code?: string;
|
|
496
|
-
/** @pattern ^([A-Z]{2})?$ */
|
|
497
|
-
address_country?: string;
|
|
548
|
+
currency: string;
|
|
549
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
550
|
+
available_amount: string;
|
|
551
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
552
|
+
amount: string;
|
|
553
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
554
|
+
fee_amount: string;
|
|
555
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
556
|
+
refund_amount: string;
|
|
557
|
+
/** @maxItems 200 */
|
|
558
|
+
items: WithdrawalPreviewItem[];
|
|
559
|
+
}
|
|
560
|
+
export interface WithdrawalPreviewRequest {
|
|
561
|
+
billing_account_id: number;
|
|
562
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
563
|
+
amount?: string;
|
|
498
564
|
}
|
|
499
|
-
export interface
|
|
565
|
+
export interface WithdrawalCreate {
|
|
566
|
+
id: string;
|
|
567
|
+
billing_account_id: number;
|
|
568
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
569
|
+
amount: string;
|
|
570
|
+
/** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
|
|
571
|
+
expected_refund_amount: string;
|
|
500
572
|
/**
|
|
501
|
-
* @
|
|
502
|
-
* @
|
|
573
|
+
* @minItems 1
|
|
574
|
+
* @maxItems 200
|
|
503
575
|
*/
|
|
504
|
-
|
|
505
|
-
/** @maxLength 255 */
|
|
506
|
-
legal_name?: string;
|
|
507
|
-
/** @maxLength 255 */
|
|
508
|
-
email?: string;
|
|
509
|
-
/** @maxLength 64 */
|
|
510
|
-
tax_id?: string;
|
|
511
|
-
/** @maxLength 255 */
|
|
512
|
-
address_line1?: string;
|
|
513
|
-
/** @maxLength 255 */
|
|
514
|
-
address_line2?: string;
|
|
515
|
-
/** @maxLength 128 */
|
|
516
|
-
address_city?: string;
|
|
517
|
-
/** @maxLength 128 */
|
|
518
|
-
address_state?: string;
|
|
519
|
-
/** @maxLength 32 */
|
|
520
|
-
address_postal_code?: string;
|
|
521
|
-
/** @pattern ^([A-Z]{2})?$ */
|
|
522
|
-
address_country?: string;
|
|
523
|
-
active?: boolean;
|
|
576
|
+
expected_items: WithdrawalAllocation[];
|
|
524
577
|
}
|
|
525
|
-
export interface
|
|
526
|
-
items:
|
|
578
|
+
export interface WithdrawalList {
|
|
579
|
+
items: Withdrawal[];
|
|
580
|
+
pagination: OffsetPagination;
|
|
581
|
+
}
|
|
582
|
+
export interface WithdrawalItemList {
|
|
583
|
+
items: WithdrawalItem[];
|
|
527
584
|
pagination: OffsetPagination;
|
|
528
585
|
}
|
|
529
586
|
/**
|
|
@@ -1570,6 +1627,7 @@ export declare const TransactionType: {
|
|
|
1570
1627
|
readonly payment: "payment";
|
|
1571
1628
|
readonly refund: "refund";
|
|
1572
1629
|
readonly adjustment: "adjustment";
|
|
1630
|
+
readonly fee: "fee";
|
|
1573
1631
|
};
|
|
1574
1632
|
/**
|
|
1575
1633
|
* A funds operation. Each payment has one source; refunds identify the original successful transaction. Unknown gateway results remain pending. Payments from the balance or a gateway are distinct from credit-grant payments.
|
|
@@ -3183,6 +3241,110 @@ export interface QuoteRequest {
|
|
|
3183
3241
|
promotion_code?: string;
|
|
3184
3242
|
refund?: OrderRefundQuoteInput;
|
|
3185
3243
|
}
|
|
3244
|
+
/**
|
|
3245
|
+
* How tax applies to the customer, as in Stripe. `none` taxes normally. `exempt` charges no tax.
|
|
3246
|
+
* `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
|
|
3247
|
+
* invoices state this. Only operators change it.
|
|
3248
|
+
*/
|
|
3249
|
+
export type ContactTaxExempt = (typeof ContactTaxExempt)[keyof typeof ContactTaxExempt];
|
|
3250
|
+
export declare const ContactTaxExempt: {
|
|
3251
|
+
readonly none: "none";
|
|
3252
|
+
readonly exempt: "exempt";
|
|
3253
|
+
readonly reverse: "reverse";
|
|
3254
|
+
};
|
|
3255
|
+
/**
|
|
3256
|
+
* A billing-account contact profile with one address. An account can hold multiple contacts; this is not a login identity.
|
|
3257
|
+
*/
|
|
3258
|
+
export interface Contact {
|
|
3259
|
+
id: string;
|
|
3260
|
+
billing_account_id: number;
|
|
3261
|
+
/**
|
|
3262
|
+
* @minLength 1
|
|
3263
|
+
* @maxLength 255
|
|
3264
|
+
*/
|
|
3265
|
+
name: string;
|
|
3266
|
+
/** @maxLength 255 */
|
|
3267
|
+
legal_name?: string;
|
|
3268
|
+
/** @maxLength 255 */
|
|
3269
|
+
email?: string;
|
|
3270
|
+
/** @maxLength 64 */
|
|
3271
|
+
tax_id?: string;
|
|
3272
|
+
/** @maxLength 255 */
|
|
3273
|
+
address_line1?: string;
|
|
3274
|
+
/** @maxLength 255 */
|
|
3275
|
+
address_line2?: string;
|
|
3276
|
+
/** @maxLength 128 */
|
|
3277
|
+
address_city?: string;
|
|
3278
|
+
/** @maxLength 128 */
|
|
3279
|
+
address_state?: string;
|
|
3280
|
+
/** @maxLength 32 */
|
|
3281
|
+
address_postal_code?: string;
|
|
3282
|
+
/** @pattern ^([A-Z]{2})?$ */
|
|
3283
|
+
address_country?: string;
|
|
3284
|
+
/**
|
|
3285
|
+
* How tax applies to the customer, as in Stripe. `none` taxes normally. `exempt` charges no tax.
|
|
3286
|
+
* `reverse` charges no tax and leaves it to the customer under the reverse-charge mechanism;
|
|
3287
|
+
* invoices state this. Only operators change it.
|
|
3288
|
+
*/
|
|
3289
|
+
tax_exempt: ContactTaxExempt;
|
|
3290
|
+
active: boolean;
|
|
3291
|
+
created_at: string;
|
|
3292
|
+
}
|
|
3293
|
+
export interface ContactCreate {
|
|
3294
|
+
/**
|
|
3295
|
+
* @minLength 1
|
|
3296
|
+
* @maxLength 255
|
|
3297
|
+
*/
|
|
3298
|
+
name: string;
|
|
3299
|
+
/** @maxLength 255 */
|
|
3300
|
+
legal_name?: string;
|
|
3301
|
+
/** @maxLength 255 */
|
|
3302
|
+
email?: string;
|
|
3303
|
+
/** @maxLength 64 */
|
|
3304
|
+
tax_id?: string;
|
|
3305
|
+
/** @maxLength 255 */
|
|
3306
|
+
address_line1?: string;
|
|
3307
|
+
/** @maxLength 255 */
|
|
3308
|
+
address_line2?: string;
|
|
3309
|
+
/** @maxLength 128 */
|
|
3310
|
+
address_city?: string;
|
|
3311
|
+
/** @maxLength 128 */
|
|
3312
|
+
address_state?: string;
|
|
3313
|
+
/** @maxLength 32 */
|
|
3314
|
+
address_postal_code?: string;
|
|
3315
|
+
/** @pattern ^([A-Z]{2})?$ */
|
|
3316
|
+
address_country?: string;
|
|
3317
|
+
}
|
|
3318
|
+
export interface ContactUpdate {
|
|
3319
|
+
/**
|
|
3320
|
+
* @minLength 1
|
|
3321
|
+
* @maxLength 255
|
|
3322
|
+
*/
|
|
3323
|
+
name?: string;
|
|
3324
|
+
/** @maxLength 255 */
|
|
3325
|
+
legal_name?: string;
|
|
3326
|
+
/** @maxLength 255 */
|
|
3327
|
+
email?: string;
|
|
3328
|
+
/** @maxLength 64 */
|
|
3329
|
+
tax_id?: string;
|
|
3330
|
+
/** @maxLength 255 */
|
|
3331
|
+
address_line1?: string;
|
|
3332
|
+
/** @maxLength 255 */
|
|
3333
|
+
address_line2?: string;
|
|
3334
|
+
/** @maxLength 128 */
|
|
3335
|
+
address_city?: string;
|
|
3336
|
+
/** @maxLength 128 */
|
|
3337
|
+
address_state?: string;
|
|
3338
|
+
/** @maxLength 32 */
|
|
3339
|
+
address_postal_code?: string;
|
|
3340
|
+
/** @pattern ^([A-Z]{2})?$ */
|
|
3341
|
+
address_country?: string;
|
|
3342
|
+
active?: boolean;
|
|
3343
|
+
}
|
|
3344
|
+
export interface ContactList {
|
|
3345
|
+
items: Contact[];
|
|
3346
|
+
pagination: OffsetPagination;
|
|
3347
|
+
}
|
|
3186
3348
|
export interface CancelSubscriptionRequest {
|
|
3187
3349
|
mode: TerminationPolicy;
|
|
3188
3350
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
@@ -46,10 +46,19 @@ export const CheckoutMode = {
|
|
|
46
46
|
automatic: "automatic",
|
|
47
47
|
deferred: "deferred",
|
|
48
48
|
};
|
|
49
|
-
export const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
export const WithdrawalItemStatus = {
|
|
50
|
+
pending: "pending",
|
|
51
|
+
succeeded: "succeeded",
|
|
52
|
+
failed: "failed",
|
|
53
|
+
reversed: "reversed",
|
|
54
|
+
};
|
|
55
|
+
export const WithdrawalStatus = {
|
|
56
|
+
pending: "pending",
|
|
57
|
+
processing: "processing",
|
|
58
|
+
succeeded: "succeeded",
|
|
59
|
+
partially_completed: "partially_completed",
|
|
60
|
+
failed: "failed",
|
|
61
|
+
reversed: "reversed",
|
|
53
62
|
};
|
|
54
63
|
export const TerminationPolicy = {
|
|
55
64
|
immediate: "immediate",
|
|
@@ -184,6 +193,7 @@ export const TransactionType = {
|
|
|
184
193
|
payment: "payment",
|
|
185
194
|
refund: "refund",
|
|
186
195
|
adjustment: "adjustment",
|
|
196
|
+
fee: "fee",
|
|
187
197
|
};
|
|
188
198
|
export const InvoiceCustomerTaxExempt = {
|
|
189
199
|
none: "none",
|
|
@@ -394,6 +404,11 @@ export const ActiveResourceStatus = {
|
|
|
394
404
|
closing: "closing",
|
|
395
405
|
closed: "closed",
|
|
396
406
|
};
|
|
407
|
+
export const ContactTaxExempt = {
|
|
408
|
+
none: "none",
|
|
409
|
+
exempt: "exempt",
|
|
410
|
+
reverse: "reverse",
|
|
411
|
+
};
|
|
397
412
|
export const StatementStatus = {
|
|
398
413
|
open: "open",
|
|
399
414
|
closed: "closed",
|
|
@@ -65,6 +65,8 @@ export declare const Grant: zod.ZodObject<{
|
|
|
65
65
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
66
66
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
67
67
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
68
|
+
valid_from: zod.z.ZodISODateTime;
|
|
69
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
68
70
|
issued_at: zod.z.ZodISODateTime;
|
|
69
71
|
}, zod.z.core.$strict>;
|
|
70
72
|
export type Grant = zod.input<typeof Grant>;
|
|
@@ -24,6 +24,11 @@ export const Grant = zod
|
|
|
24
24
|
discount_id: zod.uuid().nullable(),
|
|
25
25
|
allowance_id: zod.uuid().nullable(),
|
|
26
26
|
feature_grant_id: zod.uuid().nullable(),
|
|
27
|
+
valid_from: zod.iso.datetime({ offset: true }),
|
|
28
|
+
valid_until: zod.iso
|
|
29
|
+
.datetime({ offset: true })
|
|
30
|
+
.nullable()
|
|
31
|
+
.describe("Exclusive expiry; null means no expiry."),
|
|
27
32
|
issued_at: zod.iso.datetime({ offset: true }),
|
|
28
33
|
})
|
|
29
34
|
.describe("A benefit grant with frozen terms and Billing resource identifiers.");
|
|
@@ -92,6 +92,8 @@ export declare const Membership: zod.ZodObject<{
|
|
|
92
92
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
93
93
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
94
94
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
95
|
+
valid_from: zod.z.ZodISODateTime;
|
|
96
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
95
97
|
issued_at: zod.z.ZodISODateTime;
|
|
96
98
|
}, zod.z.core.$strict>>;
|
|
97
99
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
@@ -93,6 +93,8 @@ export declare const MembershipList: zod.ZodObject<{
|
|
|
93
93
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
94
94
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
95
95
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
96
|
+
valid_from: zod.z.ZodISODateTime;
|
|
97
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
96
98
|
issued_at: zod.z.ZodISODateTime;
|
|
97
99
|
}, zod.z.core.$strict>>;
|
|
98
100
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
@@ -93,6 +93,8 @@ export declare const MembershipPurchase: zod.ZodObject<{
|
|
|
93
93
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
94
94
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
95
95
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
96
|
+
valid_from: zod.z.ZodISODateTime;
|
|
97
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
96
98
|
issued_at: zod.z.ZodISODateTime;
|
|
97
99
|
}, zod.z.core.$strict>>;
|
|
98
100
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
@@ -76,6 +76,8 @@ export declare const Period: zod.ZodObject<{
|
|
|
76
76
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
77
77
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
78
78
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
79
|
+
valid_from: zod.z.ZodISODateTime;
|
|
80
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
79
81
|
issued_at: zod.z.ZodISODateTime;
|
|
80
82
|
}, zod.z.core.$strict>>;
|
|
81
83
|
}, zod.z.core.$strict>;
|
|
@@ -77,6 +77,8 @@ export declare const PeriodList: zod.ZodObject<{
|
|
|
77
77
|
discount_id: zod.ZodNullable<zod.ZodUUID>;
|
|
78
78
|
allowance_id: zod.ZodNullable<zod.ZodUUID>;
|
|
79
79
|
feature_grant_id: zod.ZodNullable<zod.ZodUUID>;
|
|
80
|
+
valid_from: zod.z.ZodISODateTime;
|
|
81
|
+
valid_until: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
80
82
|
issued_at: zod.z.ZodISODateTime;
|
|
81
83
|
}, zod.z.core.$strict>>;
|
|
82
84
|
}, zod.z.core.$strict>>;
|
|
@@ -11,6 +11,7 @@ export declare const TransactionType: zod.ZodEnum<{
|
|
|
11
11
|
payment: "payment";
|
|
12
12
|
refund: "refund";
|
|
13
13
|
adjustment: "adjustment";
|
|
14
|
+
fee: "fee";
|
|
14
15
|
}>;
|
|
15
16
|
export type TransactionType = zod.input<typeof TransactionType>;
|
|
16
17
|
export type TransactionTypeOutput = zod.output<typeof TransactionType>;
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export const TransactionType = zod
|
|
10
|
-
.enum(["topup", "payment", "refund", "adjustment"])
|
|
10
|
+
.enum(["topup", "payment", "refund", "adjustment", "fee"])
|
|
11
11
|
.describe("topup adds to the balance; payment settles an invoice; refund returns original funds; adjustment changes the balance with an audit reason.");
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const withdrawalCurrencyMin = 3;
|
|
10
|
+
export declare const withdrawalCurrencyMax = 3;
|
|
11
|
+
export declare const withdrawalAmountRegExp: RegExp;
|
|
12
|
+
export declare const withdrawalFeeAmountRegExp: RegExp;
|
|
13
|
+
export declare const withdrawalRefundAmountRegExp: RegExp;
|
|
14
|
+
export declare const withdrawalDeductedAmountRegExp: RegExp;
|
|
15
|
+
export declare const withdrawalSettledAmountRegExp: RegExp;
|
|
16
|
+
export declare const withdrawalChargedFeeAmountRegExp: RegExp;
|
|
17
|
+
export declare const Withdrawal: zod.ZodObject<{
|
|
18
|
+
id: zod.ZodUUID;
|
|
19
|
+
billing_account_id: zod.ZodInt;
|
|
20
|
+
currency: zod.ZodString;
|
|
21
|
+
amount: zod.ZodString;
|
|
22
|
+
fee_amount: zod.ZodString;
|
|
23
|
+
refund_amount: zod.ZodString;
|
|
24
|
+
deducted_amount: zod.ZodString;
|
|
25
|
+
settled_amount: zod.ZodString;
|
|
26
|
+
charged_fee_amount: zod.ZodString;
|
|
27
|
+
status: zod.ZodEnum<{
|
|
28
|
+
pending: "pending";
|
|
29
|
+
failed: "failed";
|
|
30
|
+
succeeded: "succeeded";
|
|
31
|
+
processing: "processing";
|
|
32
|
+
partially_completed: "partially_completed";
|
|
33
|
+
reversed: "reversed";
|
|
34
|
+
}>;
|
|
35
|
+
created_at: zod.z.ZodISODateTime;
|
|
36
|
+
completed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
37
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
38
|
+
}, zod.z.core.$strict>;
|
|
39
|
+
export type Withdrawal = zod.input<typeof Withdrawal>;
|
|
40
|
+
export type WithdrawalOutput = zod.output<typeof Withdrawal>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const withdrawalCurrencyMin = 3;
|
|
10
|
+
export const withdrawalCurrencyMax = 3;
|
|
11
|
+
export const withdrawalAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
12
|
+
export const withdrawalFeeAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
13
|
+
export const withdrawalRefundAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
14
|
+
export const withdrawalDeductedAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
15
|
+
export const withdrawalSettledAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
16
|
+
export const withdrawalChargedFeeAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
17
|
+
export const Withdrawal = zod
|
|
18
|
+
.strictObject({
|
|
19
|
+
id: zod.uuid(),
|
|
20
|
+
billing_account_id: zod.int(),
|
|
21
|
+
currency: zod.string().min(withdrawalCurrencyMin).max(withdrawalCurrencyMax),
|
|
22
|
+
amount: zod.string().regex(withdrawalAmountRegExp),
|
|
23
|
+
fee_amount: zod.string().regex(withdrawalFeeAmountRegExp),
|
|
24
|
+
refund_amount: zod.string().regex(withdrawalRefundAmountRegExp),
|
|
25
|
+
deducted_amount: zod.string().regex(withdrawalDeductedAmountRegExp),
|
|
26
|
+
settled_amount: zod.string().regex(withdrawalSettledAmountRegExp),
|
|
27
|
+
charged_fee_amount: zod.string().regex(withdrawalChargedFeeAmountRegExp),
|
|
28
|
+
status: zod.enum([
|
|
29
|
+
"pending",
|
|
30
|
+
"processing",
|
|
31
|
+
"succeeded",
|
|
32
|
+
"partially_completed",
|
|
33
|
+
"failed",
|
|
34
|
+
"reversed",
|
|
35
|
+
]),
|
|
36
|
+
created_at: zod.iso.datetime({ offset: true }),
|
|
37
|
+
completed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
38
|
+
created_by: zod
|
|
39
|
+
.string()
|
|
40
|
+
.optional()
|
|
41
|
+
.describe("Identity that submitted this withdrawal. It can differ from the billing account owner."),
|
|
42
|
+
})
|
|
43
|
+
.describe("An account withdrawal to the original payment methods of its unused top-ups. Accepted amounts are fixed. deducted_amount, settled_amount and charged_fee_amount report completed source items. Failed items release their principal and fee reservations; successful items are retained when another source fails.");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const withdrawalAllocationAmountRegExp: RegExp;
|
|
10
|
+
export declare const withdrawalAllocationFeeAmountRegExp: RegExp;
|
|
11
|
+
export declare const withdrawalAllocationRefundAmountRegExp: RegExp;
|
|
12
|
+
export declare const WithdrawalAllocation: zod.ZodObject<{
|
|
13
|
+
source_transaction_id: zod.ZodUUID;
|
|
14
|
+
amount: zod.ZodString;
|
|
15
|
+
fee_amount: zod.ZodString;
|
|
16
|
+
refund_amount: zod.ZodString;
|
|
17
|
+
}, zod.z.core.$strict>;
|
|
18
|
+
export type WithdrawalAllocation = zod.input<typeof WithdrawalAllocation>;
|
|
19
|
+
export type WithdrawalAllocationOutput = zod.output<typeof WithdrawalAllocation>;
|