@01.software/sdk 0.48.0 → 0.49.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/CHANGELOG.md +27 -0
- package/README.md +64 -7
- package/dist/client.cjs +189 -26
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +7 -6
- package/dist/client.d.ts +7 -6
- package/dist/client.js +189 -26
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-D3ExJU-7.d.ts → collection-client-DnDt6EQz.d.ts} +4 -4
- package/dist/{collection-client-CBup9yOx.d.cts → collection-client-XfGLPuTf.d.cts} +4 -4
- package/dist/{const-BXEi1Kix.d.cts → const-CBba4lDo.d.cts} +1 -1
- package/dist/{const-k9gHylYa.d.ts → const-DCNV5Kq7.d.ts} +1 -1
- package/dist/errors.cjs +63 -15
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +10 -1
- package/dist/errors.d.ts +10 -1
- package/dist/errors.js +63 -15
- package/dist/errors.js.map +1 -1
- package/dist/{index-BCM9CTL7.d.cts → index-CbKyoEzy.d.cts} +3 -3
- package/dist/{index-CHGGkcLj.d.ts → index-DUuIqUS8.d.ts} +3 -3
- package/dist/index.cjs +152 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +152 -48
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-B6AZQcB7.d.cts → payload-types-MKbx5MuJ.d.cts} +133 -3
- package/dist/{payload-types-B6AZQcB7.d.ts → payload-types-MKbx5MuJ.d.ts} +133 -3
- package/dist/query.cjs +21 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +21 -0
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +189 -26
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.js +189 -26
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +21 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +21 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-DbA5V3mt.d.ts → types-1UeOk1Uy.d.cts} +31 -6
- package/dist/{types-8us-_C-Q.d.cts → types-BKr_2avj.d.cts} +2 -2
- package/dist/{types-CM2je9Kw.d.cts → types-Du4s5anw.d.ts} +31 -6
- package/dist/{types-ByD2zii1.d.ts → types-L_nh-ED7.d.ts} +2 -2
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +5 -4
|
@@ -73,6 +73,8 @@ interface Config {
|
|
|
73
73
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovement;
|
|
74
74
|
'payment-kernel-provider-receipts': PaymentKernelProviderReceipt;
|
|
75
75
|
'payment-kernel-reconciliation-cases': PaymentKernelReconciliationCase;
|
|
76
|
+
'payment-kernel-results': PaymentKernelResult;
|
|
77
|
+
'payment-kernel-owner-commits': PaymentKernelOwnerCommit;
|
|
76
78
|
'order-status-logs': OrderStatusLog;
|
|
77
79
|
'inventory-reservations': InventoryReservation;
|
|
78
80
|
'fulfillment-orders': FulfillmentOrder;
|
|
@@ -306,6 +308,8 @@ interface Config {
|
|
|
306
308
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovementsSelect<false> | PaymentKernelFinancialMovementsSelect<true>;
|
|
307
309
|
'payment-kernel-provider-receipts': PaymentKernelProviderReceiptsSelect<false> | PaymentKernelProviderReceiptsSelect<true>;
|
|
308
310
|
'payment-kernel-reconciliation-cases': PaymentKernelReconciliationCasesSelect<false> | PaymentKernelReconciliationCasesSelect<true>;
|
|
311
|
+
'payment-kernel-results': PaymentKernelResultsSelect<false> | PaymentKernelResultsSelect<true>;
|
|
312
|
+
'payment-kernel-owner-commits': PaymentKernelOwnerCommitsSelect<false> | PaymentKernelOwnerCommitsSelect<true>;
|
|
309
313
|
'order-status-logs': OrderStatusLogsSelect<false> | OrderStatusLogsSelect<true>;
|
|
310
314
|
'inventory-reservations': InventoryReservationsSelect<false> | InventoryReservationsSelect<true>;
|
|
311
315
|
'fulfillment-orders': FulfillmentOrdersSelect<false> | FulfillmentOrdersSelect<true>;
|
|
@@ -3547,6 +3551,12 @@ interface PaymentSession {
|
|
|
3547
3551
|
* Provider Hosted URL exposed only through an ownership-checked PaymentSession response.
|
|
3548
3552
|
*/
|
|
3549
3553
|
providerActionUrl?: string | null;
|
|
3554
|
+
/**
|
|
3555
|
+
* Versioned provider browser action projected only after ownership checks.
|
|
3556
|
+
*/
|
|
3557
|
+
providerAction?: {
|
|
3558
|
+
[k: string]: unknown;
|
|
3559
|
+
} | unknown[] | string | number | boolean | null;
|
|
3550
3560
|
providerAccount?: (string | null) | CommercePaymentAccount;
|
|
3551
3561
|
credentialVersion?: number | null;
|
|
3552
3562
|
environment?: string | null;
|
|
@@ -3655,12 +3665,19 @@ interface CommercePaymentAccount {
|
|
|
3655
3665
|
/**
|
|
3656
3666
|
* PortOne channel/store profile key.
|
|
3657
3667
|
*/
|
|
3658
|
-
profileKey
|
|
3668
|
+
profileKey?: string | null;
|
|
3659
3669
|
/**
|
|
3660
3670
|
* Hosted Payment Session country (ISO 3166-1 alpha-2 uppercase).
|
|
3661
3671
|
*/
|
|
3662
|
-
country
|
|
3663
|
-
allowedPaymentMethods
|
|
3672
|
+
country?: string | null;
|
|
3673
|
+
allowedPaymentMethods?: ('CARD_KR' | 'N_PAY' | 'KAKAO_PAY' | 'TOSS_PAY' | 'CARD_INTERNATIONAL' | 'PAY_PAL' | 'UNION_PAY' | 'ALIPAY_CN' | 'ALIPAY_HK' | 'TRUE_MONEY' | 'DANA' | 'TOUCH_N_GO' | 'G_CASH' | 'WE_CHAT_PAY' | 'KLARNA' | 'E_CONTEXT' | 'GRAB_PAY_MY' | 'GRAB_PAY_SG' | 'SHOPEE_PAY_TH' | 'PAY_PAY' | 'BPI' | 'RABBIT_LINE_PAY' | 'CONVENIENCE_STORE_JP' | 'AMAZON_PAY' | 'RAKUTEN_PAY' | 'D_BARAI' | 'AU_PAY' | 'MERPAY')[] | null;
|
|
3674
|
+
/**
|
|
3675
|
+
* Currently supports only PortOne Standard V2 Toss Payments (new module) CARD channels. A redirect URL is required for mobile checkout.
|
|
3676
|
+
*/
|
|
3677
|
+
standardV2?: {
|
|
3678
|
+
channelKey?: string | null;
|
|
3679
|
+
redirectUrl?: string | null;
|
|
3680
|
+
};
|
|
3664
3681
|
};
|
|
3665
3682
|
/**
|
|
3666
3683
|
* When enabled, this connection is eligible for new PaymentSessions.
|
|
@@ -5967,6 +5984,51 @@ interface PaymentKernelReconciliationCase {
|
|
|
5967
5984
|
updatedAt: string;
|
|
5968
5985
|
createdAt: string;
|
|
5969
5986
|
}
|
|
5987
|
+
/**
|
|
5988
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5989
|
+
* via the `definition` "payment-kernel-results".
|
|
5990
|
+
*/
|
|
5991
|
+
interface PaymentKernelResult {
|
|
5992
|
+
id: string;
|
|
5993
|
+
tenant?: (string | null) | Tenant;
|
|
5994
|
+
operation: string | PaymentKernelOperation;
|
|
5995
|
+
obligation: string | PaymentKernelObligation;
|
|
5996
|
+
ownerIdentity: string | PaymentKernelOwnerIdentity;
|
|
5997
|
+
ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
|
|
5998
|
+
ownerId: string;
|
|
5999
|
+
operationKind: 'capture' | 'refund' | 'void' | 'lookup' | 'dispute' | 'reconciliation';
|
|
6000
|
+
outcome: 'succeeded' | 'definitively_failed';
|
|
6001
|
+
providerObjectIdentity: string | PaymentKernelProviderObjectIdentity;
|
|
6002
|
+
provider: string;
|
|
6003
|
+
providerAccountKey: string;
|
|
6004
|
+
environment: 'test' | 'live';
|
|
6005
|
+
objectKind: string;
|
|
6006
|
+
objectId: string;
|
|
6007
|
+
terminalAttempt: string | PaymentKernelOperationAttempt;
|
|
6008
|
+
sourceMovement?: (string | null) | PaymentKernelFinancialMovement;
|
|
6009
|
+
sourceMovementKind?: ('capture_confirmed' | 'refund_reservation' | 'refund_confirmed' | 'refund_reservation_release' | 'dispute_loss' | 'reversal' | 'fee' | 'adjustment' | 'settled') | null;
|
|
6010
|
+
sourceProviderReceipt?: (string | null) | PaymentKernelProviderReceipt;
|
|
6011
|
+
amount: number;
|
|
6012
|
+
currency: string;
|
|
6013
|
+
providerOutcomeAt: string;
|
|
6014
|
+
updatedAt: string;
|
|
6015
|
+
createdAt: string;
|
|
6016
|
+
}
|
|
6017
|
+
/**
|
|
6018
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
6019
|
+
* via the `definition` "payment-kernel-owner-commits".
|
|
6020
|
+
*/
|
|
6021
|
+
interface PaymentKernelOwnerCommit {
|
|
6022
|
+
id: string;
|
|
6023
|
+
tenant?: (string | null) | Tenant;
|
|
6024
|
+
kernelResult: string | PaymentKernelResult;
|
|
6025
|
+
ownerIdentity: string | PaymentKernelOwnerIdentity;
|
|
6026
|
+
ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
|
|
6027
|
+
ownerId: string;
|
|
6028
|
+
committedAt: string;
|
|
6029
|
+
updatedAt: string;
|
|
6030
|
+
createdAt: string;
|
|
6031
|
+
}
|
|
5970
6032
|
/**
|
|
5971
6033
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
5972
6034
|
* via the `definition` "order-status-logs".
|
|
@@ -8272,6 +8334,22 @@ interface CustomerMembership {
|
|
|
8272
8334
|
currency: 'KRW' | 'USD' | 'EUR' | 'JPY';
|
|
8273
8335
|
billingInterval: 'month' | 'year';
|
|
8274
8336
|
intervalCount: number;
|
|
8337
|
+
/**
|
|
8338
|
+
* Trial-day snapshot captured when the subscribe intent is created
|
|
8339
|
+
*/
|
|
8340
|
+
trialDaysSnapshot?: number | null;
|
|
8341
|
+
/**
|
|
8342
|
+
* Immutable original period start for the subscribe intent
|
|
8343
|
+
*/
|
|
8344
|
+
subscribePeriodStart?: string | null;
|
|
8345
|
+
/**
|
|
8346
|
+
* Immutable original period end for the subscribe intent
|
|
8347
|
+
*/
|
|
8348
|
+
subscribePeriodEnd?: string | null;
|
|
8349
|
+
/**
|
|
8350
|
+
* Immutable SHA-256 digest of historical paid-admission recovery basis
|
|
8351
|
+
*/
|
|
8352
|
+
historicalPaidRecoveryEvidence?: string | null;
|
|
8275
8353
|
currentPeriodStart?: string | null;
|
|
8276
8354
|
currentPeriodEnd?: string | null;
|
|
8277
8355
|
nextBillingAt?: string | null;
|
|
@@ -10338,6 +10416,7 @@ interface PaymentSessionsSelect<T extends boolean = true> {
|
|
|
10338
10416
|
sessionOrigin?: T;
|
|
10339
10417
|
providerSessionId?: T;
|
|
10340
10418
|
providerActionUrl?: T;
|
|
10419
|
+
providerAction?: T;
|
|
10341
10420
|
providerAccount?: T;
|
|
10342
10421
|
credentialVersion?: T;
|
|
10343
10422
|
environment?: T;
|
|
@@ -10688,6 +10767,49 @@ interface PaymentKernelReconciliationCasesSelect<T extends boolean = true> {
|
|
|
10688
10767
|
updatedAt?: T;
|
|
10689
10768
|
createdAt?: T;
|
|
10690
10769
|
}
|
|
10770
|
+
/**
|
|
10771
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10772
|
+
* via the `definition` "payment-kernel-results_select".
|
|
10773
|
+
*/
|
|
10774
|
+
interface PaymentKernelResultsSelect<T extends boolean = true> {
|
|
10775
|
+
tenant?: T;
|
|
10776
|
+
operation?: T;
|
|
10777
|
+
obligation?: T;
|
|
10778
|
+
ownerIdentity?: T;
|
|
10779
|
+
ownerKind?: T;
|
|
10780
|
+
ownerId?: T;
|
|
10781
|
+
operationKind?: T;
|
|
10782
|
+
outcome?: T;
|
|
10783
|
+
providerObjectIdentity?: T;
|
|
10784
|
+
provider?: T;
|
|
10785
|
+
providerAccountKey?: T;
|
|
10786
|
+
environment?: T;
|
|
10787
|
+
objectKind?: T;
|
|
10788
|
+
objectId?: T;
|
|
10789
|
+
terminalAttempt?: T;
|
|
10790
|
+
sourceMovement?: T;
|
|
10791
|
+
sourceMovementKind?: T;
|
|
10792
|
+
sourceProviderReceipt?: T;
|
|
10793
|
+
amount?: T;
|
|
10794
|
+
currency?: T;
|
|
10795
|
+
providerOutcomeAt?: T;
|
|
10796
|
+
updatedAt?: T;
|
|
10797
|
+
createdAt?: T;
|
|
10798
|
+
}
|
|
10799
|
+
/**
|
|
10800
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10801
|
+
* via the `definition` "payment-kernel-owner-commits_select".
|
|
10802
|
+
*/
|
|
10803
|
+
interface PaymentKernelOwnerCommitsSelect<T extends boolean = true> {
|
|
10804
|
+
tenant?: T;
|
|
10805
|
+
kernelResult?: T;
|
|
10806
|
+
ownerIdentity?: T;
|
|
10807
|
+
ownerKind?: T;
|
|
10808
|
+
ownerId?: T;
|
|
10809
|
+
committedAt?: T;
|
|
10810
|
+
updatedAt?: T;
|
|
10811
|
+
createdAt?: T;
|
|
10812
|
+
}
|
|
10691
10813
|
/**
|
|
10692
10814
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
10693
10815
|
* via the `definition` "order-status-logs_select".
|
|
@@ -12931,6 +13053,10 @@ interface CustomerMembershipsSelect<T extends boolean = true> {
|
|
|
12931
13053
|
currency?: T;
|
|
12932
13054
|
billingInterval?: T;
|
|
12933
13055
|
intervalCount?: T;
|
|
13056
|
+
trialDaysSnapshot?: T;
|
|
13057
|
+
subscribePeriodStart?: T;
|
|
13058
|
+
subscribePeriodEnd?: T;
|
|
13059
|
+
historicalPaidRecoveryEvidence?: T;
|
|
12934
13060
|
currentPeriodStart?: T;
|
|
12935
13061
|
currentPeriodEnd?: T;
|
|
12936
13062
|
nextBillingAt?: T;
|
|
@@ -13019,6 +13145,10 @@ interface CommercePaymentAccountsSelect<T extends boolean = true> {
|
|
|
13019
13145
|
profileKey?: T;
|
|
13020
13146
|
country?: T;
|
|
13021
13147
|
allowedPaymentMethods?: T;
|
|
13148
|
+
standardV2?: T | {
|
|
13149
|
+
channelKey?: T;
|
|
13150
|
+
redirectUrl?: T;
|
|
13151
|
+
};
|
|
13022
13152
|
};
|
|
13023
13153
|
isActive?: T;
|
|
13024
13154
|
credentialVersion?: T;
|
|
@@ -73,6 +73,8 @@ interface Config {
|
|
|
73
73
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovement;
|
|
74
74
|
'payment-kernel-provider-receipts': PaymentKernelProviderReceipt;
|
|
75
75
|
'payment-kernel-reconciliation-cases': PaymentKernelReconciliationCase;
|
|
76
|
+
'payment-kernel-results': PaymentKernelResult;
|
|
77
|
+
'payment-kernel-owner-commits': PaymentKernelOwnerCommit;
|
|
76
78
|
'order-status-logs': OrderStatusLog;
|
|
77
79
|
'inventory-reservations': InventoryReservation;
|
|
78
80
|
'fulfillment-orders': FulfillmentOrder;
|
|
@@ -306,6 +308,8 @@ interface Config {
|
|
|
306
308
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovementsSelect<false> | PaymentKernelFinancialMovementsSelect<true>;
|
|
307
309
|
'payment-kernel-provider-receipts': PaymentKernelProviderReceiptsSelect<false> | PaymentKernelProviderReceiptsSelect<true>;
|
|
308
310
|
'payment-kernel-reconciliation-cases': PaymentKernelReconciliationCasesSelect<false> | PaymentKernelReconciliationCasesSelect<true>;
|
|
311
|
+
'payment-kernel-results': PaymentKernelResultsSelect<false> | PaymentKernelResultsSelect<true>;
|
|
312
|
+
'payment-kernel-owner-commits': PaymentKernelOwnerCommitsSelect<false> | PaymentKernelOwnerCommitsSelect<true>;
|
|
309
313
|
'order-status-logs': OrderStatusLogsSelect<false> | OrderStatusLogsSelect<true>;
|
|
310
314
|
'inventory-reservations': InventoryReservationsSelect<false> | InventoryReservationsSelect<true>;
|
|
311
315
|
'fulfillment-orders': FulfillmentOrdersSelect<false> | FulfillmentOrdersSelect<true>;
|
|
@@ -3547,6 +3551,12 @@ interface PaymentSession {
|
|
|
3547
3551
|
* Provider Hosted URL exposed only through an ownership-checked PaymentSession response.
|
|
3548
3552
|
*/
|
|
3549
3553
|
providerActionUrl?: string | null;
|
|
3554
|
+
/**
|
|
3555
|
+
* Versioned provider browser action projected only after ownership checks.
|
|
3556
|
+
*/
|
|
3557
|
+
providerAction?: {
|
|
3558
|
+
[k: string]: unknown;
|
|
3559
|
+
} | unknown[] | string | number | boolean | null;
|
|
3550
3560
|
providerAccount?: (string | null) | CommercePaymentAccount;
|
|
3551
3561
|
credentialVersion?: number | null;
|
|
3552
3562
|
environment?: string | null;
|
|
@@ -3655,12 +3665,19 @@ interface CommercePaymentAccount {
|
|
|
3655
3665
|
/**
|
|
3656
3666
|
* PortOne channel/store profile key.
|
|
3657
3667
|
*/
|
|
3658
|
-
profileKey
|
|
3668
|
+
profileKey?: string | null;
|
|
3659
3669
|
/**
|
|
3660
3670
|
* Hosted Payment Session country (ISO 3166-1 alpha-2 uppercase).
|
|
3661
3671
|
*/
|
|
3662
|
-
country
|
|
3663
|
-
allowedPaymentMethods
|
|
3672
|
+
country?: string | null;
|
|
3673
|
+
allowedPaymentMethods?: ('CARD_KR' | 'N_PAY' | 'KAKAO_PAY' | 'TOSS_PAY' | 'CARD_INTERNATIONAL' | 'PAY_PAL' | 'UNION_PAY' | 'ALIPAY_CN' | 'ALIPAY_HK' | 'TRUE_MONEY' | 'DANA' | 'TOUCH_N_GO' | 'G_CASH' | 'WE_CHAT_PAY' | 'KLARNA' | 'E_CONTEXT' | 'GRAB_PAY_MY' | 'GRAB_PAY_SG' | 'SHOPEE_PAY_TH' | 'PAY_PAY' | 'BPI' | 'RABBIT_LINE_PAY' | 'CONVENIENCE_STORE_JP' | 'AMAZON_PAY' | 'RAKUTEN_PAY' | 'D_BARAI' | 'AU_PAY' | 'MERPAY')[] | null;
|
|
3674
|
+
/**
|
|
3675
|
+
* Currently supports only PortOne Standard V2 Toss Payments (new module) CARD channels. A redirect URL is required for mobile checkout.
|
|
3676
|
+
*/
|
|
3677
|
+
standardV2?: {
|
|
3678
|
+
channelKey?: string | null;
|
|
3679
|
+
redirectUrl?: string | null;
|
|
3680
|
+
};
|
|
3664
3681
|
};
|
|
3665
3682
|
/**
|
|
3666
3683
|
* When enabled, this connection is eligible for new PaymentSessions.
|
|
@@ -5967,6 +5984,51 @@ interface PaymentKernelReconciliationCase {
|
|
|
5967
5984
|
updatedAt: string;
|
|
5968
5985
|
createdAt: string;
|
|
5969
5986
|
}
|
|
5987
|
+
/**
|
|
5988
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5989
|
+
* via the `definition` "payment-kernel-results".
|
|
5990
|
+
*/
|
|
5991
|
+
interface PaymentKernelResult {
|
|
5992
|
+
id: string;
|
|
5993
|
+
tenant?: (string | null) | Tenant;
|
|
5994
|
+
operation: string | PaymentKernelOperation;
|
|
5995
|
+
obligation: string | PaymentKernelObligation;
|
|
5996
|
+
ownerIdentity: string | PaymentKernelOwnerIdentity;
|
|
5997
|
+
ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
|
|
5998
|
+
ownerId: string;
|
|
5999
|
+
operationKind: 'capture' | 'refund' | 'void' | 'lookup' | 'dispute' | 'reconciliation';
|
|
6000
|
+
outcome: 'succeeded' | 'definitively_failed';
|
|
6001
|
+
providerObjectIdentity: string | PaymentKernelProviderObjectIdentity;
|
|
6002
|
+
provider: string;
|
|
6003
|
+
providerAccountKey: string;
|
|
6004
|
+
environment: 'test' | 'live';
|
|
6005
|
+
objectKind: string;
|
|
6006
|
+
objectId: string;
|
|
6007
|
+
terminalAttempt: string | PaymentKernelOperationAttempt;
|
|
6008
|
+
sourceMovement?: (string | null) | PaymentKernelFinancialMovement;
|
|
6009
|
+
sourceMovementKind?: ('capture_confirmed' | 'refund_reservation' | 'refund_confirmed' | 'refund_reservation_release' | 'dispute_loss' | 'reversal' | 'fee' | 'adjustment' | 'settled') | null;
|
|
6010
|
+
sourceProviderReceipt?: (string | null) | PaymentKernelProviderReceipt;
|
|
6011
|
+
amount: number;
|
|
6012
|
+
currency: string;
|
|
6013
|
+
providerOutcomeAt: string;
|
|
6014
|
+
updatedAt: string;
|
|
6015
|
+
createdAt: string;
|
|
6016
|
+
}
|
|
6017
|
+
/**
|
|
6018
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
6019
|
+
* via the `definition` "payment-kernel-owner-commits".
|
|
6020
|
+
*/
|
|
6021
|
+
interface PaymentKernelOwnerCommit {
|
|
6022
|
+
id: string;
|
|
6023
|
+
tenant?: (string | null) | Tenant;
|
|
6024
|
+
kernelResult: string | PaymentKernelResult;
|
|
6025
|
+
ownerIdentity: string | PaymentKernelOwnerIdentity;
|
|
6026
|
+
ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
|
|
6027
|
+
ownerId: string;
|
|
6028
|
+
committedAt: string;
|
|
6029
|
+
updatedAt: string;
|
|
6030
|
+
createdAt: string;
|
|
6031
|
+
}
|
|
5970
6032
|
/**
|
|
5971
6033
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
5972
6034
|
* via the `definition` "order-status-logs".
|
|
@@ -8272,6 +8334,22 @@ interface CustomerMembership {
|
|
|
8272
8334
|
currency: 'KRW' | 'USD' | 'EUR' | 'JPY';
|
|
8273
8335
|
billingInterval: 'month' | 'year';
|
|
8274
8336
|
intervalCount: number;
|
|
8337
|
+
/**
|
|
8338
|
+
* Trial-day snapshot captured when the subscribe intent is created
|
|
8339
|
+
*/
|
|
8340
|
+
trialDaysSnapshot?: number | null;
|
|
8341
|
+
/**
|
|
8342
|
+
* Immutable original period start for the subscribe intent
|
|
8343
|
+
*/
|
|
8344
|
+
subscribePeriodStart?: string | null;
|
|
8345
|
+
/**
|
|
8346
|
+
* Immutable original period end for the subscribe intent
|
|
8347
|
+
*/
|
|
8348
|
+
subscribePeriodEnd?: string | null;
|
|
8349
|
+
/**
|
|
8350
|
+
* Immutable SHA-256 digest of historical paid-admission recovery basis
|
|
8351
|
+
*/
|
|
8352
|
+
historicalPaidRecoveryEvidence?: string | null;
|
|
8275
8353
|
currentPeriodStart?: string | null;
|
|
8276
8354
|
currentPeriodEnd?: string | null;
|
|
8277
8355
|
nextBillingAt?: string | null;
|
|
@@ -10338,6 +10416,7 @@ interface PaymentSessionsSelect<T extends boolean = true> {
|
|
|
10338
10416
|
sessionOrigin?: T;
|
|
10339
10417
|
providerSessionId?: T;
|
|
10340
10418
|
providerActionUrl?: T;
|
|
10419
|
+
providerAction?: T;
|
|
10341
10420
|
providerAccount?: T;
|
|
10342
10421
|
credentialVersion?: T;
|
|
10343
10422
|
environment?: T;
|
|
@@ -10688,6 +10767,49 @@ interface PaymentKernelReconciliationCasesSelect<T extends boolean = true> {
|
|
|
10688
10767
|
updatedAt?: T;
|
|
10689
10768
|
createdAt?: T;
|
|
10690
10769
|
}
|
|
10770
|
+
/**
|
|
10771
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10772
|
+
* via the `definition` "payment-kernel-results_select".
|
|
10773
|
+
*/
|
|
10774
|
+
interface PaymentKernelResultsSelect<T extends boolean = true> {
|
|
10775
|
+
tenant?: T;
|
|
10776
|
+
operation?: T;
|
|
10777
|
+
obligation?: T;
|
|
10778
|
+
ownerIdentity?: T;
|
|
10779
|
+
ownerKind?: T;
|
|
10780
|
+
ownerId?: T;
|
|
10781
|
+
operationKind?: T;
|
|
10782
|
+
outcome?: T;
|
|
10783
|
+
providerObjectIdentity?: T;
|
|
10784
|
+
provider?: T;
|
|
10785
|
+
providerAccountKey?: T;
|
|
10786
|
+
environment?: T;
|
|
10787
|
+
objectKind?: T;
|
|
10788
|
+
objectId?: T;
|
|
10789
|
+
terminalAttempt?: T;
|
|
10790
|
+
sourceMovement?: T;
|
|
10791
|
+
sourceMovementKind?: T;
|
|
10792
|
+
sourceProviderReceipt?: T;
|
|
10793
|
+
amount?: T;
|
|
10794
|
+
currency?: T;
|
|
10795
|
+
providerOutcomeAt?: T;
|
|
10796
|
+
updatedAt?: T;
|
|
10797
|
+
createdAt?: T;
|
|
10798
|
+
}
|
|
10799
|
+
/**
|
|
10800
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10801
|
+
* via the `definition` "payment-kernel-owner-commits_select".
|
|
10802
|
+
*/
|
|
10803
|
+
interface PaymentKernelOwnerCommitsSelect<T extends boolean = true> {
|
|
10804
|
+
tenant?: T;
|
|
10805
|
+
kernelResult?: T;
|
|
10806
|
+
ownerIdentity?: T;
|
|
10807
|
+
ownerKind?: T;
|
|
10808
|
+
ownerId?: T;
|
|
10809
|
+
committedAt?: T;
|
|
10810
|
+
updatedAt?: T;
|
|
10811
|
+
createdAt?: T;
|
|
10812
|
+
}
|
|
10691
10813
|
/**
|
|
10692
10814
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
10693
10815
|
* via the `definition` "order-status-logs_select".
|
|
@@ -12931,6 +13053,10 @@ interface CustomerMembershipsSelect<T extends boolean = true> {
|
|
|
12931
13053
|
currency?: T;
|
|
12932
13054
|
billingInterval?: T;
|
|
12933
13055
|
intervalCount?: T;
|
|
13056
|
+
trialDaysSnapshot?: T;
|
|
13057
|
+
subscribePeriodStart?: T;
|
|
13058
|
+
subscribePeriodEnd?: T;
|
|
13059
|
+
historicalPaidRecoveryEvidence?: T;
|
|
12934
13060
|
currentPeriodStart?: T;
|
|
12935
13061
|
currentPeriodEnd?: T;
|
|
12936
13062
|
nextBillingAt?: T;
|
|
@@ -13019,6 +13145,10 @@ interface CommercePaymentAccountsSelect<T extends boolean = true> {
|
|
|
13019
13145
|
profileKey?: T;
|
|
13020
13146
|
country?: T;
|
|
13021
13147
|
allowedPaymentMethods?: T;
|
|
13148
|
+
standardV2?: T | {
|
|
13149
|
+
channelKey?: T;
|
|
13150
|
+
redirectUrl?: T;
|
|
13151
|
+
};
|
|
13022
13152
|
};
|
|
13023
13153
|
isActive?: T;
|
|
13024
13154
|
credentialVersion?: T;
|
package/dist/query.cjs
CHANGED
|
@@ -503,6 +503,24 @@ var CollectionHooks = class {
|
|
|
503
503
|
var import_react_query3 = require("@tanstack/react-query");
|
|
504
504
|
|
|
505
505
|
// src/core/errors.ts
|
|
506
|
+
var SDK_ERROR_BRAND = /* @__PURE__ */ Symbol.for("@01.software/sdk/SDKError");
|
|
507
|
+
var SDK_ERROR_TYPE_BRAND = /* @__PURE__ */ Symbol.for("@01.software/sdk/SDKError.type");
|
|
508
|
+
function defineSDKErrorBrand(error) {
|
|
509
|
+
Object.defineProperty(error, SDK_ERROR_BRAND, {
|
|
510
|
+
value: true,
|
|
511
|
+
enumerable: false,
|
|
512
|
+
configurable: false,
|
|
513
|
+
writable: false
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
function defineSDKErrorType(error, type) {
|
|
517
|
+
Object.defineProperty(error, SDK_ERROR_TYPE_BRAND, {
|
|
518
|
+
value: type,
|
|
519
|
+
enumerable: false,
|
|
520
|
+
configurable: false,
|
|
521
|
+
writable: false
|
|
522
|
+
});
|
|
523
|
+
}
|
|
506
524
|
var SDKError = class extends Error {
|
|
507
525
|
constructor(code, message, status, details, userMessage, suggestion, requestId) {
|
|
508
526
|
super(message);
|
|
@@ -513,6 +531,7 @@ var SDKError = class extends Error {
|
|
|
513
531
|
this.userMessage = userMessage;
|
|
514
532
|
this.suggestion = suggestion;
|
|
515
533
|
this.requestId = requestId;
|
|
534
|
+
defineSDKErrorBrand(this);
|
|
516
535
|
if (Error.captureStackTrace) {
|
|
517
536
|
Error.captureStackTrace(this, new.target);
|
|
518
537
|
}
|
|
@@ -533,6 +552,7 @@ var SDKError = class extends Error {
|
|
|
533
552
|
...this.kind !== void 0 && { kind: this.kind },
|
|
534
553
|
...this.reason !== void 0 && { reason: this.reason },
|
|
535
554
|
...this.rawReason !== void 0 && { rawReason: this.rawReason },
|
|
555
|
+
...this.apiReason !== void 0 && { apiReason: this.apiReason },
|
|
536
556
|
...this.retryable !== void 0 && { retryable: this.retryable },
|
|
537
557
|
...this.retryAfter !== void 0 && { retryAfter: this.retryAfter }
|
|
538
558
|
};
|
|
@@ -649,6 +669,7 @@ var ConfigError = class extends SDKError {
|
|
|
649
669
|
constructor(message, details, userMessage, suggestion) {
|
|
650
670
|
super("CONFIG_ERROR", message, void 0, details, userMessage, suggestion);
|
|
651
671
|
this.name = "ConfigError";
|
|
672
|
+
defineSDKErrorType(this, "ConfigError");
|
|
652
673
|
}
|
|
653
674
|
};
|
|
654
675
|
var createConfigError = (message, details, userMessage, suggestion) => new ConfigError(message, details, userMessage, suggestion);
|