@01.software/sdk 0.46.1 → 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 +96 -1
- package/README.md +145 -14
- package/dist/client.cjs +485 -81
- 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 +485 -81
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BEGXnfQe.d.ts → collection-client-DnDt6EQz.d.ts} +4 -4
- package/dist/{collection-client-L2rEgBaR.d.cts → collection-client-XfGLPuTf.d.cts} +4 -4
- package/dist/{const-y0eipvnQ.d.cts → const-CBba4lDo.d.cts} +4 -4
- package/dist/{const-GYVwlXLr.d.ts → const-DCNV5Kq7.d.ts} +4 -4
- package/dist/errors.cjs +112 -16
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +13 -4
- package/dist/errors.d.ts +13 -4
- package/dist/errors.js +112 -16
- package/dist/errors.js.map +1 -1
- package/dist/{index-BfYL6Qb1.d.cts → index-CbKyoEzy.d.cts} +3 -3
- package/dist/{index-Bei4WlVw.d.ts → index-DUuIqUS8.d.ts} +3 -3
- package/dist/index.cjs +452 -104
- 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 +452 -104
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-3WNyC0gk.d.cts → payload-types-MKbx5MuJ.d.cts} +309 -17
- package/dist/{payload-types-3WNyC0gk.d.ts → payload-types-MKbx5MuJ.d.ts} +309 -17
- package/dist/query.cjs +165 -43
- 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 +165 -43
- 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 +566 -81
- 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 +566 -81
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +70 -1
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +70 -1
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-mIROvhhP.d.ts → types-1UeOk1Uy.d.cts} +110 -8
- package/dist/{types-CAicTn-o.d.cts → types-BKr_2avj.d.cts} +2 -2
- package/dist/{types-CDJ2M-MJ.d.cts → types-Du4s5anw.d.ts} +110 -8
- package/dist/{types-DpSyNTxy.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 +6 -5
|
@@ -71,6 +71,10 @@ interface Config {
|
|
|
71
71
|
'payment-kernel-operations': PaymentKernelOperation;
|
|
72
72
|
'payment-kernel-operation-attempts': PaymentKernelOperationAttempt;
|
|
73
73
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovement;
|
|
74
|
+
'payment-kernel-provider-receipts': PaymentKernelProviderReceipt;
|
|
75
|
+
'payment-kernel-reconciliation-cases': PaymentKernelReconciliationCase;
|
|
76
|
+
'payment-kernel-results': PaymentKernelResult;
|
|
77
|
+
'payment-kernel-owner-commits': PaymentKernelOwnerCommit;
|
|
74
78
|
'order-status-logs': OrderStatusLog;
|
|
75
79
|
'inventory-reservations': InventoryReservation;
|
|
76
80
|
'fulfillment-orders': FulfillmentOrder;
|
|
@@ -302,6 +306,10 @@ interface Config {
|
|
|
302
306
|
'payment-kernel-operations': PaymentKernelOperationsSelect<false> | PaymentKernelOperationsSelect<true>;
|
|
303
307
|
'payment-kernel-operation-attempts': PaymentKernelOperationAttemptsSelect<false> | PaymentKernelOperationAttemptsSelect<true>;
|
|
304
308
|
'payment-kernel-financial-movements': PaymentKernelFinancialMovementsSelect<false> | PaymentKernelFinancialMovementsSelect<true>;
|
|
309
|
+
'payment-kernel-provider-receipts': PaymentKernelProviderReceiptsSelect<false> | PaymentKernelProviderReceiptsSelect<true>;
|
|
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>;
|
|
305
313
|
'order-status-logs': OrderStatusLogsSelect<false> | OrderStatusLogsSelect<true>;
|
|
306
314
|
'inventory-reservations': InventoryReservationsSelect<false> | InventoryReservationsSelect<true>;
|
|
307
315
|
'fulfillment-orders': FulfillmentOrdersSelect<false> | FulfillmentOrdersSelect<true>;
|
|
@@ -606,6 +614,14 @@ interface Tenant {
|
|
|
606
614
|
id: string;
|
|
607
615
|
webhookPurgeFencedAt?: string | null;
|
|
608
616
|
name: string;
|
|
617
|
+
/**
|
|
618
|
+
* TEST is a time-limited space with separate data and keys and no external effects.
|
|
619
|
+
*/
|
|
620
|
+
tenantPurpose?: ('production' | 'test') | null;
|
|
621
|
+
/**
|
|
622
|
+
* A TEST tenant can be used for at most 30 days from creation.
|
|
623
|
+
*/
|
|
624
|
+
testExpiresAt?: string | null;
|
|
609
625
|
/**
|
|
610
626
|
* URL-safe identifier (auto-generated)
|
|
611
627
|
*/
|
|
@@ -2933,7 +2949,7 @@ interface ShippingPolicy {
|
|
|
2933
2949
|
*/
|
|
2934
2950
|
baseAmount?: number | null;
|
|
2935
2951
|
/**
|
|
2936
|
-
* Read-only rollout field.
|
|
2952
|
+
* Read-only rollout field. Set up free shipping with an order-amount rate row priced at 0, or with an automatic free_shipping discount that sets a minimum order amount. When you use a rate row, cap the existing paid row with Max Amount so both rows never apply together.
|
|
2937
2953
|
*/
|
|
2938
2954
|
freeShippingMinAmount?: number | null;
|
|
2939
2955
|
rates?: {
|
|
@@ -2975,7 +2991,13 @@ interface ShippingPolicy {
|
|
|
2975
2991
|
* Estimated delivery days
|
|
2976
2992
|
*/
|
|
2977
2993
|
estimatedDays?: number | null;
|
|
2994
|
+
/**
|
|
2995
|
+
* When off, this policy is skipped and orders price against the default shipping policy.
|
|
2996
|
+
*/
|
|
2978
2997
|
isActive?: boolean | null;
|
|
2998
|
+
/**
|
|
2999
|
+
* Checking this clears the current default policy. Orders without an explicit policy and newly created products follow this one.
|
|
3000
|
+
*/
|
|
2979
3001
|
isDefault?: boolean | null;
|
|
2980
3002
|
metadata?: {
|
|
2981
3003
|
[k: string]: unknown;
|
|
@@ -3395,14 +3417,26 @@ interface Discount {
|
|
|
3395
3417
|
* Amount in KRW (won)
|
|
3396
3418
|
*/
|
|
3397
3419
|
maxDiscountAmount?: number | null;
|
|
3420
|
+
/**
|
|
3421
|
+
* Start of the validity window (empty = starts immediately)
|
|
3422
|
+
*/
|
|
3398
3423
|
startsAt?: string | null;
|
|
3424
|
+
/**
|
|
3425
|
+
* End of the validity window. Must be after the start; empty = never ends.
|
|
3426
|
+
*/
|
|
3399
3427
|
endsAt?: string | null;
|
|
3400
3428
|
customerSelection?: {
|
|
3429
|
+
/**
|
|
3430
|
+
* Choosing Included or Excluded requires at least one target below.
|
|
3431
|
+
*/
|
|
3401
3432
|
type?: ('all' | 'included' | 'excluded') | null;
|
|
3402
3433
|
customers?: (string | Customer)[] | null;
|
|
3403
3434
|
customerGroups?: (string | CustomerGroup)[] | null;
|
|
3404
3435
|
};
|
|
3405
3436
|
productSelection?: {
|
|
3437
|
+
/**
|
|
3438
|
+
* Choosing Included or Excluded requires at least one target below.
|
|
3439
|
+
*/
|
|
3406
3440
|
type?: ('all' | 'included' | 'excluded') | null;
|
|
3407
3441
|
products?: (string | Product)[] | null;
|
|
3408
3442
|
collections?: (string | ProductCollection)[] | null;
|
|
@@ -3416,7 +3450,7 @@ interface Discount {
|
|
|
3416
3450
|
*/
|
|
3417
3451
|
pricingMarket?: (string | null) | Market;
|
|
3418
3452
|
/**
|
|
3419
|
-
* Total usage limit (empty = unlimited)
|
|
3453
|
+
* Total usage limit (1 or more, empty = unlimited)
|
|
3420
3454
|
*/
|
|
3421
3455
|
maxUses?: number | null;
|
|
3422
3456
|
/**
|
|
@@ -3424,7 +3458,7 @@ interface Discount {
|
|
|
3424
3458
|
*/
|
|
3425
3459
|
usesCount?: number | null;
|
|
3426
3460
|
/**
|
|
3427
|
-
* Usage limit per customer (empty = unlimited)
|
|
3461
|
+
* Usage limit per customer (1 or more, empty = unlimited)
|
|
3428
3462
|
*/
|
|
3429
3463
|
maxUsesPerCustomer?: number | null;
|
|
3430
3464
|
/**
|
|
@@ -3435,6 +3469,9 @@ interface Discount {
|
|
|
3435
3469
|
* Allow combining with other discounts
|
|
3436
3470
|
*/
|
|
3437
3471
|
isCombinable?: boolean | null;
|
|
3472
|
+
/**
|
|
3473
|
+
* Only across-order allocation is supported. Each-line-item is always rejected at checkout and cannot be saved.
|
|
3474
|
+
*/
|
|
3438
3475
|
allocationMethod?: ('across' | 'each') | null;
|
|
3439
3476
|
/**
|
|
3440
3477
|
* Discount priority (higher = first)
|
|
@@ -3510,6 +3547,16 @@ interface PaymentSession {
|
|
|
3510
3547
|
*/
|
|
3511
3548
|
sessionOrigin?: ('managed_adapter' | 'custom_bridge') | null;
|
|
3512
3549
|
providerSessionId: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* Provider Hosted URL exposed only through an ownership-checked PaymentSession response.
|
|
3552
|
+
*/
|
|
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;
|
|
3513
3560
|
providerAccount?: (string | null) | CommercePaymentAccount;
|
|
3514
3561
|
credentialVersion?: number | null;
|
|
3515
3562
|
environment?: string | null;
|
|
@@ -3565,6 +3612,8 @@ interface PaymentSession {
|
|
|
3565
3612
|
deletedAt?: string | null;
|
|
3566
3613
|
}
|
|
3567
3614
|
/**
|
|
3615
|
+
* Connect a Toss Payments or PortOne account and register its payment credentials.
|
|
3616
|
+
*
|
|
3568
3617
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
3569
3618
|
* via the `definition` "commerce-payment-accounts".
|
|
3570
3619
|
*/
|
|
@@ -3577,26 +3626,58 @@ interface CommercePaymentAccount {
|
|
|
3577
3626
|
*/
|
|
3578
3627
|
profileName: string;
|
|
3579
3628
|
/**
|
|
3580
|
-
*
|
|
3629
|
+
* Provider account identity, immutable after registration (Toss mId / PortOne storeId).
|
|
3581
3630
|
*/
|
|
3582
3631
|
providerAccountKey: string;
|
|
3583
3632
|
environment: 'test' | 'live';
|
|
3584
3633
|
markets: (string | Market)[];
|
|
3585
3634
|
tossConfiguration?: {
|
|
3635
|
+
/**
|
|
3636
|
+
* Toss client key. Must use the test_ / live_ prefix matching the registered environment.
|
|
3637
|
+
*/
|
|
3586
3638
|
clientKey: string;
|
|
3587
3639
|
secretKey?: string | null;
|
|
3640
|
+
/**
|
|
3641
|
+
* Encrypted on save and never shown again. Leave blank to keep the registered key.
|
|
3642
|
+
*/
|
|
3643
|
+
secretKeyInput?: string | null;
|
|
3644
|
+
/**
|
|
3645
|
+
* Toss payment widget payment-method UI key (e.g. DEFAULT).
|
|
3646
|
+
*/
|
|
3588
3647
|
paymentMethodVariantKey: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* Toss payment widget agreement UI key (e.g. AGREEMENT).
|
|
3650
|
+
*/
|
|
3589
3651
|
agreementVariantKey: string;
|
|
3590
3652
|
paymentMethodPolicy: 'instant_only';
|
|
3591
3653
|
};
|
|
3592
3654
|
portOneConfiguration?: {
|
|
3593
3655
|
apiSecret?: string | null;
|
|
3594
|
-
|
|
3656
|
+
/**
|
|
3657
|
+
* Encrypted on save and never shown again. Leave blank to keep the registered secret.
|
|
3658
|
+
*/
|
|
3659
|
+
apiSecretInput?: string | null;
|
|
3660
|
+
webhookSecret?: string | null;
|
|
3661
|
+
/**
|
|
3662
|
+
* Encrypted on save and never shown again. Leave blank to keep the registered secret.
|
|
3663
|
+
*/
|
|
3664
|
+
webhookSecretInput?: string | null;
|
|
3665
|
+
/**
|
|
3666
|
+
* PortOne channel/store profile key.
|
|
3667
|
+
*/
|
|
3668
|
+
profileKey?: string | null;
|
|
3595
3669
|
/**
|
|
3596
3670
|
* Hosted Payment Session country (ISO 3166-1 alpha-2 uppercase).
|
|
3597
3671
|
*/
|
|
3598
|
-
country
|
|
3599
|
-
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
|
+
};
|
|
3600
3681
|
};
|
|
3601
3682
|
/**
|
|
3602
3683
|
* When enabled, this connection is eligible for new PaymentSessions.
|
|
@@ -5841,17 +5922,113 @@ interface PaymentKernelFinancialMovement {
|
|
|
5841
5922
|
tenant?: (string | null) | Tenant;
|
|
5842
5923
|
operation: string | PaymentKernelOperation;
|
|
5843
5924
|
providerObjectIdentity: string | PaymentKernelProviderObjectIdentity;
|
|
5844
|
-
movementKind: 'capture_confirmed' | 'refund_reservation' | 'refund_confirmed' | 'refund_reservation_release';
|
|
5925
|
+
movementKind: 'capture_confirmed' | 'refund_reservation' | 'refund_confirmed' | 'refund_reservation_release' | 'dispute_loss' | 'reversal' | 'fee' | 'adjustment' | 'settled';
|
|
5845
5926
|
movementIdentity: string;
|
|
5846
5927
|
reservationMovement?: (string | null) | PaymentKernelFinancialMovement;
|
|
5847
5928
|
terminalAttempt?: (string | null) | PaymentKernelOperationAttempt;
|
|
5848
5929
|
definitivelyFailedAttempt?: (string | null) | PaymentKernelOperationAttempt;
|
|
5930
|
+
providerReceipt?: (string | null) | PaymentKernelProviderReceipt;
|
|
5849
5931
|
amount: number;
|
|
5850
5932
|
currency: string;
|
|
5851
5933
|
effectiveAt: string;
|
|
5852
5934
|
updatedAt: string;
|
|
5853
5935
|
createdAt: string;
|
|
5854
5936
|
}
|
|
5937
|
+
/**
|
|
5938
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5939
|
+
* via the `definition` "payment-kernel-provider-receipts".
|
|
5940
|
+
*/
|
|
5941
|
+
interface PaymentKernelProviderReceipt {
|
|
5942
|
+
id: string;
|
|
5943
|
+
tenant?: (string | null) | Tenant;
|
|
5944
|
+
provider: string;
|
|
5945
|
+
providerAccountKey: string;
|
|
5946
|
+
environment: 'test' | 'live';
|
|
5947
|
+
providerConnection: string | PaymentKernelProviderConnection;
|
|
5948
|
+
credentialGeneration: string | PaymentKernelCredentialGeneration;
|
|
5949
|
+
providerObjectIdentity?: (string | null) | PaymentKernelProviderObjectIdentity;
|
|
5950
|
+
eventKind: string;
|
|
5951
|
+
eventId: string;
|
|
5952
|
+
bodyHash: string;
|
|
5953
|
+
rawPayload?: string | null;
|
|
5954
|
+
authenticatedAt: string;
|
|
5955
|
+
rawPayloadRetainedUntil: string;
|
|
5956
|
+
rawPayloadRedactedAt?: string | null;
|
|
5957
|
+
state: 'authenticated' | 'conflicting';
|
|
5958
|
+
updatedAt: string;
|
|
5959
|
+
createdAt: string;
|
|
5960
|
+
}
|
|
5961
|
+
/**
|
|
5962
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
5963
|
+
* via the `definition` "payment-kernel-reconciliation-cases".
|
|
5964
|
+
*/
|
|
5965
|
+
interface PaymentKernelReconciliationCase {
|
|
5966
|
+
id: string;
|
|
5967
|
+
tenant?: (string | null) | Tenant;
|
|
5968
|
+
provider: string;
|
|
5969
|
+
providerAccountKey: string;
|
|
5970
|
+
environment: 'test' | 'live';
|
|
5971
|
+
providerConnection: string | PaymentKernelProviderConnection;
|
|
5972
|
+
currency: string;
|
|
5973
|
+
periodStart: string;
|
|
5974
|
+
periodEnd: string;
|
|
5975
|
+
exceptionIdentity: string;
|
|
5976
|
+
capturedPrincipal: number;
|
|
5977
|
+
refundedPrincipal: number;
|
|
5978
|
+
disputeLoss: number;
|
|
5979
|
+
adjustments: number;
|
|
5980
|
+
fees: number;
|
|
5981
|
+
expectedSettledNet: number;
|
|
5982
|
+
reportedSettledNet: number;
|
|
5983
|
+
state: 'open' | 'reconciled';
|
|
5984
|
+
updatedAt: string;
|
|
5985
|
+
createdAt: string;
|
|
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
|
+
}
|
|
5855
6032
|
/**
|
|
5856
6033
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
5857
6034
|
* via the `definition` "order-status-logs".
|
|
@@ -8157,6 +8334,22 @@ interface CustomerMembership {
|
|
|
8157
8334
|
currency: 'KRW' | 'USD' | 'EUR' | 'JPY';
|
|
8158
8335
|
billingInterval: 'month' | 'year';
|
|
8159
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;
|
|
8160
8353
|
currentPeriodStart?: string | null;
|
|
8161
8354
|
currentPeriodEnd?: string | null;
|
|
8162
8355
|
nextBillingAt?: string | null;
|
|
@@ -8401,9 +8594,6 @@ interface Form {
|
|
|
8401
8594
|
blockType: 'textarea';
|
|
8402
8595
|
})[] | null;
|
|
8403
8596
|
submitButtonLabel?: string | null;
|
|
8404
|
-
/**
|
|
8405
|
-
* Choose whether to display an on-page message or redirect to a different page after they submit the form.
|
|
8406
|
-
*/
|
|
8407
8597
|
confirmationType?: ('message' | 'redirect') | null;
|
|
8408
8598
|
confirmationMessage?: {
|
|
8409
8599
|
root: {
|
|
@@ -8423,9 +8613,6 @@ interface Form {
|
|
|
8423
8613
|
redirect?: {
|
|
8424
8614
|
url: string;
|
|
8425
8615
|
};
|
|
8426
|
-
/**
|
|
8427
|
-
* Send custom emails when the form submits. Use comma separated lists to send the same email to multiple recipients. To reference a value from this form, wrap that field's name with double curly brackets, i.e. {{firstName}}. You can use a wildcard {{*}} to output all data and {{*:table}} to format it as an HTML table in the email.
|
|
8428
|
-
*/
|
|
8429
8616
|
emails?: {
|
|
8430
8617
|
emailTo?: string | null;
|
|
8431
8618
|
cc?: string | null;
|
|
@@ -8433,9 +8620,6 @@ interface Form {
|
|
|
8433
8620
|
replyTo?: string | null;
|
|
8434
8621
|
emailFrom?: string | null;
|
|
8435
8622
|
subject: string;
|
|
8436
|
-
/**
|
|
8437
|
-
* Enter the message that should be sent in this email.
|
|
8438
|
-
*/
|
|
8439
8623
|
message?: {
|
|
8440
8624
|
root: {
|
|
8441
8625
|
type: string;
|
|
@@ -8901,6 +9085,8 @@ interface WebhookOutboxDeliveriesSelect<T extends boolean = true> {
|
|
|
8901
9085
|
interface TenantsSelect<T extends boolean = true> {
|
|
8902
9086
|
webhookPurgeFencedAt?: T;
|
|
8903
9087
|
name?: T;
|
|
9088
|
+
tenantPurpose?: T;
|
|
9089
|
+
testExpiresAt?: T;
|
|
8904
9090
|
slug?: T;
|
|
8905
9091
|
previewDestinations?: T | {
|
|
8906
9092
|
origin?: T;
|
|
@@ -10229,6 +10415,8 @@ interface PaymentSessionsSelect<T extends boolean = true> {
|
|
|
10229
10415
|
provider?: T;
|
|
10230
10416
|
sessionOrigin?: T;
|
|
10231
10417
|
providerSessionId?: T;
|
|
10418
|
+
providerActionUrl?: T;
|
|
10419
|
+
providerAction?: T;
|
|
10232
10420
|
providerAccount?: T;
|
|
10233
10421
|
credentialVersion?: T;
|
|
10234
10422
|
environment?: T;
|
|
@@ -10524,12 +10712,104 @@ interface PaymentKernelFinancialMovementsSelect<T extends boolean = true> {
|
|
|
10524
10712
|
reservationMovement?: T;
|
|
10525
10713
|
terminalAttempt?: T;
|
|
10526
10714
|
definitivelyFailedAttempt?: T;
|
|
10715
|
+
providerReceipt?: T;
|
|
10527
10716
|
amount?: T;
|
|
10528
10717
|
currency?: T;
|
|
10529
10718
|
effectiveAt?: T;
|
|
10530
10719
|
updatedAt?: T;
|
|
10531
10720
|
createdAt?: T;
|
|
10532
10721
|
}
|
|
10722
|
+
/**
|
|
10723
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10724
|
+
* via the `definition` "payment-kernel-provider-receipts_select".
|
|
10725
|
+
*/
|
|
10726
|
+
interface PaymentKernelProviderReceiptsSelect<T extends boolean = true> {
|
|
10727
|
+
tenant?: T;
|
|
10728
|
+
provider?: T;
|
|
10729
|
+
providerAccountKey?: T;
|
|
10730
|
+
environment?: T;
|
|
10731
|
+
providerConnection?: T;
|
|
10732
|
+
credentialGeneration?: T;
|
|
10733
|
+
providerObjectIdentity?: T;
|
|
10734
|
+
eventKind?: T;
|
|
10735
|
+
eventId?: T;
|
|
10736
|
+
bodyHash?: T;
|
|
10737
|
+
rawPayload?: T;
|
|
10738
|
+
authenticatedAt?: T;
|
|
10739
|
+
rawPayloadRetainedUntil?: T;
|
|
10740
|
+
rawPayloadRedactedAt?: T;
|
|
10741
|
+
state?: T;
|
|
10742
|
+
updatedAt?: T;
|
|
10743
|
+
createdAt?: T;
|
|
10744
|
+
}
|
|
10745
|
+
/**
|
|
10746
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
10747
|
+
* via the `definition` "payment-kernel-reconciliation-cases_select".
|
|
10748
|
+
*/
|
|
10749
|
+
interface PaymentKernelReconciliationCasesSelect<T extends boolean = true> {
|
|
10750
|
+
tenant?: T;
|
|
10751
|
+
provider?: T;
|
|
10752
|
+
providerAccountKey?: T;
|
|
10753
|
+
environment?: T;
|
|
10754
|
+
providerConnection?: T;
|
|
10755
|
+
currency?: T;
|
|
10756
|
+
periodStart?: T;
|
|
10757
|
+
periodEnd?: T;
|
|
10758
|
+
exceptionIdentity?: T;
|
|
10759
|
+
capturedPrincipal?: T;
|
|
10760
|
+
refundedPrincipal?: T;
|
|
10761
|
+
disputeLoss?: T;
|
|
10762
|
+
adjustments?: T;
|
|
10763
|
+
fees?: T;
|
|
10764
|
+
expectedSettledNet?: T;
|
|
10765
|
+
reportedSettledNet?: T;
|
|
10766
|
+
state?: T;
|
|
10767
|
+
updatedAt?: T;
|
|
10768
|
+
createdAt?: T;
|
|
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
|
+
}
|
|
10533
10813
|
/**
|
|
10534
10814
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
10535
10815
|
* via the `definition` "order-status-logs_select".
|
|
@@ -12773,6 +13053,10 @@ interface CustomerMembershipsSelect<T extends boolean = true> {
|
|
|
12773
13053
|
currency?: T;
|
|
12774
13054
|
billingInterval?: T;
|
|
12775
13055
|
intervalCount?: T;
|
|
13056
|
+
trialDaysSnapshot?: T;
|
|
13057
|
+
subscribePeriodStart?: T;
|
|
13058
|
+
subscribePeriodEnd?: T;
|
|
13059
|
+
historicalPaidRecoveryEvidence?: T;
|
|
12776
13060
|
currentPeriodStart?: T;
|
|
12777
13061
|
currentPeriodEnd?: T;
|
|
12778
13062
|
nextBillingAt?: T;
|
|
@@ -12848,15 +13132,23 @@ interface CommercePaymentAccountsSelect<T extends boolean = true> {
|
|
|
12848
13132
|
tossConfiguration?: T | {
|
|
12849
13133
|
clientKey?: T;
|
|
12850
13134
|
secretKey?: T;
|
|
13135
|
+
secretKeyInput?: T;
|
|
12851
13136
|
paymentMethodVariantKey?: T;
|
|
12852
13137
|
agreementVariantKey?: T;
|
|
12853
13138
|
paymentMethodPolicy?: T;
|
|
12854
13139
|
};
|
|
12855
13140
|
portOneConfiguration?: T | {
|
|
12856
13141
|
apiSecret?: T;
|
|
13142
|
+
apiSecretInput?: T;
|
|
13143
|
+
webhookSecret?: T;
|
|
13144
|
+
webhookSecretInput?: T;
|
|
12857
13145
|
profileKey?: T;
|
|
12858
13146
|
country?: T;
|
|
12859
13147
|
allowedPaymentMethods?: T;
|
|
13148
|
+
standardV2?: T | {
|
|
13149
|
+
channelKey?: T;
|
|
13150
|
+
redirectUrl?: T;
|
|
13151
|
+
};
|
|
12860
13152
|
};
|
|
12861
13153
|
isActive?: T;
|
|
12862
13154
|
credentialVersion?: T;
|