@sayren/store-sdk 0.32.0 → 0.34.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/index.d.mts +2226 -167
- package/dist/index.mjs +680 -81
- package/package.json +1 -1
- package/src/client.ts +79 -5
- package/src/http.ts +1 -1
- package/src/index.ts +4 -0
- package/src/schemas/analytics.ts +16 -0
- package/src/schemas/coupon.ts +13 -0
- package/src/schemas/currency-prices.ts +138 -0
- package/src/schemas/currency.ts +184 -0
- package/src/schemas/customer.ts +20 -1
- package/src/schemas/fulfillment.ts +7 -0
- package/src/schemas/market.ts +76 -0
- package/src/schemas/order.ts +16 -1
- package/src/schemas/payment.ts +109 -16
- package/src/schemas/points.ts +2 -5
- package/src/schemas/product-info.ts +190 -0
- package/src/schemas/product.ts +73 -5
- package/src/schemas/promotion.ts +36 -17
- package/src/schemas/refund-policy.ts +55 -2
- package/src/schemas/shipping-policy.ts +56 -7
- package/src/schemas/storefront-hosting.ts +6 -10
- package/src/schemas/webhook-event.ts +24 -0
package/dist/index.d.mts
CHANGED
|
@@ -496,13 +496,13 @@ export type AiRun = z.infer<typeof aiRunSchema>;
|
|
|
496
496
|
*/
|
|
497
497
|
export declare const aiActivitySchema: z.ZodEnum<{
|
|
498
498
|
check: "check";
|
|
499
|
-
|
|
499
|
+
code: "code";
|
|
500
|
+
version: "version";
|
|
500
501
|
status: "status";
|
|
502
|
+
shipping: "shipping";
|
|
501
503
|
category: "category";
|
|
502
|
-
code: "code";
|
|
503
504
|
brief: "brief";
|
|
504
505
|
files: "files";
|
|
505
|
-
version: "version";
|
|
506
506
|
preview: "preview";
|
|
507
507
|
template: "template";
|
|
508
508
|
site: "site";
|
|
@@ -728,13 +728,13 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
728
728
|
summary: z.ZodNullable<z.ZodString>;
|
|
729
729
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
730
730
|
check: "check";
|
|
731
|
-
|
|
731
|
+
code: "code";
|
|
732
|
+
version: "version";
|
|
732
733
|
status: "status";
|
|
734
|
+
shipping: "shipping";
|
|
733
735
|
category: "category";
|
|
734
|
-
code: "code";
|
|
735
736
|
brief: "brief";
|
|
736
737
|
files: "files";
|
|
737
|
-
version: "version";
|
|
738
738
|
preview: "preview";
|
|
739
739
|
template: "template";
|
|
740
740
|
site: "site";
|
|
@@ -880,13 +880,13 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
880
880
|
summary: z.ZodNullable<z.ZodString>;
|
|
881
881
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
882
882
|
check: "check";
|
|
883
|
-
|
|
883
|
+
code: "code";
|
|
884
|
+
version: "version";
|
|
884
885
|
status: "status";
|
|
886
|
+
shipping: "shipping";
|
|
885
887
|
category: "category";
|
|
886
|
-
code: "code";
|
|
887
888
|
brief: "brief";
|
|
888
889
|
files: "files";
|
|
889
|
-
version: "version";
|
|
890
890
|
preview: "preview";
|
|
891
891
|
template: "template";
|
|
892
892
|
site: "site";
|
|
@@ -1047,13 +1047,13 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1047
1047
|
summary: z.ZodNullable<z.ZodString>;
|
|
1048
1048
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1049
1049
|
check: "check";
|
|
1050
|
-
|
|
1050
|
+
code: "code";
|
|
1051
|
+
version: "version";
|
|
1051
1052
|
status: "status";
|
|
1053
|
+
shipping: "shipping";
|
|
1052
1054
|
category: "category";
|
|
1053
|
-
code: "code";
|
|
1054
1055
|
brief: "brief";
|
|
1055
1056
|
files: "files";
|
|
1056
|
-
version: "version";
|
|
1057
1057
|
preview: "preview";
|
|
1058
1058
|
template: "template";
|
|
1059
1059
|
site: "site";
|
|
@@ -1538,13 +1538,13 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1538
1538
|
}, z.core.$strip>>;
|
|
1539
1539
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1540
1540
|
check: "check";
|
|
1541
|
-
|
|
1541
|
+
code: "code";
|
|
1542
|
+
version: "version";
|
|
1542
1543
|
status: "status";
|
|
1544
|
+
shipping: "shipping";
|
|
1543
1545
|
category: "category";
|
|
1544
|
-
code: "code";
|
|
1545
1546
|
brief: "brief";
|
|
1546
1547
|
files: "files";
|
|
1547
|
-
version: "version";
|
|
1548
1548
|
preview: "preview";
|
|
1549
1549
|
template: "template";
|
|
1550
1550
|
site: "site";
|
|
@@ -1647,13 +1647,13 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1647
1647
|
summary: z.ZodNullable<z.ZodString>;
|
|
1648
1648
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1649
1649
|
check: "check";
|
|
1650
|
-
|
|
1650
|
+
code: "code";
|
|
1651
|
+
version: "version";
|
|
1651
1652
|
status: "status";
|
|
1653
|
+
shipping: "shipping";
|
|
1652
1654
|
category: "category";
|
|
1653
|
-
code: "code";
|
|
1654
1655
|
brief: "brief";
|
|
1655
1656
|
files: "files";
|
|
1656
|
-
version: "version";
|
|
1657
1657
|
preview: "preview";
|
|
1658
1658
|
template: "template";
|
|
1659
1659
|
site: "site";
|
|
@@ -1870,13 +1870,13 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1870
1870
|
}, z.core.$strip>>;
|
|
1871
1871
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1872
1872
|
check: "check";
|
|
1873
|
-
|
|
1873
|
+
code: "code";
|
|
1874
|
+
version: "version";
|
|
1874
1875
|
status: "status";
|
|
1876
|
+
shipping: "shipping";
|
|
1875
1877
|
category: "category";
|
|
1876
|
-
code: "code";
|
|
1877
1878
|
brief: "brief";
|
|
1878
1879
|
files: "files";
|
|
1879
|
-
version: "version";
|
|
1880
1880
|
preview: "preview";
|
|
1881
1881
|
template: "template";
|
|
1882
1882
|
site: "site";
|
|
@@ -1979,13 +1979,13 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1979
1979
|
summary: z.ZodNullable<z.ZodString>;
|
|
1980
1980
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1981
1981
|
check: "check";
|
|
1982
|
-
|
|
1982
|
+
code: "code";
|
|
1983
|
+
version: "version";
|
|
1983
1984
|
status: "status";
|
|
1985
|
+
shipping: "shipping";
|
|
1984
1986
|
category: "category";
|
|
1985
|
-
code: "code";
|
|
1986
1987
|
brief: "brief";
|
|
1987
1988
|
files: "files";
|
|
1988
|
-
version: "version";
|
|
1989
1989
|
preview: "preview";
|
|
1990
1990
|
template: "template";
|
|
1991
1991
|
site: "site";
|
|
@@ -2260,6 +2260,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
|
|
|
2260
2260
|
date: z.ZodString;
|
|
2261
2261
|
}, z.core.$strip>>;
|
|
2262
2262
|
excludedBotSessions: z.ZodNumber;
|
|
2263
|
+
byCurrency: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2264
|
+
currency: z.ZodString;
|
|
2265
|
+
purchases: z.ZodNumber;
|
|
2266
|
+
revenue: z.ZodNumber;
|
|
2267
|
+
}, z.core.$strip>>>>;
|
|
2263
2268
|
from: z.ZodString;
|
|
2264
2269
|
to: z.ZodString;
|
|
2265
2270
|
timezone: z.ZodLiteral<"Asia/Seoul">;
|
|
@@ -2839,6 +2844,28 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
2839
2844
|
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2840
2845
|
shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2841
2846
|
returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2847
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2848
|
+
currency: z.ZodEnum<{
|
|
2849
|
+
KRW: "KRW";
|
|
2850
|
+
USD: "USD";
|
|
2851
|
+
EUR: "EUR";
|
|
2852
|
+
JPY: "JPY";
|
|
2853
|
+
GBP: "GBP";
|
|
2854
|
+
CNY: "CNY";
|
|
2855
|
+
HKD: "HKD";
|
|
2856
|
+
TWD: "TWD";
|
|
2857
|
+
SGD: "SGD";
|
|
2858
|
+
AUD: "AUD";
|
|
2859
|
+
CAD: "CAD";
|
|
2860
|
+
THB: "THB";
|
|
2861
|
+
MYR: "MYR";
|
|
2862
|
+
PHP: "PHP";
|
|
2863
|
+
NZD: "NZD";
|
|
2864
|
+
CHF: "CHF";
|
|
2865
|
+
}>;
|
|
2866
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
2867
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2868
|
+
}, z.core.$strict>>>;
|
|
2842
2869
|
}, z.core.$strict>>;
|
|
2843
2870
|
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2844
2871
|
CARRIER: "CARRIER";
|
|
@@ -2874,6 +2901,28 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
2874
2901
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
2875
2902
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
2876
2903
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
2904
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2905
|
+
currency: z.ZodEnum<{
|
|
2906
|
+
KRW: "KRW";
|
|
2907
|
+
USD: "USD";
|
|
2908
|
+
EUR: "EUR";
|
|
2909
|
+
JPY: "JPY";
|
|
2910
|
+
GBP: "GBP";
|
|
2911
|
+
CNY: "CNY";
|
|
2912
|
+
HKD: "HKD";
|
|
2913
|
+
TWD: "TWD";
|
|
2914
|
+
SGD: "SGD";
|
|
2915
|
+
AUD: "AUD";
|
|
2916
|
+
CAD: "CAD";
|
|
2917
|
+
THB: "THB";
|
|
2918
|
+
MYR: "MYR";
|
|
2919
|
+
PHP: "PHP";
|
|
2920
|
+
NZD: "NZD";
|
|
2921
|
+
CHF: "CHF";
|
|
2922
|
+
}>;
|
|
2923
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
2924
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2925
|
+
}, z.core.$strict>>>;
|
|
2877
2926
|
}, z.core.$strict>;
|
|
2878
2927
|
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2879
2928
|
CARRIER: "CARRIER";
|
|
@@ -2907,6 +2956,11 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2907
2956
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
2908
2957
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
2909
2958
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
2959
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2960
|
+
currency: z.ZodString;
|
|
2961
|
+
deliveryFee: z.ZodNumber;
|
|
2962
|
+
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
2963
|
+
}, z.core.$strip>>>;
|
|
2910
2964
|
}, z.core.$strip>;
|
|
2911
2965
|
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2912
2966
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2948,6 +3002,11 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
2948
3002
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
2949
3003
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
2950
3004
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
3005
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3006
|
+
currency: z.ZodString;
|
|
3007
|
+
deliveryFee: z.ZodNumber;
|
|
3008
|
+
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
3009
|
+
}, z.core.$strip>>>;
|
|
2951
3010
|
}, z.core.$strip>;
|
|
2952
3011
|
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2953
3012
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3070,6 +3129,7 @@ export declare const orderWebhookEventDataSchema: z.ZodObject<{
|
|
|
3070
3129
|
DELIVERED: "DELIVERED";
|
|
3071
3130
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3072
3131
|
}>;
|
|
3132
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3073
3133
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3074
3134
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3075
3135
|
pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3173,6 +3233,7 @@ export declare const orderFulfilledWebhookEventDataSchema: z.ZodObject<{
|
|
|
3173
3233
|
mode: z.ZodString;
|
|
3174
3234
|
}, z.core.$strip>>;
|
|
3175
3235
|
fulfilledAt: z.ZodString;
|
|
3236
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3176
3237
|
testPayment: z.ZodBoolean;
|
|
3177
3238
|
}, z.core.$strip>;
|
|
3178
3239
|
export type OrderFulfilledWebhookEventData = z.infer<typeof orderFulfilledWebhookEventDataSchema>;
|
|
@@ -3214,6 +3275,7 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
|
|
|
3214
3275
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3215
3276
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3216
3277
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3278
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3217
3279
|
testPayment: z.ZodBoolean;
|
|
3218
3280
|
}, z.core.$strip>;
|
|
3219
3281
|
export type OrderCanceledWebhookEventData = z.infer<typeof orderCanceledWebhookEventDataSchema>;
|
|
@@ -3246,6 +3308,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
3246
3308
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3247
3309
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3248
3310
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3311
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3249
3312
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3250
3313
|
}, z.core.$strip>;
|
|
3251
3314
|
export type ClaimWebhookEventData = z.infer<typeof claimWebhookEventDataSchema>;
|
|
@@ -3311,6 +3374,7 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
|
|
|
3311
3374
|
DELIVERED: "DELIVERED";
|
|
3312
3375
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3313
3376
|
}>;
|
|
3377
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3314
3378
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3315
3379
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3316
3380
|
pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3416,6 +3480,7 @@ export declare const orderFulfilledWebhookEventSchema: z.ZodObject<{
|
|
|
3416
3480
|
mode: z.ZodString;
|
|
3417
3481
|
}, z.core.$strip>>;
|
|
3418
3482
|
fulfilledAt: z.ZodString;
|
|
3483
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3419
3484
|
testPayment: z.ZodBoolean;
|
|
3420
3485
|
}, z.core.$strip>;
|
|
3421
3486
|
id: z.ZodString;
|
|
@@ -3458,6 +3523,7 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
|
|
|
3458
3523
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3459
3524
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3460
3525
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3526
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3461
3527
|
testPayment: z.ZodBoolean;
|
|
3462
3528
|
}, z.core.$strip>;
|
|
3463
3529
|
id: z.ZodString;
|
|
@@ -3501,6 +3567,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
3501
3567
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3502
3568
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3503
3569
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3570
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3504
3571
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3505
3572
|
}, z.core.$strip>;
|
|
3506
3573
|
id: z.ZodString;
|
|
@@ -3650,6 +3717,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3650
3717
|
DELIVERED: "DELIVERED";
|
|
3651
3718
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3652
3719
|
}>;
|
|
3720
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3653
3721
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3654
3722
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3655
3723
|
pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3754,6 +3822,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3754
3822
|
mode: z.ZodString;
|
|
3755
3823
|
}, z.core.$strip>>;
|
|
3756
3824
|
fulfilledAt: z.ZodString;
|
|
3825
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3757
3826
|
testPayment: z.ZodBoolean;
|
|
3758
3827
|
}, z.core.$strip>;
|
|
3759
3828
|
id: z.ZodString;
|
|
@@ -3795,6 +3864,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3795
3864
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3796
3865
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3797
3866
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3867
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3798
3868
|
testPayment: z.ZodBoolean;
|
|
3799
3869
|
}, z.core.$strip>;
|
|
3800
3870
|
id: z.ZodString;
|
|
@@ -3837,6 +3907,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3837
3907
|
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3838
3908
|
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3839
3909
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3910
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3840
3911
|
testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3841
3912
|
}, z.core.$strip>;
|
|
3842
3913
|
id: z.ZodString;
|
|
@@ -7180,6 +7251,24 @@ export declare const createCouponRequestSchema: z.ZodObject<{
|
|
|
7180
7251
|
totalUseLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7181
7252
|
perMemberIssueLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7182
7253
|
perMemberUseLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7254
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
7255
|
+
KRW: "KRW";
|
|
7256
|
+
USD: "USD";
|
|
7257
|
+
EUR: "EUR";
|
|
7258
|
+
JPY: "JPY";
|
|
7259
|
+
GBP: "GBP";
|
|
7260
|
+
CNY: "CNY";
|
|
7261
|
+
HKD: "HKD";
|
|
7262
|
+
TWD: "TWD";
|
|
7263
|
+
SGD: "SGD";
|
|
7264
|
+
AUD: "AUD";
|
|
7265
|
+
CAD: "CAD";
|
|
7266
|
+
THB: "THB";
|
|
7267
|
+
MYR: "MYR";
|
|
7268
|
+
PHP: "PHP";
|
|
7269
|
+
NZD: "NZD";
|
|
7270
|
+
CHF: "CHF";
|
|
7271
|
+
}>>;
|
|
7183
7272
|
}, z.core.$strict>;
|
|
7184
7273
|
export type CreateCouponRequest = z.infer<typeof createCouponRequestSchema>;
|
|
7185
7274
|
/**
|
|
@@ -7261,6 +7350,7 @@ export declare const couponSchema: z.ZodObject<{
|
|
|
7261
7350
|
issuedCount: z.ZodNumber;
|
|
7262
7351
|
reservedCount: z.ZodNumber;
|
|
7263
7352
|
usedCount: z.ZodNumber;
|
|
7353
|
+
currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7264
7354
|
status: z.ZodEnum<{
|
|
7265
7355
|
ACTIVE: "ACTIVE";
|
|
7266
7356
|
PAUSED: "PAUSED";
|
|
@@ -7462,6 +7552,9 @@ export declare const customerAddressSchema: z.ZodObject<{
|
|
|
7462
7552
|
zipCode: z.ZodString;
|
|
7463
7553
|
address1: z.ZodString;
|
|
7464
7554
|
address2: z.ZodNullable<z.ZodString>;
|
|
7555
|
+
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7556
|
+
city: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
7557
|
+
region: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
7465
7558
|
}, z.core.$strip>;
|
|
7466
7559
|
/** 동의 종류 — 이용약관·개인정보 수집이용은 가입 필수, 마케팅 수신은 선택 */
|
|
7467
7560
|
export declare const consentKindSchema: z.ZodEnum<{
|
|
@@ -7651,6 +7744,9 @@ export declare const customerDetailSchema: z.ZodObject<{
|
|
|
7651
7744
|
zipCode: z.ZodString;
|
|
7652
7745
|
address1: z.ZodString;
|
|
7653
7746
|
address2: z.ZodNullable<z.ZodString>;
|
|
7747
|
+
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7748
|
+
city: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
7749
|
+
region: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
7654
7750
|
}, z.core.$strip>>;
|
|
7655
7751
|
stats: z.ZodObject<{
|
|
7656
7752
|
orderCount: z.ZodNumber;
|
|
@@ -7999,6 +8095,73 @@ export declare const loginProviderTestSchema: z.ZodObject<{
|
|
|
7999
8095
|
}, z.core.$strip>;
|
|
8000
8096
|
export type LoginProviderTest = z.infer<typeof loginProviderTestSchema>;
|
|
8001
8097
|
//#endregion
|
|
8098
|
+
//#region src/schemas/market.d.ts
|
|
8099
|
+
export declare const marketSchema: z.ZodObject<{
|
|
8100
|
+
marketId: z.ZodString;
|
|
8101
|
+
name: z.ZodString;
|
|
8102
|
+
currency: z.ZodEnum<{
|
|
8103
|
+
KRW: "KRW";
|
|
8104
|
+
USD: "USD";
|
|
8105
|
+
EUR: "EUR";
|
|
8106
|
+
JPY: "JPY";
|
|
8107
|
+
GBP: "GBP";
|
|
8108
|
+
CNY: "CNY";
|
|
8109
|
+
HKD: "HKD";
|
|
8110
|
+
TWD: "TWD";
|
|
8111
|
+
SGD: "SGD";
|
|
8112
|
+
AUD: "AUD";
|
|
8113
|
+
CAD: "CAD";
|
|
8114
|
+
THB: "THB";
|
|
8115
|
+
MYR: "MYR";
|
|
8116
|
+
PHP: "PHP";
|
|
8117
|
+
NZD: "NZD";
|
|
8118
|
+
CHF: "CHF";
|
|
8119
|
+
}>;
|
|
8120
|
+
isDefault: z.ZodBoolean;
|
|
8121
|
+
countries: z.ZodArray<z.ZodString>;
|
|
8122
|
+
domains: z.ZodArray<z.ZodString>;
|
|
8123
|
+
couponsEnabled: z.ZodBoolean;
|
|
8124
|
+
pointsEnabled: z.ZodBoolean;
|
|
8125
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
8126
|
+
}, z.core.$strip>;
|
|
8127
|
+
export type Market = z.infer<typeof marketSchema>;
|
|
8128
|
+
export declare const createMarketRequestSchema: z.ZodObject<{
|
|
8129
|
+
name: z.ZodString;
|
|
8130
|
+
currency: z.ZodEnum<{
|
|
8131
|
+
KRW: "KRW";
|
|
8132
|
+
USD: "USD";
|
|
8133
|
+
EUR: "EUR";
|
|
8134
|
+
JPY: "JPY";
|
|
8135
|
+
GBP: "GBP";
|
|
8136
|
+
CNY: "CNY";
|
|
8137
|
+
HKD: "HKD";
|
|
8138
|
+
TWD: "TWD";
|
|
8139
|
+
SGD: "SGD";
|
|
8140
|
+
AUD: "AUD";
|
|
8141
|
+
CAD: "CAD";
|
|
8142
|
+
THB: "THB";
|
|
8143
|
+
MYR: "MYR";
|
|
8144
|
+
PHP: "PHP";
|
|
8145
|
+
NZD: "NZD";
|
|
8146
|
+
CHF: "CHF";
|
|
8147
|
+
}>;
|
|
8148
|
+
countries: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
8149
|
+
domains: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
8150
|
+
couponsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8151
|
+
pointsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8152
|
+
}, z.core.$strict>;
|
|
8153
|
+
export type CreateMarketRequest = z.infer<typeof createMarketRequestSchema>;
|
|
8154
|
+
export type CreateMarketRequestInput = z.input<typeof createMarketRequestSchema>;
|
|
8155
|
+
export declare const updateMarketRequestSchema: z.ZodObject<{
|
|
8156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8157
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
8158
|
+
domains: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
8159
|
+
couponsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8160
|
+
pointsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8161
|
+
}, z.core.$strict>;
|
|
8162
|
+
export type UpdateMarketRequest = z.infer<typeof updateMarketRequestSchema>;
|
|
8163
|
+
export type UpdateMarketRequestInput = z.input<typeof updateMarketRequestSchema>;
|
|
8164
|
+
//#endregion
|
|
8002
8165
|
//#region src/schemas/misc.d.ts
|
|
8003
8166
|
export declare const inquirySchema: z.ZodObject<{
|
|
8004
8167
|
inquiryId: z.ZodString;
|
|
@@ -8662,6 +8825,7 @@ export declare const orderSummarySchema: z.ZodObject<{
|
|
|
8662
8825
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
8663
8826
|
}>>;
|
|
8664
8827
|
orderedAt: z.ZodString;
|
|
8828
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
8665
8829
|
testPayment: z.ZodBoolean;
|
|
8666
8830
|
}, z.core.$strip>;
|
|
8667
8831
|
export type OrderSummary = z.infer<typeof orderSummarySchema>;
|
|
@@ -8669,6 +8833,9 @@ export declare const shippingAddressSchema: z.ZodObject<{
|
|
|
8669
8833
|
receiverName: z.ZodString;
|
|
8670
8834
|
phone: z.ZodString;
|
|
8671
8835
|
zipCode: z.ZodString;
|
|
8836
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
8837
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8838
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8672
8839
|
address1: z.ZodString;
|
|
8673
8840
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8674
8841
|
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -8827,6 +8994,9 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
8827
8994
|
receiverName: z.ZodString;
|
|
8828
8995
|
phone: z.ZodString;
|
|
8829
8996
|
zipCode: z.ZodString;
|
|
8997
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
8998
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8999
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8830
9000
|
address1: z.ZodString;
|
|
8831
9001
|
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8832
9002
|
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -8866,12 +9036,7 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
8866
9036
|
identityNumberMasked: z.ZodString;
|
|
8867
9037
|
amount: z.ZodNumber;
|
|
8868
9038
|
issuedAmount: z.ZodNumber;
|
|
8869
|
-
provider: z.ZodNullable<z.
|
|
8870
|
-
tosspayments: "tosspayments";
|
|
8871
|
-
portone: "portone";
|
|
8872
|
-
kakaopay: "kakaopay";
|
|
8873
|
-
naverpay: "naverpay";
|
|
8874
|
-
}>>;
|
|
9039
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
8875
9040
|
issueNumber: z.ZodNullable<z.ZodString>;
|
|
8876
9041
|
receiptUrl: z.ZodNullable<z.ZodString>;
|
|
8877
9042
|
issuedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -8883,6 +9048,7 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
8883
9048
|
updatedAt: z.ZodString;
|
|
8884
9049
|
}, z.core.$strip>>>>;
|
|
8885
9050
|
}, z.core.$strip>;
|
|
9051
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
8886
9052
|
testPayment: z.ZodBoolean;
|
|
8887
9053
|
items: z.ZodArray<z.ZodObject<{
|
|
8888
9054
|
orderItemId: z.ZodString;
|
|
@@ -9029,6 +9195,7 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
|
|
|
9029
9195
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
9030
9196
|
}>>;
|
|
9031
9197
|
orderedAt: z.ZodString;
|
|
9198
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
9032
9199
|
testPayment: z.ZodBoolean;
|
|
9033
9200
|
}, z.core.$strip>>;
|
|
9034
9201
|
}, z.core.$strip>;
|
|
@@ -9420,8 +9587,15 @@ export declare const pgProviderSchema: z.ZodEnum<{
|
|
|
9420
9587
|
portone: "portone";
|
|
9421
9588
|
kakaopay: "kakaopay";
|
|
9422
9589
|
naverpay: "naverpay";
|
|
9590
|
+
paypal: "paypal";
|
|
9423
9591
|
}>;
|
|
9424
9592
|
export type PgProvider = z.infer<typeof pgProviderSchema>;
|
|
9593
|
+
/**
|
|
9594
|
+
* 응답에 실리는 PG — 서버가 PG를 추가해도 응답 파싱이 깨지지 않게 문자열로 받는다(`easyPayProviderResponseSchema`와 같은 방식, 이슈 #131 CD2).
|
|
9595
|
+
* 요청(우선순위·리포트 필터·경로)은 값을 골라 보내는 자리라 `pgProviderSchema` enum 그대로다. 현재 값은 `pgProviderSchema`의 값이고
|
|
9596
|
+
* 화면은 모르는 값을 원문 그대로 보여 준다
|
|
9597
|
+
*/
|
|
9598
|
+
export declare const pgProviderResponseSchema: z.ZodString;
|
|
9425
9599
|
/**
|
|
9426
9600
|
* 간편결제 전용 PG — 결제수단이 간편결제 하나이고 간편결제사가 PG 자신이다(`kakaopay` → `KAKAOPAY`).
|
|
9427
9601
|
* 이 PG는 `easyPayProviders` 설정 없이 결제 옵션이 하나(`EASY_PAY` + 그 간편결제사) 나온다
|
|
@@ -9429,6 +9603,7 @@ export type PgProvider = z.infer<typeof pgProviderSchema>;
|
|
|
9429
9603
|
export declare const DEDICATED_EASY_PAY_PROVIDER: {
|
|
9430
9604
|
readonly kakaopay: "KAKAOPAY";
|
|
9431
9605
|
readonly naverpay: "NAVERPAY";
|
|
9606
|
+
readonly paypal: "PAYPAL";
|
|
9432
9607
|
};
|
|
9433
9608
|
export declare const pgPaymentMethodSchema: z.ZodEnum<{
|
|
9434
9609
|
CARD: "CARD";
|
|
@@ -9447,6 +9622,7 @@ export declare const easyPayProviderSchema: z.ZodEnum<{
|
|
|
9447
9622
|
KAKAOPAY: "KAKAOPAY";
|
|
9448
9623
|
TOSSPAY: "TOSSPAY";
|
|
9449
9624
|
PAYCO: "PAYCO";
|
|
9625
|
+
PAYPAL: "PAYPAL";
|
|
9450
9626
|
}>;
|
|
9451
9627
|
export type EasyPayProvider = z.infer<typeof easyPayProviderSchema>;
|
|
9452
9628
|
/**
|
|
@@ -9529,6 +9705,31 @@ export declare const naverPayCredentialsInputSchema: z.ZodObject<{
|
|
|
9529
9705
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
9530
9706
|
}, z.core.$strip>;
|
|
9531
9707
|
export type NaverPayCredentialsInput = z.infer<typeof naverPayCredentialsInputSchema>;
|
|
9708
|
+
/**
|
|
9709
|
+
* PayPal이 받는 통화 중 sayren이 여는 것(이슈 #131 설계 §3b) — PayPal 통화 코드(https://developer.paypal.com/api/rest/reference/currency-codes/) ∩ 통화표
|
|
9710
|
+
* − 원화(PayPal이 받지 않는다) − CNY·MYR(현지 계정 전용) − TWD(부분 환불 소수 문제, 설계 Q4)
|
|
9711
|
+
*/
|
|
9712
|
+
export declare const PAYPAL_CURRENCIES: readonly ["USD", "EUR", "JPY", "GBP", "HKD", "SGD", "AUD", "CAD", "THB", "PHP", "NZD", "CHF"];
|
|
9713
|
+
export declare const payPalCredentialsInputSchema: z.ZodObject<{
|
|
9714
|
+
clientId: z.ZodString;
|
|
9715
|
+
currencies: z.ZodArray<z.ZodEnum<{
|
|
9716
|
+
USD: "USD";
|
|
9717
|
+
EUR: "EUR";
|
|
9718
|
+
JPY: "JPY";
|
|
9719
|
+
GBP: "GBP";
|
|
9720
|
+
HKD: "HKD";
|
|
9721
|
+
SGD: "SGD";
|
|
9722
|
+
AUD: "AUD";
|
|
9723
|
+
CAD: "CAD";
|
|
9724
|
+
THB: "THB";
|
|
9725
|
+
PHP: "PHP";
|
|
9726
|
+
NZD: "NZD";
|
|
9727
|
+
CHF: "CHF";
|
|
9728
|
+
}>>;
|
|
9729
|
+
webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9730
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
9731
|
+
}, z.core.$strip>;
|
|
9732
|
+
export type PayPalCredentialsInput = z.infer<typeof payPalCredentialsInputSchema>;
|
|
9532
9733
|
export declare const upsertTossPaymentsProviderRequestSchema: z.ZodObject<{
|
|
9533
9734
|
environment: z.ZodEnum<{
|
|
9534
9735
|
TEST: "TEST";
|
|
@@ -9587,6 +9788,32 @@ export declare const upsertNaverPayProviderRequestSchema: z.ZodObject<{
|
|
|
9587
9788
|
}, z.core.$strip>;
|
|
9588
9789
|
}, z.core.$strip>;
|
|
9589
9790
|
export type UpsertNaverPayProviderRequest = z.infer<typeof upsertNaverPayProviderRequestSchema>;
|
|
9791
|
+
export declare const upsertPayPalProviderRequestSchema: z.ZodObject<{
|
|
9792
|
+
environment: z.ZodEnum<{
|
|
9793
|
+
TEST: "TEST";
|
|
9794
|
+
LIVE: "LIVE";
|
|
9795
|
+
}>;
|
|
9796
|
+
credentials: z.ZodObject<{
|
|
9797
|
+
clientId: z.ZodString;
|
|
9798
|
+
currencies: z.ZodArray<z.ZodEnum<{
|
|
9799
|
+
USD: "USD";
|
|
9800
|
+
EUR: "EUR";
|
|
9801
|
+
JPY: "JPY";
|
|
9802
|
+
GBP: "GBP";
|
|
9803
|
+
HKD: "HKD";
|
|
9804
|
+
SGD: "SGD";
|
|
9805
|
+
AUD: "AUD";
|
|
9806
|
+
CAD: "CAD";
|
|
9807
|
+
THB: "THB";
|
|
9808
|
+
PHP: "PHP";
|
|
9809
|
+
NZD: "NZD";
|
|
9810
|
+
CHF: "CHF";
|
|
9811
|
+
}>>;
|
|
9812
|
+
webhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9813
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
9814
|
+
}, z.core.$strip>;
|
|
9815
|
+
}, z.core.$strip>;
|
|
9816
|
+
export type UpsertPayPalProviderRequest = z.infer<typeof upsertPayPalProviderRequestSchema>;
|
|
9590
9817
|
export declare const updatePaymentProviderRequestSchema: z.ZodObject<{
|
|
9591
9818
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
9592
9819
|
sandboxMode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -9595,6 +9822,7 @@ export declare const updatePaymentProviderRequestSchema: z.ZodObject<{
|
|
|
9595
9822
|
KAKAOPAY: "KAKAOPAY";
|
|
9596
9823
|
TOSSPAY: "TOSSPAY";
|
|
9597
9824
|
PAYCO: "PAYCO";
|
|
9825
|
+
PAYPAL: "PAYPAL";
|
|
9598
9826
|
}>>>;
|
|
9599
9827
|
}, z.core.$strip>;
|
|
9600
9828
|
export type UpdatePaymentProviderRequest = z.infer<typeof updatePaymentProviderRequestSchema>;
|
|
@@ -9611,6 +9839,7 @@ export declare const updatePaymentSettingsRequestSchema: z.ZodObject<{
|
|
|
9611
9839
|
portone: "portone";
|
|
9612
9840
|
kakaopay: "kakaopay";
|
|
9613
9841
|
naverpay: "naverpay";
|
|
9842
|
+
paypal: "paypal";
|
|
9614
9843
|
}>>>;
|
|
9615
9844
|
checkoutOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9616
9845
|
}, z.core.$strip>;
|
|
@@ -9646,6 +9875,10 @@ export declare const paymentCredentialSetSchema: z.ZodObject<{
|
|
|
9646
9875
|
}, z.core.$strip>, z.ZodObject<{
|
|
9647
9876
|
clientId: z.ZodString;
|
|
9648
9877
|
chainId: z.ZodString;
|
|
9878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9879
|
+
clientId: z.ZodString;
|
|
9880
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
9881
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9649
9882
|
}, z.core.$strip>]>;
|
|
9650
9883
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9651
9884
|
field: z.ZodString;
|
|
@@ -9709,7 +9942,7 @@ export declare const liveGateSchema: z.ZodObject<{
|
|
|
9709
9942
|
}, z.core.$strip>;
|
|
9710
9943
|
export type LiveGate = z.infer<typeof liveGateSchema>;
|
|
9711
9944
|
/**
|
|
9712
|
-
* 409 `LIVE_GATE_NOT_MET
|
|
9945
|
+
* 409 `LIVE_GATE_NOT_MET`의 `ApiError.details` 형태.
|
|
9713
9946
|
* 응답 파싱용이라 관대하다 — 알 수 없는 키는 버리고, 형태가 다르면 safeParse 실패로 처리한다.
|
|
9714
9947
|
*/
|
|
9715
9948
|
export declare const liveGateErrorDetailsSchema: z.ZodObject<{
|
|
@@ -9729,12 +9962,7 @@ export declare const liveGateErrorDetailsSchema: z.ZodObject<{
|
|
|
9729
9962
|
}, z.core.$strip>;
|
|
9730
9963
|
export type LiveGateErrorDetails = z.infer<typeof liveGateErrorDetailsSchema>;
|
|
9731
9964
|
export declare const paymentProviderSchema: z.ZodObject<{
|
|
9732
|
-
provider: z.
|
|
9733
|
-
tosspayments: "tosspayments";
|
|
9734
|
-
portone: "portone";
|
|
9735
|
-
kakaopay: "kakaopay";
|
|
9736
|
-
naverpay: "naverpay";
|
|
9737
|
-
}>;
|
|
9965
|
+
provider: z.ZodString;
|
|
9738
9966
|
displayName: z.ZodString;
|
|
9739
9967
|
connected: z.ZodBoolean;
|
|
9740
9968
|
enabled: z.ZodBoolean;
|
|
@@ -9763,6 +9991,10 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
9763
9991
|
}, z.core.$strip>, z.ZodObject<{
|
|
9764
9992
|
clientId: z.ZodString;
|
|
9765
9993
|
chainId: z.ZodString;
|
|
9994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9995
|
+
clientId: z.ZodString;
|
|
9996
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
9997
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9766
9998
|
}, z.core.$strip>]>>;
|
|
9767
9999
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9768
10000
|
field: z.ZodString;
|
|
@@ -9805,6 +10037,10 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
9805
10037
|
}, z.core.$strip>, z.ZodObject<{
|
|
9806
10038
|
clientId: z.ZodString;
|
|
9807
10039
|
chainId: z.ZodString;
|
|
10040
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10041
|
+
clientId: z.ZodString;
|
|
10042
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10043
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9808
10044
|
}, z.core.$strip>]>;
|
|
9809
10045
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9810
10046
|
field: z.ZodString;
|
|
@@ -9846,6 +10082,10 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
9846
10082
|
}, z.core.$strip>, z.ZodObject<{
|
|
9847
10083
|
clientId: z.ZodString;
|
|
9848
10084
|
chainId: z.ZodString;
|
|
10085
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10086
|
+
clientId: z.ZodString;
|
|
10087
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10088
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9849
10089
|
}, z.core.$strip>]>;
|
|
9850
10090
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9851
10091
|
field: z.ZodString;
|
|
@@ -9914,12 +10154,7 @@ export type PaymentFailureWarning = z.infer<typeof paymentFailureWarningSchema>;
|
|
|
9914
10154
|
export declare const paymentSettingsSchema: z.ZodObject<{
|
|
9915
10155
|
checkoutOrigins: z.ZodArray<z.ZodString>;
|
|
9916
10156
|
providers: z.ZodArray<z.ZodObject<{
|
|
9917
|
-
provider: z.
|
|
9918
|
-
tosspayments: "tosspayments";
|
|
9919
|
-
portone: "portone";
|
|
9920
|
-
kakaopay: "kakaopay";
|
|
9921
|
-
naverpay: "naverpay";
|
|
9922
|
-
}>;
|
|
10157
|
+
provider: z.ZodString;
|
|
9923
10158
|
displayName: z.ZodString;
|
|
9924
10159
|
connected: z.ZodBoolean;
|
|
9925
10160
|
enabled: z.ZodBoolean;
|
|
@@ -9948,6 +10183,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
9948
10183
|
}, z.core.$strip>, z.ZodObject<{
|
|
9949
10184
|
clientId: z.ZodString;
|
|
9950
10185
|
chainId: z.ZodString;
|
|
10186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10187
|
+
clientId: z.ZodString;
|
|
10188
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10189
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9951
10190
|
}, z.core.$strip>]>>;
|
|
9952
10191
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9953
10192
|
field: z.ZodString;
|
|
@@ -9990,6 +10229,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
9990
10229
|
}, z.core.$strip>, z.ZodObject<{
|
|
9991
10230
|
clientId: z.ZodString;
|
|
9992
10231
|
chainId: z.ZodString;
|
|
10232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10233
|
+
clientId: z.ZodString;
|
|
10234
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10235
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
9993
10236
|
}, z.core.$strip>]>;
|
|
9994
10237
|
secrets: z.ZodArray<z.ZodObject<{
|
|
9995
10238
|
field: z.ZodString;
|
|
@@ -10031,6 +10274,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10031
10274
|
}, z.core.$strip>, z.ZodObject<{
|
|
10032
10275
|
clientId: z.ZodString;
|
|
10033
10276
|
chainId: z.ZodString;
|
|
10277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10278
|
+
clientId: z.ZodString;
|
|
10279
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10280
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
10034
10281
|
}, z.core.$strip>]>;
|
|
10035
10282
|
secrets: z.ZodArray<z.ZodObject<{
|
|
10036
10283
|
field: z.ZodString;
|
|
@@ -10075,12 +10322,7 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10075
10322
|
routingExclusion: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10076
10323
|
}, z.core.$strip>>;
|
|
10077
10324
|
connectableProviders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10078
|
-
provider: z.
|
|
10079
|
-
tosspayments: "tosspayments";
|
|
10080
|
-
portone: "portone";
|
|
10081
|
-
kakaopay: "kakaopay";
|
|
10082
|
-
naverpay: "naverpay";
|
|
10083
|
-
}>;
|
|
10325
|
+
provider: z.ZodString;
|
|
10084
10326
|
displayName: z.ZodString;
|
|
10085
10327
|
connected: z.ZodBoolean;
|
|
10086
10328
|
enabled: z.ZodBoolean;
|
|
@@ -10109,6 +10351,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10109
10351
|
}, z.core.$strip>, z.ZodObject<{
|
|
10110
10352
|
clientId: z.ZodString;
|
|
10111
10353
|
chainId: z.ZodString;
|
|
10354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10355
|
+
clientId: z.ZodString;
|
|
10356
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10357
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
10112
10358
|
}, z.core.$strip>]>>;
|
|
10113
10359
|
secrets: z.ZodArray<z.ZodObject<{
|
|
10114
10360
|
field: z.ZodString;
|
|
@@ -10151,6 +10397,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10151
10397
|
}, z.core.$strip>, z.ZodObject<{
|
|
10152
10398
|
clientId: z.ZodString;
|
|
10153
10399
|
chainId: z.ZodString;
|
|
10400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10401
|
+
clientId: z.ZodString;
|
|
10402
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10403
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
10154
10404
|
}, z.core.$strip>]>;
|
|
10155
10405
|
secrets: z.ZodArray<z.ZodObject<{
|
|
10156
10406
|
field: z.ZodString;
|
|
@@ -10192,6 +10442,10 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10192
10442
|
}, z.core.$strip>, z.ZodObject<{
|
|
10193
10443
|
clientId: z.ZodString;
|
|
10194
10444
|
chainId: z.ZodString;
|
|
10445
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10446
|
+
clientId: z.ZodString;
|
|
10447
|
+
currencies: z.ZodArray<z.ZodString>;
|
|
10448
|
+
webhookId: z.ZodNullable<z.ZodString>;
|
|
10195
10449
|
}, z.core.$strip>]>;
|
|
10196
10450
|
secrets: z.ZodArray<z.ZodObject<{
|
|
10197
10451
|
field: z.ZodString;
|
|
@@ -10252,12 +10506,7 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
10252
10506
|
}, z.core.$strip>;
|
|
10253
10507
|
export type PaymentSettings = z.infer<typeof paymentSettingsSchema>;
|
|
10254
10508
|
export declare const paymentProviderVerificationSchema: z.ZodObject<{
|
|
10255
|
-
provider: z.
|
|
10256
|
-
tosspayments: "tosspayments";
|
|
10257
|
-
portone: "portone";
|
|
10258
|
-
kakaopay: "kakaopay";
|
|
10259
|
-
naverpay: "naverpay";
|
|
10260
|
-
}>;
|
|
10509
|
+
provider: z.ZodString;
|
|
10261
10510
|
environment: z.ZodEnum<{
|
|
10262
10511
|
TEST: "TEST";
|
|
10263
10512
|
LIVE: "LIVE";
|
|
@@ -10285,6 +10534,7 @@ export declare const salesReportQuerySchema: z.ZodObject<{
|
|
|
10285
10534
|
portone: "portone";
|
|
10286
10535
|
kakaopay: "kakaopay";
|
|
10287
10536
|
naverpay: "naverpay";
|
|
10537
|
+
paypal: "paypal";
|
|
10288
10538
|
}>>;
|
|
10289
10539
|
method: z.ZodOptional<z.ZodEnum<{
|
|
10290
10540
|
CARD: "CARD";
|
|
@@ -10322,12 +10572,7 @@ export declare const salesReportRowSchema: z.ZodObject<{
|
|
|
10322
10572
|
netAmount: z.ZodNumber;
|
|
10323
10573
|
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10324
10574
|
date: z.ZodNullable<z.ZodString>;
|
|
10325
|
-
provider: z.ZodNullable<z.
|
|
10326
|
-
tosspayments: "tosspayments";
|
|
10327
|
-
portone: "portone";
|
|
10328
|
-
kakaopay: "kakaopay";
|
|
10329
|
-
naverpay: "naverpay";
|
|
10330
|
-
}>>;
|
|
10575
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10331
10576
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10332
10577
|
CARD: "CARD";
|
|
10333
10578
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10337,6 +10582,36 @@ export declare const salesReportRowSchema: z.ZodObject<{
|
|
|
10337
10582
|
}>>;
|
|
10338
10583
|
}, z.core.$strip>;
|
|
10339
10584
|
export type SalesReportRow = z.infer<typeof salesReportRowSchema>;
|
|
10585
|
+
/** 통화별 매출(이슈 #130) — 환산하지 않는다. 금액은 그 통화의 최소 단위다 */
|
|
10586
|
+
export declare const salesReportCurrencySchema: z.ZodObject<{
|
|
10587
|
+
currency: z.ZodString;
|
|
10588
|
+
summary: z.ZodObject<{
|
|
10589
|
+
paymentCount: z.ZodNumber;
|
|
10590
|
+
paymentAmount: z.ZodNumber;
|
|
10591
|
+
refundCount: z.ZodNumber;
|
|
10592
|
+
refundAmount: z.ZodNumber;
|
|
10593
|
+
netAmount: z.ZodNumber;
|
|
10594
|
+
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10595
|
+
}, z.core.$strip>;
|
|
10596
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
10597
|
+
paymentCount: z.ZodNumber;
|
|
10598
|
+
paymentAmount: z.ZodNumber;
|
|
10599
|
+
refundCount: z.ZodNumber;
|
|
10600
|
+
refundAmount: z.ZodNumber;
|
|
10601
|
+
netAmount: z.ZodNumber;
|
|
10602
|
+
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10603
|
+
date: z.ZodNullable<z.ZodString>;
|
|
10604
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10605
|
+
method: z.ZodNullable<z.ZodEnum<{
|
|
10606
|
+
CARD: "CARD";
|
|
10607
|
+
BANK_TRANSFER: "BANK_TRANSFER";
|
|
10608
|
+
VIRTUAL_ACCOUNT: "VIRTUAL_ACCOUNT";
|
|
10609
|
+
MOBILE: "MOBILE";
|
|
10610
|
+
EASY_PAY: "EASY_PAY";
|
|
10611
|
+
}>>;
|
|
10612
|
+
}, z.core.$strip>>;
|
|
10613
|
+
}, z.core.$strip>;
|
|
10614
|
+
export type SalesReportCurrency = z.infer<typeof salesReportCurrencySchema>;
|
|
10340
10615
|
export declare const salesReportSchema: z.ZodObject<{
|
|
10341
10616
|
from: z.ZodString;
|
|
10342
10617
|
to: z.ZodString;
|
|
@@ -10348,12 +10623,7 @@ export declare const salesReportSchema: z.ZodObject<{
|
|
|
10348
10623
|
METHOD: "METHOD";
|
|
10349
10624
|
PROVIDER_METHOD: "PROVIDER_METHOD";
|
|
10350
10625
|
}>;
|
|
10351
|
-
provider: z.ZodNullable<z.
|
|
10352
|
-
tosspayments: "tosspayments";
|
|
10353
|
-
portone: "portone";
|
|
10354
|
-
kakaopay: "kakaopay";
|
|
10355
|
-
naverpay: "naverpay";
|
|
10356
|
-
}>>;
|
|
10626
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10357
10627
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10358
10628
|
CARD: "CARD";
|
|
10359
10629
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10378,12 +10648,7 @@ export declare const salesReportSchema: z.ZodObject<{
|
|
|
10378
10648
|
netAmount: z.ZodNumber;
|
|
10379
10649
|
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10380
10650
|
date: z.ZodNullable<z.ZodString>;
|
|
10381
|
-
provider: z.ZodNullable<z.
|
|
10382
|
-
tosspayments: "tosspayments";
|
|
10383
|
-
portone: "portone";
|
|
10384
|
-
kakaopay: "kakaopay";
|
|
10385
|
-
naverpay: "naverpay";
|
|
10386
|
-
}>>;
|
|
10651
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10387
10652
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10388
10653
|
CARD: "CARD";
|
|
10389
10654
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10392,6 +10657,34 @@ export declare const salesReportSchema: z.ZodObject<{
|
|
|
10392
10657
|
EASY_PAY: "EASY_PAY";
|
|
10393
10658
|
}>>;
|
|
10394
10659
|
}, z.core.$strip>>;
|
|
10660
|
+
byCurrency: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10661
|
+
currency: z.ZodString;
|
|
10662
|
+
summary: z.ZodObject<{
|
|
10663
|
+
paymentCount: z.ZodNumber;
|
|
10664
|
+
paymentAmount: z.ZodNumber;
|
|
10665
|
+
refundCount: z.ZodNumber;
|
|
10666
|
+
refundAmount: z.ZodNumber;
|
|
10667
|
+
netAmount: z.ZodNumber;
|
|
10668
|
+
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10669
|
+
}, z.core.$strip>;
|
|
10670
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
10671
|
+
paymentCount: z.ZodNumber;
|
|
10672
|
+
paymentAmount: z.ZodNumber;
|
|
10673
|
+
refundCount: z.ZodNumber;
|
|
10674
|
+
refundAmount: z.ZodNumber;
|
|
10675
|
+
netAmount: z.ZodNumber;
|
|
10676
|
+
pgFeeAmount: z.ZodNullable<z.ZodNumber>;
|
|
10677
|
+
date: z.ZodNullable<z.ZodString>;
|
|
10678
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10679
|
+
method: z.ZodNullable<z.ZodEnum<{
|
|
10680
|
+
CARD: "CARD";
|
|
10681
|
+
BANK_TRANSFER: "BANK_TRANSFER";
|
|
10682
|
+
VIRTUAL_ACCOUNT: "VIRTUAL_ACCOUNT";
|
|
10683
|
+
MOBILE: "MOBILE";
|
|
10684
|
+
EASY_PAY: "EASY_PAY";
|
|
10685
|
+
}>>;
|
|
10686
|
+
}, z.core.$strip>>;
|
|
10687
|
+
}, z.core.$strip>>>>;
|
|
10395
10688
|
}, z.core.$strip>;
|
|
10396
10689
|
export type SalesReport = z.infer<typeof salesReportSchema>;
|
|
10397
10690
|
/**
|
|
@@ -10429,12 +10722,7 @@ export declare const cashReceiptSchema: z.ZodObject<{
|
|
|
10429
10722
|
identityNumberMasked: z.ZodString;
|
|
10430
10723
|
amount: z.ZodNumber;
|
|
10431
10724
|
issuedAmount: z.ZodNumber;
|
|
10432
|
-
provider: z.ZodNullable<z.
|
|
10433
|
-
tosspayments: "tosspayments";
|
|
10434
|
-
portone: "portone";
|
|
10435
|
-
kakaopay: "kakaopay";
|
|
10436
|
-
naverpay: "naverpay";
|
|
10437
|
-
}>>;
|
|
10725
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10438
10726
|
issueNumber: z.ZodNullable<z.ZodString>;
|
|
10439
10727
|
receiptUrl: z.ZodNullable<z.ZodString>;
|
|
10440
10728
|
issuedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -10461,12 +10749,7 @@ export declare const paymentRecordSchema: z.ZodObject<{
|
|
|
10461
10749
|
amount: z.ZodNumber;
|
|
10462
10750
|
refundedAmount: z.ZodNumber;
|
|
10463
10751
|
heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10464
|
-
provider: z.ZodNullable<z.
|
|
10465
|
-
tosspayments: "tosspayments";
|
|
10466
|
-
portone: "portone";
|
|
10467
|
-
kakaopay: "kakaopay";
|
|
10468
|
-
naverpay: "naverpay";
|
|
10469
|
-
}>>;
|
|
10752
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10470
10753
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10471
10754
|
CARD: "CARD";
|
|
10472
10755
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10511,12 +10794,7 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
|
|
|
10511
10794
|
amount: z.ZodNumber;
|
|
10512
10795
|
refundedAmount: z.ZodNumber;
|
|
10513
10796
|
heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10514
|
-
provider: z.ZodNullable<z.
|
|
10515
|
-
tosspayments: "tosspayments";
|
|
10516
|
-
portone: "portone";
|
|
10517
|
-
kakaopay: "kakaopay";
|
|
10518
|
-
naverpay: "naverpay";
|
|
10519
|
-
}>>;
|
|
10797
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10520
10798
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10521
10799
|
CARD: "CARD";
|
|
10522
10800
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10546,12 +10824,7 @@ export declare const paymentAttemptRecordSchema: z.ZodObject<{
|
|
|
10546
10824
|
attemptId: z.ZodString;
|
|
10547
10825
|
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10548
10826
|
sequence: z.ZodNumber;
|
|
10549
|
-
provider: z.
|
|
10550
|
-
tosspayments: "tosspayments";
|
|
10551
|
-
portone: "portone";
|
|
10552
|
-
kakaopay: "kakaopay";
|
|
10553
|
-
naverpay: "naverpay";
|
|
10554
|
-
}>;
|
|
10827
|
+
provider: z.ZodString;
|
|
10555
10828
|
status: z.ZodString;
|
|
10556
10829
|
method: z.ZodEnum<{
|
|
10557
10830
|
CARD: "CARD";
|
|
@@ -10608,12 +10881,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
10608
10881
|
amount: z.ZodNumber;
|
|
10609
10882
|
refundedAmount: z.ZodNumber;
|
|
10610
10883
|
heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10611
|
-
provider: z.ZodNullable<z.
|
|
10612
|
-
tosspayments: "tosspayments";
|
|
10613
|
-
portone: "portone";
|
|
10614
|
-
kakaopay: "kakaopay";
|
|
10615
|
-
naverpay: "naverpay";
|
|
10616
|
-
}>>;
|
|
10884
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10617
10885
|
method: z.ZodNullable<z.ZodEnum<{
|
|
10618
10886
|
CARD: "CARD";
|
|
10619
10887
|
BANK_TRANSFER: "BANK_TRANSFER";
|
|
@@ -10642,12 +10910,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
10642
10910
|
attemptId: z.ZodString;
|
|
10643
10911
|
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10644
10912
|
sequence: z.ZodNumber;
|
|
10645
|
-
provider: z.
|
|
10646
|
-
tosspayments: "tosspayments";
|
|
10647
|
-
portone: "portone";
|
|
10648
|
-
kakaopay: "kakaopay";
|
|
10649
|
-
naverpay: "naverpay";
|
|
10650
|
-
}>;
|
|
10913
|
+
provider: z.ZodString;
|
|
10651
10914
|
status: z.ZodString;
|
|
10652
10915
|
method: z.ZodEnum<{
|
|
10653
10916
|
CARD: "CARD";
|
|
@@ -10695,12 +10958,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
10695
10958
|
identityNumberMasked: z.ZodString;
|
|
10696
10959
|
amount: z.ZodNumber;
|
|
10697
10960
|
issuedAmount: z.ZodNumber;
|
|
10698
|
-
provider: z.ZodNullable<z.
|
|
10699
|
-
tosspayments: "tosspayments";
|
|
10700
|
-
portone: "portone";
|
|
10701
|
-
kakaopay: "kakaopay";
|
|
10702
|
-
naverpay: "naverpay";
|
|
10703
|
-
}>>;
|
|
10961
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
10704
10962
|
issueNumber: z.ZodNullable<z.ZodString>;
|
|
10705
10963
|
receiptUrl: z.ZodNullable<z.ZodString>;
|
|
10706
10964
|
issuedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -10744,12 +11002,7 @@ export declare const setPlatformTestKeysRequestSchema: z.ZodObject<{
|
|
|
10744
11002
|
export type SetPlatformTestKeysRequest = z.infer<typeof setPlatformTestKeysRequestSchema>;
|
|
10745
11003
|
/** 결제 상태 PG 한 줄 — 비밀 값·공개 키 없이 연결·사용·환경·테스트모드 키만 */
|
|
10746
11004
|
export declare const paymentStatusProviderSchema: z.ZodObject<{
|
|
10747
|
-
provider: z.
|
|
10748
|
-
tosspayments: "tosspayments";
|
|
10749
|
-
portone: "portone";
|
|
10750
|
-
kakaopay: "kakaopay";
|
|
10751
|
-
naverpay: "naverpay";
|
|
10752
|
-
}>;
|
|
11005
|
+
provider: z.ZodString;
|
|
10753
11006
|
displayName: z.ZodString;
|
|
10754
11007
|
connected: z.ZodBoolean;
|
|
10755
11008
|
enabled: z.ZodBoolean;
|
|
@@ -10768,12 +11021,7 @@ export declare const paymentStatusSchema: z.ZodObject<{
|
|
|
10768
11021
|
LIVE: "LIVE";
|
|
10769
11022
|
}>>;
|
|
10770
11023
|
providers: z.ZodArray<z.ZodObject<{
|
|
10771
|
-
provider: z.
|
|
10772
|
-
tosspayments: "tosspayments";
|
|
10773
|
-
portone: "portone";
|
|
10774
|
-
kakaopay: "kakaopay";
|
|
10775
|
-
naverpay: "naverpay";
|
|
10776
|
-
}>;
|
|
11024
|
+
provider: z.ZodString;
|
|
10777
11025
|
displayName: z.ZodString;
|
|
10778
11026
|
connected: z.ZodBoolean;
|
|
10779
11027
|
enabled: z.ZodBoolean;
|
|
@@ -11150,6 +11398,10 @@ export declare const productVariantSchema: z.ZodObject<{
|
|
|
11150
11398
|
valueIds: z.ZodArray<z.ZodString>;
|
|
11151
11399
|
name: z.ZodString;
|
|
11152
11400
|
additionalPrice: z.ZodNumber;
|
|
11401
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11402
|
+
currency: z.ZodString;
|
|
11403
|
+
additionalPrice: z.ZodNumber;
|
|
11404
|
+
}, z.core.$strip>>>;
|
|
11153
11405
|
stockQuantity: z.ZodNumber;
|
|
11154
11406
|
sku: z.ZodNullable<z.ZodString>;
|
|
11155
11407
|
barcode: z.ZodNullable<z.ZodString>;
|
|
@@ -11192,6 +11444,10 @@ export declare const addonValueSchema: z.ZodObject<{
|
|
|
11192
11444
|
name: z.ZodString;
|
|
11193
11445
|
sortOrder: z.ZodNumber;
|
|
11194
11446
|
additionalPrice: z.ZodNumber;
|
|
11447
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11448
|
+
currency: z.ZodString;
|
|
11449
|
+
additionalPrice: z.ZodNumber;
|
|
11450
|
+
}, z.core.$strip>>>;
|
|
11195
11451
|
usable: z.ZodBoolean;
|
|
11196
11452
|
}, z.core.$strip>;
|
|
11197
11453
|
export type AddonValue = z.infer<typeof addonValueSchema>;
|
|
@@ -11206,6 +11462,10 @@ export declare const addonGroupSchema: z.ZodObject<{
|
|
|
11206
11462
|
name: z.ZodString;
|
|
11207
11463
|
sortOrder: z.ZodNumber;
|
|
11208
11464
|
additionalPrice: z.ZodNumber;
|
|
11465
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11466
|
+
currency: z.ZodString;
|
|
11467
|
+
additionalPrice: z.ZodNumber;
|
|
11468
|
+
}, z.core.$strip>>>;
|
|
11209
11469
|
usable: z.ZodBoolean;
|
|
11210
11470
|
}, z.core.$strip>>;
|
|
11211
11471
|
}, z.core.$strip>;
|
|
@@ -11244,6 +11504,27 @@ export declare const addonValueRequestSchema: z.ZodObject<{
|
|
|
11244
11504
|
valueId: z.ZodOptional<z.ZodString>;
|
|
11245
11505
|
name: z.ZodString;
|
|
11246
11506
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
11507
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11508
|
+
currency: z.ZodEnum<{
|
|
11509
|
+
KRW: "KRW";
|
|
11510
|
+
USD: "USD";
|
|
11511
|
+
EUR: "EUR";
|
|
11512
|
+
JPY: "JPY";
|
|
11513
|
+
GBP: "GBP";
|
|
11514
|
+
CNY: "CNY";
|
|
11515
|
+
HKD: "HKD";
|
|
11516
|
+
TWD: "TWD";
|
|
11517
|
+
SGD: "SGD";
|
|
11518
|
+
AUD: "AUD";
|
|
11519
|
+
CAD: "CAD";
|
|
11520
|
+
THB: "THB";
|
|
11521
|
+
MYR: "MYR";
|
|
11522
|
+
PHP: "PHP";
|
|
11523
|
+
NZD: "NZD";
|
|
11524
|
+
CHF: "CHF";
|
|
11525
|
+
}>;
|
|
11526
|
+
additionalPrice: z.ZodNumber;
|
|
11527
|
+
}, z.core.$strict>>>;
|
|
11247
11528
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11248
11529
|
}, z.core.$strip>;
|
|
11249
11530
|
export type AddonValueRequest = z.infer<typeof addonValueRequestSchema>;
|
|
@@ -11255,6 +11536,27 @@ export declare const addonGroupRequestSchema: z.ZodObject<{
|
|
|
11255
11536
|
valueId: z.ZodOptional<z.ZodString>;
|
|
11256
11537
|
name: z.ZodString;
|
|
11257
11538
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
11539
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11540
|
+
currency: z.ZodEnum<{
|
|
11541
|
+
KRW: "KRW";
|
|
11542
|
+
USD: "USD";
|
|
11543
|
+
EUR: "EUR";
|
|
11544
|
+
JPY: "JPY";
|
|
11545
|
+
GBP: "GBP";
|
|
11546
|
+
CNY: "CNY";
|
|
11547
|
+
HKD: "HKD";
|
|
11548
|
+
TWD: "TWD";
|
|
11549
|
+
SGD: "SGD";
|
|
11550
|
+
AUD: "AUD";
|
|
11551
|
+
CAD: "CAD";
|
|
11552
|
+
THB: "THB";
|
|
11553
|
+
MYR: "MYR";
|
|
11554
|
+
PHP: "PHP";
|
|
11555
|
+
NZD: "NZD";
|
|
11556
|
+
CHF: "CHF";
|
|
11557
|
+
}>;
|
|
11558
|
+
additionalPrice: z.ZodNumber;
|
|
11559
|
+
}, z.core.$strict>>>;
|
|
11258
11560
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11259
11561
|
}, z.core.$strip>>;
|
|
11260
11562
|
}, z.core.$strip>;
|
|
@@ -11327,6 +11629,12 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11327
11629
|
hasOptions: z.ZodBoolean;
|
|
11328
11630
|
updatedAt: z.ZodString;
|
|
11329
11631
|
sample: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11632
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11633
|
+
currency: z.ZodString;
|
|
11634
|
+
salePrice: z.ZodNumber;
|
|
11635
|
+
originalPrice: z.ZodNullable<z.ZodNumber>;
|
|
11636
|
+
discountAmount: z.ZodNullable<z.ZodNumber>;
|
|
11637
|
+
}, z.core.$strip>>>;
|
|
11330
11638
|
description: z.ZodOptional<z.ZodString>;
|
|
11331
11639
|
descriptionJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11332
11640
|
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -11352,6 +11660,10 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11352
11660
|
valueIds: z.ZodArray<z.ZodString>;
|
|
11353
11661
|
name: z.ZodString;
|
|
11354
11662
|
additionalPrice: z.ZodNumber;
|
|
11663
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11664
|
+
currency: z.ZodString;
|
|
11665
|
+
additionalPrice: z.ZodNumber;
|
|
11666
|
+
}, z.core.$strip>>>;
|
|
11355
11667
|
stockQuantity: z.ZodNumber;
|
|
11356
11668
|
sku: z.ZodNullable<z.ZodString>;
|
|
11357
11669
|
barcode: z.ZodNullable<z.ZodString>;
|
|
@@ -11372,6 +11684,10 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11372
11684
|
name: z.ZodString;
|
|
11373
11685
|
sortOrder: z.ZodNumber;
|
|
11374
11686
|
additionalPrice: z.ZodNumber;
|
|
11687
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11688
|
+
currency: z.ZodString;
|
|
11689
|
+
additionalPrice: z.ZodNumber;
|
|
11690
|
+
}, z.core.$strip>>>;
|
|
11375
11691
|
usable: z.ZodBoolean;
|
|
11376
11692
|
}, z.core.$strip>>;
|
|
11377
11693
|
}, z.core.$strip>>>>;
|
|
@@ -11405,6 +11721,11 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11405
11721
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
11406
11722
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
11407
11723
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
11724
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11725
|
+
currency: z.ZodString;
|
|
11726
|
+
deliveryFee: z.ZodNumber;
|
|
11727
|
+
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
11728
|
+
}, z.core.$strip>>>;
|
|
11408
11729
|
}, z.core.$strip>;
|
|
11409
11730
|
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11410
11731
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -11425,6 +11746,27 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11425
11746
|
exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
11426
11747
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
11427
11748
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
11749
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
11750
|
+
KRW: "KRW";
|
|
11751
|
+
USD: "USD";
|
|
11752
|
+
EUR: "EUR";
|
|
11753
|
+
JPY: "JPY";
|
|
11754
|
+
GBP: "GBP";
|
|
11755
|
+
CNY: "CNY";
|
|
11756
|
+
HKD: "HKD";
|
|
11757
|
+
TWD: "TWD";
|
|
11758
|
+
SGD: "SGD";
|
|
11759
|
+
AUD: "AUD";
|
|
11760
|
+
CAD: "CAD";
|
|
11761
|
+
THB: "THB";
|
|
11762
|
+
MYR: "MYR";
|
|
11763
|
+
PHP: "PHP";
|
|
11764
|
+
NZD: "NZD";
|
|
11765
|
+
CHF: "CHF";
|
|
11766
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
11767
|
+
returnDeliveryFee: z.ZodNumber;
|
|
11768
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
11769
|
+
}, z.core.$strict>>>;
|
|
11428
11770
|
}, z.core.$strict>>;
|
|
11429
11771
|
discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11430
11772
|
productId: z.ZodString;
|
|
@@ -11437,6 +11779,24 @@ export declare const productSchema: z.ZodObject<{
|
|
|
11437
11779
|
startAt: z.ZodNullable<z.ZodString>;
|
|
11438
11780
|
endAt: z.ZodNullable<z.ZodString>;
|
|
11439
11781
|
}, z.core.$strip>>>;
|
|
11782
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11783
|
+
schemaId: z.ZodString;
|
|
11784
|
+
version: z.ZodNumber;
|
|
11785
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
11786
|
+
}, z.core.$strip>>>;
|
|
11787
|
+
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11788
|
+
subjects: z.ZodArray<z.ZodObject<{
|
|
11789
|
+
subject: z.ZodString;
|
|
11790
|
+
status: z.ZodString;
|
|
11791
|
+
exemption: z.ZodNullable<z.ZodString>;
|
|
11792
|
+
}, z.core.$strip>>;
|
|
11793
|
+
items: z.ZodArray<z.ZodObject<{
|
|
11794
|
+
kind: z.ZodString;
|
|
11795
|
+
agency: z.ZodNullable<z.ZodString>;
|
|
11796
|
+
number: z.ZodString;
|
|
11797
|
+
}, z.core.$strip>>;
|
|
11798
|
+
}, z.core.$strip>>>;
|
|
11799
|
+
infoSectionIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
11440
11800
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
11441
11801
|
}, z.core.$strip>;
|
|
11442
11802
|
export type Product = z.infer<typeof productSchema>;
|
|
@@ -11485,6 +11845,27 @@ export declare const productVariantRequestSchema: z.ZodObject<{
|
|
|
11485
11845
|
variantId: z.ZodOptional<z.ZodString>;
|
|
11486
11846
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11487
11847
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
11848
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11849
|
+
currency: z.ZodEnum<{
|
|
11850
|
+
KRW: "KRW";
|
|
11851
|
+
USD: "USD";
|
|
11852
|
+
EUR: "EUR";
|
|
11853
|
+
JPY: "JPY";
|
|
11854
|
+
GBP: "GBP";
|
|
11855
|
+
CNY: "CNY";
|
|
11856
|
+
HKD: "HKD";
|
|
11857
|
+
TWD: "TWD";
|
|
11858
|
+
SGD: "SGD";
|
|
11859
|
+
AUD: "AUD";
|
|
11860
|
+
CAD: "CAD";
|
|
11861
|
+
THB: "THB";
|
|
11862
|
+
MYR: "MYR";
|
|
11863
|
+
PHP: "PHP";
|
|
11864
|
+
NZD: "NZD";
|
|
11865
|
+
CHF: "CHF";
|
|
11866
|
+
}>;
|
|
11867
|
+
additionalPrice: z.ZodNumber;
|
|
11868
|
+
}, z.core.$strict>>>;
|
|
11488
11869
|
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
11489
11870
|
sku: z.ZodOptional<z.ZodString>;
|
|
11490
11871
|
barcode: z.ZodOptional<z.ZodString>;
|
|
@@ -11509,6 +11890,27 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
11509
11890
|
variantId: z.ZodOptional<z.ZodString>;
|
|
11510
11891
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11511
11892
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
11893
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11894
|
+
currency: z.ZodEnum<{
|
|
11895
|
+
KRW: "KRW";
|
|
11896
|
+
USD: "USD";
|
|
11897
|
+
EUR: "EUR";
|
|
11898
|
+
JPY: "JPY";
|
|
11899
|
+
GBP: "GBP";
|
|
11900
|
+
CNY: "CNY";
|
|
11901
|
+
HKD: "HKD";
|
|
11902
|
+
TWD: "TWD";
|
|
11903
|
+
SGD: "SGD";
|
|
11904
|
+
AUD: "AUD";
|
|
11905
|
+
CAD: "CAD";
|
|
11906
|
+
THB: "THB";
|
|
11907
|
+
MYR: "MYR";
|
|
11908
|
+
PHP: "PHP";
|
|
11909
|
+
NZD: "NZD";
|
|
11910
|
+
CHF: "CHF";
|
|
11911
|
+
}>;
|
|
11912
|
+
additionalPrice: z.ZodNumber;
|
|
11913
|
+
}, z.core.$strict>>>;
|
|
11512
11914
|
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
11513
11915
|
sku: z.ZodOptional<z.ZodString>;
|
|
11514
11916
|
barcode: z.ZodOptional<z.ZodString>;
|
|
@@ -11526,6 +11928,27 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
11526
11928
|
valueId: z.ZodOptional<z.ZodString>;
|
|
11527
11929
|
name: z.ZodString;
|
|
11528
11930
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
11931
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11932
|
+
currency: z.ZodEnum<{
|
|
11933
|
+
KRW: "KRW";
|
|
11934
|
+
USD: "USD";
|
|
11935
|
+
EUR: "EUR";
|
|
11936
|
+
JPY: "JPY";
|
|
11937
|
+
GBP: "GBP";
|
|
11938
|
+
CNY: "CNY";
|
|
11939
|
+
HKD: "HKD";
|
|
11940
|
+
TWD: "TWD";
|
|
11941
|
+
SGD: "SGD";
|
|
11942
|
+
AUD: "AUD";
|
|
11943
|
+
CAD: "CAD";
|
|
11944
|
+
THB: "THB";
|
|
11945
|
+
MYR: "MYR";
|
|
11946
|
+
PHP: "PHP";
|
|
11947
|
+
NZD: "NZD";
|
|
11948
|
+
CHF: "CHF";
|
|
11949
|
+
}>;
|
|
11950
|
+
additionalPrice: z.ZodNumber;
|
|
11951
|
+
}, z.core.$strict>>>;
|
|
11529
11952
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11530
11953
|
}, z.core.$strip>>;
|
|
11531
11954
|
}, z.core.$strip>>>;
|
|
@@ -11573,6 +11996,10 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
11573
11996
|
valueIds: z.ZodArray<z.ZodString>;
|
|
11574
11997
|
name: z.ZodString;
|
|
11575
11998
|
additionalPrice: z.ZodNumber;
|
|
11999
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12000
|
+
currency: z.ZodString;
|
|
12001
|
+
additionalPrice: z.ZodNumber;
|
|
12002
|
+
}, z.core.$strip>>>;
|
|
11576
12003
|
stockQuantity: z.ZodNumber;
|
|
11577
12004
|
sku: z.ZodNullable<z.ZodString>;
|
|
11578
12005
|
barcode: z.ZodNullable<z.ZodString>;
|
|
@@ -11593,6 +12020,10 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
11593
12020
|
name: z.ZodString;
|
|
11594
12021
|
sortOrder: z.ZodNumber;
|
|
11595
12022
|
additionalPrice: z.ZodNumber;
|
|
12023
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12024
|
+
currency: z.ZodString;
|
|
12025
|
+
additionalPrice: z.ZodNumber;
|
|
12026
|
+
}, z.core.$strip>>>;
|
|
11596
12027
|
usable: z.ZodBoolean;
|
|
11597
12028
|
}, z.core.$strip>>;
|
|
11598
12029
|
}, z.core.$strip>>>>;
|
|
@@ -11649,6 +12080,28 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
11649
12080
|
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11650
12081
|
shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11651
12082
|
returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12083
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12084
|
+
currency: z.ZodEnum<{
|
|
12085
|
+
KRW: "KRW";
|
|
12086
|
+
USD: "USD";
|
|
12087
|
+
EUR: "EUR";
|
|
12088
|
+
JPY: "JPY";
|
|
12089
|
+
GBP: "GBP";
|
|
12090
|
+
CNY: "CNY";
|
|
12091
|
+
HKD: "HKD";
|
|
12092
|
+
TWD: "TWD";
|
|
12093
|
+
SGD: "SGD";
|
|
12094
|
+
AUD: "AUD";
|
|
12095
|
+
CAD: "CAD";
|
|
12096
|
+
THB: "THB";
|
|
12097
|
+
MYR: "MYR";
|
|
12098
|
+
PHP: "PHP";
|
|
12099
|
+
NZD: "NZD";
|
|
12100
|
+
CHF: "CHF";
|
|
12101
|
+
}>;
|
|
12102
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
12103
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12104
|
+
}, z.core.$strict>>>;
|
|
11652
12105
|
}, z.core.$strict>>;
|
|
11653
12106
|
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11654
12107
|
CARRIER: "CARRIER";
|
|
@@ -11683,6 +12136,27 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
11683
12136
|
variantId: z.ZodOptional<z.ZodString>;
|
|
11684
12137
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11685
12138
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
12139
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12140
|
+
currency: z.ZodEnum<{
|
|
12141
|
+
KRW: "KRW";
|
|
12142
|
+
USD: "USD";
|
|
12143
|
+
EUR: "EUR";
|
|
12144
|
+
JPY: "JPY";
|
|
12145
|
+
GBP: "GBP";
|
|
12146
|
+
CNY: "CNY";
|
|
12147
|
+
HKD: "HKD";
|
|
12148
|
+
TWD: "TWD";
|
|
12149
|
+
SGD: "SGD";
|
|
12150
|
+
AUD: "AUD";
|
|
12151
|
+
CAD: "CAD";
|
|
12152
|
+
THB: "THB";
|
|
12153
|
+
MYR: "MYR";
|
|
12154
|
+
PHP: "PHP";
|
|
12155
|
+
NZD: "NZD";
|
|
12156
|
+
CHF: "CHF";
|
|
12157
|
+
}>;
|
|
12158
|
+
additionalPrice: z.ZodNumber;
|
|
12159
|
+
}, z.core.$strict>>>;
|
|
11686
12160
|
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
11687
12161
|
sku: z.ZodOptional<z.ZodString>;
|
|
11688
12162
|
barcode: z.ZodOptional<z.ZodString>;
|
|
@@ -11700,6 +12174,27 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
11700
12174
|
valueId: z.ZodOptional<z.ZodString>;
|
|
11701
12175
|
name: z.ZodString;
|
|
11702
12176
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
12177
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12178
|
+
currency: z.ZodEnum<{
|
|
12179
|
+
KRW: "KRW";
|
|
12180
|
+
USD: "USD";
|
|
12181
|
+
EUR: "EUR";
|
|
12182
|
+
JPY: "JPY";
|
|
12183
|
+
GBP: "GBP";
|
|
12184
|
+
CNY: "CNY";
|
|
12185
|
+
HKD: "HKD";
|
|
12186
|
+
TWD: "TWD";
|
|
12187
|
+
SGD: "SGD";
|
|
12188
|
+
AUD: "AUD";
|
|
12189
|
+
CAD: "CAD";
|
|
12190
|
+
THB: "THB";
|
|
12191
|
+
MYR: "MYR";
|
|
12192
|
+
PHP: "PHP";
|
|
12193
|
+
NZD: "NZD";
|
|
12194
|
+
CHF: "CHF";
|
|
12195
|
+
}>;
|
|
12196
|
+
additionalPrice: z.ZodNumber;
|
|
12197
|
+
}, z.core.$strict>>>;
|
|
11703
12198
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11704
12199
|
}, z.core.$strip>>;
|
|
11705
12200
|
}, z.core.$strip>>>;
|
|
@@ -11732,6 +12227,29 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
11732
12227
|
salePrice: z.ZodNumber;
|
|
11733
12228
|
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
11734
12229
|
pointEarnRateBp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12230
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12231
|
+
currency: z.ZodEnum<{
|
|
12232
|
+
KRW: "KRW";
|
|
12233
|
+
USD: "USD";
|
|
12234
|
+
EUR: "EUR";
|
|
12235
|
+
JPY: "JPY";
|
|
12236
|
+
GBP: "GBP";
|
|
12237
|
+
CNY: "CNY";
|
|
12238
|
+
HKD: "HKD";
|
|
12239
|
+
TWD: "TWD";
|
|
12240
|
+
SGD: "SGD";
|
|
12241
|
+
AUD: "AUD";
|
|
12242
|
+
CAD: "CAD";
|
|
12243
|
+
THB: "THB";
|
|
12244
|
+
MYR: "MYR";
|
|
12245
|
+
PHP: "PHP";
|
|
12246
|
+
NZD: "NZD";
|
|
12247
|
+
CHF: "CHF";
|
|
12248
|
+
}>;
|
|
12249
|
+
salePrice: z.ZodNumber;
|
|
12250
|
+
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12251
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12252
|
+
}, z.core.$strict>>>;
|
|
11735
12253
|
description: z.ZodOptional<z.ZodString>;
|
|
11736
12254
|
descriptionJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11737
12255
|
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
@@ -11745,7 +12263,50 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
11745
12263
|
exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
11746
12264
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
11747
12265
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
12266
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
12267
|
+
KRW: "KRW";
|
|
12268
|
+
USD: "USD";
|
|
12269
|
+
EUR: "EUR";
|
|
12270
|
+
JPY: "JPY";
|
|
12271
|
+
GBP: "GBP";
|
|
12272
|
+
CNY: "CNY";
|
|
12273
|
+
HKD: "HKD";
|
|
12274
|
+
TWD: "TWD";
|
|
12275
|
+
SGD: "SGD";
|
|
12276
|
+
AUD: "AUD";
|
|
12277
|
+
CAD: "CAD";
|
|
12278
|
+
THB: "THB";
|
|
12279
|
+
MYR: "MYR";
|
|
12280
|
+
PHP: "PHP";
|
|
12281
|
+
NZD: "NZD";
|
|
12282
|
+
CHF: "CHF";
|
|
12283
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
12284
|
+
returnDeliveryFee: z.ZodNumber;
|
|
12285
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
12286
|
+
}, z.core.$strict>>>;
|
|
11748
12287
|
}, z.core.$strict>>>;
|
|
12288
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12289
|
+
schemaId: z.ZodString;
|
|
12290
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
12291
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12292
|
+
}, z.core.$strip>>>;
|
|
12293
|
+
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12294
|
+
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12295
|
+
subject: z.ZodString;
|
|
12296
|
+
status: z.ZodEnum<{
|
|
12297
|
+
REQUIRED: "REQUIRED";
|
|
12298
|
+
NOT_REQUIRED: "NOT_REQUIRED";
|
|
12299
|
+
EXEMPT: "EXEMPT";
|
|
12300
|
+
}>;
|
|
12301
|
+
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12302
|
+
}, z.core.$strip>>>;
|
|
12303
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12304
|
+
kind: z.ZodString;
|
|
12305
|
+
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12306
|
+
number: z.ZodString;
|
|
12307
|
+
}, z.core.$strip>>>;
|
|
12308
|
+
}, z.core.$strip>>>;
|
|
12309
|
+
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11749
12310
|
}, z.core.$strict>;
|
|
11750
12311
|
export type ProductCreateRequest = z.infer<typeof productCreateRequestSchema>;
|
|
11751
12312
|
export type ProductCreateRequestInput = z.input<typeof productCreateRequestSchema>;
|
|
@@ -11763,6 +12324,28 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
11763
12324
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
11764
12325
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
11765
12326
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
12327
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12328
|
+
currency: z.ZodEnum<{
|
|
12329
|
+
KRW: "KRW";
|
|
12330
|
+
USD: "USD";
|
|
12331
|
+
EUR: "EUR";
|
|
12332
|
+
JPY: "JPY";
|
|
12333
|
+
GBP: "GBP";
|
|
12334
|
+
CNY: "CNY";
|
|
12335
|
+
HKD: "HKD";
|
|
12336
|
+
TWD: "TWD";
|
|
12337
|
+
SGD: "SGD";
|
|
12338
|
+
AUD: "AUD";
|
|
12339
|
+
CAD: "CAD";
|
|
12340
|
+
THB: "THB";
|
|
12341
|
+
MYR: "MYR";
|
|
12342
|
+
PHP: "PHP";
|
|
12343
|
+
NZD: "NZD";
|
|
12344
|
+
CHF: "CHF";
|
|
12345
|
+
}>;
|
|
12346
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
12347
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12348
|
+
}, z.core.$strict>>>;
|
|
11766
12349
|
}, z.core.$strict>;
|
|
11767
12350
|
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11768
12351
|
CARRIER: "CARRIER";
|
|
@@ -11797,6 +12380,27 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
11797
12380
|
variantId: z.ZodOptional<z.ZodString>;
|
|
11798
12381
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11799
12382
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
12383
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12384
|
+
currency: z.ZodEnum<{
|
|
12385
|
+
KRW: "KRW";
|
|
12386
|
+
USD: "USD";
|
|
12387
|
+
EUR: "EUR";
|
|
12388
|
+
JPY: "JPY";
|
|
12389
|
+
GBP: "GBP";
|
|
12390
|
+
CNY: "CNY";
|
|
12391
|
+
HKD: "HKD";
|
|
12392
|
+
TWD: "TWD";
|
|
12393
|
+
SGD: "SGD";
|
|
12394
|
+
AUD: "AUD";
|
|
12395
|
+
CAD: "CAD";
|
|
12396
|
+
THB: "THB";
|
|
12397
|
+
MYR: "MYR";
|
|
12398
|
+
PHP: "PHP";
|
|
12399
|
+
NZD: "NZD";
|
|
12400
|
+
CHF: "CHF";
|
|
12401
|
+
}>;
|
|
12402
|
+
additionalPrice: z.ZodNumber;
|
|
12403
|
+
}, z.core.$strict>>>;
|
|
11800
12404
|
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
11801
12405
|
sku: z.ZodOptional<z.ZodString>;
|
|
11802
12406
|
barcode: z.ZodOptional<z.ZodString>;
|
|
@@ -11814,6 +12418,27 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
11814
12418
|
valueId: z.ZodOptional<z.ZodString>;
|
|
11815
12419
|
name: z.ZodString;
|
|
11816
12420
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
12421
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12422
|
+
currency: z.ZodEnum<{
|
|
12423
|
+
KRW: "KRW";
|
|
12424
|
+
USD: "USD";
|
|
12425
|
+
EUR: "EUR";
|
|
12426
|
+
JPY: "JPY";
|
|
12427
|
+
GBP: "GBP";
|
|
12428
|
+
CNY: "CNY";
|
|
12429
|
+
HKD: "HKD";
|
|
12430
|
+
TWD: "TWD";
|
|
12431
|
+
SGD: "SGD";
|
|
12432
|
+
AUD: "AUD";
|
|
12433
|
+
CAD: "CAD";
|
|
12434
|
+
THB: "THB";
|
|
12435
|
+
MYR: "MYR";
|
|
12436
|
+
PHP: "PHP";
|
|
12437
|
+
NZD: "NZD";
|
|
12438
|
+
CHF: "CHF";
|
|
12439
|
+
}>;
|
|
12440
|
+
additionalPrice: z.ZodNumber;
|
|
12441
|
+
}, z.core.$strict>>>;
|
|
11817
12442
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11818
12443
|
}, z.core.$strip>>;
|
|
11819
12444
|
}, z.core.$strip>>>;
|
|
@@ -11846,6 +12471,29 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
11846
12471
|
salePrice: z.ZodNumber;
|
|
11847
12472
|
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
11848
12473
|
pointEarnRateBp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12474
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12475
|
+
currency: z.ZodEnum<{
|
|
12476
|
+
KRW: "KRW";
|
|
12477
|
+
USD: "USD";
|
|
12478
|
+
EUR: "EUR";
|
|
12479
|
+
JPY: "JPY";
|
|
12480
|
+
GBP: "GBP";
|
|
12481
|
+
CNY: "CNY";
|
|
12482
|
+
HKD: "HKD";
|
|
12483
|
+
TWD: "TWD";
|
|
12484
|
+
SGD: "SGD";
|
|
12485
|
+
AUD: "AUD";
|
|
12486
|
+
CAD: "CAD";
|
|
12487
|
+
THB: "THB";
|
|
12488
|
+
MYR: "MYR";
|
|
12489
|
+
PHP: "PHP";
|
|
12490
|
+
NZD: "NZD";
|
|
12491
|
+
CHF: "CHF";
|
|
12492
|
+
}>;
|
|
12493
|
+
salePrice: z.ZodNumber;
|
|
12494
|
+
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12495
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12496
|
+
}, z.core.$strict>>>;
|
|
11849
12497
|
description: z.ZodOptional<z.ZodString>;
|
|
11850
12498
|
descriptionJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11851
12499
|
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
@@ -11859,7 +12507,50 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
11859
12507
|
exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
11860
12508
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
11861
12509
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
12510
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
12511
|
+
KRW: "KRW";
|
|
12512
|
+
USD: "USD";
|
|
12513
|
+
EUR: "EUR";
|
|
12514
|
+
JPY: "JPY";
|
|
12515
|
+
GBP: "GBP";
|
|
12516
|
+
CNY: "CNY";
|
|
12517
|
+
HKD: "HKD";
|
|
12518
|
+
TWD: "TWD";
|
|
12519
|
+
SGD: "SGD";
|
|
12520
|
+
AUD: "AUD";
|
|
12521
|
+
CAD: "CAD";
|
|
12522
|
+
THB: "THB";
|
|
12523
|
+
MYR: "MYR";
|
|
12524
|
+
PHP: "PHP";
|
|
12525
|
+
NZD: "NZD";
|
|
12526
|
+
CHF: "CHF";
|
|
12527
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
12528
|
+
returnDeliveryFee: z.ZodNumber;
|
|
12529
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
12530
|
+
}, z.core.$strict>>>;
|
|
11862
12531
|
}, z.core.$strict>>>;
|
|
12532
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12533
|
+
schemaId: z.ZodString;
|
|
12534
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
12535
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12536
|
+
}, z.core.$strip>>>;
|
|
12537
|
+
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12538
|
+
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12539
|
+
subject: z.ZodString;
|
|
12540
|
+
status: z.ZodEnum<{
|
|
12541
|
+
REQUIRED: "REQUIRED";
|
|
12542
|
+
NOT_REQUIRED: "NOT_REQUIRED";
|
|
12543
|
+
EXEMPT: "EXEMPT";
|
|
12544
|
+
}>;
|
|
12545
|
+
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12546
|
+
}, z.core.$strip>>>;
|
|
12547
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12548
|
+
kind: z.ZodString;
|
|
12549
|
+
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12550
|
+
number: z.ZodString;
|
|
12551
|
+
}, z.core.$strip>>>;
|
|
12552
|
+
}, z.core.$strip>>>;
|
|
12553
|
+
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11863
12554
|
}, z.core.$strict>;
|
|
11864
12555
|
export type ProductReplaceRequest = z.infer<typeof productReplaceRequestSchema>;
|
|
11865
12556
|
export type ProductReplaceRequestInput = z.input<typeof productReplaceRequestSchema>;
|
|
@@ -11886,6 +12577,28 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
11886
12577
|
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
11887
12578
|
shippingAddressId: z.ZodNullable<z.ZodString>;
|
|
11888
12579
|
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
12580
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12581
|
+
currency: z.ZodEnum<{
|
|
12582
|
+
KRW: "KRW";
|
|
12583
|
+
USD: "USD";
|
|
12584
|
+
EUR: "EUR";
|
|
12585
|
+
JPY: "JPY";
|
|
12586
|
+
GBP: "GBP";
|
|
12587
|
+
CNY: "CNY";
|
|
12588
|
+
HKD: "HKD";
|
|
12589
|
+
TWD: "TWD";
|
|
12590
|
+
SGD: "SGD";
|
|
12591
|
+
AUD: "AUD";
|
|
12592
|
+
CAD: "CAD";
|
|
12593
|
+
THB: "THB";
|
|
12594
|
+
MYR: "MYR";
|
|
12595
|
+
PHP: "PHP";
|
|
12596
|
+
NZD: "NZD";
|
|
12597
|
+
CHF: "CHF";
|
|
12598
|
+
}>;
|
|
12599
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
12600
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12601
|
+
}, z.core.$strict>>>;
|
|
11889
12602
|
}, z.core.$strict>;
|
|
11890
12603
|
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11891
12604
|
CARRIER: "CARRIER";
|
|
@@ -11902,12 +12615,56 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
11902
12615
|
PROVIDED: "PROVIDED";
|
|
11903
12616
|
}>>>;
|
|
11904
12617
|
}, z.core.$strict>], "type">>;
|
|
12618
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12619
|
+
currency: z.ZodEnum<{
|
|
12620
|
+
KRW: "KRW";
|
|
12621
|
+
USD: "USD";
|
|
12622
|
+
EUR: "EUR";
|
|
12623
|
+
JPY: "JPY";
|
|
12624
|
+
GBP: "GBP";
|
|
12625
|
+
CNY: "CNY";
|
|
12626
|
+
HKD: "HKD";
|
|
12627
|
+
TWD: "TWD";
|
|
12628
|
+
SGD: "SGD";
|
|
12629
|
+
AUD: "AUD";
|
|
12630
|
+
CAD: "CAD";
|
|
12631
|
+
THB: "THB";
|
|
12632
|
+
MYR: "MYR";
|
|
12633
|
+
PHP: "PHP";
|
|
12634
|
+
NZD: "NZD";
|
|
12635
|
+
CHF: "CHF";
|
|
12636
|
+
}>;
|
|
12637
|
+
salePrice: z.ZodNumber;
|
|
12638
|
+
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12639
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12640
|
+
}, z.core.$strict>>>;
|
|
11905
12641
|
refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11906
12642
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
11907
12643
|
returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
11908
12644
|
exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
11909
12645
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
11910
12646
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
12647
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
12648
|
+
KRW: "KRW";
|
|
12649
|
+
USD: "USD";
|
|
12650
|
+
EUR: "EUR";
|
|
12651
|
+
JPY: "JPY";
|
|
12652
|
+
GBP: "GBP";
|
|
12653
|
+
CNY: "CNY";
|
|
12654
|
+
HKD: "HKD";
|
|
12655
|
+
TWD: "TWD";
|
|
12656
|
+
SGD: "SGD";
|
|
12657
|
+
AUD: "AUD";
|
|
12658
|
+
CAD: "CAD";
|
|
12659
|
+
THB: "THB";
|
|
12660
|
+
MYR: "MYR";
|
|
12661
|
+
PHP: "PHP";
|
|
12662
|
+
NZD: "NZD";
|
|
12663
|
+
CHF: "CHF";
|
|
12664
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
12665
|
+
returnDeliveryFee: z.ZodNumber;
|
|
12666
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
12667
|
+
}, z.core.$strict>>>;
|
|
11911
12668
|
}, z.core.$strict>>>;
|
|
11912
12669
|
pointEarnRateBp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11913
12670
|
}, z.core.$strict>;
|
|
@@ -11915,9 +12672,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
|
11915
12672
|
export declare const productSortSchema: z.ZodEnum<{
|
|
11916
12673
|
"createdAt.desc": "createdAt.desc";
|
|
11917
12674
|
"createdAt.asc": "createdAt.asc";
|
|
12675
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
11918
12676
|
"salePrice.asc": "salePrice.asc";
|
|
11919
12677
|
"salePrice.desc": "salePrice.desc";
|
|
11920
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
11921
12678
|
}>;
|
|
11922
12679
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
11923
12680
|
export interface ProductListParams extends PageParams {
|
|
@@ -11946,9 +12703,9 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
11946
12703
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
11947
12704
|
"createdAt.desc": "createdAt.desc";
|
|
11948
12705
|
"createdAt.asc": "createdAt.asc";
|
|
12706
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
11949
12707
|
"salePrice.asc": "salePrice.asc";
|
|
11950
12708
|
"salePrice.desc": "salePrice.desc";
|
|
11951
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
11952
12709
|
}>>;
|
|
11953
12710
|
}, z.core.$strip>;
|
|
11954
12711
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -11962,6 +12719,147 @@ export declare const discountRequestSchema: z.ZodObject<{
|
|
|
11962
12719
|
}, z.core.$strip>;
|
|
11963
12720
|
export type DiscountRequest = z.infer<typeof discountRequestSchema>;
|
|
11964
12721
|
//#endregion
|
|
12722
|
+
//#region src/schemas/product-info.d.ts
|
|
12723
|
+
/**
|
|
12724
|
+
* 상품정보제공 고시·인증 정보·안내 섹션 (이슈 #135).
|
|
12725
|
+
*
|
|
12726
|
+
* **코드 값은 문자열이다.** 품목군(`schemaId`)·인증 종류·대상·면제 사유는 플랫폼 코드 표(서버 DB)가 원천이고, 코드가 늘어도 이 SDK의
|
|
12727
|
+
* 계약이 깨지지 않게 zod enum으로 막지 않는다. 서버가 코드 표에 있는지 검사한다(없으면 400 `INVALID_INFO_CODE`).
|
|
12728
|
+
* enum으로 두는 값은 서버가 그 값으로 분기하는 인증 상태(`CERTIFICATION_STATUSES`)뿐이다.
|
|
12729
|
+
*/
|
|
12730
|
+
/**
|
|
12731
|
+
* 칸 값의 출처 — 셀러가 비운 칸을 서버가 채운다. 서버가 분기하는 값이라 형태가 정해져 있지만, 새 출처가 늘 수 있어 응답은 열린 객체다.
|
|
12732
|
+
* - `legal`: 법정 문구(`text`). 셀러가 적지 않는다
|
|
12733
|
+
* - `option`: 이름이 `names` 중 하나인 조합 옵션명의 값 목록
|
|
12734
|
+
* - `store`: 상점 필드(`field`, 예: `customerCenterPhone`)
|
|
12735
|
+
*/
|
|
12736
|
+
export declare const infoFieldSourceSchema: z.ZodObject<{
|
|
12737
|
+
type: z.ZodString;
|
|
12738
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12739
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12740
|
+
field: z.ZodOptional<z.ZodString>;
|
|
12741
|
+
}, z.core.$loose>;
|
|
12742
|
+
export type InfoFieldSource = z.infer<typeof infoFieldSourceSchema>;
|
|
12743
|
+
export declare const infoSchemaFieldSchema: z.ZodObject<{
|
|
12744
|
+
key: z.ZodString;
|
|
12745
|
+
label: z.ZodString;
|
|
12746
|
+
required: z.ZodBoolean;
|
|
12747
|
+
maxLength: z.ZodNumber;
|
|
12748
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12749
|
+
type: z.ZodString;
|
|
12750
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12751
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12752
|
+
field: z.ZodOptional<z.ZodString>;
|
|
12753
|
+
}, z.core.$loose>>>;
|
|
12754
|
+
}, z.core.$strip>;
|
|
12755
|
+
export type InfoSchemaField = z.infer<typeof infoSchemaFieldSchema>;
|
|
12756
|
+
/** 정형 정보 스키마 — 고시 품목군 하나(`kind: "notice"`). 칸 구성은 버전마다 고정이고 상품은 저장한 버전으로 표시된다 */
|
|
12757
|
+
export declare const infoSchemaSchema: z.ZodObject<{
|
|
12758
|
+
schemaId: z.ZodString;
|
|
12759
|
+
version: z.ZodNumber;
|
|
12760
|
+
kind: z.ZodString;
|
|
12761
|
+
name: z.ZodString;
|
|
12762
|
+
fallback: z.ZodString;
|
|
12763
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
12764
|
+
key: z.ZodString;
|
|
12765
|
+
label: z.ZodString;
|
|
12766
|
+
required: z.ZodBoolean;
|
|
12767
|
+
maxLength: z.ZodNumber;
|
|
12768
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12769
|
+
type: z.ZodString;
|
|
12770
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12771
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12772
|
+
field: z.ZodOptional<z.ZodString>;
|
|
12773
|
+
}, z.core.$loose>>>;
|
|
12774
|
+
}, z.core.$strip>>;
|
|
12775
|
+
}, z.core.$strip>;
|
|
12776
|
+
export type InfoSchema = z.infer<typeof infoSchemaSchema>;
|
|
12777
|
+
/** 플랫폼 코드 하나 — 코드 묶음(`setId`) 안에서 유일하다. `attrs`는 묶음마다 다른 부가 정보다 */
|
|
12778
|
+
export declare const platformCodeSchema: z.ZodObject<{
|
|
12779
|
+
code: z.ZodString;
|
|
12780
|
+
label: z.ZodString;
|
|
12781
|
+
attrs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12782
|
+
}, z.core.$strip>;
|
|
12783
|
+
export type PlatformCode = z.infer<typeof platformCodeSchema>;
|
|
12784
|
+
/** 코드 묶음 — `GET /v1/codes/{setId}` */
|
|
12785
|
+
export declare const PLATFORM_CODE_SETS: {
|
|
12786
|
+
readonly certificationKind: "certification.kind";
|
|
12787
|
+
readonly certificationSubject: "certification.subject";
|
|
12788
|
+
readonly certificationExemption: "certification.exemption";
|
|
12789
|
+
};
|
|
12790
|
+
export declare const productNoticeSchema: z.ZodObject<{
|
|
12791
|
+
schemaId: z.ZodString;
|
|
12792
|
+
version: z.ZodNumber;
|
|
12793
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
12794
|
+
}, z.core.$strip>;
|
|
12795
|
+
export type ProductNotice = z.infer<typeof productNoticeSchema>;
|
|
12796
|
+
export declare const MAX_NOTICE_VALUE_LENGTH = 1500;
|
|
12797
|
+
export declare const productNoticeRequestSchema: z.ZodObject<{
|
|
12798
|
+
schemaId: z.ZodString;
|
|
12799
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
12800
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12801
|
+
}, z.core.$strip>;
|
|
12802
|
+
export type ProductNoticeRequest = z.infer<typeof productNoticeRequestSchema>;
|
|
12803
|
+
/** 인증 대상 상태 — 서버가 분기한다(대상이면 인증서 필수, 면제면 사유 필수) */
|
|
12804
|
+
export declare const CERTIFICATION_STATUSES: readonly ["REQUIRED", "NOT_REQUIRED", "EXEMPT"];
|
|
12805
|
+
export type CertificationStatus = (typeof CERTIFICATION_STATUSES)[number];
|
|
12806
|
+
export declare const MAX_CERTIFICATION_ITEMS = 20;
|
|
12807
|
+
export declare const productCertificationsSchema: z.ZodObject<{
|
|
12808
|
+
subjects: z.ZodArray<z.ZodObject<{
|
|
12809
|
+
subject: z.ZodString;
|
|
12810
|
+
status: z.ZodString;
|
|
12811
|
+
exemption: z.ZodNullable<z.ZodString>;
|
|
12812
|
+
}, z.core.$strip>>;
|
|
12813
|
+
items: z.ZodArray<z.ZodObject<{
|
|
12814
|
+
kind: z.ZodString;
|
|
12815
|
+
agency: z.ZodNullable<z.ZodString>;
|
|
12816
|
+
number: z.ZodString;
|
|
12817
|
+
}, z.core.$strip>>;
|
|
12818
|
+
}, z.core.$strip>;
|
|
12819
|
+
export type ProductCertifications = z.infer<typeof productCertificationsSchema>;
|
|
12820
|
+
export declare const productCertificationsRequestSchema: z.ZodObject<{
|
|
12821
|
+
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12822
|
+
subject: z.ZodString;
|
|
12823
|
+
status: z.ZodEnum<{
|
|
12824
|
+
REQUIRED: "REQUIRED";
|
|
12825
|
+
NOT_REQUIRED: "NOT_REQUIRED";
|
|
12826
|
+
EXEMPT: "EXEMPT";
|
|
12827
|
+
}>;
|
|
12828
|
+
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12829
|
+
}, z.core.$strip>>>;
|
|
12830
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12831
|
+
kind: z.ZodString;
|
|
12832
|
+
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12833
|
+
number: z.ZodString;
|
|
12834
|
+
}, z.core.$strip>>>;
|
|
12835
|
+
}, z.core.$strip>;
|
|
12836
|
+
export type ProductCertificationsRequest = z.infer<typeof productCertificationsRequestSchema>;
|
|
12837
|
+
export type ProductCertificationsRequestInput = z.input<typeof productCertificationsRequestSchema>;
|
|
12838
|
+
/** 상품 하나에 연결할 수 있는 안내 섹션 수 */
|
|
12839
|
+
export declare const MAX_PRODUCT_INFO_SECTIONS = 10;
|
|
12840
|
+
export declare const MAX_INFO_SECTION_TITLE = 100;
|
|
12841
|
+
/**
|
|
12842
|
+
* 안내 섹션 — 사이즈 가이드·세탁 안내처럼 여러 상품이 같이 쓰는 글이다. **상품은 연결만 한다**(복사가 아니다).
|
|
12843
|
+
* 섹션을 고치면 연결된 모든 상품의 표시가 바뀐다.
|
|
12844
|
+
*/
|
|
12845
|
+
export declare const infoSectionSchema: z.ZodObject<{
|
|
12846
|
+
infoSectionId: z.ZodString;
|
|
12847
|
+
title: z.ZodString;
|
|
12848
|
+
body: z.ZodString;
|
|
12849
|
+
bodyJson: z.ZodNullable<z.ZodString>;
|
|
12850
|
+
assignedProductCount: z.ZodNumber;
|
|
12851
|
+
createdAt: z.ZodString;
|
|
12852
|
+
updatedAt: z.ZodString;
|
|
12853
|
+
}, z.core.$strip>;
|
|
12854
|
+
export type InfoSection = z.infer<typeof infoSectionSchema>;
|
|
12855
|
+
export declare const infoSectionRequestSchema: z.ZodObject<{
|
|
12856
|
+
title: z.ZodString;
|
|
12857
|
+
body: z.ZodDefault<z.ZodString>;
|
|
12858
|
+
bodyJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12859
|
+
}, z.core.$strip>;
|
|
12860
|
+
export type InfoSectionRequest = z.infer<typeof infoSectionRequestSchema>;
|
|
12861
|
+
export type InfoSectionRequestInput = z.input<typeof infoSectionRequestSchema>;
|
|
12862
|
+
//#endregion
|
|
11965
12863
|
//#region src/schemas/saved-option-set.d.ts
|
|
11966
12864
|
/**
|
|
11967
12865
|
* 저장 옵션 (이슈 #59) — 자주 쓰는 옵션 구성을 이름 붙여 두고 상품 등록에서 불러온다.
|
|
@@ -12341,12 +13239,54 @@ export declare const updateStoreRequestSchema: z.ZodObject<{
|
|
|
12341
13239
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
12342
13240
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
12343
13241
|
couponShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
13242
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
13243
|
+
KRW: "KRW";
|
|
13244
|
+
USD: "USD";
|
|
13245
|
+
EUR: "EUR";
|
|
13246
|
+
JPY: "JPY";
|
|
13247
|
+
GBP: "GBP";
|
|
13248
|
+
CNY: "CNY";
|
|
13249
|
+
HKD: "HKD";
|
|
13250
|
+
TWD: "TWD";
|
|
13251
|
+
SGD: "SGD";
|
|
13252
|
+
AUD: "AUD";
|
|
13253
|
+
CAD: "CAD";
|
|
13254
|
+
THB: "THB";
|
|
13255
|
+
MYR: "MYR";
|
|
13256
|
+
PHP: "PHP";
|
|
13257
|
+
NZD: "NZD";
|
|
13258
|
+
CHF: "CHF";
|
|
13259
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
13260
|
+
returnDeliveryFee: z.ZodNumber;
|
|
13261
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
13262
|
+
}, z.core.$strict>>>;
|
|
12344
13263
|
}, z.core.$strict>>;
|
|
12345
13264
|
shippingPolicy: z.ZodOptional<z.ZodObject<{
|
|
12346
13265
|
baseDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
12347
13266
|
freeThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12348
13267
|
jejuSurcharge: z.ZodOptional<z.ZodNumber>;
|
|
12349
13268
|
isolatedSurcharge: z.ZodOptional<z.ZodNumber>;
|
|
13269
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
13270
|
+
KRW: "KRW";
|
|
13271
|
+
USD: "USD";
|
|
13272
|
+
EUR: "EUR";
|
|
13273
|
+
JPY: "JPY";
|
|
13274
|
+
GBP: "GBP";
|
|
13275
|
+
CNY: "CNY";
|
|
13276
|
+
HKD: "HKD";
|
|
13277
|
+
TWD: "TWD";
|
|
13278
|
+
SGD: "SGD";
|
|
13279
|
+
AUD: "AUD";
|
|
13280
|
+
CAD: "CAD";
|
|
13281
|
+
THB: "THB";
|
|
13282
|
+
MYR: "MYR";
|
|
13283
|
+
PHP: "PHP";
|
|
13284
|
+
NZD: "NZD";
|
|
13285
|
+
CHF: "CHF";
|
|
13286
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
13287
|
+
baseDeliveryFee: z.ZodNumber;
|
|
13288
|
+
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
13289
|
+
}, z.core.$strict>>>;
|
|
12350
13290
|
}, z.core.$strict>>;
|
|
12351
13291
|
termsVersion: z.ZodOptional<z.ZodString>;
|
|
12352
13292
|
privacyVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -12380,12 +13320,54 @@ export declare const storeSchema: z.ZodObject<{
|
|
|
12380
13320
|
sellerFaultFreeShipping: z.ZodBoolean;
|
|
12381
13321
|
conditionalFreeShortfallCharge: z.ZodBoolean;
|
|
12382
13322
|
couponShortfallCharge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13323
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
13324
|
+
KRW: "KRW";
|
|
13325
|
+
USD: "USD";
|
|
13326
|
+
EUR: "EUR";
|
|
13327
|
+
JPY: "JPY";
|
|
13328
|
+
GBP: "GBP";
|
|
13329
|
+
CNY: "CNY";
|
|
13330
|
+
HKD: "HKD";
|
|
13331
|
+
TWD: "TWD";
|
|
13332
|
+
SGD: "SGD";
|
|
13333
|
+
AUD: "AUD";
|
|
13334
|
+
CAD: "CAD";
|
|
13335
|
+
THB: "THB";
|
|
13336
|
+
MYR: "MYR";
|
|
13337
|
+
PHP: "PHP";
|
|
13338
|
+
NZD: "NZD";
|
|
13339
|
+
CHF: "CHF";
|
|
13340
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
13341
|
+
returnDeliveryFee: z.ZodNumber;
|
|
13342
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
13343
|
+
}, z.core.$strict>>>;
|
|
12383
13344
|
}, z.core.$strip>;
|
|
12384
13345
|
shippingPolicy: z.ZodObject<{
|
|
12385
13346
|
baseDeliveryFee: z.ZodNumber;
|
|
12386
13347
|
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
12387
13348
|
jejuSurcharge: z.ZodNumber;
|
|
12388
13349
|
isolatedSurcharge: z.ZodNumber;
|
|
13350
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
13351
|
+
KRW: "KRW";
|
|
13352
|
+
USD: "USD";
|
|
13353
|
+
EUR: "EUR";
|
|
13354
|
+
JPY: "JPY";
|
|
13355
|
+
GBP: "GBP";
|
|
13356
|
+
CNY: "CNY";
|
|
13357
|
+
HKD: "HKD";
|
|
13358
|
+
TWD: "TWD";
|
|
13359
|
+
SGD: "SGD";
|
|
13360
|
+
AUD: "AUD";
|
|
13361
|
+
CAD: "CAD";
|
|
13362
|
+
THB: "THB";
|
|
13363
|
+
MYR: "MYR";
|
|
13364
|
+
PHP: "PHP";
|
|
13365
|
+
NZD: "NZD";
|
|
13366
|
+
CHF: "CHF";
|
|
13367
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
13368
|
+
baseDeliveryFee: z.ZodNumber;
|
|
13369
|
+
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
13370
|
+
}, z.core.$strict>>>;
|
|
12389
13371
|
}, z.core.$strip>;
|
|
12390
13372
|
termsVersion: z.ZodString;
|
|
12391
13373
|
privacyVersion: z.ZodString;
|
|
@@ -12563,7 +13545,6 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
12563
13545
|
* 공개 전환·슬러그 변경·호스팅 끄기는 승인(`APPROVAL_REQUIRED`)이다 — 구매자가 보는 화면을 바꾸는 쓰기다.
|
|
12564
13546
|
*
|
|
12565
13547
|
* 오류 코드:
|
|
12566
|
-
* - 403 `STOREFRONT_HOSTING_DISABLED` — 플랫폼 스위치가 꺼져 새 사이트를 만들 수 없다
|
|
12567
13548
|
* - 404 `STOREFRONT_SITE_NOT_FOUND` · `STOREFRONT_TEMPLATE_NOT_FOUND` · `STOREFRONT_VERSION_NOT_FOUND`
|
|
12568
13549
|
* - 409 `STOREFRONT_SITE_EXISTS` — 이미 사이트가 있다(상점당 1개)
|
|
12569
13550
|
* - 409 `STOREFRONT_SLUG_TAKEN` — 다른 사이트가 쓰거나 보류 중인 슬러그다
|
|
@@ -12580,7 +13561,7 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
12580
13561
|
* - 503 `STOREFRONT_PREVIEW_NOT_CONFIGURED` — 미리보기 서명 키가 설정되지 않았다
|
|
12581
13562
|
*
|
|
12582
13563
|
* 편집(M2b, `/v1/storefront/site/editing`·`files/**`·`checks/**`·`verify`·`builds/**`, 버전 만들기):
|
|
12583
|
-
* - 403 `STOREFRONT_EDITING_DISABLED` —
|
|
13564
|
+
* - 403 `STOREFRONT_EDITING_DISABLED` — 편집을 쓸 수 없어 셀러 템플릿으로 사이트를 만들 수 없다(사이트 만들기)
|
|
12584
13565
|
* - 503 `STOREFRONT_EDITING_NOT_CONFIGURED` — 편집 Sandbox가 설정되지 않았다
|
|
12585
13566
|
* - 409 `EDIT_CAPACITY_FULL` — 플랫폼 전체 동시 편집 상한에 걸렸다. `error.details.retryAfterSeconds` 뒤에 다시 한다
|
|
12586
13567
|
* - 409 `EDIT_SESSION_REQUIRED` — 편집 미리보기 링크: 편집 환경이 없다
|
|
@@ -12875,7 +13856,7 @@ export declare const storefrontSiteSchema: z.ZodObject<{
|
|
|
12875
13856
|
updatedAt: z.ZodString;
|
|
12876
13857
|
}, z.core.$strip>;
|
|
12877
13858
|
export type StorefrontSite = z.infer<typeof storefrontSiteSchema>;
|
|
12878
|
-
/** `GET /v1/storefront/site` —
|
|
13859
|
+
/** `GET /v1/storefront/site` — 호스팅 설정과 현재 사이트(없으면 null. 끈 사이트는 싣지 않는다) */
|
|
12879
13860
|
export declare const storefrontHostingSchema: z.ZodObject<{
|
|
12880
13861
|
enabled: z.ZodBoolean;
|
|
12881
13862
|
domain: z.ZodString;
|
|
@@ -14308,6 +15289,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14308
15289
|
weightGram: number | null;
|
|
14309
15290
|
sellerCode: string | null;
|
|
14310
15291
|
usable: boolean;
|
|
15292
|
+
prices?: {
|
|
15293
|
+
currency: string;
|
|
15294
|
+
additionalPrice: number;
|
|
15295
|
+
}[] | undefined;
|
|
14311
15296
|
attributes?: Record<string, string> | undefined;
|
|
14312
15297
|
hasOrders?: boolean | undefined;
|
|
14313
15298
|
}[];
|
|
@@ -14322,6 +15307,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14322
15307
|
sortOrder: number;
|
|
14323
15308
|
additionalPrice: number;
|
|
14324
15309
|
usable: boolean;
|
|
15310
|
+
prices?: {
|
|
15311
|
+
currency: string;
|
|
15312
|
+
additionalPrice: number;
|
|
15313
|
+
}[] | undefined;
|
|
14325
15314
|
}[];
|
|
14326
15315
|
}[];
|
|
14327
15316
|
customInputs: {
|
|
@@ -14345,6 +15334,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14345
15334
|
conditionalFreeAmount: number | null;
|
|
14346
15335
|
shippingAddressId: string | null;
|
|
14347
15336
|
returnAddressId: string | null;
|
|
15337
|
+
prices?: {
|
|
15338
|
+
currency: string;
|
|
15339
|
+
deliveryFee: number;
|
|
15340
|
+
conditionalFreeAmount: number | null;
|
|
15341
|
+
}[] | undefined;
|
|
14348
15342
|
};
|
|
14349
15343
|
methods?: string[] | undefined;
|
|
14350
15344
|
} | {
|
|
@@ -14358,8 +15352,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14358
15352
|
exchangeDeliveryFee?: number | undefined;
|
|
14359
15353
|
sellerFaultFreeShipping?: boolean | undefined;
|
|
14360
15354
|
conditionalFreeShortfallCharge?: boolean | undefined;
|
|
15355
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
15356
|
+
returnDeliveryFee: number;
|
|
15357
|
+
exchangeDeliveryFee: number;
|
|
15358
|
+
}>> | undefined;
|
|
14361
15359
|
} | null;
|
|
15360
|
+
infoSectionIds: string[];
|
|
14362
15361
|
thumbnailUrl?: string | undefined;
|
|
15362
|
+
prices?: {
|
|
15363
|
+
currency: string;
|
|
15364
|
+
salePrice: number;
|
|
15365
|
+
originalPrice: number | null;
|
|
15366
|
+
discountAmount: number | null;
|
|
15367
|
+
}[] | undefined;
|
|
14363
15368
|
description?: string | undefined;
|
|
14364
15369
|
descriptionJson?: string | null | undefined;
|
|
14365
15370
|
originalPrice?: number | null | undefined;
|
|
@@ -14379,6 +15384,23 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14379
15384
|
startAt: string | null;
|
|
14380
15385
|
endAt: string | null;
|
|
14381
15386
|
} | null | undefined;
|
|
15387
|
+
notice?: {
|
|
15388
|
+
schemaId: string;
|
|
15389
|
+
version: number;
|
|
15390
|
+
values: Record<string, string>;
|
|
15391
|
+
} | null | undefined;
|
|
15392
|
+
certifications?: {
|
|
15393
|
+
subjects: {
|
|
15394
|
+
subject: string;
|
|
15395
|
+
status: string;
|
|
15396
|
+
exemption: string | null;
|
|
15397
|
+
}[];
|
|
15398
|
+
items: {
|
|
15399
|
+
kind: string;
|
|
15400
|
+
agency: string | null;
|
|
15401
|
+
number: string;
|
|
15402
|
+
}[];
|
|
15403
|
+
} | null | undefined;
|
|
14382
15404
|
createdAt?: string | undefined;
|
|
14383
15405
|
}>;
|
|
14384
15406
|
create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
|
|
@@ -14416,6 +15438,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14416
15438
|
weightGram: number | null;
|
|
14417
15439
|
sellerCode: string | null;
|
|
14418
15440
|
usable: boolean;
|
|
15441
|
+
prices?: {
|
|
15442
|
+
currency: string;
|
|
15443
|
+
additionalPrice: number;
|
|
15444
|
+
}[] | undefined;
|
|
14419
15445
|
attributes?: Record<string, string> | undefined;
|
|
14420
15446
|
hasOrders?: boolean | undefined;
|
|
14421
15447
|
}[];
|
|
@@ -14430,6 +15456,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14430
15456
|
sortOrder: number;
|
|
14431
15457
|
additionalPrice: number;
|
|
14432
15458
|
usable: boolean;
|
|
15459
|
+
prices?: {
|
|
15460
|
+
currency: string;
|
|
15461
|
+
additionalPrice: number;
|
|
15462
|
+
}[] | undefined;
|
|
14433
15463
|
}[];
|
|
14434
15464
|
}[];
|
|
14435
15465
|
customInputs: {
|
|
@@ -14453,6 +15483,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14453
15483
|
conditionalFreeAmount: number | null;
|
|
14454
15484
|
shippingAddressId: string | null;
|
|
14455
15485
|
returnAddressId: string | null;
|
|
15486
|
+
prices?: {
|
|
15487
|
+
currency: string;
|
|
15488
|
+
deliveryFee: number;
|
|
15489
|
+
conditionalFreeAmount: number | null;
|
|
15490
|
+
}[] | undefined;
|
|
14456
15491
|
};
|
|
14457
15492
|
methods?: string[] | undefined;
|
|
14458
15493
|
} | {
|
|
@@ -14466,8 +15501,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14466
15501
|
exchangeDeliveryFee?: number | undefined;
|
|
14467
15502
|
sellerFaultFreeShipping?: boolean | undefined;
|
|
14468
15503
|
conditionalFreeShortfallCharge?: boolean | undefined;
|
|
15504
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
15505
|
+
returnDeliveryFee: number;
|
|
15506
|
+
exchangeDeliveryFee: number;
|
|
15507
|
+
}>> | undefined;
|
|
14469
15508
|
} | null;
|
|
15509
|
+
infoSectionIds: string[];
|
|
14470
15510
|
thumbnailUrl?: string | undefined;
|
|
15511
|
+
prices?: {
|
|
15512
|
+
currency: string;
|
|
15513
|
+
salePrice: number;
|
|
15514
|
+
originalPrice: number | null;
|
|
15515
|
+
discountAmount: number | null;
|
|
15516
|
+
}[] | undefined;
|
|
14471
15517
|
description?: string | undefined;
|
|
14472
15518
|
descriptionJson?: string | null | undefined;
|
|
14473
15519
|
originalPrice?: number | null | undefined;
|
|
@@ -14487,6 +15533,23 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14487
15533
|
startAt: string | null;
|
|
14488
15534
|
endAt: string | null;
|
|
14489
15535
|
} | null | undefined;
|
|
15536
|
+
notice?: {
|
|
15537
|
+
schemaId: string;
|
|
15538
|
+
version: number;
|
|
15539
|
+
values: Record<string, string>;
|
|
15540
|
+
} | null | undefined;
|
|
15541
|
+
certifications?: {
|
|
15542
|
+
subjects: {
|
|
15543
|
+
subject: string;
|
|
15544
|
+
status: string;
|
|
15545
|
+
exemption: string | null;
|
|
15546
|
+
}[];
|
|
15547
|
+
items: {
|
|
15548
|
+
kind: string;
|
|
15549
|
+
agency: string | null;
|
|
15550
|
+
number: string;
|
|
15551
|
+
}[];
|
|
15552
|
+
} | null | undefined;
|
|
14490
15553
|
createdAt?: string | undefined;
|
|
14491
15554
|
}>;
|
|
14492
15555
|
update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
|
|
@@ -14524,6 +15587,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14524
15587
|
weightGram: number | null;
|
|
14525
15588
|
sellerCode: string | null;
|
|
14526
15589
|
usable: boolean;
|
|
15590
|
+
prices?: {
|
|
15591
|
+
currency: string;
|
|
15592
|
+
additionalPrice: number;
|
|
15593
|
+
}[] | undefined;
|
|
14527
15594
|
attributes?: Record<string, string> | undefined;
|
|
14528
15595
|
hasOrders?: boolean | undefined;
|
|
14529
15596
|
}[];
|
|
@@ -14538,6 +15605,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14538
15605
|
sortOrder: number;
|
|
14539
15606
|
additionalPrice: number;
|
|
14540
15607
|
usable: boolean;
|
|
15608
|
+
prices?: {
|
|
15609
|
+
currency: string;
|
|
15610
|
+
additionalPrice: number;
|
|
15611
|
+
}[] | undefined;
|
|
14541
15612
|
}[];
|
|
14542
15613
|
}[];
|
|
14543
15614
|
customInputs: {
|
|
@@ -14561,6 +15632,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14561
15632
|
conditionalFreeAmount: number | null;
|
|
14562
15633
|
shippingAddressId: string | null;
|
|
14563
15634
|
returnAddressId: string | null;
|
|
15635
|
+
prices?: {
|
|
15636
|
+
currency: string;
|
|
15637
|
+
deliveryFee: number;
|
|
15638
|
+
conditionalFreeAmount: number | null;
|
|
15639
|
+
}[] | undefined;
|
|
14564
15640
|
};
|
|
14565
15641
|
methods?: string[] | undefined;
|
|
14566
15642
|
} | {
|
|
@@ -14574,8 +15650,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14574
15650
|
exchangeDeliveryFee?: number | undefined;
|
|
14575
15651
|
sellerFaultFreeShipping?: boolean | undefined;
|
|
14576
15652
|
conditionalFreeShortfallCharge?: boolean | undefined;
|
|
15653
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
15654
|
+
returnDeliveryFee: number;
|
|
15655
|
+
exchangeDeliveryFee: number;
|
|
15656
|
+
}>> | undefined;
|
|
14577
15657
|
} | null;
|
|
15658
|
+
infoSectionIds: string[];
|
|
14578
15659
|
thumbnailUrl?: string | undefined;
|
|
15660
|
+
prices?: {
|
|
15661
|
+
currency: string;
|
|
15662
|
+
salePrice: number;
|
|
15663
|
+
originalPrice: number | null;
|
|
15664
|
+
discountAmount: number | null;
|
|
15665
|
+
}[] | undefined;
|
|
14579
15666
|
description?: string | undefined;
|
|
14580
15667
|
descriptionJson?: string | null | undefined;
|
|
14581
15668
|
originalPrice?: number | null | undefined;
|
|
@@ -14595,6 +15682,23 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14595
15682
|
startAt: string | null;
|
|
14596
15683
|
endAt: string | null;
|
|
14597
15684
|
} | null | undefined;
|
|
15685
|
+
notice?: {
|
|
15686
|
+
schemaId: string;
|
|
15687
|
+
version: number;
|
|
15688
|
+
values: Record<string, string>;
|
|
15689
|
+
} | null | undefined;
|
|
15690
|
+
certifications?: {
|
|
15691
|
+
subjects: {
|
|
15692
|
+
subject: string;
|
|
15693
|
+
status: string;
|
|
15694
|
+
exemption: string | null;
|
|
15695
|
+
}[];
|
|
15696
|
+
items: {
|
|
15697
|
+
kind: string;
|
|
15698
|
+
agency: string | null;
|
|
15699
|
+
number: string;
|
|
15700
|
+
}[];
|
|
15701
|
+
} | null | undefined;
|
|
14598
15702
|
createdAt?: string | undefined;
|
|
14599
15703
|
}>;
|
|
14600
15704
|
patch: (productId: string, body: ProductPatchRequest) => Promise<void>;
|
|
@@ -14634,6 +15738,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14634
15738
|
weightGram: number | null;
|
|
14635
15739
|
sellerCode: string | null;
|
|
14636
15740
|
usable: boolean;
|
|
15741
|
+
prices?: {
|
|
15742
|
+
currency: string;
|
|
15743
|
+
additionalPrice: number;
|
|
15744
|
+
}[] | undefined;
|
|
14637
15745
|
attributes?: Record<string, string> | undefined;
|
|
14638
15746
|
hasOrders?: boolean | undefined;
|
|
14639
15747
|
}[];
|
|
@@ -14648,6 +15756,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14648
15756
|
sortOrder: number;
|
|
14649
15757
|
additionalPrice: number;
|
|
14650
15758
|
usable: boolean;
|
|
15759
|
+
prices?: {
|
|
15760
|
+
currency: string;
|
|
15761
|
+
additionalPrice: number;
|
|
15762
|
+
}[] | undefined;
|
|
14651
15763
|
}[];
|
|
14652
15764
|
}[];
|
|
14653
15765
|
customInputs: {
|
|
@@ -14692,6 +15804,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14692
15804
|
weightGram: number | null;
|
|
14693
15805
|
sellerCode: string | null;
|
|
14694
15806
|
usable: boolean;
|
|
15807
|
+
prices?: {
|
|
15808
|
+
currency: string;
|
|
15809
|
+
additionalPrice: number;
|
|
15810
|
+
}[] | undefined;
|
|
14695
15811
|
attributes?: Record<string, string> | undefined;
|
|
14696
15812
|
hasOrders?: boolean | undefined;
|
|
14697
15813
|
}[];
|
|
@@ -14706,6 +15822,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14706
15822
|
sortOrder: number;
|
|
14707
15823
|
additionalPrice: number;
|
|
14708
15824
|
usable: boolean;
|
|
15825
|
+
prices?: {
|
|
15826
|
+
currency: string;
|
|
15827
|
+
additionalPrice: number;
|
|
15828
|
+
}[] | undefined;
|
|
14709
15829
|
}[];
|
|
14710
15830
|
}[];
|
|
14711
15831
|
customInputs: {
|
|
@@ -14905,6 +16025,84 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
14905
16025
|
additionalPriceDropped: boolean;
|
|
14906
16026
|
}>;
|
|
14907
16027
|
};
|
|
16028
|
+
/**
|
|
16029
|
+
* 상품정보제공 고시 품목군(이슈 #135) — 플랫폼 코드 표. 현재 버전만 싣는다. 권한은 상품 조회(`product:r`)다
|
|
16030
|
+
*/
|
|
16031
|
+
infoSchemas: {
|
|
16032
|
+
list: (params?: {
|
|
16033
|
+
kind?: string;
|
|
16034
|
+
}) => Promise<{
|
|
16035
|
+
schemaId: string;
|
|
16036
|
+
version: number;
|
|
16037
|
+
kind: string;
|
|
16038
|
+
name: string;
|
|
16039
|
+
fallback: string;
|
|
16040
|
+
fields: {
|
|
16041
|
+
key: string;
|
|
16042
|
+
label: string;
|
|
16043
|
+
required: boolean;
|
|
16044
|
+
maxLength: number;
|
|
16045
|
+
source?: {
|
|
16046
|
+
[x: string]: unknown;
|
|
16047
|
+
type: string;
|
|
16048
|
+
text?: string | undefined;
|
|
16049
|
+
names?: string[] | undefined;
|
|
16050
|
+
field?: string | undefined;
|
|
16051
|
+
} | null | undefined;
|
|
16052
|
+
}[];
|
|
16053
|
+
}[]>;
|
|
16054
|
+
};
|
|
16055
|
+
/** 플랫폼 코드 묶음(이슈 #135) — 인증 종류·대상·면제 사유(`PLATFORM_CODE_SETS`). 권한은 상품 조회(`product:r`)다 */
|
|
16056
|
+
codes: {
|
|
16057
|
+
list: (setId: string) => Promise<{
|
|
16058
|
+
code: string;
|
|
16059
|
+
label: string;
|
|
16060
|
+
attrs: Record<string, unknown>;
|
|
16061
|
+
}[]>;
|
|
16062
|
+
};
|
|
16063
|
+
/**
|
|
16064
|
+
* 안내 섹션(이슈 #135) — 여러 상품이 같이 쓰는 글. 상품은 `infoSectionIds`로 연결만 하고, 섹션을 고치면 연결 상품 전체가 바뀐다.
|
|
16065
|
+
* 지우면 연결도 풀린다. 권한은 상품과 같다(`product:r`·`product:rw`)
|
|
16066
|
+
*/
|
|
16067
|
+
infoSections: {
|
|
16068
|
+
list: () => Promise<{
|
|
16069
|
+
infoSectionId: string;
|
|
16070
|
+
title: string;
|
|
16071
|
+
body: string;
|
|
16072
|
+
bodyJson: string | null;
|
|
16073
|
+
assignedProductCount: number;
|
|
16074
|
+
createdAt: string;
|
|
16075
|
+
updatedAt: string;
|
|
16076
|
+
}[]>;
|
|
16077
|
+
get: (infoSectionId: string) => Promise<{
|
|
16078
|
+
infoSectionId: string;
|
|
16079
|
+
title: string;
|
|
16080
|
+
body: string;
|
|
16081
|
+
bodyJson: string | null;
|
|
16082
|
+
assignedProductCount: number;
|
|
16083
|
+
createdAt: string;
|
|
16084
|
+
updatedAt: string;
|
|
16085
|
+
}>;
|
|
16086
|
+
create: (body: InfoSectionRequestInput) => Promise<{
|
|
16087
|
+
infoSectionId: string;
|
|
16088
|
+
title: string;
|
|
16089
|
+
body: string;
|
|
16090
|
+
bodyJson: string | null;
|
|
16091
|
+
assignedProductCount: number;
|
|
16092
|
+
createdAt: string;
|
|
16093
|
+
updatedAt: string;
|
|
16094
|
+
}>;
|
|
16095
|
+
update: (infoSectionId: string, body: InfoSectionRequestInput) => Promise<{
|
|
16096
|
+
infoSectionId: string;
|
|
16097
|
+
title: string;
|
|
16098
|
+
body: string;
|
|
16099
|
+
bodyJson: string | null;
|
|
16100
|
+
assignedProductCount: number;
|
|
16101
|
+
createdAt: string;
|
|
16102
|
+
updatedAt: string;
|
|
16103
|
+
}>;
|
|
16104
|
+
remove: (infoSectionId: string) => Promise<void>;
|
|
16105
|
+
};
|
|
14908
16106
|
/**
|
|
14909
16107
|
* 컬렉션 (이슈 #83) — 상품을 어디에 보여 줄지 정하는 묶음(다대다). 권한은 카테고리와 같다(`category:r`·`category:rw`).
|
|
14910
16108
|
* 쓰기마다 `revision`이 오른다. 수정 본문에 읽은 `revision`을 주면 그 사이 다른 수정이 있을 때 409 `COLLECTION_CHANGED`다.
|
|
@@ -15394,6 +16592,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15394
16592
|
orderedAt: string;
|
|
15395
16593
|
testPayment: boolean;
|
|
15396
16594
|
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
16595
|
+
currency?: string | undefined;
|
|
15397
16596
|
}[];
|
|
15398
16597
|
}>;
|
|
15399
16598
|
get: (orderId: string) => Promise<{
|
|
@@ -15411,6 +16610,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15411
16610
|
phone: string;
|
|
15412
16611
|
zipCode: string;
|
|
15413
16612
|
address1: string;
|
|
16613
|
+
countryCode?: string | undefined;
|
|
16614
|
+
region?: string | null | undefined;
|
|
16615
|
+
city?: string | null | undefined;
|
|
15414
16616
|
address2?: string | null | undefined;
|
|
15415
16617
|
deliveryMemo?: string | null | undefined;
|
|
15416
16618
|
entranceCode?: string | null | undefined;
|
|
@@ -15442,7 +16644,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15442
16644
|
identityNumberMasked: string;
|
|
15443
16645
|
amount: number;
|
|
15444
16646
|
issuedAmount: number;
|
|
15445
|
-
provider:
|
|
16647
|
+
provider: string | null;
|
|
15446
16648
|
issueNumber: string | null;
|
|
15447
16649
|
receiptUrl: string | null;
|
|
15448
16650
|
issuedAt: string | null;
|
|
@@ -15537,6 +16739,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15537
16739
|
} | undefined;
|
|
15538
16740
|
}[];
|
|
15539
16741
|
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
16742
|
+
currency?: string | undefined;
|
|
15540
16743
|
}>;
|
|
15541
16744
|
/**
|
|
15542
16745
|
* `POST /v1/orders/{orderId}/cash-receipt/reissue` — 실패했거나 재시도 대기 중인 현금영수증을 지금 다시 발급·취소한다.
|
|
@@ -15550,7 +16753,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15550
16753
|
identityNumberMasked: string;
|
|
15551
16754
|
amount: number;
|
|
15552
16755
|
issuedAmount: number;
|
|
15553
|
-
provider:
|
|
16756
|
+
provider: string | null;
|
|
15554
16757
|
issueNumber: string | null;
|
|
15555
16758
|
receiptUrl: string | null;
|
|
15556
16759
|
issuedAt: string | null;
|
|
@@ -16987,7 +18190,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
16987
18190
|
}>;
|
|
16988
18191
|
/**
|
|
16989
18192
|
* `POST /v1/customers/{customerId}/points/adjustments` (201) — 스코프 `promotion:rw`. 양수 지급, 음수 차감. `idempotencyKey`가 필수다.
|
|
16990
|
-
* 에러: 409 `POINT_BALANCE_INSUFFICIENT
|
|
18193
|
+
* 에러: 409 `POINT_BALANCE_INSUFFICIENT`, 400 `POINT_EXPIRY_REQUIRED`. 에이전트 요청은 승인 대상이다
|
|
16991
18194
|
*/
|
|
16992
18195
|
adjustPoints: (customerId: string, body: PointAdjustmentRequest, idempotencyKey: string) => Promise<{
|
|
16993
18196
|
entry: {
|
|
@@ -17073,6 +18276,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17073
18276
|
zipCode: string;
|
|
17074
18277
|
address1: string;
|
|
17075
18278
|
address2: string | null;
|
|
18279
|
+
countryCode: string;
|
|
18280
|
+
city: string | null;
|
|
18281
|
+
region: string | null;
|
|
17076
18282
|
}[];
|
|
17077
18283
|
stats: {
|
|
17078
18284
|
orderCount: number;
|
|
@@ -17185,6 +18391,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17185
18391
|
issuedCount: number;
|
|
17186
18392
|
reservedCount: number;
|
|
17187
18393
|
usedCount: number;
|
|
18394
|
+
currency: string;
|
|
17188
18395
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17189
18396
|
locked: boolean;
|
|
17190
18397
|
lockedAt: string | null;
|
|
@@ -17226,6 +18433,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17226
18433
|
issuedCount: number;
|
|
17227
18434
|
reservedCount: number;
|
|
17228
18435
|
usedCount: number;
|
|
18436
|
+
currency: string;
|
|
17229
18437
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17230
18438
|
locked: boolean;
|
|
17231
18439
|
lockedAt: string | null;
|
|
@@ -17266,6 +18474,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17266
18474
|
issuedCount: number;
|
|
17267
18475
|
reservedCount: number;
|
|
17268
18476
|
usedCount: number;
|
|
18477
|
+
currency: string;
|
|
17269
18478
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17270
18479
|
locked: boolean;
|
|
17271
18480
|
lockedAt: string | null;
|
|
@@ -17306,6 +18515,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17306
18515
|
issuedCount: number;
|
|
17307
18516
|
reservedCount: number;
|
|
17308
18517
|
usedCount: number;
|
|
18518
|
+
currency: string;
|
|
17309
18519
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17310
18520
|
locked: boolean;
|
|
17311
18521
|
lockedAt: string | null;
|
|
@@ -17346,6 +18556,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17346
18556
|
issuedCount: number;
|
|
17347
18557
|
reservedCount: number;
|
|
17348
18558
|
usedCount: number;
|
|
18559
|
+
currency: string;
|
|
17349
18560
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17350
18561
|
locked: boolean;
|
|
17351
18562
|
lockedAt: string | null;
|
|
@@ -17386,6 +18597,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17386
18597
|
issuedCount: number;
|
|
17387
18598
|
reservedCount: number;
|
|
17388
18599
|
usedCount: number;
|
|
18600
|
+
currency: string;
|
|
17389
18601
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17390
18602
|
locked: boolean;
|
|
17391
18603
|
lockedAt: string | null;
|
|
@@ -17426,6 +18638,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17426
18638
|
issuedCount: number;
|
|
17427
18639
|
reservedCount: number;
|
|
17428
18640
|
usedCount: number;
|
|
18641
|
+
currency: string;
|
|
17429
18642
|
status: "ACTIVE" | "PAUSED" | "ENDED";
|
|
17430
18643
|
locked: boolean;
|
|
17431
18644
|
lockedAt: string | null;
|
|
@@ -17623,7 +18836,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17623
18836
|
timezone: "Asia/Seoul";
|
|
17624
18837
|
currency: "KRW";
|
|
17625
18838
|
groupBy: "DAY" | "PROVIDER" | "METHOD" | "PROVIDER_METHOD";
|
|
17626
|
-
provider:
|
|
18839
|
+
provider: string | null;
|
|
17627
18840
|
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
|
|
17628
18841
|
includeTest: boolean;
|
|
17629
18842
|
summary: {
|
|
@@ -17642,9 +18855,31 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17642
18855
|
netAmount: number;
|
|
17643
18856
|
pgFeeAmount: number | null;
|
|
17644
18857
|
date: string | null;
|
|
17645
|
-
provider:
|
|
18858
|
+
provider: string | null;
|
|
17646
18859
|
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
|
|
17647
18860
|
}[];
|
|
18861
|
+
byCurrency: {
|
|
18862
|
+
currency: string;
|
|
18863
|
+
summary: {
|
|
18864
|
+
paymentCount: number;
|
|
18865
|
+
paymentAmount: number;
|
|
18866
|
+
refundCount: number;
|
|
18867
|
+
refundAmount: number;
|
|
18868
|
+
netAmount: number;
|
|
18869
|
+
pgFeeAmount: number | null;
|
|
18870
|
+
};
|
|
18871
|
+
rows: {
|
|
18872
|
+
paymentCount: number;
|
|
18873
|
+
paymentAmount: number;
|
|
18874
|
+
refundCount: number;
|
|
18875
|
+
refundAmount: number;
|
|
18876
|
+
netAmount: number;
|
|
18877
|
+
pgFeeAmount: number | null;
|
|
18878
|
+
date: string | null;
|
|
18879
|
+
provider: string | null;
|
|
18880
|
+
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
|
|
18881
|
+
}[];
|
|
18882
|
+
}[];
|
|
17648
18883
|
}>;
|
|
17649
18884
|
};
|
|
17650
18885
|
/**
|
|
@@ -17694,6 +18929,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17694
18929
|
date: string;
|
|
17695
18930
|
}[];
|
|
17696
18931
|
excludedBotSessions: number;
|
|
18932
|
+
byCurrency: {
|
|
18933
|
+
currency: string;
|
|
18934
|
+
purchases: number;
|
|
18935
|
+
revenue: number;
|
|
18936
|
+
}[];
|
|
17697
18937
|
from: string;
|
|
17698
18938
|
to: string;
|
|
17699
18939
|
timezone: "Asia/Seoul";
|
|
@@ -17867,7 +19107,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17867
19107
|
amount: number;
|
|
17868
19108
|
refundedAmount: number;
|
|
17869
19109
|
heldRefundAmount: number;
|
|
17870
|
-
provider:
|
|
19110
|
+
provider: string | null;
|
|
17871
19111
|
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
|
|
17872
19112
|
easyPayProvider: string | null;
|
|
17873
19113
|
environment: "TEST" | "LIVE" | null;
|
|
@@ -17893,7 +19133,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17893
19133
|
amount: number;
|
|
17894
19134
|
refundedAmount: number;
|
|
17895
19135
|
heldRefundAmount: number;
|
|
17896
|
-
provider:
|
|
19136
|
+
provider: string | null;
|
|
17897
19137
|
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
|
|
17898
19138
|
easyPayProvider: string | null;
|
|
17899
19139
|
environment: "TEST" | "LIVE" | null;
|
|
@@ -17913,7 +19153,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17913
19153
|
attemptId: string;
|
|
17914
19154
|
pgOrderId: string | null;
|
|
17915
19155
|
sequence: number;
|
|
17916
|
-
provider:
|
|
19156
|
+
provider: string;
|
|
17917
19157
|
status: string;
|
|
17918
19158
|
method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY";
|
|
17919
19159
|
easyPayProvider: string | null;
|
|
@@ -17946,7 +19186,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17946
19186
|
identityNumberMasked: string;
|
|
17947
19187
|
amount: number;
|
|
17948
19188
|
issuedAmount: number;
|
|
17949
|
-
provider:
|
|
19189
|
+
provider: string | null;
|
|
17950
19190
|
issueNumber: string | null;
|
|
17951
19191
|
receiptUrl: string | null;
|
|
17952
19192
|
issuedAt: string | null;
|
|
@@ -17982,7 +19222,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17982
19222
|
get: () => Promise<{
|
|
17983
19223
|
checkoutOrigins: string[];
|
|
17984
19224
|
providers: {
|
|
17985
|
-
provider:
|
|
19225
|
+
provider: string;
|
|
17986
19226
|
displayName: string;
|
|
17987
19227
|
connected: boolean;
|
|
17988
19228
|
enabled: boolean;
|
|
@@ -18002,6 +19242,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18002
19242
|
} | {
|
|
18003
19243
|
clientId: string;
|
|
18004
19244
|
chainId: string;
|
|
19245
|
+
} | {
|
|
19246
|
+
clientId: string;
|
|
19247
|
+
currencies: string[];
|
|
19248
|
+
webhookId: string | null;
|
|
18005
19249
|
} | null;
|
|
18006
19250
|
secrets: {
|
|
18007
19251
|
field: string;
|
|
@@ -18032,6 +19276,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18032
19276
|
} | {
|
|
18033
19277
|
clientId: string;
|
|
18034
19278
|
chainId: string;
|
|
19279
|
+
} | {
|
|
19280
|
+
clientId: string;
|
|
19281
|
+
currencies: string[];
|
|
19282
|
+
webhookId: string | null;
|
|
18035
19283
|
};
|
|
18036
19284
|
secrets: {
|
|
18037
19285
|
field: string;
|
|
@@ -18061,6 +19309,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18061
19309
|
} | {
|
|
18062
19310
|
clientId: string;
|
|
18063
19311
|
chainId: string;
|
|
19312
|
+
} | {
|
|
19313
|
+
clientId: string;
|
|
19314
|
+
currencies: string[];
|
|
19315
|
+
webhookId: string | null;
|
|
18064
19316
|
};
|
|
18065
19317
|
secrets: {
|
|
18066
19318
|
field: string;
|
|
@@ -18091,7 +19343,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18091
19343
|
routingExclusion: string | null;
|
|
18092
19344
|
}[];
|
|
18093
19345
|
connectableProviders: {
|
|
18094
|
-
provider:
|
|
19346
|
+
provider: string;
|
|
18095
19347
|
displayName: string;
|
|
18096
19348
|
connected: boolean;
|
|
18097
19349
|
enabled: boolean;
|
|
@@ -18111,6 +19363,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18111
19363
|
} | {
|
|
18112
19364
|
clientId: string;
|
|
18113
19365
|
chainId: string;
|
|
19366
|
+
} | {
|
|
19367
|
+
clientId: string;
|
|
19368
|
+
currencies: string[];
|
|
19369
|
+
webhookId: string | null;
|
|
18114
19370
|
} | null;
|
|
18115
19371
|
secrets: {
|
|
18116
19372
|
field: string;
|
|
@@ -18141,6 +19397,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18141
19397
|
} | {
|
|
18142
19398
|
clientId: string;
|
|
18143
19399
|
chainId: string;
|
|
19400
|
+
} | {
|
|
19401
|
+
clientId: string;
|
|
19402
|
+
currencies: string[];
|
|
19403
|
+
webhookId: string | null;
|
|
18144
19404
|
};
|
|
18145
19405
|
secrets: {
|
|
18146
19406
|
field: string;
|
|
@@ -18170,6 +19430,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18170
19430
|
} | {
|
|
18171
19431
|
clientId: string;
|
|
18172
19432
|
chainId: string;
|
|
19433
|
+
} | {
|
|
19434
|
+
clientId: string;
|
|
19435
|
+
currencies: string[];
|
|
19436
|
+
webhookId: string | null;
|
|
18173
19437
|
};
|
|
18174
19438
|
secrets: {
|
|
18175
19439
|
field: string;
|
|
@@ -18218,7 +19482,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18218
19482
|
update: (body: UpdatePaymentSettingsRequest) => Promise<{
|
|
18219
19483
|
checkoutOrigins: string[];
|
|
18220
19484
|
providers: {
|
|
18221
|
-
provider:
|
|
19485
|
+
provider: string;
|
|
18222
19486
|
displayName: string;
|
|
18223
19487
|
connected: boolean;
|
|
18224
19488
|
enabled: boolean;
|
|
@@ -18238,6 +19502,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18238
19502
|
} | {
|
|
18239
19503
|
clientId: string;
|
|
18240
19504
|
chainId: string;
|
|
19505
|
+
} | {
|
|
19506
|
+
clientId: string;
|
|
19507
|
+
currencies: string[];
|
|
19508
|
+
webhookId: string | null;
|
|
18241
19509
|
} | null;
|
|
18242
19510
|
secrets: {
|
|
18243
19511
|
field: string;
|
|
@@ -18268,6 +19536,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18268
19536
|
} | {
|
|
18269
19537
|
clientId: string;
|
|
18270
19538
|
chainId: string;
|
|
19539
|
+
} | {
|
|
19540
|
+
clientId: string;
|
|
19541
|
+
currencies: string[];
|
|
19542
|
+
webhookId: string | null;
|
|
18271
19543
|
};
|
|
18272
19544
|
secrets: {
|
|
18273
19545
|
field: string;
|
|
@@ -18297,6 +19569,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18297
19569
|
} | {
|
|
18298
19570
|
clientId: string;
|
|
18299
19571
|
chainId: string;
|
|
19572
|
+
} | {
|
|
19573
|
+
clientId: string;
|
|
19574
|
+
currencies: string[];
|
|
19575
|
+
webhookId: string | null;
|
|
18300
19576
|
};
|
|
18301
19577
|
secrets: {
|
|
18302
19578
|
field: string;
|
|
@@ -18327,7 +19603,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18327
19603
|
routingExclusion: string | null;
|
|
18328
19604
|
}[];
|
|
18329
19605
|
connectableProviders: {
|
|
18330
|
-
provider:
|
|
19606
|
+
provider: string;
|
|
18331
19607
|
displayName: string;
|
|
18332
19608
|
connected: boolean;
|
|
18333
19609
|
enabled: boolean;
|
|
@@ -18347,6 +19623,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18347
19623
|
} | {
|
|
18348
19624
|
clientId: string;
|
|
18349
19625
|
chainId: string;
|
|
19626
|
+
} | {
|
|
19627
|
+
clientId: string;
|
|
19628
|
+
currencies: string[];
|
|
19629
|
+
webhookId: string | null;
|
|
18350
19630
|
} | null;
|
|
18351
19631
|
secrets: {
|
|
18352
19632
|
field: string;
|
|
@@ -18377,6 +19657,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18377
19657
|
} | {
|
|
18378
19658
|
clientId: string;
|
|
18379
19659
|
chainId: string;
|
|
19660
|
+
} | {
|
|
19661
|
+
clientId: string;
|
|
19662
|
+
currencies: string[];
|
|
19663
|
+
webhookId: string | null;
|
|
18380
19664
|
};
|
|
18381
19665
|
secrets: {
|
|
18382
19666
|
field: string;
|
|
@@ -18406,6 +19690,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18406
19690
|
} | {
|
|
18407
19691
|
clientId: string;
|
|
18408
19692
|
chainId: string;
|
|
19693
|
+
} | {
|
|
19694
|
+
clientId: string;
|
|
19695
|
+
currencies: string[];
|
|
19696
|
+
webhookId: string | null;
|
|
18409
19697
|
};
|
|
18410
19698
|
secrets: {
|
|
18411
19699
|
field: string;
|
|
@@ -18459,7 +19747,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18459
19747
|
* 저장되지 않는다. 같은 가맹점의 비밀 값 교체는 검사하지 않는다)
|
|
18460
19748
|
*/
|
|
18461
19749
|
upsertTossPayments: (body: UpsertTossPaymentsProviderRequest) => Promise<{
|
|
18462
|
-
provider:
|
|
19750
|
+
provider: string;
|
|
18463
19751
|
displayName: string;
|
|
18464
19752
|
connected: boolean;
|
|
18465
19753
|
enabled: boolean;
|
|
@@ -18479,6 +19767,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18479
19767
|
} | {
|
|
18480
19768
|
clientId: string;
|
|
18481
19769
|
chainId: string;
|
|
19770
|
+
} | {
|
|
19771
|
+
clientId: string;
|
|
19772
|
+
currencies: string[];
|
|
19773
|
+
webhookId: string | null;
|
|
18482
19774
|
} | null;
|
|
18483
19775
|
secrets: {
|
|
18484
19776
|
field: string;
|
|
@@ -18509,6 +19801,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18509
19801
|
} | {
|
|
18510
19802
|
clientId: string;
|
|
18511
19803
|
chainId: string;
|
|
19804
|
+
} | {
|
|
19805
|
+
clientId: string;
|
|
19806
|
+
currencies: string[];
|
|
19807
|
+
webhookId: string | null;
|
|
18512
19808
|
};
|
|
18513
19809
|
secrets: {
|
|
18514
19810
|
field: string;
|
|
@@ -18538,6 +19834,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18538
19834
|
} | {
|
|
18539
19835
|
clientId: string;
|
|
18540
19836
|
chainId: string;
|
|
19837
|
+
} | {
|
|
19838
|
+
clientId: string;
|
|
19839
|
+
currencies: string[];
|
|
19840
|
+
webhookId: string | null;
|
|
18541
19841
|
};
|
|
18542
19842
|
secrets: {
|
|
18543
19843
|
field: string;
|
|
@@ -18572,7 +19872,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18572
19872
|
* (가맹점 식별자는 `storeId`, 비밀 필드는 `apiSecret`·`webhookSecret`). 400 `INVALID_CREDENTIALS`에는 채널 키 중복이 포함된다.
|
|
18573
19873
|
*/
|
|
18574
19874
|
upsertPortOne: (body: UpsertPortOneProviderRequest) => Promise<{
|
|
18575
|
-
provider:
|
|
19875
|
+
provider: string;
|
|
18576
19876
|
displayName: string;
|
|
18577
19877
|
connected: boolean;
|
|
18578
19878
|
enabled: boolean;
|
|
@@ -18592,6 +19892,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18592
19892
|
} | {
|
|
18593
19893
|
clientId: string;
|
|
18594
19894
|
chainId: string;
|
|
19895
|
+
} | {
|
|
19896
|
+
clientId: string;
|
|
19897
|
+
currencies: string[];
|
|
19898
|
+
webhookId: string | null;
|
|
18595
19899
|
} | null;
|
|
18596
19900
|
secrets: {
|
|
18597
19901
|
field: string;
|
|
@@ -18622,6 +19926,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18622
19926
|
} | {
|
|
18623
19927
|
clientId: string;
|
|
18624
19928
|
chainId: string;
|
|
19929
|
+
} | {
|
|
19930
|
+
clientId: string;
|
|
19931
|
+
currencies: string[];
|
|
19932
|
+
webhookId: string | null;
|
|
18625
19933
|
};
|
|
18626
19934
|
secrets: {
|
|
18627
19935
|
field: string;
|
|
@@ -18651,6 +19959,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18651
19959
|
} | {
|
|
18652
19960
|
clientId: string;
|
|
18653
19961
|
chainId: string;
|
|
19962
|
+
} | {
|
|
19963
|
+
clientId: string;
|
|
19964
|
+
currencies: string[];
|
|
19965
|
+
webhookId: string | null;
|
|
18654
19966
|
};
|
|
18655
19967
|
secrets: {
|
|
18656
19968
|
field: string;
|
|
@@ -18685,7 +19997,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18685
19997
|
* (가맹점 식별자는 `cid`, 비밀 필드는 `secretKey`). 결제 옵션은 간편결제(`KAKAOPAY`) 하나다.
|
|
18686
19998
|
*/
|
|
18687
19999
|
upsertKakaoPay: (body: UpsertKakaoPayProviderRequest) => Promise<{
|
|
18688
|
-
provider:
|
|
20000
|
+
provider: string;
|
|
18689
20001
|
displayName: string;
|
|
18690
20002
|
connected: boolean;
|
|
18691
20003
|
enabled: boolean;
|
|
@@ -18705,6 +20017,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18705
20017
|
} | {
|
|
18706
20018
|
clientId: string;
|
|
18707
20019
|
chainId: string;
|
|
20020
|
+
} | {
|
|
20021
|
+
clientId: string;
|
|
20022
|
+
currencies: string[];
|
|
20023
|
+
webhookId: string | null;
|
|
18708
20024
|
} | null;
|
|
18709
20025
|
secrets: {
|
|
18710
20026
|
field: string;
|
|
@@ -18735,6 +20051,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18735
20051
|
} | {
|
|
18736
20052
|
clientId: string;
|
|
18737
20053
|
chainId: string;
|
|
20054
|
+
} | {
|
|
20055
|
+
clientId: string;
|
|
20056
|
+
currencies: string[];
|
|
20057
|
+
webhookId: string | null;
|
|
18738
20058
|
};
|
|
18739
20059
|
secrets: {
|
|
18740
20060
|
field: string;
|
|
@@ -18764,6 +20084,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18764
20084
|
} | {
|
|
18765
20085
|
clientId: string;
|
|
18766
20086
|
chainId: string;
|
|
20087
|
+
} | {
|
|
20088
|
+
clientId: string;
|
|
20089
|
+
currencies: string[];
|
|
20090
|
+
webhookId: string | null;
|
|
18767
20091
|
};
|
|
18768
20092
|
secrets: {
|
|
18769
20093
|
field: string;
|
|
@@ -18798,7 +20122,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18798
20122
|
* (가맹점 식별자는 `clientId`, 비밀 필드는 `clientSecret`). 결제 옵션은 간편결제(`NAVERPAY`) 하나다.
|
|
18799
20123
|
*/
|
|
18800
20124
|
upsertNaverPay: (body: UpsertNaverPayProviderRequest) => Promise<{
|
|
18801
|
-
provider:
|
|
20125
|
+
provider: string;
|
|
18802
20126
|
displayName: string;
|
|
18803
20127
|
connected: boolean;
|
|
18804
20128
|
enabled: boolean;
|
|
@@ -18818,6 +20142,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18818
20142
|
} | {
|
|
18819
20143
|
clientId: string;
|
|
18820
20144
|
chainId: string;
|
|
20145
|
+
} | {
|
|
20146
|
+
clientId: string;
|
|
20147
|
+
currencies: string[];
|
|
20148
|
+
webhookId: string | null;
|
|
18821
20149
|
} | null;
|
|
18822
20150
|
secrets: {
|
|
18823
20151
|
field: string;
|
|
@@ -18848,6 +20176,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18848
20176
|
} | {
|
|
18849
20177
|
clientId: string;
|
|
18850
20178
|
chainId: string;
|
|
20179
|
+
} | {
|
|
20180
|
+
clientId: string;
|
|
20181
|
+
currencies: string[];
|
|
20182
|
+
webhookId: string | null;
|
|
18851
20183
|
};
|
|
18852
20184
|
secrets: {
|
|
18853
20185
|
field: string;
|
|
@@ -18877,6 +20209,135 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18877
20209
|
} | {
|
|
18878
20210
|
clientId: string;
|
|
18879
20211
|
chainId: string;
|
|
20212
|
+
} | {
|
|
20213
|
+
clientId: string;
|
|
20214
|
+
currencies: string[];
|
|
20215
|
+
webhookId: string | null;
|
|
20216
|
+
};
|
|
20217
|
+
secrets: {
|
|
20218
|
+
field: string;
|
|
20219
|
+
configured: boolean;
|
|
20220
|
+
masked: string | null;
|
|
20221
|
+
}[];
|
|
20222
|
+
lastVerification: {
|
|
20223
|
+
result: "SUCCESS" | "FAILED";
|
|
20224
|
+
message: string | null;
|
|
20225
|
+
checkedAt: string;
|
|
20226
|
+
} | null;
|
|
20227
|
+
updatedAt: string;
|
|
20228
|
+
} | null;
|
|
20229
|
+
};
|
|
20230
|
+
liveGate: {
|
|
20231
|
+
status: "LOCKED" | "OPEN";
|
|
20232
|
+
conditions: {
|
|
20233
|
+
code: "TEST_CONNECTION" | "SANDBOX_PAYMENT" | "SANDBOX_REFUND" | "LIVE_CONNECTION" | "PLATFORM_LIVE_ENABLED" | "NOT_TEMPLATE_STORE" | "NOT_DEVELOPMENT_STORE";
|
|
20234
|
+
met: boolean;
|
|
20235
|
+
message: string;
|
|
20236
|
+
}[];
|
|
20237
|
+
openedAt: string | null;
|
|
20238
|
+
};
|
|
20239
|
+
platformTestKeys: boolean;
|
|
20240
|
+
platformTestKeysAvailable: boolean;
|
|
20241
|
+
easyPayProviders: string[];
|
|
20242
|
+
retiredCredentialCount: number;
|
|
20243
|
+
routingExclusion: string | null;
|
|
20244
|
+
}>;
|
|
20245
|
+
/**
|
|
20246
|
+
* `PUT /v1/store/payment-providers/paypal` — PayPal(직접 연동) 자격 증명 세트 저장. 규칙·에러는 `upsertTossPayments`와 같다
|
|
20247
|
+
* (가맹점 식별자는 `clientId`, 비밀 필드는 `clientSecret`). 결제 옵션은 PayPal 간편결제 하나이고 `currencies`의 외화 주문서에만 나온다.
|
|
20248
|
+
*/
|
|
20249
|
+
upsertPayPal: (body: UpsertPayPalProviderRequest) => Promise<{
|
|
20250
|
+
provider: string;
|
|
20251
|
+
displayName: string;
|
|
20252
|
+
connected: boolean;
|
|
20253
|
+
enabled: boolean;
|
|
20254
|
+
priority: number | null;
|
|
20255
|
+
environment: "TEST" | "LIVE" | null;
|
|
20256
|
+
publicConfig: {
|
|
20257
|
+
clientKey: string;
|
|
20258
|
+
} | {
|
|
20259
|
+
storeId: string;
|
|
20260
|
+
channels: {
|
|
20261
|
+
channelKey: string;
|
|
20262
|
+
payMethods: ("CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY")[];
|
|
20263
|
+
name?: string | null | undefined;
|
|
20264
|
+
}[];
|
|
20265
|
+
} | {
|
|
20266
|
+
cid: string;
|
|
20267
|
+
} | {
|
|
20268
|
+
clientId: string;
|
|
20269
|
+
chainId: string;
|
|
20270
|
+
} | {
|
|
20271
|
+
clientId: string;
|
|
20272
|
+
currencies: string[];
|
|
20273
|
+
webhookId: string | null;
|
|
20274
|
+
} | null;
|
|
20275
|
+
secrets: {
|
|
20276
|
+
field: string;
|
|
20277
|
+
configured: boolean;
|
|
20278
|
+
masked: string | null;
|
|
20279
|
+
}[];
|
|
20280
|
+
lastVerification: {
|
|
20281
|
+
result: "SUCCESS" | "FAILED";
|
|
20282
|
+
message: string | null;
|
|
20283
|
+
checkedAt: string;
|
|
20284
|
+
} | null;
|
|
20285
|
+
updatedAt: string | null;
|
|
20286
|
+
sandboxMode: boolean;
|
|
20287
|
+
credentialSets: {
|
|
20288
|
+
TEST: {
|
|
20289
|
+
environment: "TEST" | "LIVE";
|
|
20290
|
+
publicConfig: {
|
|
20291
|
+
clientKey: string;
|
|
20292
|
+
} | {
|
|
20293
|
+
storeId: string;
|
|
20294
|
+
channels: {
|
|
20295
|
+
channelKey: string;
|
|
20296
|
+
payMethods: ("CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY")[];
|
|
20297
|
+
name?: string | null | undefined;
|
|
20298
|
+
}[];
|
|
20299
|
+
} | {
|
|
20300
|
+
cid: string;
|
|
20301
|
+
} | {
|
|
20302
|
+
clientId: string;
|
|
20303
|
+
chainId: string;
|
|
20304
|
+
} | {
|
|
20305
|
+
clientId: string;
|
|
20306
|
+
currencies: string[];
|
|
20307
|
+
webhookId: string | null;
|
|
20308
|
+
};
|
|
20309
|
+
secrets: {
|
|
20310
|
+
field: string;
|
|
20311
|
+
configured: boolean;
|
|
20312
|
+
masked: string | null;
|
|
20313
|
+
}[];
|
|
20314
|
+
lastVerification: {
|
|
20315
|
+
result: "SUCCESS" | "FAILED";
|
|
20316
|
+
message: string | null;
|
|
20317
|
+
checkedAt: string;
|
|
20318
|
+
} | null;
|
|
20319
|
+
updatedAt: string;
|
|
20320
|
+
} | null;
|
|
20321
|
+
LIVE: {
|
|
20322
|
+
environment: "TEST" | "LIVE";
|
|
20323
|
+
publicConfig: {
|
|
20324
|
+
clientKey: string;
|
|
20325
|
+
} | {
|
|
20326
|
+
storeId: string;
|
|
20327
|
+
channels: {
|
|
20328
|
+
channelKey: string;
|
|
20329
|
+
payMethods: ("CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY")[];
|
|
20330
|
+
name?: string | null | undefined;
|
|
20331
|
+
}[];
|
|
20332
|
+
} | {
|
|
20333
|
+
cid: string;
|
|
20334
|
+
} | {
|
|
20335
|
+
clientId: string;
|
|
20336
|
+
chainId: string;
|
|
20337
|
+
} | {
|
|
20338
|
+
clientId: string;
|
|
20339
|
+
currencies: string[];
|
|
20340
|
+
webhookId: string | null;
|
|
18880
20341
|
};
|
|
18881
20342
|
secrets: {
|
|
18882
20343
|
field: string;
|
|
@@ -18916,12 +20377,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18916
20377
|
* - 409 `PAYMENT_PROVIDER_INCOMPLETE`: 켜려는데 활성 환경(샌드박스면 TEST, 아니면 LIVE) 세트가 없거나 불완전
|
|
18917
20378
|
* - 409 `LIVE_GATE_NOT_MET`: `sandboxMode: false`(라이브 전환)인데 개방 조건 미충족. `ApiError.details`가
|
|
18918
20379
|
* `{ conditions: LiveGateCondition[] }`(조건별 `met`)이다. `liveGateErrorDetailsSchema`로 파싱한다
|
|
18919
|
-
* - 409 `LIVE_PAYMENTS_DISABLED`: 플랫폼 실결제 스위치만 미충족. `details`는 위와 같다
|
|
18920
20380
|
*
|
|
18921
20381
|
* `sandboxMode: true`는 항상 허용되고 즉시 실결제가 멈춘다.
|
|
18922
20382
|
*/
|
|
18923
20383
|
updateProvider: (provider: PgProvider, body: UpdatePaymentProviderRequest) => Promise<{
|
|
18924
|
-
provider:
|
|
20384
|
+
provider: string;
|
|
18925
20385
|
displayName: string;
|
|
18926
20386
|
connected: boolean;
|
|
18927
20387
|
enabled: boolean;
|
|
@@ -18941,6 +20401,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18941
20401
|
} | {
|
|
18942
20402
|
clientId: string;
|
|
18943
20403
|
chainId: string;
|
|
20404
|
+
} | {
|
|
20405
|
+
clientId: string;
|
|
20406
|
+
currencies: string[];
|
|
20407
|
+
webhookId: string | null;
|
|
18944
20408
|
} | null;
|
|
18945
20409
|
secrets: {
|
|
18946
20410
|
field: string;
|
|
@@ -18971,6 +20435,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18971
20435
|
} | {
|
|
18972
20436
|
clientId: string;
|
|
18973
20437
|
chainId: string;
|
|
20438
|
+
} | {
|
|
20439
|
+
clientId: string;
|
|
20440
|
+
currencies: string[];
|
|
20441
|
+
webhookId: string | null;
|
|
18974
20442
|
};
|
|
18975
20443
|
secrets: {
|
|
18976
20444
|
field: string;
|
|
@@ -19000,6 +20468,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19000
20468
|
} | {
|
|
19001
20469
|
clientId: string;
|
|
19002
20470
|
chainId: string;
|
|
20471
|
+
} | {
|
|
20472
|
+
clientId: string;
|
|
20473
|
+
currencies: string[];
|
|
20474
|
+
webhookId: string | null;
|
|
19003
20475
|
};
|
|
19004
20476
|
secrets: {
|
|
19005
20477
|
field: string;
|
|
@@ -19031,10 +20503,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19031
20503
|
}>;
|
|
19032
20504
|
/**
|
|
19033
20505
|
* 샌드박스 스위치만 바꾼다 — `updateProvider(provider, { sandboxMode })`와 같다.
|
|
19034
|
-
* `false`(라이브 전환)는 409 `LIVE_GATE_NOT_MET
|
|
20506
|
+
* `false`(라이브 전환)는 409 `LIVE_GATE_NOT_MET`(`ApiError.details.conditions`)가 날 수 있다.
|
|
19035
20507
|
*/
|
|
19036
20508
|
setSandboxMode: (provider: PgProvider, sandboxMode: boolean) => Promise<{
|
|
19037
|
-
provider:
|
|
20509
|
+
provider: string;
|
|
19038
20510
|
displayName: string;
|
|
19039
20511
|
connected: boolean;
|
|
19040
20512
|
enabled: boolean;
|
|
@@ -19054,6 +20526,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19054
20526
|
} | {
|
|
19055
20527
|
clientId: string;
|
|
19056
20528
|
chainId: string;
|
|
20529
|
+
} | {
|
|
20530
|
+
clientId: string;
|
|
20531
|
+
currencies: string[];
|
|
20532
|
+
webhookId: string | null;
|
|
19057
20533
|
} | null;
|
|
19058
20534
|
secrets: {
|
|
19059
20535
|
field: string;
|
|
@@ -19084,6 +20560,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19084
20560
|
} | {
|
|
19085
20561
|
clientId: string;
|
|
19086
20562
|
chainId: string;
|
|
20563
|
+
} | {
|
|
20564
|
+
clientId: string;
|
|
20565
|
+
currencies: string[];
|
|
20566
|
+
webhookId: string | null;
|
|
19087
20567
|
};
|
|
19088
20568
|
secrets: {
|
|
19089
20569
|
field: string;
|
|
@@ -19113,6 +20593,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19113
20593
|
} | {
|
|
19114
20594
|
clientId: string;
|
|
19115
20595
|
chainId: string;
|
|
20596
|
+
} | {
|
|
20597
|
+
clientId: string;
|
|
20598
|
+
currencies: string[];
|
|
20599
|
+
webhookId: string | null;
|
|
19116
20600
|
};
|
|
19117
20601
|
secrets: {
|
|
19118
20602
|
field: string;
|
|
@@ -19147,7 +20631,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19147
20631
|
* (OWNER·ADMIN, 에이전트도 쓸 수 있다). 에러: 409 `PLATFORM_TEST_KEYS_UNAVAILABLE`(그 PG의 지정 테스트 키가 없다)
|
|
19148
20632
|
*/
|
|
19149
20633
|
setPlatformTestKeys: (provider: PgProvider, enabled: boolean) => Promise<{
|
|
19150
|
-
provider:
|
|
20634
|
+
provider: string;
|
|
19151
20635
|
displayName: string;
|
|
19152
20636
|
connected: boolean;
|
|
19153
20637
|
enabled: boolean;
|
|
@@ -19159,7 +20643,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19159
20643
|
status: () => Promise<{
|
|
19160
20644
|
environment: "TEST" | "LIVE" | null;
|
|
19161
20645
|
providers: {
|
|
19162
|
-
provider:
|
|
20646
|
+
provider: string;
|
|
19163
20647
|
displayName: string;
|
|
19164
20648
|
connected: boolean;
|
|
19165
20649
|
enabled: boolean;
|
|
@@ -19182,7 +20666,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19182
20666
|
* 409 `PAYMENT_CREDENTIAL_ACTIVE`(지금 결제에 쓰는 세트. 먼저 `setSandboxMode`로 스위치를 바꾼다)
|
|
19183
20667
|
*/
|
|
19184
20668
|
removeCredentialSet: (provider: PgProvider, environment: PgEnvironment) => Promise<{
|
|
19185
|
-
provider:
|
|
20669
|
+
provider: string;
|
|
19186
20670
|
displayName: string;
|
|
19187
20671
|
connected: boolean;
|
|
19188
20672
|
enabled: boolean;
|
|
@@ -19202,6 +20686,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19202
20686
|
} | {
|
|
19203
20687
|
clientId: string;
|
|
19204
20688
|
chainId: string;
|
|
20689
|
+
} | {
|
|
20690
|
+
clientId: string;
|
|
20691
|
+
currencies: string[];
|
|
20692
|
+
webhookId: string | null;
|
|
19205
20693
|
} | null;
|
|
19206
20694
|
secrets: {
|
|
19207
20695
|
field: string;
|
|
@@ -19232,6 +20720,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19232
20720
|
} | {
|
|
19233
20721
|
clientId: string;
|
|
19234
20722
|
chainId: string;
|
|
20723
|
+
} | {
|
|
20724
|
+
clientId: string;
|
|
20725
|
+
currencies: string[];
|
|
20726
|
+
webhookId: string | null;
|
|
19235
20727
|
};
|
|
19236
20728
|
secrets: {
|
|
19237
20729
|
field: string;
|
|
@@ -19261,6 +20753,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19261
20753
|
} | {
|
|
19262
20754
|
clientId: string;
|
|
19263
20755
|
chainId: string;
|
|
20756
|
+
} | {
|
|
20757
|
+
clientId: string;
|
|
20758
|
+
currencies: string[];
|
|
20759
|
+
webhookId: string | null;
|
|
19264
20760
|
};
|
|
19265
20761
|
secrets: {
|
|
19266
20762
|
field: string;
|
|
@@ -19296,7 +20792,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19296
20792
|
* 라이브 개방 조건 `TEST_CONNECTION`·`LIVE_CONNECTION`은 이 결과로 판정한다. 404 `PAYMENT_PROVIDER_NOT_FOUND`.
|
|
19297
20793
|
*/
|
|
19298
20794
|
verify: (provider: PgProvider, body?: VerifyPaymentProviderRequest) => Promise<{
|
|
19299
|
-
provider:
|
|
20795
|
+
provider: string;
|
|
19300
20796
|
environment: "TEST" | "LIVE";
|
|
19301
20797
|
result: "SUCCESS" | "FAILED";
|
|
19302
20798
|
message: string | null;
|
|
@@ -20479,6 +21975,54 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
20479
21975
|
createdAt: string;
|
|
20480
21976
|
}>;
|
|
20481
21977
|
};
|
|
21978
|
+
/** 판매 권역(이슈 #130) — 국가·통화·도메인. 쓰기는 다중 통화가 켜진 상점에서만 된다 */
|
|
21979
|
+
markets: {
|
|
21980
|
+
list: () => Promise<{
|
|
21981
|
+
marketId: string;
|
|
21982
|
+
name: string;
|
|
21983
|
+
currency: "KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF";
|
|
21984
|
+
isDefault: boolean;
|
|
21985
|
+
countries: string[];
|
|
21986
|
+
domains: string[];
|
|
21987
|
+
couponsEnabled: boolean;
|
|
21988
|
+
pointsEnabled: boolean;
|
|
21989
|
+
archivedAt: string | null;
|
|
21990
|
+
}[]>;
|
|
21991
|
+
get: (marketId: string) => Promise<{
|
|
21992
|
+
marketId: string;
|
|
21993
|
+
name: string;
|
|
21994
|
+
currency: "KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF";
|
|
21995
|
+
isDefault: boolean;
|
|
21996
|
+
countries: string[];
|
|
21997
|
+
domains: string[];
|
|
21998
|
+
couponsEnabled: boolean;
|
|
21999
|
+
pointsEnabled: boolean;
|
|
22000
|
+
archivedAt: string | null;
|
|
22001
|
+
}>;
|
|
22002
|
+
create: (body: CreateMarketRequestInput) => Promise<{
|
|
22003
|
+
marketId: string;
|
|
22004
|
+
name: string;
|
|
22005
|
+
currency: "KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF";
|
|
22006
|
+
isDefault: boolean;
|
|
22007
|
+
countries: string[];
|
|
22008
|
+
domains: string[];
|
|
22009
|
+
couponsEnabled: boolean;
|
|
22010
|
+
pointsEnabled: boolean;
|
|
22011
|
+
archivedAt: string | null;
|
|
22012
|
+
}>;
|
|
22013
|
+
update: (marketId: string, body: UpdateMarketRequestInput) => Promise<{
|
|
22014
|
+
marketId: string;
|
|
22015
|
+
name: string;
|
|
22016
|
+
currency: "KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF";
|
|
22017
|
+
isDefault: boolean;
|
|
22018
|
+
countries: string[];
|
|
22019
|
+
domains: string[];
|
|
22020
|
+
couponsEnabled: boolean;
|
|
22021
|
+
pointsEnabled: boolean;
|
|
22022
|
+
archivedAt: string | null;
|
|
22023
|
+
}>;
|
|
22024
|
+
archive: (marketId: string) => Promise<void>;
|
|
22025
|
+
};
|
|
20482
22026
|
pickupLocations: {
|
|
20483
22027
|
list: () => Promise<{
|
|
20484
22028
|
locationId: string;
|
|
@@ -20560,7 +22104,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
20560
22104
|
label: string;
|
|
20561
22105
|
status: "error" | "unknown" | "ok";
|
|
20562
22106
|
summary: string | null;
|
|
20563
|
-
activity?: "check" | "
|
|
22107
|
+
activity?: "check" | "code" | "version" | "status" | "shipping" | "category" | "brief" | "files" | "preview" | "template" | "site" | "info" | "upload" | "design" | "product" | "verify" | undefined;
|
|
20564
22108
|
target?: string | undefined;
|
|
20565
22109
|
changes?: {
|
|
20566
22110
|
path: string;
|
|
@@ -20749,7 +22293,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
20749
22293
|
status: "ACTIVE" | "DRAFT" | "RETIRED";
|
|
20750
22294
|
version: string | null;
|
|
20751
22295
|
}>;
|
|
20752
|
-
/** `GET /v1/storefront/site` —
|
|
22296
|
+
/** `GET /v1/storefront/site` — 호스팅 설정과 현재 사이트(없으면 `site: null`) */
|
|
20753
22297
|
get: () => Promise<{
|
|
20754
22298
|
enabled: boolean;
|
|
20755
22299
|
domain: string;
|
|
@@ -22055,12 +23599,20 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
22055
23599
|
sellerFaultFreeShipping: boolean;
|
|
22056
23600
|
conditionalFreeShortfallCharge: boolean;
|
|
22057
23601
|
couponShortfallCharge: boolean;
|
|
23602
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
23603
|
+
returnDeliveryFee: number;
|
|
23604
|
+
exchangeDeliveryFee: number;
|
|
23605
|
+
}>> | undefined;
|
|
22058
23606
|
};
|
|
22059
23607
|
shippingPolicy: {
|
|
22060
23608
|
baseDeliveryFee: number;
|
|
22061
23609
|
freeThreshold: number | null;
|
|
22062
23610
|
jejuSurcharge: number;
|
|
22063
23611
|
isolatedSurcharge: number;
|
|
23612
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
23613
|
+
baseDeliveryFee: number;
|
|
23614
|
+
freeThreshold: number | null;
|
|
23615
|
+
}>> | undefined;
|
|
22064
23616
|
};
|
|
22065
23617
|
termsVersion: string;
|
|
22066
23618
|
privacyVersion: string;
|
|
@@ -22104,12 +23656,20 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
22104
23656
|
sellerFaultFreeShipping: boolean;
|
|
22105
23657
|
conditionalFreeShortfallCharge: boolean;
|
|
22106
23658
|
couponShortfallCharge: boolean;
|
|
23659
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
23660
|
+
returnDeliveryFee: number;
|
|
23661
|
+
exchangeDeliveryFee: number;
|
|
23662
|
+
}>> | undefined;
|
|
22107
23663
|
};
|
|
22108
23664
|
shippingPolicy: {
|
|
22109
23665
|
baseDeliveryFee: number;
|
|
22110
23666
|
freeThreshold: number | null;
|
|
22111
23667
|
jejuSurcharge: number;
|
|
22112
23668
|
isolatedSurcharge: number;
|
|
23669
|
+
currencies?: Partial<Record<"KRW" | "USD" | "EUR" | "JPY" | "GBP" | "CNY" | "HKD" | "TWD" | "SGD" | "AUD" | "CAD" | "THB" | "MYR" | "PHP" | "NZD" | "CHF", {
|
|
23670
|
+
baseDeliveryFee: number;
|
|
23671
|
+
freeThreshold: number | null;
|
|
23672
|
+
}>> | undefined;
|
|
22113
23673
|
};
|
|
22114
23674
|
termsVersion: string;
|
|
22115
23675
|
privacyVersion: string;
|
|
@@ -22165,7 +23725,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
22165
23725
|
}>;
|
|
22166
23726
|
/**
|
|
22167
23727
|
* `PUT /v1/store/point-policy` — 스코프 `promotion:rw`. 준 항목만 바꾼다. 에이전트 요청은 승인 대상이다.
|
|
22168
|
-
* 에러:
|
|
23728
|
+
* 에러: 400 `POINT_EXPIRY_REQUIRED`(리뷰 적립을 켜는데 유효 기간이 없음)
|
|
22169
23729
|
*/
|
|
22170
23730
|
updatePointPolicy: (body: UpdatePointPolicyRequest) => Promise<{
|
|
22171
23731
|
available: boolean;
|
|
@@ -22336,6 +23896,371 @@ export declare function parseOrderNo(value: string): string | null;
|
|
|
22336
23896
|
/** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
|
|
22337
23897
|
export declare function commerceNumberField(description: string): z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
22338
23898
|
//#endregion
|
|
23899
|
+
//#region src/schemas/currency.d.ts
|
|
23900
|
+
/**
|
|
23901
|
+
* 통화표와 금액 변환(이슈 #130). 숫자만 다룬다 — 사람이 읽는 문자열(「1,000원」·「$10.99」)은 각 앱의 `formatMoney`가 만든다.
|
|
23902
|
+
*
|
|
23903
|
+
* 모든 금액은 통화의 **최소 단위 정수**다(KRW 1원, USD 1센트, JPY 1엔). 주 단위(10.99달러)는 표시·입력·PG 요청 형식에만 쓴다.
|
|
23904
|
+
* storefront-sdk `schemas/currency.ts`는 이 파일의 사본이다(storefront-sdk는 store-sdk에 의존하지 않는다). api 유닛 테스트가 두 표가 같은지 고정한다.
|
|
23905
|
+
* 고치면 사본도 같이 고친다.
|
|
23906
|
+
*/
|
|
23907
|
+
export interface CurrencySpec {
|
|
23908
|
+
/** ISO 4217 코드 */
|
|
23909
|
+
code: string;
|
|
23910
|
+
/** 소수 자릿수(ISO 4217) — 주 단위 1 = 최소 단위 10^digits */
|
|
23911
|
+
digits: number;
|
|
23912
|
+
/** 판매가 단위(최소 단위). 판매가는 이 값의 배수이고 최소값도 이 값이다. 추가금에는 적용하지 않는다 */
|
|
23913
|
+
saleUnit: number;
|
|
23914
|
+
/** 통화표 최소 결제액(최소 단위). 실제 하한은 PG 하한과의 큰 값이다(`minPaymentOf`) */
|
|
23915
|
+
minPayment: number;
|
|
23916
|
+
/** 주문 최대 금액(최소 단위). int4와 PG 상한 중 작은 쪽 */
|
|
23917
|
+
maxOrderAmount: number;
|
|
23918
|
+
}
|
|
23919
|
+
/**
|
|
23920
|
+
* 1차 판매 통화 16종(설계 Q6). 판매가 단위는 KRW 10원(현행 규칙), JPY 1엔, 2자리 통화 1센트, TWD 100(= 1달러, PayPal이 TWD를 정수로만 받는다).
|
|
23921
|
+
* 최소 결제액은 KRW가 현행 100원이고, 그 밖은 Stripe 최소 청구액(https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts)을 따른다.
|
|
23922
|
+
* Stripe 표에 없는 CNY·TWD·PHP는 USD 0.50 근처의 근사값이다(PG 하한은 어댑터 선언이 따로 더한다).
|
|
23923
|
+
*/
|
|
23924
|
+
export declare const CURRENCIES: {
|
|
23925
|
+
readonly KRW: {
|
|
23926
|
+
readonly code: "KRW";
|
|
23927
|
+
readonly digits: 0;
|
|
23928
|
+
readonly saleUnit: 10;
|
|
23929
|
+
readonly minPayment: 100;
|
|
23930
|
+
readonly maxOrderAmount: 2147483647;
|
|
23931
|
+
};
|
|
23932
|
+
readonly USD: {
|
|
23933
|
+
readonly code: "USD";
|
|
23934
|
+
readonly digits: 2;
|
|
23935
|
+
readonly saleUnit: 1;
|
|
23936
|
+
readonly minPayment: 50;
|
|
23937
|
+
readonly maxOrderAmount: 99999999;
|
|
23938
|
+
};
|
|
23939
|
+
readonly EUR: {
|
|
23940
|
+
readonly code: "EUR";
|
|
23941
|
+
readonly digits: 2;
|
|
23942
|
+
readonly saleUnit: 1;
|
|
23943
|
+
readonly minPayment: 50;
|
|
23944
|
+
readonly maxOrderAmount: 99999999;
|
|
23945
|
+
};
|
|
23946
|
+
readonly JPY: {
|
|
23947
|
+
readonly code: "JPY";
|
|
23948
|
+
readonly digits: 0;
|
|
23949
|
+
readonly saleUnit: 1;
|
|
23950
|
+
readonly minPayment: 50;
|
|
23951
|
+
readonly maxOrderAmount: 99999999;
|
|
23952
|
+
};
|
|
23953
|
+
readonly GBP: {
|
|
23954
|
+
readonly code: "GBP";
|
|
23955
|
+
readonly digits: 2;
|
|
23956
|
+
readonly saleUnit: 1;
|
|
23957
|
+
readonly minPayment: 30;
|
|
23958
|
+
readonly maxOrderAmount: 99999999;
|
|
23959
|
+
};
|
|
23960
|
+
readonly CNY: {
|
|
23961
|
+
readonly code: "CNY";
|
|
23962
|
+
readonly digits: 2;
|
|
23963
|
+
readonly saleUnit: 1;
|
|
23964
|
+
readonly minPayment: 400;
|
|
23965
|
+
readonly maxOrderAmount: 99999999;
|
|
23966
|
+
};
|
|
23967
|
+
readonly HKD: {
|
|
23968
|
+
readonly code: "HKD";
|
|
23969
|
+
readonly digits: 2;
|
|
23970
|
+
readonly saleUnit: 1;
|
|
23971
|
+
readonly minPayment: 400;
|
|
23972
|
+
readonly maxOrderAmount: 99999999;
|
|
23973
|
+
};
|
|
23974
|
+
readonly TWD: {
|
|
23975
|
+
readonly code: "TWD";
|
|
23976
|
+
readonly digits: 2;
|
|
23977
|
+
readonly saleUnit: 100;
|
|
23978
|
+
readonly minPayment: 2000;
|
|
23979
|
+
readonly maxOrderAmount: 99999999;
|
|
23980
|
+
};
|
|
23981
|
+
readonly SGD: {
|
|
23982
|
+
readonly code: "SGD";
|
|
23983
|
+
readonly digits: 2;
|
|
23984
|
+
readonly saleUnit: 1;
|
|
23985
|
+
readonly minPayment: 50;
|
|
23986
|
+
readonly maxOrderAmount: 99999999;
|
|
23987
|
+
};
|
|
23988
|
+
readonly AUD: {
|
|
23989
|
+
readonly code: "AUD";
|
|
23990
|
+
readonly digits: 2;
|
|
23991
|
+
readonly saleUnit: 1;
|
|
23992
|
+
readonly minPayment: 50;
|
|
23993
|
+
readonly maxOrderAmount: 99999999;
|
|
23994
|
+
};
|
|
23995
|
+
readonly CAD: {
|
|
23996
|
+
readonly code: "CAD";
|
|
23997
|
+
readonly digits: 2;
|
|
23998
|
+
readonly saleUnit: 1;
|
|
23999
|
+
readonly minPayment: 50;
|
|
24000
|
+
readonly maxOrderAmount: 99999999;
|
|
24001
|
+
};
|
|
24002
|
+
readonly THB: {
|
|
24003
|
+
readonly code: "THB";
|
|
24004
|
+
readonly digits: 2;
|
|
24005
|
+
readonly saleUnit: 1;
|
|
24006
|
+
readonly minPayment: 1000;
|
|
24007
|
+
readonly maxOrderAmount: 99999999;
|
|
24008
|
+
};
|
|
24009
|
+
readonly MYR: {
|
|
24010
|
+
readonly code: "MYR";
|
|
24011
|
+
readonly digits: 2;
|
|
24012
|
+
readonly saleUnit: 1;
|
|
24013
|
+
readonly minPayment: 200;
|
|
24014
|
+
readonly maxOrderAmount: 99999999;
|
|
24015
|
+
};
|
|
24016
|
+
readonly PHP: {
|
|
24017
|
+
readonly code: "PHP";
|
|
24018
|
+
readonly digits: 2;
|
|
24019
|
+
readonly saleUnit: 1;
|
|
24020
|
+
readonly minPayment: 3000;
|
|
24021
|
+
readonly maxOrderAmount: 99999999;
|
|
24022
|
+
};
|
|
24023
|
+
readonly NZD: {
|
|
24024
|
+
readonly code: "NZD";
|
|
24025
|
+
readonly digits: 2;
|
|
24026
|
+
readonly saleUnit: 1;
|
|
24027
|
+
readonly minPayment: 50;
|
|
24028
|
+
readonly maxOrderAmount: 99999999;
|
|
24029
|
+
};
|
|
24030
|
+
readonly CHF: {
|
|
24031
|
+
readonly code: "CHF";
|
|
24032
|
+
readonly digits: 2;
|
|
24033
|
+
readonly saleUnit: 1;
|
|
24034
|
+
readonly minPayment: 50;
|
|
24035
|
+
readonly maxOrderAmount: 99999999;
|
|
24036
|
+
};
|
|
24037
|
+
};
|
|
24038
|
+
export type CurrencyCode = keyof typeof CURRENCIES;
|
|
24039
|
+
export declare const CURRENCY_CODES: [CurrencyCode, ...CurrencyCode[]];
|
|
24040
|
+
/** 기본 통화 — 1차는 KRW 고정(설계 Q9). 기본 권역의 통화이고 지금의 금액 컬럼이 이 통화 값이다 */
|
|
24041
|
+
export declare const BASE_CURRENCY = "KRW";
|
|
24042
|
+
export declare const currencyCodeSchema: z.ZodEnum<{
|
|
24043
|
+
KRW: "KRW";
|
|
24044
|
+
USD: "USD";
|
|
24045
|
+
EUR: "EUR";
|
|
24046
|
+
JPY: "JPY";
|
|
24047
|
+
GBP: "GBP";
|
|
24048
|
+
CNY: "CNY";
|
|
24049
|
+
HKD: "HKD";
|
|
24050
|
+
TWD: "TWD";
|
|
24051
|
+
SGD: "SGD";
|
|
24052
|
+
AUD: "AUD";
|
|
24053
|
+
CAD: "CAD";
|
|
24054
|
+
THB: "THB";
|
|
24055
|
+
MYR: "MYR";
|
|
24056
|
+
PHP: "PHP";
|
|
24057
|
+
NZD: "NZD";
|
|
24058
|
+
CHF: "CHF";
|
|
24059
|
+
}>;
|
|
24060
|
+
export declare function isCurrencyCode(value: string): value is CurrencyCode;
|
|
24061
|
+
/** 통화표 항목. 모르는 통화면 RangeError — 판매 통화가 아닌 값이 계산까지 오면 원천의 검증 누락이다 */
|
|
24062
|
+
export declare function currencySpecOf(code: string): CurrencySpec;
|
|
24063
|
+
/** 주 단위 → 최소 단위(반올림). 입력·화면 값 변환용이고 PG 응답 해석은 `fromDecimalString`이다 */
|
|
24064
|
+
export declare function toMinor(major: number, currency: string): number;
|
|
24065
|
+
/** 최소 단위 → 주 단위(표시용 숫자) */
|
|
24066
|
+
export declare function minorToMajor(minor: number, currency: string): number;
|
|
24067
|
+
/** 최소 단위 → PG 요청 형식 십진 문자열(`1099` USD → `"10.99"`, `1000` KRW → `"1000"`). 정수 연산만 쓴다 */
|
|
24068
|
+
export declare function toDecimalString(minor: number, currency: string): string;
|
|
24069
|
+
/**
|
|
24070
|
+
* PG 응답의 십진 문자열 → 최소 단위 정수. 통화 자릿수보다 긴 소수는 끝이 0일 때만 받는다(`"10.990"` → 1099, `"10.999"`는 RangeError).
|
|
24071
|
+
* 형식이 틀리면 RangeError다 — 금액을 추정하지 않는다.
|
|
24072
|
+
*/
|
|
24073
|
+
export declare function fromDecimalString(value: string, currency: string): number;
|
|
24074
|
+
/** 판매가 단위로 내림 — 할인·정률 쿠폰 계산의 단위 맞춤(KRW 10원 내림은 현행 규칙 그대로) */
|
|
24075
|
+
export declare function floorToSaleUnit(amount: number, currency: string): number;
|
|
24076
|
+
/** 판매가 규칙(판매가 단위의 배수, 최소 판매가 단위)을 지키는가 */
|
|
24077
|
+
export declare function isSaleUnitPrice(amount: number, currency: string): boolean;
|
|
24078
|
+
/** 판매가 규칙 위반 — api가 400 `INVALID_PRICE_UNIT`으로 바꾼다 */
|
|
24079
|
+
export declare class InvalidPriceUnitError extends Error {
|
|
24080
|
+
readonly amount: number;
|
|
24081
|
+
readonly currency: string;
|
|
24082
|
+
readonly saleUnit: number;
|
|
24083
|
+
readonly code = "INVALID_PRICE_UNIT";
|
|
24084
|
+
constructor(amount: number, currency: string, saleUnit: number);
|
|
24085
|
+
}
|
|
24086
|
+
/** 판매가 단위 검증의 원천 — zod `superRefine`과 api 상품 쓰기가 같이 부른다 */
|
|
24087
|
+
export declare function assertSaleUnit(amount: number, currency: string): void;
|
|
24088
|
+
/**
|
|
24089
|
+
* 최소 결제액 = max(통화표 값, 후보들). 후보는 PG 어댑터 선언의 하한(`descriptor.minAmount(currency)`, #131)이고 null은 「하한 없음」이다.
|
|
24090
|
+
* 서버의 최소 결제 검사는 이 값 하나를 쓴다.
|
|
24091
|
+
*/
|
|
24092
|
+
export declare function minPaymentOf(currency: string, candidates?: ReadonlyArray<number | null | undefined>): number;
|
|
24093
|
+
/** 통화 규칙 값 — 순수 금액 함수가 상수 대신 입력으로 받는다. 생략하면 KRW 규칙이다(`KRW_MONEY_RULES`) */
|
|
24094
|
+
export interface MoneyRules {
|
|
24095
|
+
currency: string;
|
|
24096
|
+
saleUnit: number;
|
|
24097
|
+
minPayment: number;
|
|
24098
|
+
maxOrderAmount: number;
|
|
24099
|
+
}
|
|
24100
|
+
/** 통화의 규칙 값. `minPayment`를 주면(서버가 `minPaymentOf`로 구한 값) 통화표 값 대신 쓴다 */
|
|
24101
|
+
export declare function moneyRulesOf(currency: string, options?: {
|
|
24102
|
+
minPayment?: number;
|
|
24103
|
+
}): MoneyRules;
|
|
24104
|
+
/** 기본 통화(KRW) 규칙 — 규칙 값을 넘기지 않는 옛 호출부의 기본값 */
|
|
24105
|
+
export declare const KRW_MONEY_RULES: MoneyRules;
|
|
24106
|
+
//#endregion
|
|
24107
|
+
//#region src/schemas/currency-prices.d.ts
|
|
24108
|
+
/** 상품 판매가의 외화 값 */
|
|
24109
|
+
export declare const productCurrencyPriceSchema: z.ZodObject<{
|
|
24110
|
+
currency: z.ZodEnum<{
|
|
24111
|
+
KRW: "KRW";
|
|
24112
|
+
USD: "USD";
|
|
24113
|
+
EUR: "EUR";
|
|
24114
|
+
JPY: "JPY";
|
|
24115
|
+
GBP: "GBP";
|
|
24116
|
+
CNY: "CNY";
|
|
24117
|
+
HKD: "HKD";
|
|
24118
|
+
TWD: "TWD";
|
|
24119
|
+
SGD: "SGD";
|
|
24120
|
+
AUD: "AUD";
|
|
24121
|
+
CAD: "CAD";
|
|
24122
|
+
THB: "THB";
|
|
24123
|
+
MYR: "MYR";
|
|
24124
|
+
PHP: "PHP";
|
|
24125
|
+
NZD: "NZD";
|
|
24126
|
+
CHF: "CHF";
|
|
24127
|
+
}>;
|
|
24128
|
+
salePrice: z.ZodNumber;
|
|
24129
|
+
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24130
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24131
|
+
}, z.core.$strict>;
|
|
24132
|
+
export declare const productCurrencyPricesSchema: z.ZodArray<z.ZodObject<{
|
|
24133
|
+
currency: z.ZodEnum<{
|
|
24134
|
+
KRW: "KRW";
|
|
24135
|
+
USD: "USD";
|
|
24136
|
+
EUR: "EUR";
|
|
24137
|
+
JPY: "JPY";
|
|
24138
|
+
GBP: "GBP";
|
|
24139
|
+
CNY: "CNY";
|
|
24140
|
+
HKD: "HKD";
|
|
24141
|
+
TWD: "TWD";
|
|
24142
|
+
SGD: "SGD";
|
|
24143
|
+
AUD: "AUD";
|
|
24144
|
+
CAD: "CAD";
|
|
24145
|
+
THB: "THB";
|
|
24146
|
+
MYR: "MYR";
|
|
24147
|
+
PHP: "PHP";
|
|
24148
|
+
NZD: "NZD";
|
|
24149
|
+
CHF: "CHF";
|
|
24150
|
+
}>;
|
|
24151
|
+
salePrice: z.ZodNumber;
|
|
24152
|
+
originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24153
|
+
discountAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24154
|
+
}, z.core.$strict>>;
|
|
24155
|
+
export type ProductCurrencyPrice = z.infer<typeof productCurrencyPriceSchema>;
|
|
24156
|
+
/** 상품 배송의 외화 값 — 배송비 유형·출고지는 상품 하나다 */
|
|
24157
|
+
export declare const shippingCurrencyPriceSchema: z.ZodObject<{
|
|
24158
|
+
currency: z.ZodEnum<{
|
|
24159
|
+
KRW: "KRW";
|
|
24160
|
+
USD: "USD";
|
|
24161
|
+
EUR: "EUR";
|
|
24162
|
+
JPY: "JPY";
|
|
24163
|
+
GBP: "GBP";
|
|
24164
|
+
CNY: "CNY";
|
|
24165
|
+
HKD: "HKD";
|
|
24166
|
+
TWD: "TWD";
|
|
24167
|
+
SGD: "SGD";
|
|
24168
|
+
AUD: "AUD";
|
|
24169
|
+
CAD: "CAD";
|
|
24170
|
+
THB: "THB";
|
|
24171
|
+
MYR: "MYR";
|
|
24172
|
+
PHP: "PHP";
|
|
24173
|
+
NZD: "NZD";
|
|
24174
|
+
CHF: "CHF";
|
|
24175
|
+
}>;
|
|
24176
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
24177
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24178
|
+
}, z.core.$strict>;
|
|
24179
|
+
export declare const shippingCurrencyPricesSchema: z.ZodArray<z.ZodObject<{
|
|
24180
|
+
currency: z.ZodEnum<{
|
|
24181
|
+
KRW: "KRW";
|
|
24182
|
+
USD: "USD";
|
|
24183
|
+
EUR: "EUR";
|
|
24184
|
+
JPY: "JPY";
|
|
24185
|
+
GBP: "GBP";
|
|
24186
|
+
CNY: "CNY";
|
|
24187
|
+
HKD: "HKD";
|
|
24188
|
+
TWD: "TWD";
|
|
24189
|
+
SGD: "SGD";
|
|
24190
|
+
AUD: "AUD";
|
|
24191
|
+
CAD: "CAD";
|
|
24192
|
+
THB: "THB";
|
|
24193
|
+
MYR: "MYR";
|
|
24194
|
+
PHP: "PHP";
|
|
24195
|
+
NZD: "NZD";
|
|
24196
|
+
CHF: "CHF";
|
|
24197
|
+
}>;
|
|
24198
|
+
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
24199
|
+
conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24200
|
+
}, z.core.$strict>>;
|
|
24201
|
+
/** 저장된 외화 배송 값(응답) */
|
|
24202
|
+
export declare const storedShippingCurrencyPriceSchema: z.ZodObject<{
|
|
24203
|
+
currency: z.ZodString;
|
|
24204
|
+
deliveryFee: z.ZodNumber;
|
|
24205
|
+
conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
|
|
24206
|
+
}, z.core.$strip>;
|
|
24207
|
+
/** 저장된 외화 판매가(응답) */
|
|
24208
|
+
export declare const storedProductCurrencyPriceSchema: z.ZodObject<{
|
|
24209
|
+
currency: z.ZodString;
|
|
24210
|
+
salePrice: z.ZodNumber;
|
|
24211
|
+
originalPrice: z.ZodNullable<z.ZodNumber>;
|
|
24212
|
+
discountAmount: z.ZodNullable<z.ZodNumber>;
|
|
24213
|
+
}, z.core.$strip>;
|
|
24214
|
+
/** 조합·추가 선택 값 추가금의 외화 값 — 추가금은 판매가 단위 규칙이 없다(설계 D4) */
|
|
24215
|
+
export declare const additionalCurrencyPriceSchema: z.ZodObject<{
|
|
24216
|
+
currency: z.ZodEnum<{
|
|
24217
|
+
KRW: "KRW";
|
|
24218
|
+
USD: "USD";
|
|
24219
|
+
EUR: "EUR";
|
|
24220
|
+
JPY: "JPY";
|
|
24221
|
+
GBP: "GBP";
|
|
24222
|
+
CNY: "CNY";
|
|
24223
|
+
HKD: "HKD";
|
|
24224
|
+
TWD: "TWD";
|
|
24225
|
+
SGD: "SGD";
|
|
24226
|
+
AUD: "AUD";
|
|
24227
|
+
CAD: "CAD";
|
|
24228
|
+
THB: "THB";
|
|
24229
|
+
MYR: "MYR";
|
|
24230
|
+
PHP: "PHP";
|
|
24231
|
+
NZD: "NZD";
|
|
24232
|
+
CHF: "CHF";
|
|
24233
|
+
}>;
|
|
24234
|
+
additionalPrice: z.ZodNumber;
|
|
24235
|
+
}, z.core.$strict>;
|
|
24236
|
+
export declare const additionalCurrencyPricesSchema: z.ZodArray<z.ZodObject<{
|
|
24237
|
+
currency: z.ZodEnum<{
|
|
24238
|
+
KRW: "KRW";
|
|
24239
|
+
USD: "USD";
|
|
24240
|
+
EUR: "EUR";
|
|
24241
|
+
JPY: "JPY";
|
|
24242
|
+
GBP: "GBP";
|
|
24243
|
+
CNY: "CNY";
|
|
24244
|
+
HKD: "HKD";
|
|
24245
|
+
TWD: "TWD";
|
|
24246
|
+
SGD: "SGD";
|
|
24247
|
+
AUD: "AUD";
|
|
24248
|
+
CAD: "CAD";
|
|
24249
|
+
THB: "THB";
|
|
24250
|
+
MYR: "MYR";
|
|
24251
|
+
PHP: "PHP";
|
|
24252
|
+
NZD: "NZD";
|
|
24253
|
+
CHF: "CHF";
|
|
24254
|
+
}>;
|
|
24255
|
+
additionalPrice: z.ZodNumber;
|
|
24256
|
+
}, z.core.$strict>>;
|
|
24257
|
+
export type AdditionalCurrencyPrice = z.infer<typeof additionalCurrencyPriceSchema>;
|
|
24258
|
+
/** 저장된 외화 추가금(응답) */
|
|
24259
|
+
export declare const storedAdditionalCurrencyPriceSchema: z.ZodObject<{
|
|
24260
|
+
currency: z.ZodString;
|
|
24261
|
+
additionalPrice: z.ZodNumber;
|
|
24262
|
+
}, z.core.$strip>;
|
|
24263
|
+
//#endregion
|
|
22339
24264
|
//#region src/schemas/customer-delegation.d.ts
|
|
22340
24265
|
export declare const customerDelegationRequestSchema: z.ZodObject<{
|
|
22341
24266
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -22443,7 +24368,7 @@ export declare const couponRejectReasonSchema: z.ZodEnum<{
|
|
|
22443
24368
|
}>;
|
|
22444
24369
|
export type CouponRejectReason = z.infer<typeof couponRejectReasonSchema>;
|
|
22445
24370
|
/** 쿠폰 적용 뒤 결제 금액의 하한 — 0원 결제 경로가 없어 이보다 작으면 결제를 시작하지 않는다(400 `PAYMENT_AMOUNT_TOO_LOW`) */
|
|
22446
|
-
export declare const MIN_PAYMENT_AMOUNT
|
|
24371
|
+
export declare const MIN_PAYMENT_AMOUNT: 100;
|
|
22447
24372
|
/** 계산에 넣는 주문상품 한 줄 */
|
|
22448
24373
|
export interface PricingLine {
|
|
22449
24374
|
/** 줄 식별자 — 주문서는 항목 순번, 주문은 주문상품 id. 배분 결과가 이 키로 나온다 */
|
|
@@ -22526,6 +24451,11 @@ export interface PricingInput {
|
|
|
22526
24451
|
* 것처럼 보이고, 탈퇴한 회원의 반품이 회원 전용 조건에 떨어진다. 대상과 최소 금액만 본다.
|
|
22527
24452
|
*/
|
|
22528
24453
|
ignoreEligibility?: boolean;
|
|
24454
|
+
/**
|
|
24455
|
+
* 주문 통화의 규칙 값(이슈 #130) — 정률 할인 내림 단위(판매가 단위)와 적립금 사용 뒤 남길 최소 결제액. 생략하면 KRW 규칙이다.
|
|
24456
|
+
* 금액 입력은 모두 이 통화의 최소 단위다
|
|
24457
|
+
*/
|
|
24458
|
+
moneyRules?: MoneyRules;
|
|
22529
24459
|
}
|
|
22530
24460
|
/** 줄 하나에 들어간 쿠폰별 할인 */
|
|
22531
24461
|
export interface CouponAllocation {
|
|
@@ -22586,12 +24516,12 @@ export interface PricingResult {
|
|
|
22586
24516
|
totalAmount: number;
|
|
22587
24517
|
}
|
|
22588
24518
|
/**
|
|
22589
|
-
* 할인액 — 정률은 10원
|
|
24519
|
+
* 할인액 — 정률은 판매가 단위(`rules.saleUnit`, KRW 10원) 내림, 최대 할인액과 기준 금액을 넘지 않는다. 기준 금액이 0 이하면 0이다.
|
|
22590
24520
|
*
|
|
22591
|
-
* 곱셈을 먼저 하고 나눈다. `base × 율 ÷
|
|
22592
|
-
* 부동소수 오차가 끼지
|
|
24521
|
+
* 곱셈을 먼저 하고 나눈다. `base × 율 ÷ (100 × 단위)`를 내려 단위를 곱하면 `floor(base × 율 / 100 / 단위) × 단위`와 같고
|
|
24522
|
+
* 부동소수 오차가 끼지 않는다(KRW는 지금의 `÷ 1000 × 10` 그대로).
|
|
22593
24523
|
*/
|
|
22594
|
-
export declare function couponDiscountOf(benefit: CouponBenefit, base: number): number;
|
|
24524
|
+
export declare function couponDiscountOf(benefit: CouponBenefit, base: number, rules?: MoneyRules): number;
|
|
22595
24525
|
/**
|
|
22596
24526
|
* 금액을 가중치 비율로 나눈다 — **누적 내림의 차분**이다.
|
|
22597
24527
|
*
|
|
@@ -22621,7 +24551,7 @@ export declare function pointUseOf(points: PricingPoints | null, amounts: {
|
|
|
22621
24551
|
productPaid: number;
|
|
22622
24552
|
deliveryPaid: number;
|
|
22623
24553
|
total: number;
|
|
22624
|
-
}): {
|
|
24554
|
+
}, moneyRules?: MoneyRules): {
|
|
22625
24555
|
amount: number;
|
|
22626
24556
|
maxUsable: number;
|
|
22627
24557
|
adjustReason: "MIN_PAYMENT" | null;
|
|
@@ -22740,6 +24670,12 @@ export declare function proratedPointRefund(item: {
|
|
|
22740
24670
|
}, settledQuantity: number, cancelQuantity: number): number;
|
|
22741
24671
|
//#endregion
|
|
22742
24672
|
//#region src/schemas/refund-policy.d.ts
|
|
24673
|
+
/** 외화 한 통화의 반품·교환 배송비 */
|
|
24674
|
+
export declare const currencyRefundFeesSchema: z.ZodObject<{
|
|
24675
|
+
returnDeliveryFee: z.ZodNumber;
|
|
24676
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
24677
|
+
}, z.core.$strict>;
|
|
24678
|
+
export type CurrencyRefundFees = z.infer<typeof currencyRefundFeesSchema>;
|
|
22743
24679
|
/** 유효 환불 정책 — 상점 기본 + 상품별 덮어쓰기를 합친 결과 */
|
|
22744
24680
|
export declare const refundPolicySchema: z.ZodObject<{
|
|
22745
24681
|
preShipmentDeliveryFeeRefund: z.ZodBoolean;
|
|
@@ -22748,6 +24684,27 @@ export declare const refundPolicySchema: z.ZodObject<{
|
|
|
22748
24684
|
sellerFaultFreeShipping: z.ZodBoolean;
|
|
22749
24685
|
conditionalFreeShortfallCharge: z.ZodBoolean;
|
|
22750
24686
|
couponShortfallCharge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
24687
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
24688
|
+
KRW: "KRW";
|
|
24689
|
+
USD: "USD";
|
|
24690
|
+
EUR: "EUR";
|
|
24691
|
+
JPY: "JPY";
|
|
24692
|
+
GBP: "GBP";
|
|
24693
|
+
CNY: "CNY";
|
|
24694
|
+
HKD: "HKD";
|
|
24695
|
+
TWD: "TWD";
|
|
24696
|
+
SGD: "SGD";
|
|
24697
|
+
AUD: "AUD";
|
|
24698
|
+
CAD: "CAD";
|
|
24699
|
+
THB: "THB";
|
|
24700
|
+
MYR: "MYR";
|
|
24701
|
+
PHP: "PHP";
|
|
24702
|
+
NZD: "NZD";
|
|
24703
|
+
CHF: "CHF";
|
|
24704
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
24705
|
+
returnDeliveryFee: z.ZodNumber;
|
|
24706
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
24707
|
+
}, z.core.$strict>>>;
|
|
22751
24708
|
}, z.core.$strip>;
|
|
22752
24709
|
export type RefundPolicy = z.infer<typeof refundPolicySchema>;
|
|
22753
24710
|
/**
|
|
@@ -22770,6 +24727,27 @@ export declare const refundPolicyPatchSchema: z.ZodObject<{
|
|
|
22770
24727
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
22771
24728
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
22772
24729
|
couponShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
24730
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
24731
|
+
KRW: "KRW";
|
|
24732
|
+
USD: "USD";
|
|
24733
|
+
EUR: "EUR";
|
|
24734
|
+
JPY: "JPY";
|
|
24735
|
+
GBP: "GBP";
|
|
24736
|
+
CNY: "CNY";
|
|
24737
|
+
HKD: "HKD";
|
|
24738
|
+
TWD: "TWD";
|
|
24739
|
+
SGD: "SGD";
|
|
24740
|
+
AUD: "AUD";
|
|
24741
|
+
CAD: "CAD";
|
|
24742
|
+
THB: "THB";
|
|
24743
|
+
MYR: "MYR";
|
|
24744
|
+
PHP: "PHP";
|
|
24745
|
+
NZD: "NZD";
|
|
24746
|
+
CHF: "CHF";
|
|
24747
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
24748
|
+
returnDeliveryFee: z.ZodNumber;
|
|
24749
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
24750
|
+
}, z.core.$strict>>>;
|
|
22773
24751
|
}, z.core.$strict>;
|
|
22774
24752
|
export type RefundPolicyPatch = z.infer<typeof refundPolicyPatchSchema>;
|
|
22775
24753
|
/**
|
|
@@ -22782,6 +24760,27 @@ export declare const productRefundPolicyPatchSchema: z.ZodObject<{
|
|
|
22782
24760
|
exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
22783
24761
|
sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
|
|
22784
24762
|
conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
|
|
24763
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
24764
|
+
KRW: "KRW";
|
|
24765
|
+
USD: "USD";
|
|
24766
|
+
EUR: "EUR";
|
|
24767
|
+
JPY: "JPY";
|
|
24768
|
+
GBP: "GBP";
|
|
24769
|
+
CNY: "CNY";
|
|
24770
|
+
HKD: "HKD";
|
|
24771
|
+
TWD: "TWD";
|
|
24772
|
+
SGD: "SGD";
|
|
24773
|
+
AUD: "AUD";
|
|
24774
|
+
CAD: "CAD";
|
|
24775
|
+
THB: "THB";
|
|
24776
|
+
MYR: "MYR";
|
|
24777
|
+
PHP: "PHP";
|
|
24778
|
+
NZD: "NZD";
|
|
24779
|
+
CHF: "CHF";
|
|
24780
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
24781
|
+
returnDeliveryFee: z.ZodNumber;
|
|
24782
|
+
exchangeDeliveryFee: z.ZodNumber;
|
|
24783
|
+
}, z.core.$strict>>>;
|
|
22785
24784
|
}, z.core.$strict>;
|
|
22786
24785
|
/** 정책 해석에 쓰는 상품 값 — 상품별 덮어쓰기 */
|
|
22787
24786
|
export interface RefundPolicyProductInput {
|
|
@@ -22795,6 +24794,12 @@ export interface RefundPolicyProductInput {
|
|
|
22795
24794
|
* 레거시 값은 마이그레이션이 상품별 정책으로 옮겼다.
|
|
22796
24795
|
*/
|
|
22797
24796
|
export declare function resolveRefundPolicy(storePolicy?: RefundPolicyPatch | null, product?: RefundPolicyProductInput | null): RefundPolicy;
|
|
24797
|
+
/**
|
|
24798
|
+
* 통화의 유효 정책(이슈 #130) — 기본 통화는 위와 같다. 외화는 반품·교환 배송비를 상품 `currencies[통화]` → 상점 `currencies[통화]` 순으로 찾고
|
|
24799
|
+
* (부담 규칙 boolean은 통화와 무관하다), 둘 다 없으면 null이다 — 그 통화로 배송 상품을 팔지 않는다(`NO_REFUND_FEE`).
|
|
24800
|
+
* 결과의 `currencies`는 지우고 금액 필드가 그 통화 값이다. 통화별 반품비 해석은 이 함수 하나다
|
|
24801
|
+
*/
|
|
24802
|
+
export declare function resolveRefundPolicy(storePolicy: RefundPolicyPatch | null | undefined, product: RefundPolicyProductInput | null | undefined, currency: string): RefundPolicy | null;
|
|
22798
24803
|
/**
|
|
22799
24804
|
* 상품의 **덮어쓰기 자체** — 덮어쓰기가 없으면 null.
|
|
22800
24805
|
*
|
|
@@ -22898,12 +24903,39 @@ export declare const SCOPE_DESCRIPTIONS: Record<StoreScopeResource, {
|
|
|
22898
24903
|
export declare function describeScope(scope: string): string | null;
|
|
22899
24904
|
//#endregion
|
|
22900
24905
|
//#region src/schemas/shipping-policy.d.ts
|
|
24906
|
+
/** 외화 한 통화의 상점 배송 값 */
|
|
24907
|
+
export declare const currencyShippingPolicySchema: z.ZodObject<{
|
|
24908
|
+
baseDeliveryFee: z.ZodNumber;
|
|
24909
|
+
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
24910
|
+
}, z.core.$strict>;
|
|
24911
|
+
export type CurrencyShippingPolicy = z.infer<typeof currencyShippingPolicySchema>;
|
|
22901
24912
|
/** 유효 배송비 정책 — 상점이 정하지 않은 항목은 `SHIPPING_POLICY_DEFAULTS`로 채운 값이다 */
|
|
22902
24913
|
export declare const shippingPolicySchema: z.ZodObject<{
|
|
22903
24914
|
baseDeliveryFee: z.ZodNumber;
|
|
22904
24915
|
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
22905
24916
|
jejuSurcharge: z.ZodNumber;
|
|
22906
24917
|
isolatedSurcharge: z.ZodNumber;
|
|
24918
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
24919
|
+
KRW: "KRW";
|
|
24920
|
+
USD: "USD";
|
|
24921
|
+
EUR: "EUR";
|
|
24922
|
+
JPY: "JPY";
|
|
24923
|
+
GBP: "GBP";
|
|
24924
|
+
CNY: "CNY";
|
|
24925
|
+
HKD: "HKD";
|
|
24926
|
+
TWD: "TWD";
|
|
24927
|
+
SGD: "SGD";
|
|
24928
|
+
AUD: "AUD";
|
|
24929
|
+
CAD: "CAD";
|
|
24930
|
+
THB: "THB";
|
|
24931
|
+
MYR: "MYR";
|
|
24932
|
+
PHP: "PHP";
|
|
24933
|
+
NZD: "NZD";
|
|
24934
|
+
CHF: "CHF";
|
|
24935
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
24936
|
+
baseDeliveryFee: z.ZodNumber;
|
|
24937
|
+
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
24938
|
+
}, z.core.$strict>>>;
|
|
22907
24939
|
}, z.core.$strip>;
|
|
22908
24940
|
export type ShippingPolicy = z.infer<typeof shippingPolicySchema>;
|
|
22909
24941
|
/**
|
|
@@ -22924,10 +24956,37 @@ export declare const shippingPolicyPatchSchema: z.ZodObject<{
|
|
|
22924
24956
|
freeThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22925
24957
|
jejuSurcharge: z.ZodOptional<z.ZodNumber>;
|
|
22926
24958
|
isolatedSurcharge: z.ZodOptional<z.ZodNumber>;
|
|
24959
|
+
currencies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
24960
|
+
KRW: "KRW";
|
|
24961
|
+
USD: "USD";
|
|
24962
|
+
EUR: "EUR";
|
|
24963
|
+
JPY: "JPY";
|
|
24964
|
+
GBP: "GBP";
|
|
24965
|
+
CNY: "CNY";
|
|
24966
|
+
HKD: "HKD";
|
|
24967
|
+
TWD: "TWD";
|
|
24968
|
+
SGD: "SGD";
|
|
24969
|
+
AUD: "AUD";
|
|
24970
|
+
CAD: "CAD";
|
|
24971
|
+
THB: "THB";
|
|
24972
|
+
MYR: "MYR";
|
|
24973
|
+
PHP: "PHP";
|
|
24974
|
+
NZD: "NZD";
|
|
24975
|
+
CHF: "CHF";
|
|
24976
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
24977
|
+
baseDeliveryFee: z.ZodNumber;
|
|
24978
|
+
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
24979
|
+
}, z.core.$strict>>>;
|
|
22927
24980
|
}, z.core.$strict>;
|
|
22928
24981
|
export type ShippingPolicyPatch = z.infer<typeof shippingPolicyPatchSchema>;
|
|
22929
|
-
/**
|
|
24982
|
+
/**
|
|
24983
|
+
* 유효 정책 해석 — 상점이 정한 항목 + `SHIPPING_POLICY_DEFAULTS`.
|
|
24984
|
+
*
|
|
24985
|
+
* `currency`(이슈 #130)를 주면 그 통화의 정책이다. 기본 통화는 지금과 같고, 외화는 `currencies[통화]`의 기본 배송비·무료 기준액에
|
|
24986
|
+
* 지역 추가 배송비 0이다(할증 구간은 국내 값). 외화 값이 없으면 null — 그 통화로 배송 상품을 팔지 않는다. 통화별 값 해석은 이 함수 하나다.
|
|
24987
|
+
*/
|
|
22930
24988
|
export declare function resolveShippingPolicy(patch?: ShippingPolicyPatch | null): ShippingPolicy;
|
|
24989
|
+
export declare function resolveShippingPolicy(patch: ShippingPolicyPatch | null | undefined, currency: string): ShippingPolicy | null;
|
|
22931
24990
|
/** 지역 구분 — 우편번호로 판정한다 */
|
|
22932
24991
|
export declare const remoteAreaSchema: z.ZodEnum<{
|
|
22933
24992
|
NONE: "NONE";
|