@sayren/store-sdk 0.29.2 โ†’ 0.29.3

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 CHANGED
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
167
167
  export declare const agentPolicyDecisionSchema: z.ZodEnum<{
168
- DENIED: "DENIED";
169
168
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
+ DENIED: "DENIED";
170
170
  ALLOW: "ALLOW";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
@@ -190,8 +190,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
190
190
  export declare const writeDryRunResultSchema: z.ZodObject<{
191
191
  dryRun: z.ZodLiteral<true>;
192
192
  decision: z.ZodEnum<{
193
- DENIED: "DENIED";
194
193
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
194
+ DENIED: "DENIED";
195
195
  ALLOW: "ALLOW";
196
196
  }>;
197
197
  reason: z.ZodNullable<z.ZodString>;
@@ -213,11 +213,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
213
213
  }, z.core.$strip>;
214
214
  export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
215
215
  export declare const approvalStatusSchema: z.ZodEnum<{
216
- UNKNOWN: "UNKNOWN";
217
216
  PENDING: "PENDING";
218
217
  FAILED: "FAILED";
219
218
  SUCCEEDED: "SUCCEEDED";
220
219
  EXECUTING: "EXECUTING";
220
+ UNKNOWN: "UNKNOWN";
221
221
  REJECTED: "REJECTED";
222
222
  EXPIRED: "EXPIRED";
223
223
  }>;
@@ -225,11 +225,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
225
225
  export declare const approvalRequestSchema: z.ZodObject<{
226
226
  approvalId: z.ZodString;
227
227
  status: z.ZodEnum<{
228
- UNKNOWN: "UNKNOWN";
229
228
  PENDING: "PENDING";
230
229
  FAILED: "FAILED";
231
230
  SUCCEEDED: "SUCCEEDED";
232
231
  EXECUTING: "EXECUTING";
232
+ UNKNOWN: "UNKNOWN";
233
233
  REJECTED: "REJECTED";
234
234
  EXPIRED: "EXPIRED";
235
235
  }>;
@@ -287,11 +287,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
287
287
  export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
288
288
  export declare const approvalListQuerySchema: z.ZodObject<{
289
289
  status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
290
- UNKNOWN: "UNKNOWN";
291
290
  PENDING: "PENDING";
292
291
  FAILED: "FAILED";
293
292
  SUCCEEDED: "SUCCEEDED";
294
293
  EXECUTING: "EXECUTING";
294
+ UNKNOWN: "UNKNOWN";
295
295
  REJECTED: "REJECTED";
296
296
  EXPIRED: "EXPIRED";
297
297
  }>>>>;
@@ -306,11 +306,11 @@ export declare const approvalPageSchema: z.ZodObject<{
306
306
  items: z.ZodArray<z.ZodObject<{
307
307
  approvalId: z.ZodString;
308
308
  status: z.ZodEnum<{
309
- UNKNOWN: "UNKNOWN";
310
309
  PENDING: "PENDING";
311
310
  FAILED: "FAILED";
312
311
  SUCCEEDED: "SUCCEEDED";
313
312
  EXECUTING: "EXECUTING";
313
+ UNKNOWN: "UNKNOWN";
314
314
  REJECTED: "REJECTED";
315
315
  EXPIRED: "EXPIRED";
316
316
  }>;
@@ -448,11 +448,11 @@ export declare const analyticsTotalsSchema: z.ZodObject<{
448
448
  export type AnalyticsTotals = z.infer<typeof analyticsTotalsSchema>;
449
449
  export declare const analyticsFunnelStepSchema: z.ZodObject<{
450
450
  step: z.ZodEnum<{
451
+ PURCHASE: "PURCHASE";
451
452
  SESSION: "SESSION";
452
453
  PRODUCT_VIEW: "PRODUCT_VIEW";
453
454
  ADD_TO_CART: "ADD_TO_CART";
454
455
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
455
- PURCHASE: "PURCHASE";
456
456
  }>;
457
457
  sessions: z.ZodNumber;
458
458
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -477,11 +477,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
477
477
  }, z.core.$strip>;
478
478
  funnel: z.ZodArray<z.ZodObject<{
479
479
  step: z.ZodEnum<{
480
+ PURCHASE: "PURCHASE";
480
481
  SESSION: "SESSION";
481
482
  PRODUCT_VIEW: "PRODUCT_VIEW";
482
483
  ADD_TO_CART: "ADD_TO_CART";
483
484
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
484
- PURCHASE: "PURCHASE";
485
485
  }>;
486
486
  sessions: z.ZodNumber;
487
487
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -581,20 +581,20 @@ export declare const analyticsProductsSchema: z.ZodObject<{
581
581
  }, z.core.$strip>;
582
582
  export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
583
583
  export declare const analyticsChannelSchema: z.ZodEnum<{
584
+ PAID: "PAID";
584
585
  DIRECT: "DIRECT";
586
+ CAMPAIGN: "CAMPAIGN";
587
+ UNKNOWN: "UNKNOWN";
585
588
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
586
589
  SOCIAL: "SOCIAL";
587
- PAID: "PAID";
588
590
  EMAIL: "EMAIL";
589
- CAMPAIGN: "CAMPAIGN";
590
591
  REFERRAL: "REFERRAL";
591
- UNKNOWN: "UNKNOWN";
592
592
  }>;
593
593
  export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
594
594
  export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
595
- CAMPAIGN: "CAMPAIGN";
596
595
  CHANNEL: "CHANNEL";
597
596
  SOURCE: "SOURCE";
597
+ CAMPAIGN: "CAMPAIGN";
598
598
  DEVICE: "DEVICE";
599
599
  }>;
600
600
  export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
@@ -606,23 +606,23 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
606
606
  false: "false";
607
607
  }>>;
608
608
  groupBy: z.ZodOptional<z.ZodEnum<{
609
- CAMPAIGN: "CAMPAIGN";
610
609
  CHANNEL: "CHANNEL";
611
610
  SOURCE: "SOURCE";
611
+ CAMPAIGN: "CAMPAIGN";
612
612
  DEVICE: "DEVICE";
613
613
  }>>;
614
614
  }, z.core.$strip>;
615
615
  export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
616
616
  export declare const analyticsSourceRowSchema: z.ZodObject<{
617
617
  channel: z.ZodNullable<z.ZodEnum<{
618
+ PAID: "PAID";
618
619
  DIRECT: "DIRECT";
620
+ CAMPAIGN: "CAMPAIGN";
621
+ UNKNOWN: "UNKNOWN";
619
622
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
620
623
  SOCIAL: "SOCIAL";
621
- PAID: "PAID";
622
624
  EMAIL: "EMAIL";
623
- CAMPAIGN: "CAMPAIGN";
624
625
  REFERRAL: "REFERRAL";
625
- UNKNOWN: "UNKNOWN";
626
626
  }>>;
627
627
  source: z.ZodNullable<z.ZodString>;
628
628
  medium: z.ZodNullable<z.ZodString>;
@@ -644,21 +644,21 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
644
644
  export type AnalyticsSourceRow = z.infer<typeof analyticsSourceRowSchema>;
645
645
  export declare const analyticsSourcesSchema: z.ZodObject<{
646
646
  groupBy: z.ZodEnum<{
647
- CAMPAIGN: "CAMPAIGN";
648
647
  CHANNEL: "CHANNEL";
649
648
  SOURCE: "SOURCE";
649
+ CAMPAIGN: "CAMPAIGN";
650
650
  DEVICE: "DEVICE";
651
651
  }>;
652
652
  rows: z.ZodArray<z.ZodObject<{
653
653
  channel: z.ZodNullable<z.ZodEnum<{
654
+ PAID: "PAID";
654
655
  DIRECT: "DIRECT";
656
+ CAMPAIGN: "CAMPAIGN";
657
+ UNKNOWN: "UNKNOWN";
655
658
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
656
659
  SOCIAL: "SOCIAL";
657
- PAID: "PAID";
658
660
  EMAIL: "EMAIL";
659
- CAMPAIGN: "CAMPAIGN";
660
661
  REFERRAL: "REFERRAL";
661
- UNKNOWN: "UNKNOWN";
662
662
  }>>;
663
663
  source: z.ZodNullable<z.ZodString>;
664
664
  medium: z.ZodNullable<z.ZodString>;
@@ -807,12 +807,12 @@ export declare const analyticsSearchSchema: z.ZodObject<{
807
807
  }, z.core.$strip>;
808
808
  export type AnalyticsSearch = z.infer<typeof analyticsSearchSchema>;
809
809
  export declare const analyticsCheckoutOutcomeSchema: z.ZodEnum<{
810
+ OTHER: "OTHER";
810
811
  COMPLETED: "COMPLETED";
811
812
  NOT_OPENED: "NOT_OPENED";
812
813
  USER_CANCELED: "USER_CANCELED";
813
814
  DECLINED: "DECLINED";
814
815
  PREPARE_FAILURE: "PREPARE_FAILURE";
815
- OTHER: "OTHER";
816
816
  IN_PROGRESS: "IN_PROGRESS";
817
817
  }>;
818
818
  export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
@@ -820,12 +820,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
820
820
  sessions: z.ZodNumber;
821
821
  outcomes: z.ZodArray<z.ZodObject<{
822
822
  outcome: z.ZodEnum<{
823
+ OTHER: "OTHER";
823
824
  COMPLETED: "COMPLETED";
824
825
  NOT_OPENED: "NOT_OPENED";
825
826
  USER_CANCELED: "USER_CANCELED";
826
827
  DECLINED: "DECLINED";
827
828
  PREPARE_FAILURE: "PREPARE_FAILURE";
828
- OTHER: "OTHER";
829
829
  IN_PROGRESS: "IN_PROGRESS";
830
830
  }>;
831
831
  sessions: z.ZodNumber;
@@ -1264,7 +1264,6 @@ export declare const claimTypeSchema: z.ZodEnum<{
1264
1264
  }>;
1265
1265
  export type ClaimType = z.infer<typeof claimTypeSchema>;
1266
1266
  export declare const claimStatusSchema: z.ZodEnum<{
1267
- COMPLETED: "COMPLETED";
1268
1267
  REJECTED: "REJECTED";
1269
1268
  REQUESTED: "REQUESTED";
1270
1269
  HELD: "HELD";
@@ -1272,6 +1271,7 @@ export declare const claimStatusSchema: z.ZodEnum<{
1272
1271
  COLLECTED: "COLLECTED";
1273
1272
  REDELIVERING: "REDELIVERING";
1274
1273
  APPROVED: "APPROVED";
1274
+ COMPLETED: "COMPLETED";
1275
1275
  WITHDRAWN: "WITHDRAWN";
1276
1276
  }>;
1277
1277
  export type ClaimStatus = z.infer<typeof claimStatusSchema>;
@@ -1308,7 +1308,6 @@ export declare const claimSchema: z.ZodObject<{
1308
1308
  CANCEL: "CANCEL";
1309
1309
  }>;
1310
1310
  status: z.ZodEnum<{
1311
- COMPLETED: "COMPLETED";
1312
1311
  REJECTED: "REJECTED";
1313
1312
  REQUESTED: "REQUESTED";
1314
1313
  HELD: "HELD";
@@ -1316,6 +1315,7 @@ export declare const claimSchema: z.ZodObject<{
1316
1315
  COLLECTED: "COLLECTED";
1317
1316
  REDELIVERING: "REDELIVERING";
1318
1317
  APPROVED: "APPROVED";
1318
+ COMPLETED: "COMPLETED";
1319
1319
  WITHDRAWN: "WITHDRAWN";
1320
1320
  }>;
1321
1321
  orderId: z.ZodString;
@@ -1338,6 +1338,7 @@ export declare const claimSchema: z.ZodObject<{
1338
1338
  claimDeliveryFee: z.ZodNumber;
1339
1339
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
1340
1340
  expectedDeliveryFeeRefundAmount: z.ZodNullable<z.ZodNumber>;
1341
+ expectedPointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1341
1342
  exchangeOption: z.ZodNullable<z.ZodObject<{
1342
1343
  optionId: z.ZodString;
1343
1344
  optionName: z.ZodString;
@@ -1396,7 +1397,6 @@ export declare const claimDetailSchema: z.ZodObject<{
1396
1397
  CANCEL: "CANCEL";
1397
1398
  }>;
1398
1399
  status: z.ZodEnum<{
1399
- COMPLETED: "COMPLETED";
1400
1400
  REJECTED: "REJECTED";
1401
1401
  REQUESTED: "REQUESTED";
1402
1402
  HELD: "HELD";
@@ -1404,6 +1404,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1404
1404
  COLLECTED: "COLLECTED";
1405
1405
  REDELIVERING: "REDELIVERING";
1406
1406
  APPROVED: "APPROVED";
1407
+ COMPLETED: "COMPLETED";
1407
1408
  WITHDRAWN: "WITHDRAWN";
1408
1409
  }>;
1409
1410
  orderId: z.ZodString;
@@ -1426,6 +1427,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1426
1427
  claimDeliveryFee: z.ZodNumber;
1427
1428
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
1428
1429
  expectedDeliveryFeeRefundAmount: z.ZodNullable<z.ZodNumber>;
1430
+ expectedPointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1429
1431
  exchangeOption: z.ZodNullable<z.ZodObject<{
1430
1432
  optionId: z.ZodString;
1431
1433
  optionName: z.ZodString;
@@ -1453,7 +1455,6 @@ export declare const claimDetailSchema: z.ZodObject<{
1453
1455
  }, z.core.$strip>>;
1454
1456
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1455
1457
  status: z.ZodEnum<{
1456
- COMPLETED: "COMPLETED";
1457
1458
  REJECTED: "REJECTED";
1458
1459
  REQUESTED: "REQUESTED";
1459
1460
  HELD: "HELD";
@@ -1461,6 +1462,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1461
1462
  COLLECTED: "COLLECTED";
1462
1463
  REDELIVERING: "REDELIVERING";
1463
1464
  APPROVED: "APPROVED";
1465
+ COMPLETED: "COMPLETED";
1464
1466
  WITHDRAWN: "WITHDRAWN";
1465
1467
  }>;
1466
1468
  actor: z.ZodEnum<{
@@ -1499,6 +1501,7 @@ export declare const approveClaimResultSchema: z.ZodObject<{
1499
1501
  deliveryFeeChargeAmount: z.ZodNumber;
1500
1502
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1501
1503
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1504
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1502
1505
  refundedAt: z.ZodString;
1503
1506
  }, z.core.$strip>;
1504
1507
  export type ApproveClaimResult = z.infer<typeof approveClaimResultSchema>;
@@ -2523,10 +2526,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
2523
2526
  /** `POST /v1/customers/{id}/withdraw` ๋ณธ๋ฌธ */
2524
2527
  export declare const withdrawCustomerRequestSchema: z.ZodObject<{
2525
2528
  reason: z.ZodEnum<{
2526
- OTHER: "OTHER";
2527
2529
  BUYER_REQUEST: "BUYER_REQUEST";
2528
2530
  DORMANT: "DORMANT";
2529
2531
  ABUSE: "ABUSE";
2532
+ OTHER: "OTHER";
2530
2533
  }>;
2531
2534
  memo: z.ZodOptional<z.ZodString>;
2532
2535
  }, z.core.$strip>;
@@ -3260,8 +3263,8 @@ export declare function requiresCollection(type: string | null | undefined): boo
3260
3263
  export declare const NO_SHIPPING_BUNDLE_KEY = "none";
3261
3264
  /** ๋ฐฐ์†ก๋น„ ์œ ํ˜• โ€” ๋ฌด๋ฃŒยท์œ ๋ฃŒยท์กฐ๊ฑด๋ถ€ ๋ฌด๋ฃŒ */
3262
3265
  export declare const deliveryTypeSchema: z.ZodEnum<{
3263
- PAID: "PAID";
3264
3266
  FREE: "FREE";
3267
+ PAID: "PAID";
3265
3268
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3266
3269
  }>;
3267
3270
  export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
@@ -3272,8 +3275,8 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
3272
3275
  type: z.ZodLiteral<"SHIPPING">;
3273
3276
  shipping: z.ZodOptional<z.ZodObject<{
3274
3277
  deliveryType: z.ZodDefault<z.ZodEnum<{
3275
- PAID: "PAID";
3276
3278
  FREE: "FREE";
3279
+ PAID: "PAID";
3277
3280
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3278
3281
  }>>;
3279
3282
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -3295,8 +3298,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
3295
3298
  type: z.ZodLiteral<"SHIPPING">;
3296
3299
  shipping: z.ZodObject<{
3297
3300
  deliveryType: z.ZodEnum<{
3298
- PAID: "PAID";
3299
3301
  FREE: "FREE";
3302
+ PAID: "PAID";
3300
3303
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3301
3304
  }>;
3302
3305
  deliveryFee: z.ZodNumber;
@@ -3316,8 +3319,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
3316
3319
  type: z.ZodLiteral<"SHIPPING">;
3317
3320
  shipping: z.ZodObject<{
3318
3321
  deliveryType: z.ZodEnum<{
3319
- PAID: "PAID";
3320
3322
  FREE: "FREE";
3323
+ PAID: "PAID";
3321
3324
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3322
3325
  }>;
3323
3326
  deliveryFee: z.ZodNumber;
@@ -3355,8 +3358,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
3355
3358
  type: z.ZodLiteral<"SHIPPING">;
3356
3359
  shipping: z.ZodObject<{
3357
3360
  deliveryType: z.ZodEnum<{
3358
- PAID: "PAID";
3359
3361
  FREE: "FREE";
3362
+ PAID: "PAID";
3360
3363
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3361
3364
  }>;
3362
3365
  deliveryFee: z.ZodNumber;
@@ -3495,6 +3498,7 @@ export declare const orderItemSchema: z.ZodObject<{
3495
3498
  discountAmount: z.ZodNumber;
3496
3499
  totalPrice: z.ZodNumber;
3497
3500
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3501
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3498
3502
  hold: z.ZodNullable<z.ZodObject<{
3499
3503
  reason: z.ZodString;
3500
3504
  expectedDispatchDate: z.ZodString;
@@ -3567,6 +3571,7 @@ export declare const orderSchema: z.ZodObject<{
3567
3571
  discountAmount: z.ZodNumber;
3568
3572
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3569
3573
  deliveryDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3574
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3570
3575
  discounts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3571
3576
  couponId: z.ZodString;
3572
3577
  name: z.ZodString;
@@ -3654,6 +3659,7 @@ export declare const orderSchema: z.ZodObject<{
3654
3659
  discountAmount: z.ZodNumber;
3655
3660
  totalPrice: z.ZodNumber;
3656
3661
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3662
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3657
3663
  hold: z.ZodNullable<z.ZodObject<{
3658
3664
  reason: z.ZodString;
3659
3665
  expectedDispatchDate: z.ZodString;
@@ -3770,6 +3776,7 @@ export declare const orderItemPageSchema: z.ZodObject<{
3770
3776
  discountAmount: z.ZodNumber;
3771
3777
  totalPrice: z.ZodNumber;
3772
3778
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3779
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3773
3780
  hold: z.ZodNullable<z.ZodObject<{
3774
3781
  reason: z.ZodString;
3775
3782
  expectedDispatchDate: z.ZodString;
@@ -3871,16 +3878,16 @@ export interface OrderItemListParams extends PageParams {
3871
3878
  testPayment?: "true" | "false";
3872
3879
  }
3873
3880
  export declare const deliveryMethodSchema: z.ZodEnum<{
3874
- DIRECT: "DIRECT";
3875
3881
  COURIER: "COURIER";
3882
+ DIRECT: "DIRECT";
3876
3883
  QUICK: "QUICK";
3877
3884
  NOTHING: "NOTHING";
3878
3885
  }>;
3879
3886
  export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
3880
3887
  export declare const dispatchRequestSchema: z.ZodObject<{
3881
3888
  deliveryMethod: z.ZodEnum<{
3882
- DIRECT: "DIRECT";
3883
3889
  COURIER: "COURIER";
3890
+ DIRECT: "DIRECT";
3884
3891
  QUICK: "QUICK";
3885
3892
  NOTHING: "NOTHING";
3886
3893
  }>;
@@ -3892,8 +3899,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
3892
3899
  export declare const deliveryInfoSchema: z.ZodObject<{
3893
3900
  orderItemId: z.ZodString;
3894
3901
  deliveryMethod: z.ZodEnum<{
3895
- DIRECT: "DIRECT";
3896
3902
  COURIER: "COURIER";
3903
+ DIRECT: "DIRECT";
3897
3904
  QUICK: "QUICK";
3898
3905
  NOTHING: "NOTHING";
3899
3906
  }>;
@@ -3919,8 +3926,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
3919
3926
  export declare const deliveryStatusSchema: z.ZodObject<{
3920
3927
  orderItemId: z.ZodString;
3921
3928
  deliveryMethod: z.ZodEnum<{
3922
- DIRECT: "DIRECT";
3923
3929
  COURIER: "COURIER";
3930
+ DIRECT: "DIRECT";
3924
3931
  QUICK: "QUICK";
3925
3932
  NOTHING: "NOTHING";
3926
3933
  }>;
@@ -4008,6 +4015,7 @@ export declare const cancelBySellerResultSchema: z.ZodObject<{
4008
4015
  deliveryFeeChargeAmount: z.ZodNumber;
4009
4016
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4010
4017
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4018
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4011
4019
  refundedAt: z.ZodString;
4012
4020
  }, z.core.$strip>;
4013
4021
  export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
@@ -4926,6 +4934,7 @@ export type PaymentAttemptRecord = z.infer<typeof paymentAttemptRecordSchema>;
4926
4934
  export declare const paymentRefundRecordSchema: z.ZodObject<{
4927
4935
  refundId: z.ZodString;
4928
4936
  amount: z.ZodNumber;
4937
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4929
4938
  reason: z.ZodString;
4930
4939
  kind: z.ZodString;
4931
4940
  status: z.ZodString;
@@ -5013,6 +5022,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
5013
5022
  refunds: z.ZodArray<z.ZodObject<{
5014
5023
  refundId: z.ZodString;
5015
5024
  amount: z.ZodNumber;
5025
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5016
5026
  reason: z.ZodString;
5017
5027
  kind: z.ZodString;
5018
5028
  status: z.ZodString;
@@ -5094,6 +5104,21 @@ export declare const purchaseEarnPolicySchema: z.ZodObject<{
5094
5104
  rateBp: z.ZodNumber;
5095
5105
  }, z.core.$strip>;
5096
5106
  export type PurchaseEarnPolicy = z.infer<typeof purchaseEarnPolicySchema>;
5107
+ /** ์‚ฌ์šฉ ๋‹จ์œ„ โ€” 1ยท10ยท100์› */
5108
+ export declare const POINT_USE_UNITS: readonly [1, 10, 100];
5109
+ /**
5110
+ * ์ ๋ฆฝ๊ธˆ ์‚ฌ์šฉ ๊ทœ์น™(P3) โ€” ์ฃผ๋ฌธ์„œ์—์„œ ๊ฒฐ์ œ ๊ธˆ์•ก์„ ์ค„์ธ๋‹ค. ์ ์šฉ ์ˆœ์„œ๋Š” ์ฆ‰์‹œํ• ์ธ โ†’ ์ฟ ํฐ โ†’ ์ ๋ฆฝ๊ธˆ์ด๊ณ , ์ƒํ’ˆ ๊ธˆ์•ก(์ฟ ํฐ ๋’ค)์— ๋จผ์ € ์“ฐ๊ณ 
5111
+ * ๋‚จ์œผ๋ฉด ๋ฐฐ์†ก๋น„์— ์“ด๋‹ค(`includeDeliveryFee`). ๊ฒฐ์ œ ๊ธˆ์•ก์ด 100์› ์•„๋ž˜๋กœ ๋‚ด๋ ค๊ฐ€์ง€ ์•Š๊ฒŒ ์ ๋ฆฝ๊ธˆ์„ ์ค„์ธ๋‹ค.
5112
+ */
5113
+ export declare const pointUsePolicySchema: z.ZodObject<{
5114
+ enabled: z.ZodBoolean;
5115
+ minBalance: z.ZodNumber;
5116
+ minAmount: z.ZodNumber;
5117
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5118
+ maxRatioBp: z.ZodNumber;
5119
+ includeDeliveryFee: z.ZodBoolean;
5120
+ }, z.core.$strip>;
5121
+ export type PointUsePolicy = z.infer<typeof pointUsePolicySchema>;
5097
5122
  /** ์ €์žฅ๋œ ์ƒ์  ์ •์ฑ…(`stores.point_policy`) โ€” ํ•ด์„์€ `resolvePointPolicy` */
5098
5123
  export declare const pointPolicySchema: z.ZodObject<{
5099
5124
  reviewReward: z.ZodObject<{
@@ -5105,6 +5130,14 @@ export declare const pointPolicySchema: z.ZodObject<{
5105
5130
  enabled: z.ZodBoolean;
5106
5131
  rateBp: z.ZodNumber;
5107
5132
  }, z.core.$strip>;
5133
+ use: z.ZodObject<{
5134
+ enabled: z.ZodBoolean;
5135
+ minBalance: z.ZodNumber;
5136
+ minAmount: z.ZodNumber;
5137
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5138
+ maxRatioBp: z.ZodNumber;
5139
+ includeDeliveryFee: z.ZodBoolean;
5140
+ }, z.core.$strip>;
5108
5141
  expiryDays: z.ZodNullable<z.ZodNumber>;
5109
5142
  }, z.core.$strip>;
5110
5143
  export type PointPolicy = z.infer<typeof pointPolicySchema>;
@@ -5137,7 +5170,7 @@ export declare function pointExpiresAtOf(earnedAt: Date, days: number | null): D
5137
5170
  /** ์ ๋ฆฝ ๋ฌถ์Œ ์ถœ์ฒ˜ โ€” ๊ฐ™์€ ์ถœ์ฒ˜ id์—๋Š” ๋ฌถ์Œ์ด ํ•˜๋‚˜๋ฟ์ด๋‹ค(DB ๋ถ€๋ถ„ ์œ ๋‹ˆํฌ) */
5138
5171
  export declare const POINT_LOT_SOURCES: readonly ["REVIEW", "PURCHASE", "ADJUST", "REFUND_RESTORE", "OPENING"];
5139
5172
  export type PointLotSource = (typeof POINT_LOT_SOURCES)[number];
5140
- /** ์›์žฅ ํ•ญ๋ชฉ ์œ ํ˜•. ์ง€๊ธˆ ์“ฐ๋Š” ๊ฒƒ์€ ๋ฆฌ๋ทฐ ์ ๋ฆฝยทํšŒ์ˆ˜์ด๊ณ  ๋‚˜๋จธ์ง€๋Š” ๋‹ค์Œ ๋‹จ๊ณ„ ์ž๋ฆฌ๋‹ค */
5173
+ /** ์›์žฅ ํ•ญ๋ชฉ ์œ ํ˜• */
5141
5174
  export declare const POINT_ENTRY_TYPES: readonly ["EARN_REVIEW", "REVOKE_REVIEW", "EARN_PURCHASE", "USE_RESERVE", "USE_RELEASE", "REFUND_RESTORE", "EXPIRE", "ADJUST", "OPENING"];
5142
5175
  export type PointEntryType = (typeof POINT_ENTRY_TYPES)[number];
5143
5176
  /** ์ƒ์  ํ”Œ๋žซํผ ์•Œ๋ฆผ โ€” `REVIEW_REWARD_PAUSED` ๋ฆฌ๋ทฐ ์ž๋™ ์ ๋ฆฝ์ด ๋ฉˆ์ถค ยท `POINTS_AVAILABLE` ์ ๋ฆฝ๊ธˆ ์„ค์ •์„ ์“ธ ์ˆ˜ ์žˆ์Œ */
@@ -5159,6 +5192,15 @@ export declare const storePointPolicySchema: z.ZodObject<{
5159
5192
  enabled: z.ZodBoolean;
5160
5193
  rateBp: z.ZodNumber;
5161
5194
  }, z.core.$strip>;
5195
+ useAvailable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5196
+ use: z.ZodDefault<z.ZodOptional<z.ZodObject<{
5197
+ enabled: z.ZodBoolean;
5198
+ minBalance: z.ZodNumber;
5199
+ minAmount: z.ZodNumber;
5200
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5201
+ maxRatioBp: z.ZodNumber;
5202
+ includeDeliveryFee: z.ZodBoolean;
5203
+ }, z.core.$strip>>>;
5162
5204
  expiryDays: z.ZodNullable<z.ZodNumber>;
5163
5205
  notice: z.ZodNullable<z.ZodEnum<{
5164
5206
  REVIEW_REWARD_PAUSED: "REVIEW_REWARD_PAUSED";
@@ -5180,6 +5222,14 @@ export declare const updatePointPolicyRequestSchema: z.ZodObject<{
5180
5222
  enabled: z.ZodBoolean;
5181
5223
  rateBp: z.ZodNumber;
5182
5224
  }, z.core.$strip>>;
5225
+ use: z.ZodOptional<z.ZodObject<{
5226
+ enabled: z.ZodBoolean;
5227
+ minBalance: z.ZodNumber;
5228
+ minAmount: z.ZodNumber;
5229
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5230
+ maxRatioBp: z.ZodNumber;
5231
+ includeDeliveryFee: z.ZodBoolean;
5232
+ }, z.core.$strip>>;
5183
5233
  expiryDays: z.ZodOptional<z.ZodNumber>;
5184
5234
  }, z.core.$strip>;
5185
5235
  export type UpdatePointPolicyRequest = z.infer<typeof updatePointPolicyRequestSchema>;
@@ -5223,11 +5273,11 @@ export type PointEntry = z.infer<typeof pointEntrySchema>;
5223
5273
  export declare const pointLotSchema: z.ZodObject<{
5224
5274
  lotId: z.ZodString;
5225
5275
  source: z.ZodUnion<readonly [z.ZodEnum<{
5226
- PURCHASE: "PURCHASE";
5227
5276
  REFUND_RESTORE: "REFUND_RESTORE";
5228
5277
  ADJUST: "ADJUST";
5229
5278
  OPENING: "OPENING";
5230
5279
  REVIEW: "REVIEW";
5280
+ PURCHASE: "PURCHASE";
5231
5281
  }>, z.ZodString]>;
5232
5282
  amount: z.ZodNumber;
5233
5283
  remaining: z.ZodNumber;
@@ -5242,11 +5292,11 @@ export declare const customerPointsSchema: z.ZodObject<{
5242
5292
  lots: z.ZodArray<z.ZodObject<{
5243
5293
  lotId: z.ZodString;
5244
5294
  source: z.ZodUnion<readonly [z.ZodEnum<{
5245
- PURCHASE: "PURCHASE";
5246
5295
  REFUND_RESTORE: "REFUND_RESTORE";
5247
5296
  ADJUST: "ADJUST";
5248
5297
  OPENING: "OPENING";
5249
5298
  REVIEW: "REVIEW";
5299
+ PURCHASE: "PURCHASE";
5250
5300
  }>, z.ZodString]>;
5251
5301
  amount: z.ZodNumber;
5252
5302
  remaining: z.ZodNumber;
@@ -5304,6 +5354,30 @@ export declare const pointAdjustmentResultSchema: z.ZodObject<{
5304
5354
  balance: z.ZodNumber;
5305
5355
  }, z.core.$strip>;
5306
5356
  export type PointAdjustmentResult = z.infer<typeof pointAdjustmentResultSchema>;
5357
+ /** ๊ฒฐ์ œ ์‹œ์ž‘์— ์“ด ์ ๋ฆฝ ๋ฌถ์Œ โ€” ํ•ด์ œยทํ™˜๋ถˆ ๋ฐ˜ํ™˜์ด ์ด ๊ฐ’์œผ๋กœ ๋˜๋Œ๋ฆฌ๊ณ  ๋ฐ˜ํ™˜ ์ ๋ฆฝ๊ธˆ์˜ ๋งŒ๋ฃŒ๋ฅผ ์ •ํ•œ๋‹ค */
5358
+ export interface PointLotUsage {
5359
+ lotId: string;
5360
+ amount: number;
5361
+ expiresAt: string | null;
5362
+ }
5363
+ /**
5364
+ * ํ™˜๋ถˆ๋กœ ๋Œ๋ ค์ฃผ๋Š” ์ ๋ฆฝ๊ธˆ์˜ ๋งŒ๋ฃŒ โ€” ๊ฒฐ์ œ์— ์“ด ๋ฌถ์Œ ์ค‘ ๊ฐ€์žฅ ๋Šฆ์€ ๋งŒ๋ฃŒ์ด๊ณ , ๊ทธ ์‹œ๊ฐ์ด ์ด๋ฏธ ์ง€๋‚ฌ์œผ๋ฉด ์ง€๊ธˆ + 30์ผ(KST ๋‚ ์งœ ๋)์ด๋‹ค.
5365
+ * ์“ด ๋ฌถ์Œ ์ค‘ ๋งŒ๋ฃŒ ์—†๋Š” ๋ฌถ์Œ(๊ธฐ์กด ์ž”์•ก ๋“ฑ)์ด ์žˆ์œผ๋ฉด ๋งŒ๋ฃŒ ์—†์Œ(null)์ด๋‹ค. ์“ด ๊ธฐ๋ก์ด ์—†์œผ๋ฉด ์ง€๊ธˆ + 30์ผ์ด๋‹ค(์‚ฌ์šฉ์ž ๊ฒฐ์ • 2026-10-02).
5366
+ */
5367
+ export declare function pointRestoreExpiresAtOf(usages: readonly PointLotUsage[], now: Date): Date | null;
5368
+ /**
5369
+ * ํ™˜๋ถˆ ๊ธˆ์•ก ๋‚˜๋ˆ„๊ธฐ โ€” ํ˜„๊ธˆ ๋ชซยท์ ๋ฆฝ๊ธˆ ๋ชซ์—์„œ ์ฐจ๊ฐ(๋ฐ˜ํ’ˆ ๋ฐฐ์†ก๋น„ยท์ฟ ํฐ ์กฐ๊ฑด ๋ฏธ๋‹ฌยท์ถ”๊ฐ€ ์ฐจ๊ฐ)์„ **ํ˜„๊ธˆ์—์„œ ๋จผ์ €** ๋นผ๊ณ  ๋ชจ์ž๋ž€ ๋ชซ๋งŒ ์ ๋ฆฝ๊ธˆ์—์„œ ๋บ€๋‹ค.
5370
+ * ๋‘˜ ๋‹ค ๋ชจ์ž๋ผ๋ฉด 0์—์„œ ๋ฉˆ์ถ”๊ณ  ๋ชป ๋ฐ›์€ ์ฐจ๊ฐ์•ก(`uncollected`)์„ ๋Œ๋ ค์ค€๋‹ค(ํ˜ธ์ถœ๋ถ€๊ฐ€ ๊ฐ์‚ฌ ๋กœ๊ทธ์— ๋‚จ๊ธด๋‹ค).
5371
+ */
5372
+ export declare function splitRefund(input: {
5373
+ cash: number;
5374
+ points: number;
5375
+ charges: number;
5376
+ }): {
5377
+ cashRefund: number;
5378
+ pointRefund: number;
5379
+ uncollected: number;
5380
+ };
5307
5381
  //#endregion
5308
5382
  //#region src/schemas/product.d.ts
5309
5383
  export declare const productStatusSchema: z.ZodEnum<{
@@ -5582,8 +5656,8 @@ export declare const productSchema: z.ZodObject<{
5582
5656
  type: z.ZodLiteral<"SHIPPING">;
5583
5657
  shipping: z.ZodObject<{
5584
5658
  deliveryType: z.ZodEnum<{
5585
- PAID: "PAID";
5586
5659
  FREE: "FREE";
5660
+ PAID: "PAID";
5587
5661
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5588
5662
  }>;
5589
5663
  deliveryFee: z.ZodNumber;
@@ -5805,8 +5879,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5805
5879
  type: z.ZodLiteral<"SHIPPING">;
5806
5880
  shipping: z.ZodOptional<z.ZodObject<{
5807
5881
  deliveryType: z.ZodDefault<z.ZodEnum<{
5808
- PAID: "PAID";
5809
5882
  FREE: "FREE";
5883
+ PAID: "PAID";
5810
5884
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5811
5885
  }>>;
5812
5886
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -5891,8 +5965,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
5891
5965
  type: z.ZodLiteral<"SHIPPING">;
5892
5966
  shipping: z.ZodObject<{
5893
5967
  deliveryType: z.ZodEnum<{
5894
- PAID: "PAID";
5895
5968
  FREE: "FREE";
5969
+ PAID: "PAID";
5896
5970
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5897
5971
  }>;
5898
5972
  deliveryFee: z.ZodNumber;
@@ -5985,8 +6059,8 @@ export declare const productPatchRequestSchema: z.ZodObject<{
5985
6059
  type: z.ZodLiteral<"SHIPPING">;
5986
6060
  shipping: z.ZodObject<{
5987
6061
  deliveryType: z.ZodEnum<{
5988
- PAID: "PAID";
5989
6062
  FREE: "FREE";
6063
+ PAID: "PAID";
5990
6064
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5991
6065
  }>;
5992
6066
  deliveryFee: z.ZodNumber;
@@ -6010,9 +6084,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
6010
6084
  export declare const productSortSchema: z.ZodEnum<{
6011
6085
  "createdAt.desc": "createdAt.desc";
6012
6086
  "createdAt.asc": "createdAt.asc";
6087
+ "updatedAt.desc": "updatedAt.desc";
6013
6088
  "salePrice.asc": "salePrice.asc";
6014
6089
  "salePrice.desc": "salePrice.desc";
6015
- "updatedAt.desc": "updatedAt.desc";
6016
6090
  }>;
6017
6091
  export type ProductSort = z.infer<typeof productSortSchema>;
6018
6092
  export interface ProductListParams extends PageParams {
@@ -6038,9 +6112,9 @@ export declare const productListQuerySchema: z.ZodObject<{
6038
6112
  sort: z.ZodOptional<z.ZodEnum<{
6039
6113
  "createdAt.desc": "createdAt.desc";
6040
6114
  "createdAt.asc": "createdAt.asc";
6115
+ "updatedAt.desc": "updatedAt.desc";
6041
6116
  "salePrice.asc": "salePrice.asc";
6042
6117
  "salePrice.desc": "salePrice.desc";
6043
- "updatedAt.desc": "updatedAt.desc";
6044
6118
  }>>;
6045
6119
  }, z.core.$strip>;
6046
6120
  export declare const discountRequestSchema: z.ZodObject<{
@@ -6947,9 +7021,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
6947
7021
  export declare const storefrontDeploymentSchema: z.ZodObject<{
6948
7022
  siteId: z.ZodString;
6949
7023
  status: z.ZodEnum<{
6950
- IN_PROGRESS: "IN_PROGRESS";
6951
7024
  FAILED: "FAILED";
6952
7025
  SUCCEEDED: "SUCCEEDED";
7026
+ IN_PROGRESS: "IN_PROGRESS";
6953
7027
  }>;
6954
7028
  url: z.ZodString;
6955
7029
  startedAt: z.ZodString;
@@ -7407,8 +7481,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
7407
7481
  }, z.core.$strip>;
7408
7482
  export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
7409
7483
  export declare const storefrontCheckStatusSchema: z.ZodEnum<{
7410
- UNKNOWN: "UNKNOWN";
7411
7484
  FAILED: "FAILED";
7485
+ UNKNOWN: "UNKNOWN";
7412
7486
  RUNNING: "RUNNING";
7413
7487
  QUEUED: "QUEUED";
7414
7488
  PASSED: "PASSED";
@@ -7421,8 +7495,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
7421
7495
  checkId: z.ZodString;
7422
7496
  check: z.ZodString;
7423
7497
  status: z.ZodEnum<{
7424
- UNKNOWN: "UNKNOWN";
7425
7498
  FAILED: "FAILED";
7499
+ UNKNOWN: "UNKNOWN";
7426
7500
  RUNNING: "RUNNING";
7427
7501
  QUEUED: "QUEUED";
7428
7502
  PASSED: "PASSED";
@@ -8243,7 +8317,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8243
8317
  fulfillment: UnknownFulfillment | {
8244
8318
  type: "SHIPPING";
8245
8319
  shipping: {
8246
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8320
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8247
8321
  deliveryFee: number;
8248
8322
  conditionalFreeAmount: number | null;
8249
8323
  shippingAddressId: string | null;
@@ -8341,7 +8415,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8341
8415
  fulfillment: UnknownFulfillment | {
8342
8416
  type: "SHIPPING";
8343
8417
  shipping: {
8344
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8418
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8345
8419
  deliveryFee: number;
8346
8420
  conditionalFreeAmount: number | null;
8347
8421
  shippingAddressId: string | null;
@@ -8439,7 +8513,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8439
8513
  fulfillment: UnknownFulfillment | {
8440
8514
  type: "SHIPPING";
8441
8515
  shipping: {
8442
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8516
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8443
8517
  deliveryFee: number;
8444
8518
  conditionalFreeAmount: number | null;
8445
8519
  shippingAddressId: string | null;
@@ -9226,6 +9300,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9226
9300
  discountAmount: number;
9227
9301
  couponDiscountAmount: number;
9228
9302
  deliveryDiscountAmount: number;
9303
+ pointAmount: number;
9229
9304
  discounts: {
9230
9305
  couponId: string;
9231
9306
  name: string;
@@ -9292,6 +9367,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9292
9367
  discountAmount: number;
9293
9368
  totalPrice: number;
9294
9369
  couponDiscountAmount: number;
9370
+ pointAllocation: number;
9295
9371
  hold: {
9296
9372
  reason: string;
9297
9373
  expectedDispatchDate: string;
@@ -9377,6 +9453,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9377
9453
  discountAmount: number;
9378
9454
  totalPrice: number;
9379
9455
  couponDiscountAmount: number;
9456
+ pointAllocation: number;
9380
9457
  hold: {
9381
9458
  reason: string;
9382
9459
  expectedDispatchDate: string;
@@ -9417,6 +9494,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9417
9494
  deliveryFeeChargeAmount: number;
9418
9495
  couponChargeAmount: number;
9419
9496
  couponChargeRefundAmount: number;
9497
+ pointRefundAmount: number;
9420
9498
  refundedAt: string;
9421
9499
  }>;
9422
9500
  updateMemo: (orderItemId: string, memo: string) => Promise<void>;
@@ -9428,7 +9506,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9428
9506
  }>;
9429
9507
  dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
9430
9508
  orderItemId: string;
9431
- deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
9509
+ deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
9432
9510
  carrierCode: string | null;
9433
9511
  carrierName: string | null;
9434
9512
  trackingNumber: string | null;
@@ -9490,6 +9568,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9490
9568
  discountAmount: number;
9491
9569
  totalPrice: number;
9492
9570
  couponDiscountAmount: number;
9571
+ pointAllocation: number;
9493
9572
  hold: {
9494
9573
  reason: string;
9495
9574
  expectedDispatchDate: string;
@@ -9558,6 +9637,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9558
9637
  discountAmount: number;
9559
9638
  totalPrice: number;
9560
9639
  couponDiscountAmount: number;
9640
+ pointAllocation: number;
9561
9641
  hold: {
9562
9642
  reason: string;
9563
9643
  expectedDispatchDate: string;
@@ -9588,7 +9668,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9588
9668
  }>;
9589
9669
  getDelivery: (orderItemId: string) => Promise<{
9590
9670
  orderItemId: string;
9591
- deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
9671
+ deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
9592
9672
  carrierCode: string | null;
9593
9673
  carrierName: string | null;
9594
9674
  trackingNumber: string | null;
@@ -9626,7 +9706,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9626
9706
  contents: {
9627
9707
  claimId: string;
9628
9708
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9629
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9709
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9630
9710
  orderId: string;
9631
9711
  orderItemId: string;
9632
9712
  productName: string;
@@ -9637,6 +9717,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9637
9717
  claimDeliveryFee: number;
9638
9718
  expectedRefundAmount: number | null;
9639
9719
  expectedDeliveryFeeRefundAmount: number | null;
9720
+ expectedPointRefundAmount: number;
9640
9721
  exchangeOption: {
9641
9722
  optionId: string;
9642
9723
  optionName: string;
@@ -9664,7 +9745,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9664
9745
  get: (claimId: string) => Promise<{
9665
9746
  claimId: string;
9666
9747
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9667
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9748
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9668
9749
  orderId: string;
9669
9750
  orderItemId: string;
9670
9751
  productName: string;
@@ -9675,6 +9756,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9675
9756
  claimDeliveryFee: number;
9676
9757
  expectedRefundAmount: number | null;
9677
9758
  expectedDeliveryFeeRefundAmount: number | null;
9759
+ expectedPointRefundAmount: number;
9678
9760
  exchangeOption: {
9679
9761
  optionId: string;
9680
9762
  optionName: string;
@@ -9698,7 +9780,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9698
9780
  address2: string | null;
9699
9781
  } | null;
9700
9782
  histories?: {
9701
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9783
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9702
9784
  actor: "SYSTEM" | "BUYER" | "SELLER";
9703
9785
  occurredAt: string;
9704
9786
  }[] | undefined;
@@ -9712,6 +9794,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9712
9794
  deliveryFeeChargeAmount: number;
9713
9795
  couponChargeAmount: number;
9714
9796
  couponChargeRefundAmount: number;
9797
+ pointRefundAmount: number;
9715
9798
  refundedAt: string;
9716
9799
  }>;
9717
9800
  reject: (claimId: string, body: RejectClaimRequest) => Promise<void>;
@@ -9730,7 +9813,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9730
9813
  completeExchange: (claimId: string) => Promise<{
9731
9814
  claimId: string;
9732
9815
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9733
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9816
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9734
9817
  orderId: string;
9735
9818
  orderItemId: string;
9736
9819
  productName: string;
@@ -9741,6 +9824,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9741
9824
  claimDeliveryFee: number;
9742
9825
  expectedRefundAmount: number | null;
9743
9826
  expectedDeliveryFeeRefundAmount: number | null;
9827
+ expectedPointRefundAmount: number;
9744
9828
  exchangeOption: {
9745
9829
  optionId: string;
9746
9830
  optionName: string;
@@ -10650,7 +10734,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10650
10734
  conversionRate: number | null;
10651
10735
  };
10652
10736
  funnel: {
10653
- step: "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "PURCHASE";
10737
+ step: "PURCHASE" | "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT";
10654
10738
  sessions: number;
10655
10739
  rateFromPrevious: number | null;
10656
10740
  }[];
@@ -10704,9 +10788,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
10704
10788
  }>;
10705
10789
  /** `GET /v1/analytics/sources` โ€” ์ฑ„๋„ยท์†Œ์Šคยท์บ ํŽ˜์ธยท๊ธฐ๊ธฐ๋ณ„ ์„ธ์…˜๊ณผ ๊ตฌ๋งค */
10706
10790
  sources: (params: AnalyticsSourcesParams) => Promise<{
10707
- groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
10791
+ groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
10708
10792
  rows: {
10709
- channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | "UNKNOWN" | null;
10793
+ channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
10710
10794
  source: string | null;
10711
10795
  medium: string | null;
10712
10796
  campaign: string | null;
@@ -10811,7 +10895,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10811
10895
  checkout: (params: AnalyticsRangeParams) => Promise<{
10812
10896
  sessions: number;
10813
10897
  outcomes: {
10814
- outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "OTHER" | "IN_PROGRESS";
10898
+ outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
10815
10899
  sessions: number;
10816
10900
  }[];
10817
10901
  from: string;
@@ -10903,6 +10987,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10903
10987
  refunds: {
10904
10988
  refundId: string;
10905
10989
  amount: number;
10990
+ pointRefundAmount: number;
10906
10991
  reason: string;
10907
10992
  kind: string;
10908
10993
  status: string;
@@ -11911,7 +11996,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11911
11996
  list: (params?: ApprovalListOptions) => Promise<{
11912
11997
  items: {
11913
11998
  approvalId: string;
11914
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
11999
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
11915
12000
  operationId: string;
11916
12001
  method: string;
11917
12002
  path: string;
@@ -11961,7 +12046,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11961
12046
  }>;
11962
12047
  get: (approvalId: string) => Promise<{
11963
12048
  approvalId: string;
11964
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12049
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
11965
12050
  operationId: string;
11966
12051
  method: string;
11967
12052
  path: string;
@@ -12013,7 +12098,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12013
12098
  */
12014
12099
  approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
12015
12100
  approvalId: string;
12016
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12101
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
12017
12102
  operationId: string;
12018
12103
  method: string;
12019
12104
  path: string;
@@ -12061,7 +12146,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12061
12146
  }>;
12062
12147
  reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
12063
12148
  approvalId: string;
12064
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12149
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
12065
12150
  operationId: string;
12066
12151
  method: string;
12067
12152
  path: string;
@@ -12305,7 +12390,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12305
12390
  /** `GET /v1/storefront/site/deployment` โ€” ๋ฐฐํฌ ์ง„ํ–‰(๋‹จ๊ณ„ยท๊ธฐ๋ก). ๋งŒ๋“  ๋’ค ๋ฐ˜์˜์ด ๋๋‚  ๋•Œ๊นŒ์ง€ ํด๋งํ•œ๋‹ค */
12306
12391
  getDeployment: () => Promise<{
12307
12392
  siteId: string;
12308
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
12393
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
12309
12394
  url: string;
12310
12395
  startedAt: string;
12311
12396
  finishedAt: string | null;
@@ -12327,7 +12412,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12327
12412
  /** `POST /v1/storefront/site/deployment/retry` (202) โ€” ๋ฐ€๋ฆฐ ๋ฐ˜์˜์„ ๊ณง๋ฐ”๋กœ ๋‹ค์‹œ ์‹œ๋„ํ•œ๋‹ค. ์ด๋ฏธ ๋ฐ˜์˜๋์œผ๋ฉด ๊ทธ๋Œ€๋กœ๋‹ค */
12328
12413
  retryDeployment: () => Promise<{
12329
12414
  siteId: string;
12330
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
12415
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
12331
12416
  url: string;
12332
12417
  startedAt: string;
12333
12418
  finishedAt: string | null;
@@ -12902,7 +12987,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12902
12987
  runCheck: (body: RunStorefrontCheckRequest) => Promise<{
12903
12988
  checkId: string;
12904
12989
  check: string;
12905
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
12990
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
12906
12991
  exitCode: number | null;
12907
12992
  durationMs: number | null;
12908
12993
  outputTail: string | null;
@@ -12916,7 +13001,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12916
13001
  getCheck: (checkId: string) => Promise<{
12917
13002
  checkId: string;
12918
13003
  check: string;
12919
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
13004
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
12920
13005
  exitCode: number | null;
12921
13006
  durationMs: number | null;
12922
13007
  outputTail: string | null;
@@ -13496,6 +13581,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
13496
13581
  enabled: boolean;
13497
13582
  rateBp: number;
13498
13583
  };
13584
+ useAvailable: boolean;
13585
+ use: {
13586
+ enabled: boolean;
13587
+ minBalance: number;
13588
+ minAmount: number;
13589
+ unit: 1 | 100 | 10;
13590
+ maxRatioBp: number;
13591
+ includeDeliveryFee: boolean;
13592
+ };
13499
13593
  expiryDays: number | null;
13500
13594
  notice: "REVIEW_REWARD_PAUSED" | "POINTS_AVAILABLE" | null;
13501
13595
  }>;
@@ -13515,6 +13609,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
13515
13609
  enabled: boolean;
13516
13610
  rateBp: number;
13517
13611
  };
13612
+ useAvailable: boolean;
13613
+ use: {
13614
+ enabled: boolean;
13615
+ minBalance: number;
13616
+ minAmount: number;
13617
+ unit: 1 | 100 | 10;
13618
+ maxRatioBp: number;
13619
+ includeDeliveryFee: boolean;
13620
+ };
13518
13621
  expiryDays: number | null;
13519
13622
  notice: "REVIEW_REWARD_PAUSED" | "POINTS_AVAILABLE" | null;
13520
13623
  }>;
@@ -13799,8 +13902,29 @@ export interface PricingDelivery {
13799
13902
  remoteSurcharge: number;
13800
13903
  }>;
13801
13904
  }
13905
+ /**
13906
+ * ์ ๋ฆฝ๊ธˆ ์‚ฌ์šฉ ์ž…๋ ฅ(#93 P3) โ€” ์ฟ ํฐ ๋’ค ๊ธˆ์•ก์— ์“ด๋‹ค. ๊ทœ์น™์€ ์ƒ์  ์ •์ฑ… `use`(`PointUsePolicy`)์˜ ๊ฐ’์ด๋‹ค.
13907
+ * ๊ธˆ์•ก์€ ์š”์ฒญยท์ž”์•กยท์ตœ๋Œ€ ๋น„์œจ ์ค‘ ์ž‘์€ ๊ฐ’์„ `unit`์œผ๋กœ ๋‚ด๋ฆฌ๊ณ , ๋‚จ๋Š” ๊ฒฐ์ œ ๊ธˆ์•ก์ด 100์› ์•„๋ž˜๋กœ ๋‚ด๋ ค๊ฐ€์ง€ ์•Š๊ฒŒ ์ค„์ธ๋‹ค(์ ๋ฆฝ๊ธˆ ์ „์•ก ๊ฒฐ์ œ๋Š” ์•„์ง ๋ฐ›์ง€ ์•Š๋Š”๋‹ค).
13908
+ */
13909
+ export interface PricingPoints {
13910
+ /** ๊ตฌ๋งค์ž๊ฐ€ ์“ฐ๊ฒ ๋‹ค๋Š” ๊ธˆ์•ก */
13911
+ requested: number;
13912
+ /** ์ง€๊ธˆ ์ž”์•ก */
13913
+ balance: number;
13914
+ rules: {
13915
+ minBalance: number;
13916
+ minAmount: number;
13917
+ unit: number;
13918
+ maxRatioBp: number;
13919
+ includeDeliveryFee: boolean;
13920
+ };
13921
+ }
13922
+ /** ์ ๋ฆฝ๊ธˆ์„ ์“ฐ์ง€ ๋ชปํ•œ ์ด์œ  */
13923
+ export type PointRejectReason = "MIN_BALANCE" | "MIN_AMOUNT" | "NOT_PAYABLE";
13802
13924
  export interface PricingInput {
13803
13925
  lines: readonly PricingLine[];
13926
+ /** ์ ๋ฆฝ๊ธˆ ์‚ฌ์šฉ(#93 P3). ์—†์œผ๋ฉด ์“ฐ์ง€ ์•Š๋Š”๋‹ค โ€” ๊ฒฐ๊ณผ๋Š” ์ ๋ฆฝ๊ธˆ ์ด์ „๊ณผ ๊ฐ™๋‹ค */
13927
+ points?: PricingPoints | null;
13804
13928
  coupons: readonly PricingCoupon[];
13805
13929
  /** ๋ฐฐ์†ก๋น„ ๊ฒฌ์ . ์—†์œผ๋ฉด ๋ฐฐ์†ก๋น„ 0์œผ๋กœ ๊ณ„์‚ฐํ•˜๊ณ  ๋ฐฐ์†ก๋น„ ์ฟ ํฐ์€ ํ• ์ธํ•  ๊ธˆ์•ก์ด ์—†๋‹ค */
13806
13930
  delivery?: PricingDelivery | null;
@@ -13829,6 +13953,8 @@ export interface PricingLineResult {
13829
13953
  /** ์ด ์ค„์— ๋“ค์–ด๊ฐ„ ์ฟ ํฐ ํ• ์ธ ํ•ฉ๊ณ„ โ€” ์ƒํ’ˆ ์ฟ ํฐ + ์ฃผ๋ฌธ ์ฟ ํฐ ๋ฐฐ๋ถ„ */
13830
13954
  couponDiscount: number;
13831
13955
  allocations: CouponAllocation[];
13956
+ /** ์ด ์ค„์— ๋ฐฐ๋ถ„ํ•œ ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ(#93 P3). ์ ๋ฆฝ๊ธˆ์„ ์“ฐ์ง€ ์•Š์œผ๋ฉด 0 */
13957
+ pointAllocation: number;
13832
13958
  }
13833
13959
  export interface PricingCouponResult {
13834
13960
  couponKey: string;
@@ -13846,6 +13972,8 @@ export interface PricingCouponResult {
13846
13972
  export interface PricingBundleResult {
13847
13973
  bundleKey: string;
13848
13974
  couponDiscount: number;
13975
+ /** ์ด ๋ฐฐ์†ก ๋ฌถ์Œ์— ๋ฐฐ๋ถ„ํ•œ ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ(#93 P3) */
13976
+ pointAllocation: number;
13849
13977
  }
13850
13978
  export interface PricingResult {
13851
13979
  lines: PricingLineResult[];
@@ -13860,7 +13988,15 @@ export interface PricingResult {
13860
13988
  deliveryFee: number;
13861
13989
  /** ๋ฐฐ์†ก๋น„ ์ฟ ํฐ ํ• ์ธ */
13862
13990
  deliveryDiscountAmount: number;
13863
- /** ๊ฒฐ์ œ ๊ธˆ์•ก = productAmount โˆ’ couponDiscountAmount + deliveryFee โˆ’ deliveryDiscountAmount */
13991
+ /** ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ(#93 P3). ์“ฐ์ง€ ์•Š์œผ๋ฉด 0 */
13992
+ pointAmount: number;
13993
+ /** ์ง€๊ธˆ ์“ธ ์ˆ˜ ์žˆ๋Š” ์ตœ๋Œ€ ์ ๋ฆฝ๊ธˆ โ€” ์ฃผ๋ฌธ์„œ ์•ˆ๋‚ด๊ฐ’(์ž”์•ก์„ ๋ชจ๋‘ ์š”์ฒญํ–ˆ์„ ๋•Œ์˜ ๊ธˆ์•ก). ์ ๋ฆฝ๊ธˆ ์ž…๋ ฅ์ด ์—†์œผ๋ฉด 0 */
13994
+ pointMaxUsable: number;
13995
+ /** ์š”์ฒญ๋ณด๋‹ค ์ ๊ฒŒ ์ผ๋‹ค๋ฉด ๊ทธ ์ด์œ  โ€” `MIN_PAYMENT`: ๊ฒฐ์ œ ๊ธˆ์•ก 100์›์„ ๋‚จ๊ธฐ๋ ค๊ณ  ์ค„์˜€๋‹ค */
13996
+ pointAdjustReason: "MIN_PAYMENT" | null;
13997
+ /** ์š”์ฒญํ–ˆ์ง€๋งŒ ์“ฐ์ง€ ๋ชปํ–ˆ๋‹ค๋ฉด ๊ทธ ์ด์œ  */
13998
+ pointRejectReason: PointRejectReason | null;
13999
+ /** ๊ฒฐ์ œ ๊ธˆ์•ก = productAmount โˆ’ couponDiscountAmount + deliveryFee โˆ’ deliveryDiscountAmount โˆ’ pointAmount */
13864
14000
  totalAmount: number;
13865
14001
  }
13866
14002
  /**
@@ -13889,6 +14025,20 @@ export declare function isCouponTargetLine(rule: Pick<CouponRule, "target" | "co
13889
14025
  * ์‚ฌ๋ณธ ์ค‘ ์•ž ์žฅ์ด ๋งŒ๋ฃŒ๋์œผ๋ฉด ๋’ค ์žฅ์ด ์“ฐ์ธ๋‹ค. ๊ฒฐ๊ณผ์˜ `coupons`๋Š” ์ž…๋ ฅ ์ˆœ์„œ ๊ทธ๋Œ€๋กœ๋‹ค. ์ž…๋ ฅ์ด ๊ฐ™์œผ๋ฉด ๊ฒฐ๊ณผ๋„ ๊ฐ™๋‹ค.
13890
14026
  */
13891
14027
  export declare function quotePricing(input: PricingInput): PricingResult;
14028
+ /**
14029
+ * ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ ๊ธˆ์•ก(์ˆœ์ˆ˜) โ€” ์š”์ฒญยท์ž”์•กยท์ตœ๋Œ€ ๋น„์œจยทใ€Œ๊ฒฐ์ œ ๊ธˆ์•ก 100์› ๋‚จ๊ธฐ๊ธฐใ€ ์ค‘ ์ž‘์€ ๊ฐ’์„ ๋‹จ์œ„๋กœ ๋‚ด๋ฆฐ๋‹ค.
14030
+ * ์ตœ์†Œ ๋ณด์œ ์•กยท์ตœ์†Œ ์‚ฌ์šฉ์•ก์— ๋ชป ๋ฏธ์น˜๋ฉด 0์ด๋‹ค. ๊ฒฐ์ œ ๊ธˆ์•ก์ด 0์›์ด ๋˜๋Š” ์‚ฌ์šฉ(์ ๋ฆฝ๊ธˆ ์ „์•ก ๊ฒฐ์ œ)์€ ์•„์ง ๋ฐ›์ง€ ์•Š๋Š”๋‹ค(P4).
14031
+ */
14032
+ export declare function pointUseOf(points: PricingPoints | null, amounts: {
14033
+ productPaid: number;
14034
+ deliveryPaid: number;
14035
+ total: number;
14036
+ }): {
14037
+ amount: number;
14038
+ maxUsable: number;
14039
+ adjustReason: "MIN_PAYMENT" | null;
14040
+ rejectReason: PointRejectReason | null;
14041
+ };
13892
14042
  /**
13893
14043
  * ์ฃผ๋ฌธ์ด ๋ฐ›์€ ์ฟ ํฐ ํ•œ ์žฅ โ€” ์ฃผ๋ฌธ ์‹œ์  ๊ทœ์น™๊ณผ ๋Œ€์ƒ ์ค„์„ ๊ตณํžŒ ๊ฐ’์ด๋‹ค(`orders.discounts`์˜ ํ•ญ๋ชฉ).
13894
14044
  * ํ™˜๋ถˆ ์ •์‚ฐ์€ ์ด ๊ฐ’๋งŒ ์ฝ๋Š”๋‹ค. ์…€๋Ÿฌ๊ฐ€ ์ฟ ํฐ์„ ๋ฐ”๊พธ๊ฑฐ๋‚˜ ์ƒํ’ˆ์˜ ์นดํ…Œ๊ณ ๋ฆฌ๊ฐ€ ๋ฐ”๋€Œ์–ด๋„ ๊ฒฐ๊ณผ๊ฐ€ ๊ฐ™๋‹ค.
@@ -13988,6 +14138,16 @@ export declare function settleCouponShortfall(input: CouponSettlementInput): Cou
13988
14138
  export declare function proratedPaidRefundBase(item: {
13989
14139
  totalPrice: number;
13990
14140
  couponDiscountAmount?: number | null;
14141
+ /** ์ฃผ๋ฌธ์ƒํ’ˆ์— ๋ฐฐ๋ถ„๋œ ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ(#93 P3) โ€” ํ˜„๊ธˆ ํ™˜๋ถˆ ๊ธฐ์ค€์—์„œ ๋บ€๋‹ค. ์—†์œผ๋ฉด 0 */
14142
+ pointAllocation?: number | null;
14143
+ quantity: number;
14144
+ }, settledQuantity: number, cancelQuantity: number): number;
14145
+ /**
14146
+ * ์ฃผ๋ฌธ์ƒํ’ˆ์˜ ์‚ฌ์šฉ ์ ๋ฆฝ๊ธˆ ์ค‘ ์ด๋ฒˆ ์ทจ์†Œ ์ˆ˜๋Ÿ‰์˜ ๋ชซ(#93 P3) โ€” ๋ˆ„์  ๋‚ด๋ฆผ์˜ ์ฐจ๋ถ„์ด๋ผ ๋‚˜๋ˆ  ์ทจ์†Œํ•ด๋„ ํ•ฉ์ด ๋ฐฐ๋ถ„์•ก๊ณผ ๊ฐ™๋‹ค.
14147
+ * ํ˜„๊ธˆ ํ™˜๋ถˆ(`proratedPaidRefundBase`)๊ณผ ๋”ฐ๋กœ ๋Œ๋ ค์ค€๋‹ค(`pointRefundAmount`).
14148
+ */
14149
+ export declare function proratedPointRefund(item: {
14150
+ pointAllocation?: number | null;
13991
14151
  quantity: number;
13992
14152
  }, settledQuantity: number, cancelQuantity: number): number;
13993
14153
  //#endregion
@@ -14709,6 +14869,7 @@ export declare const orderWebhookEventDataSchema: z.ZodObject<{
14709
14869
  }>;
14710
14870
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14711
14871
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14872
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14712
14873
  orderItemId: z.ZodOptional<z.ZodString>;
14713
14874
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
14714
14875
  type: z.ZodLiteral<"SHIPPING">;
@@ -14813,6 +14974,7 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
14813
14974
  deliveryFeeChargeAmount: z.ZodNumber;
14814
14975
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14815
14976
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14977
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14816
14978
  testPayment: z.ZodBoolean;
14817
14979
  }, z.core.$strip>;
14818
14980
  export type OrderCanceledWebhookEventData = z.infer<typeof orderCanceledWebhookEventDataSchema>;
@@ -14826,7 +14988,6 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14826
14988
  CANCEL: "CANCEL";
14827
14989
  }>;
14828
14990
  status: z.ZodEnum<{
14829
- COMPLETED: "COMPLETED";
14830
14991
  REJECTED: "REJECTED";
14831
14992
  REQUESTED: "REQUESTED";
14832
14993
  HELD: "HELD";
@@ -14834,6 +14995,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14834
14995
  COLLECTED: "COLLECTED";
14835
14996
  REDELIVERING: "REDELIVERING";
14836
14997
  APPROVED: "APPROVED";
14998
+ COMPLETED: "COMPLETED";
14837
14999
  WITHDRAWN: "WITHDRAWN";
14838
15000
  }>;
14839
15001
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -14843,6 +15005,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14843
15005
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14844
15006
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14845
15007
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15008
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14846
15009
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14847
15010
  }, z.core.$strip>;
14848
15011
  export type ClaimWebhookEventData = z.infer<typeof claimWebhookEventDataSchema>;
@@ -14885,6 +15048,7 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
14885
15048
  }>;
14886
15049
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14887
15050
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15051
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14888
15052
  orderItemId: z.ZodOptional<z.ZodString>;
14889
15053
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
14890
15054
  type: z.ZodLiteral<"SHIPPING">;
@@ -14992,6 +15156,7 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
14992
15156
  deliveryFeeChargeAmount: z.ZodNumber;
14993
15157
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14994
15158
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15159
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14995
15160
  testPayment: z.ZodBoolean;
14996
15161
  }, z.core.$strip>;
14997
15162
  id: z.ZodString;
@@ -15016,7 +15181,6 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15016
15181
  CANCEL: "CANCEL";
15017
15182
  }>;
15018
15183
  status: z.ZodEnum<{
15019
- COMPLETED: "COMPLETED";
15020
15184
  REJECTED: "REJECTED";
15021
15185
  REQUESTED: "REQUESTED";
15022
15186
  HELD: "HELD";
@@ -15024,6 +15188,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15024
15188
  COLLECTED: "COLLECTED";
15025
15189
  REDELIVERING: "REDELIVERING";
15026
15190
  APPROVED: "APPROVED";
15191
+ COMPLETED: "COMPLETED";
15027
15192
  WITHDRAWN: "WITHDRAWN";
15028
15193
  }>;
15029
15194
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -15033,6 +15198,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15033
15198
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15034
15199
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15035
15200
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15201
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15036
15202
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15037
15203
  }, z.core.$strip>;
15038
15204
  id: z.ZodString;
@@ -15098,6 +15264,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15098
15264
  }>;
15099
15265
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15100
15266
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15267
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15101
15268
  orderItemId: z.ZodOptional<z.ZodString>;
15102
15269
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
15103
15270
  type: z.ZodLiteral<"SHIPPING">;
@@ -15203,6 +15370,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15203
15370
  deliveryFeeChargeAmount: z.ZodNumber;
15204
15371
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15205
15372
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15373
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15206
15374
  testPayment: z.ZodBoolean;
15207
15375
  }, z.core.$strip>;
15208
15376
  id: z.ZodString;
@@ -15226,7 +15394,6 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15226
15394
  CANCEL: "CANCEL";
15227
15395
  }>;
15228
15396
  status: z.ZodEnum<{
15229
- COMPLETED: "COMPLETED";
15230
15397
  REJECTED: "REJECTED";
15231
15398
  REQUESTED: "REQUESTED";
15232
15399
  HELD: "HELD";
@@ -15234,6 +15401,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15234
15401
  COLLECTED: "COLLECTED";
15235
15402
  REDELIVERING: "REDELIVERING";
15236
15403
  APPROVED: "APPROVED";
15404
+ COMPLETED: "COMPLETED";
15237
15405
  WITHDRAWN: "WITHDRAWN";
15238
15406
  }>;
15239
15407
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -15243,6 +15411,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15243
15411
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15244
15412
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15245
15413
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15414
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15246
15415
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15247
15416
  }, z.core.$strip>;
15248
15417
  id: z.ZodString;