@sayren/storefront-sdk 0.20.13 → 0.20.14

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.
@@ -1,4 +1,4 @@
1
- import { Ut as ApiError, t as createStorefrontClient } from "../client-OJc5DOIJ.mjs";
1
+ import { Ut as ApiError, t as createStorefrontClient } from "../client-Se5Bcaow.mjs";
2
2
  //#region src/auth/index.ts
3
3
  /** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
4
4
  var IdpCallbackError = class extends Error {
@@ -914,7 +914,9 @@ const myOrderSchema = z.object({
914
914
  })).optional().default([]).describe("주문이 받은 쿠폰. 쿠폰이 없으면 빈 배열. 서버는 항상 싣는다"),
915
915
  totalAmount: z.number().int().describe("결제 금액 (쿠폰 할인 반영)"),
916
916
  paidAt: z.string().nullable(),
917
- receiptUrl: z.url().nullable()
917
+ receiptUrl: z.url().nullable(),
918
+ refundedAmount: z.number().int().optional().default(0).describe("환불된 결제 금액 합계 (원, #115) — 결제 대행사 환불이 끝난 몫이다. 적립금 반환은 포함하지 않는다. 서버는 항상 싣는다"),
919
+ refundPendingAmount: z.number().int().optional().default(0).describe("환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다")
918
920
  }),
919
921
  testPayment: z.boolean().describe("테스트 결제(샌드박스 결제) 주문인가. true면 실제로 돈이 나가지 않았습니다 — 주문 화면에 테스트 결제 배지를 표시합니다")
920
922
  });
@@ -259,6 +259,7 @@ interface PageParams {
259
259
  size?: number;
260
260
  }
261
261
  declare const orderItemStatusSchema: z.ZodEnum<{
262
+ CANCELED: "CANCELED";
262
263
  PAYMENT_WAITING: "PAYMENT_WAITING";
263
264
  PAID: "PAID";
264
265
  CONFIRMED: "CONFIRMED";
@@ -266,10 +267,10 @@ declare const orderItemStatusSchema: z.ZodEnum<{
266
267
  DELIVERING: "DELIVERING";
267
268
  DELIVERED: "DELIVERED";
268
269
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
269
- CANCELED: "CANCELED";
270
270
  }>;
271
271
  type OrderItemStatus = z.infer<typeof orderItemStatusSchema>;
272
272
  declare const claimStatusSchema: z.ZodEnum<{
273
+ COMPLETED: "COMPLETED";
273
274
  REQUESTED: "REQUESTED";
274
275
  HELD: "HELD";
275
276
  COLLECTING: "COLLECTING";
@@ -277,7 +278,6 @@ declare const claimStatusSchema: z.ZodEnum<{
277
278
  REDELIVERING: "REDELIVERING";
278
279
  APPROVED: "APPROVED";
279
280
  REJECTED: "REJECTED";
280
- COMPLETED: "COMPLETED";
281
281
  WITHDRAWN: "WITHDRAWN";
282
282
  }>;
283
283
  type ClaimStatus = z.infer<typeof claimStatusSchema>;
@@ -1347,6 +1347,7 @@ declare const myClaimSchema: z.ZodObject<{
1347
1347
  CANCEL: "CANCEL";
1348
1348
  }>;
1349
1349
  status: z.ZodEnum<{
1350
+ COMPLETED: "COMPLETED";
1350
1351
  REQUESTED: "REQUESTED";
1351
1352
  HELD: "HELD";
1352
1353
  COLLECTING: "COLLECTING";
@@ -1354,7 +1355,6 @@ declare const myClaimSchema: z.ZodObject<{
1354
1355
  REDELIVERING: "REDELIVERING";
1355
1356
  APPROVED: "APPROVED";
1356
1357
  REJECTED: "REJECTED";
1357
- COMPLETED: "COMPLETED";
1358
1358
  WITHDRAWN: "WITHDRAWN";
1359
1359
  }>;
1360
1360
  orderItemId: z.ZodString;
@@ -1637,9 +1637,9 @@ declare const myCouponSchema: z.ZodObject<{
1637
1637
  type MyCoupon = z.infer<typeof myCouponSchema>;
1638
1638
  declare const myCouponListQuerySchema: z.ZodObject<{
1639
1639
  status: z.ZodOptional<z.ZodEnum<{
1640
+ expired: "expired";
1640
1641
  available: "available";
1641
1642
  used: "used";
1642
- expired: "expired";
1643
1643
  }>>;
1644
1644
  }, z.core.$strip>;
1645
1645
  /**
@@ -3088,7 +3088,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3088
3088
  totalPrice: number;
3089
3089
  couponDiscountAmount: number;
3090
3090
  pointAllocation: number;
3091
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
3091
+ status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
3092
3092
  fulfillmentSnapshot: UnknownFulfillmentView | {
3093
3093
  type: "SHIPPING";
3094
3094
  requiresShipping: true;
@@ -3143,7 +3143,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3143
3143
  label: string;
3144
3144
  enteredAt: string;
3145
3145
  fields: Record<string, string | number | boolean | string[] | null>;
3146
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3146
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3147
3147
  message?: string | undefined;
3148
3148
  deadlineAt?: string | undefined;
3149
3149
  attachments?: string[] | undefined;
@@ -3194,7 +3194,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3194
3194
  label: string;
3195
3195
  enteredAt: string;
3196
3196
  fields: Record<string, string | number | boolean | string[] | null>;
3197
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3197
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3198
3198
  message?: string | undefined;
3199
3199
  deadlineAt?: string | undefined;
3200
3200
  attachments?: string[] | undefined;
@@ -3303,9 +3303,11 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3303
3303
  totalAmount: number;
3304
3304
  paidAt: string | null;
3305
3305
  receiptUrl: string | null;
3306
+ refundedAmount: number;
3307
+ refundPendingAmount: number;
3306
3308
  };
3307
3309
  testPayment: boolean;
3308
- progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3310
+ progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3309
3311
  }[];
3310
3312
  }>;
3311
3313
  get: (orderId: string) => Promise<{
@@ -3319,7 +3321,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3319
3321
  totalPrice: number;
3320
3322
  couponDiscountAmount: number;
3321
3323
  pointAllocation: number;
3322
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
3324
+ status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
3323
3325
  fulfillmentSnapshot: UnknownFulfillmentView | {
3324
3326
  type: "SHIPPING";
3325
3327
  requiresShipping: true;
@@ -3374,7 +3376,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3374
3376
  label: string;
3375
3377
  enteredAt: string;
3376
3378
  fields: Record<string, string | number | boolean | string[] | null>;
3377
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3379
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3378
3380
  message?: string | undefined;
3379
3381
  deadlineAt?: string | undefined;
3380
3382
  attachments?: string[] | undefined;
@@ -3425,7 +3427,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3425
3427
  label: string;
3426
3428
  enteredAt: string;
3427
3429
  fields: Record<string, string | number | boolean | string[] | null>;
3428
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3430
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3429
3431
  message?: string | undefined;
3430
3432
  deadlineAt?: string | undefined;
3431
3433
  attachments?: string[] | undefined;
@@ -3534,9 +3536,11 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3534
3536
  totalAmount: number;
3535
3537
  paidAt: string | null;
3536
3538
  receiptUrl: string | null;
3539
+ refundedAmount: number;
3540
+ refundPendingAmount: number;
3537
3541
  };
3538
3542
  testPayment: boolean;
3539
- progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3543
+ progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3540
3544
  }>;
3541
3545
  /**
3542
3546
  * 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
@@ -3561,7 +3565,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3561
3565
  totalPrice: number;
3562
3566
  couponDiscountAmount: number;
3563
3567
  pointAllocation: number;
3564
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
3568
+ status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
3565
3569
  fulfillmentSnapshot: UnknownFulfillmentView | {
3566
3570
  type: "SHIPPING";
3567
3571
  requiresShipping: true;
@@ -3616,7 +3620,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3616
3620
  label: string;
3617
3621
  enteredAt: string;
3618
3622
  fields: Record<string, string | number | boolean | string[] | null>;
3619
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3623
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3620
3624
  message?: string | undefined;
3621
3625
  deadlineAt?: string | undefined;
3622
3626
  attachments?: string[] | undefined;
@@ -3667,7 +3671,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3667
3671
  label: string;
3668
3672
  enteredAt: string;
3669
3673
  fields: Record<string, string | number | boolean | string[] | null>;
3670
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3674
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3671
3675
  message?: string | undefined;
3672
3676
  deadlineAt?: string | undefined;
3673
3677
  attachments?: string[] | undefined;
@@ -3776,9 +3780,11 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3776
3780
  totalAmount: number;
3777
3781
  paidAt: string | null;
3778
3782
  receiptUrl: string | null;
3783
+ refundedAmount: number;
3784
+ refundPendingAmount: number;
3779
3785
  };
3780
3786
  testPayment: boolean;
3781
- progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3787
+ progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3782
3788
  }>;
3783
3789
  getDelivery: (orderItemId: string) => Promise<{
3784
3790
  carrierName: string;
@@ -3806,7 +3812,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3806
3812
  label: string;
3807
3813
  enteredAt: string;
3808
3814
  fields: Record<string, string | number | boolean | string[] | null>;
3809
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3815
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3810
3816
  message?: string | undefined;
3811
3817
  deadlineAt?: string | undefined;
3812
3818
  attachments?: string[] | undefined;
@@ -3870,7 +3876,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3870
3876
  label: string;
3871
3877
  enteredAt: string;
3872
3878
  fields: Record<string, string | number | boolean | string[] | null>;
3873
- coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
3879
+ coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
3874
3880
  message?: string | undefined;
3875
3881
  deadlineAt?: string | undefined;
3876
3882
  attachments?: string[] | undefined;
@@ -3931,7 +3937,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3931
3937
  key: string;
3932
3938
  results: {
3933
3939
  orderItemId: string;
3934
- status: "COMPLETED" | "SKIPPED" | "FAILED";
3940
+ status: "COMPLETED" | "FAILED" | "SKIPPED";
3935
3941
  reason?: string | undefined;
3936
3942
  message?: string | undefined;
3937
3943
  }[];
@@ -3946,7 +3952,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3946
3952
  key: string;
3947
3953
  results: {
3948
3954
  orderItemId: string;
3949
- status: "COMPLETED" | "SKIPPED" | "FAILED";
3955
+ status: "COMPLETED" | "FAILED" | "SKIPPED";
3950
3956
  reason?: string | undefined;
3951
3957
  message?: string | undefined;
3952
3958
  }[];
@@ -3987,7 +3993,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3987
3993
  claimId: string;
3988
3994
  claimNo: string | null;
3989
3995
  type: "RETURN" | "EXCHANGE" | "CANCEL";
3990
- status: "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "COMPLETED" | "WITHDRAWN";
3996
+ status: "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "WITHDRAWN";
3991
3997
  orderItemId: string;
3992
3998
  productName: string;
3993
3999
  quantity: number;
@@ -4503,6 +4509,7 @@ declare const flowStateSchema: z.ZodObject<{
4503
4509
  key: z.ZodString;
4504
4510
  label: z.ZodString;
4505
4511
  coreStatus: z.ZodOptional<z.ZodEnum<{
4512
+ CANCELED: "CANCELED";
4506
4513
  PAYMENT_WAITING: "PAYMENT_WAITING";
4507
4514
  PAID: "PAID";
4508
4515
  CONFIRMED: "CONFIRMED";
@@ -4510,7 +4517,6 @@ declare const flowStateSchema: z.ZodObject<{
4510
4517
  DELIVERING: "DELIVERING";
4511
4518
  DELIVERED: "DELIVERED";
4512
4519
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4513
- CANCELED: "CANCELED";
4514
4520
  }>>;
4515
4521
  message: z.ZodOptional<z.ZodString>;
4516
4522
  enteredAt: z.ZodString;
@@ -4621,6 +4627,7 @@ declare const flowActionResultSchema: z.ZodObject<{
4621
4627
  key: z.ZodString;
4622
4628
  label: z.ZodString;
4623
4629
  coreStatus: z.ZodOptional<z.ZodEnum<{
4630
+ CANCELED: "CANCELED";
4624
4631
  PAYMENT_WAITING: "PAYMENT_WAITING";
4625
4632
  PAID: "PAID";
4626
4633
  CONFIRMED: "CONFIRMED";
@@ -4628,7 +4635,6 @@ declare const flowActionResultSchema: z.ZodObject<{
4628
4635
  DELIVERING: "DELIVERING";
4629
4636
  DELIVERED: "DELIVERED";
4630
4637
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4631
- CANCELED: "CANCELED";
4632
4638
  }>>;
4633
4639
  message: z.ZodOptional<z.ZodString>;
4634
4640
  enteredAt: z.ZodString;
@@ -4699,8 +4705,8 @@ declare const orderFlowActionResultSchema: z.ZodObject<{
4699
4705
  orderItemId: z.ZodString;
4700
4706
  status: z.ZodEnum<{
4701
4707
  COMPLETED: "COMPLETED";
4702
- SKIPPED: "SKIPPED";
4703
4708
  FAILED: "FAILED";
4709
+ SKIPPED: "SKIPPED";
4704
4710
  }>;
4705
4711
  reason: z.ZodOptional<z.ZodString>;
4706
4712
  message: z.ZodOptional<z.ZodString>;
@@ -4733,6 +4739,7 @@ declare const myOrderItemSchema: z.ZodObject<{
4733
4739
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4734
4740
  pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4735
4741
  status: z.ZodEnum<{
4742
+ CANCELED: "CANCELED";
4736
4743
  PAYMENT_WAITING: "PAYMENT_WAITING";
4737
4744
  PAID: "PAID";
4738
4745
  CONFIRMED: "CONFIRMED";
@@ -4740,7 +4747,6 @@ declare const myOrderItemSchema: z.ZodObject<{
4740
4747
  DELIVERING: "DELIVERING";
4741
4748
  DELIVERED: "DELIVERED";
4742
4749
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4743
- CANCELED: "CANCELED";
4744
4750
  }>;
4745
4751
  fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4746
4752
  type: z.ZodLiteral<"SHIPPING">;
@@ -4784,6 +4790,7 @@ declare const myOrderItemSchema: z.ZodObject<{
4784
4790
  key: z.ZodString;
4785
4791
  label: z.ZodString;
4786
4792
  coreStatus: z.ZodOptional<z.ZodEnum<{
4793
+ CANCELED: "CANCELED";
4787
4794
  PAYMENT_WAITING: "PAYMENT_WAITING";
4788
4795
  PAID: "PAID";
4789
4796
  CONFIRMED: "CONFIRMED";
@@ -4791,7 +4798,6 @@ declare const myOrderItemSchema: z.ZodObject<{
4791
4798
  DELIVERING: "DELIVERING";
4792
4799
  DELIVERED: "DELIVERED";
4793
4800
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4794
- CANCELED: "CANCELED";
4795
4801
  }>>;
4796
4802
  message: z.ZodOptional<z.ZodString>;
4797
4803
  enteredAt: z.ZodString;
@@ -4848,6 +4854,7 @@ declare const myOrderItemSchema: z.ZodObject<{
4848
4854
  key: z.ZodString;
4849
4855
  label: z.ZodString;
4850
4856
  coreStatus: z.ZodOptional<z.ZodEnum<{
4857
+ CANCELED: "CANCELED";
4851
4858
  PAYMENT_WAITING: "PAYMENT_WAITING";
4852
4859
  PAID: "PAID";
4853
4860
  CONFIRMED: "CONFIRMED";
@@ -4855,7 +4862,6 @@ declare const myOrderItemSchema: z.ZodObject<{
4855
4862
  DELIVERING: "DELIVERING";
4856
4863
  DELIVERED: "DELIVERED";
4857
4864
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4858
- CANCELED: "CANCELED";
4859
4865
  }>>;
4860
4866
  message: z.ZodOptional<z.ZodString>;
4861
4867
  enteredAt: z.ZodString;
@@ -4987,6 +4993,7 @@ type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
4987
4993
  declare const myOrderSchema: z.ZodObject<{
4988
4994
  orderId: z.ZodString;
4989
4995
  progressStatus: z.ZodOptional<z.ZodEnum<{
4996
+ CANCELED: "CANCELED";
4990
4997
  PAYMENT_WAITING: "PAYMENT_WAITING";
4991
4998
  PAID: "PAID";
4992
4999
  CONFIRMED: "CONFIRMED";
@@ -4994,7 +5001,6 @@ declare const myOrderSchema: z.ZodObject<{
4994
5001
  DELIVERING: "DELIVERING";
4995
5002
  DELIVERED: "DELIVERED";
4996
5003
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
4997
- CANCELED: "CANCELED";
4998
5004
  }>>;
4999
5005
  orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5000
5006
  orderedAt: z.ZodString;
@@ -5006,6 +5012,7 @@ declare const myOrderSchema: z.ZodObject<{
5006
5012
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5007
5013
  pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5008
5014
  status: z.ZodEnum<{
5015
+ CANCELED: "CANCELED";
5009
5016
  PAYMENT_WAITING: "PAYMENT_WAITING";
5010
5017
  PAID: "PAID";
5011
5018
  CONFIRMED: "CONFIRMED";
@@ -5013,7 +5020,6 @@ declare const myOrderSchema: z.ZodObject<{
5013
5020
  DELIVERING: "DELIVERING";
5014
5021
  DELIVERED: "DELIVERED";
5015
5022
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
5016
- CANCELED: "CANCELED";
5017
5023
  }>;
5018
5024
  fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
5019
5025
  type: z.ZodLiteral<"SHIPPING">;
@@ -5057,6 +5063,7 @@ declare const myOrderSchema: z.ZodObject<{
5057
5063
  key: z.ZodString;
5058
5064
  label: z.ZodString;
5059
5065
  coreStatus: z.ZodOptional<z.ZodEnum<{
5066
+ CANCELED: "CANCELED";
5060
5067
  PAYMENT_WAITING: "PAYMENT_WAITING";
5061
5068
  PAID: "PAID";
5062
5069
  CONFIRMED: "CONFIRMED";
@@ -5064,7 +5071,6 @@ declare const myOrderSchema: z.ZodObject<{
5064
5071
  DELIVERING: "DELIVERING";
5065
5072
  DELIVERED: "DELIVERED";
5066
5073
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
5067
- CANCELED: "CANCELED";
5068
5074
  }>>;
5069
5075
  message: z.ZodOptional<z.ZodString>;
5070
5076
  enteredAt: z.ZodString;
@@ -5121,6 +5127,7 @@ declare const myOrderSchema: z.ZodObject<{
5121
5127
  key: z.ZodString;
5122
5128
  label: z.ZodString;
5123
5129
  coreStatus: z.ZodOptional<z.ZodEnum<{
5130
+ CANCELED: "CANCELED";
5124
5131
  PAYMENT_WAITING: "PAYMENT_WAITING";
5125
5132
  PAID: "PAID";
5126
5133
  CONFIRMED: "CONFIRMED";
@@ -5128,7 +5135,6 @@ declare const myOrderSchema: z.ZodObject<{
5128
5135
  DELIVERING: "DELIVERING";
5129
5136
  DELIVERED: "DELIVERED";
5130
5137
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
5131
- CANCELED: "CANCELED";
5132
5138
  }>>;
5133
5139
  message: z.ZodOptional<z.ZodString>;
5134
5140
  enteredAt: z.ZodString;
@@ -5273,6 +5279,8 @@ declare const myOrderSchema: z.ZodObject<{
5273
5279
  totalAmount: z.ZodNumber;
5274
5280
  paidAt: z.ZodNullable<z.ZodString>;
5275
5281
  receiptUrl: z.ZodNullable<z.ZodURL>;
5282
+ refundedAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5283
+ refundPendingAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5276
5284
  }, z.core.$strip>;
5277
5285
  testPayment: z.ZodBoolean;
5278
5286
  }, z.core.$strip>;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
2
- import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionDetailSchema, $n as storefrontCouponListQuerySchema, $r as RemoteArea, $t as customInputEntrySchema, A as FlowAction, Ai as shippingAddressInputSchema, An as createCustomerInquiryRequestSchema, Ar as CashReceiptIdentityType, At as WritableReview, B as flowActionRequestSchema, Bi as ProductSearchParams, Bn as MyCoupon, Br as KnownPaymentResult, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as CartItem, Ci as paymentStartSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartSchema, Di as residentNumberLike, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as cartItemSchema, Ei as remoteAreaSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductSortParam, Fn as CheckoutPricingRequest, Fr as CreateCheckoutRequest, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductPageSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as StorefrontCollection, Hn as StorefrontCouponListParams, Hr as KnownPaymentStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductCard, In as CouponApplication, Ir as DeliveryQuoteRequest, It as publicReviewSchema, J as orderStepSchema, Ji as productCardSchema, Jn as couponBenefitViewSchema, Jr as PaymentMethod, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductQuerySchema, Kn as couponApplicationListSchema, Kr as PaymentFailureCategory, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductDetail, Ln as CouponResult, Lr as DeliveryQuoteResult, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CategoryNode, Mn as customerInquirySchema, Mr as CashReceiptType, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductPage, Nn as ApplicableCoupon, Nr as CheckoutDelivery, Nt as myReviewSchema, O as formatOrderNo, Oa as updateCartItemRequestSchema, Oi as responsePaymentMethodSchema, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductParams, Pn as CheckoutPricing, Pr as CheckoutSession, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productSortSchema, Qn as pricingAmountsSchema, Qr as PgProvider, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductFacets, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as EasyPayProvider, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as Cart, Si as paymentOptionSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as addCartItemRequestSchema, Ti as pgProviderSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollectionDetail, Un as applicableCouponSchema, Ur as PAYMENT_RESULT_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSort, Vn as StorefrontCoupon, Vr as KnownPaymentStartStatus, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as categoryNodeSchema, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_START_STATUS_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productFacetsSchema, Xn as myCouponListQuerySchema, Xr as PaymentStart, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productDetailSchema, Yn as couponResultSchema, Yr as PaymentOption, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productPageSchema, Zn as myCouponSchema, Zr as PaymentStatus, Zt as addonGroupViewSchema, _ as MyOrder, _a as myOrderItemFulfillmentSnapshotSchema, _i as paymentFailureCategorySchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageParams, ai as cashReceiptAvailable, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productFulfillmentViewSchema, bi as paymentOptionKey, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as pageInfoSchema, ci as cashReceiptTypeSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as MyOrderItemFulfillmentSnapshot, di as createCheckoutRequestSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionListQuerySchema, ei as ResponsePaymentMethod, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as PickupLocationView, fi as deliveryQuoteRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as lineFulfillmentSchema, gi as guestInfoSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as UnknownFulfillmentView, hi as easyPayProviderSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as PageInfo, ii as availablePaymentOptionSchema, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as startPaymentRequestSchema, jn as customerInquiryCategorySchema, jr as CashReceiptRequest, jt as createReviewRequestSchema, k as parseOrderNo, ka as analyticsIdsFromCookie, ki as retryPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageSchema, li as checkoutDeliverySchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductFulfillmentView, mi as easyPayProviderResponseSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as ClaimStatus, ni as ShippingAddressInput, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as claimStatusSchema, oi as cashReceiptIdentityTypeOf, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as ProductCardFulfillment, pi as deliveryQuoteSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductSortSchema, qn as couponApplicationSchema, qr as PaymentMessage, qt as CustomInputValueView, r as CalendarDayView, ra as OrderItemStatus, ri as StartPaymentRequest, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as orderItemStatusSchema, si as cashReceiptRequestSchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionSchema, ti as RetryPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as LineFulfillment, ui as checkoutSessionSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as pickupLocationViewSchema, vi as paymentMessageSchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as UpdateCartItemRequest, wi as paymentStatusSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as AddCartItemRequest, xi as paymentOptionListSchema, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as productCardFulfillmentSchema, yi as paymentMethodSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductPage, zn as MIN_PAYMENT_AMOUNT, zr as GuestInfo, zt as reviewSummarySchema } from "./index-D4WBJ-rs.mjs";
2
+ import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionDetailSchema, $n as storefrontCouponListQuerySchema, $r as RemoteArea, $t as customInputEntrySchema, A as FlowAction, Ai as shippingAddressInputSchema, An as createCustomerInquiryRequestSchema, Ar as CashReceiptIdentityType, At as WritableReview, B as flowActionRequestSchema, Bi as ProductSearchParams, Bn as MyCoupon, Br as KnownPaymentResult, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as CartItem, Ci as paymentStartSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartSchema, Di as residentNumberLike, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as cartItemSchema, Ei as remoteAreaSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductSortParam, Fn as CheckoutPricingRequest, Fr as CreateCheckoutRequest, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductPageSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as StorefrontCollection, Hn as StorefrontCouponListParams, Hr as KnownPaymentStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductCard, In as CouponApplication, Ir as DeliveryQuoteRequest, It as publicReviewSchema, J as orderStepSchema, Ji as productCardSchema, Jn as couponBenefitViewSchema, Jr as PaymentMethod, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductQuerySchema, Kn as couponApplicationListSchema, Kr as PaymentFailureCategory, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductDetail, Ln as CouponResult, Lr as DeliveryQuoteResult, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CategoryNode, Mn as customerInquirySchema, Mr as CashReceiptType, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductPage, Nn as ApplicableCoupon, Nr as CheckoutDelivery, Nt as myReviewSchema, O as formatOrderNo, Oa as updateCartItemRequestSchema, Oi as responsePaymentMethodSchema, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductParams, Pn as CheckoutPricing, Pr as CheckoutSession, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productSortSchema, Qn as pricingAmountsSchema, Qr as PgProvider, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductFacets, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as EasyPayProvider, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as Cart, Si as paymentOptionSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as addCartItemRequestSchema, Ti as pgProviderSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollectionDetail, Un as applicableCouponSchema, Ur as PAYMENT_RESULT_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSort, Vn as StorefrontCoupon, Vr as KnownPaymentStartStatus, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as categoryNodeSchema, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_START_STATUS_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productFacetsSchema, Xn as myCouponListQuerySchema, Xr as PaymentStart, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productDetailSchema, Yn as couponResultSchema, Yr as PaymentOption, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productPageSchema, Zn as myCouponSchema, Zr as PaymentStatus, Zt as addonGroupViewSchema, _ as MyOrder, _a as myOrderItemFulfillmentSnapshotSchema, _i as paymentFailureCategorySchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageParams, ai as cashReceiptAvailable, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productFulfillmentViewSchema, bi as paymentOptionKey, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as pageInfoSchema, ci as cashReceiptTypeSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as MyOrderItemFulfillmentSnapshot, di as createCheckoutRequestSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionListQuerySchema, ei as ResponsePaymentMethod, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as PickupLocationView, fi as deliveryQuoteRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as lineFulfillmentSchema, gi as guestInfoSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as UnknownFulfillmentView, hi as easyPayProviderSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as PageInfo, ii as availablePaymentOptionSchema, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as startPaymentRequestSchema, jn as customerInquiryCategorySchema, jr as CashReceiptRequest, jt as createReviewRequestSchema, k as parseOrderNo, ka as analyticsIdsFromCookie, ki as retryPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageSchema, li as checkoutDeliverySchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductFulfillmentView, mi as easyPayProviderResponseSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as ClaimStatus, ni as ShippingAddressInput, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as claimStatusSchema, oi as cashReceiptIdentityTypeOf, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as ProductCardFulfillment, pi as deliveryQuoteSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductSortSchema, qn as couponApplicationSchema, qr as PaymentMessage, qt as CustomInputValueView, r as CalendarDayView, ra as OrderItemStatus, ri as StartPaymentRequest, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as orderItemStatusSchema, si as cashReceiptRequestSchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionSchema, ti as RetryPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as LineFulfillment, ui as checkoutSessionSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as pickupLocationViewSchema, vi as paymentMessageSchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as UpdateCartItemRequest, wi as paymentStatusSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as AddCartItemRequest, xi as paymentOptionListSchema, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as productCardFulfillmentSchema, yi as paymentMethodSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductPage, zn as MIN_PAYMENT_AMOUNT, zr as GuestInfo, zt as reviewSummarySchema } from "./index-CPAkDqew.mjs";
3
3
  export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimPreview, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
2
2
  import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
3
- import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-OJc5DOIJ.mjs";
3
+ import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-Se5Bcaow.mjs";
4
4
  import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as parseCustomInputValue, b as paymentMethodSchema, c as cashReceiptRequestSchema, ct as stayViewSchema, d as checkoutSessionSchema, dt as pickupLocationViewSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, ft as productCardFulfillmentSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as orderInputUploadRequestSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, lt as lineFulfillmentSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as calendarDayViewSchema, p as deliveryQuoteRequestSchema, pt as productFulfillmentViewSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as stayRequestSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, ut as myOrderItemFulfillmentSnapshotSchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-BjJ4Efbn.mjs";
5
5
  //#region src/session.ts
6
6
  /** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
@@ -1,4 +1,4 @@
1
- import { Xr as PaymentStart, Yr as PaymentOption, Zr as PaymentStatus, ft as createStorefrontClient, jr as CashReceiptRequest, ni as ShippingAddressInput, ri as StartPaymentRequest, zr as GuestInfo } from "../index-D4WBJ-rs.mjs";
1
+ import { Xr as PaymentStart, Yr as PaymentOption, Zr as PaymentStatus, ft as createStorefrontClient, jr as CashReceiptRequest, ni as ShippingAddressInput, ri as StartPaymentRequest, zr as GuestInfo } from "../index-CPAkDqew.mjs";
2
2
  //#region src/payments/index.d.ts
3
3
  /**
4
4
  * 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/storefront-sdk",
3
- "version": "0.20.13",
3
+ "version": "0.20.14",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
@@ -183,6 +183,22 @@ export const myOrderSchema = z.object({
183
183
  totalAmount: z.number().int().describe("결제 금액 (쿠폰 할인 반영)"),
184
184
  paidAt: z.string().nullable(),
185
185
  receiptUrl: z.url().nullable(),
186
+ refundedAmount: z
187
+ .number()
188
+ .int()
189
+ .optional()
190
+ .default(0)
191
+ .describe(
192
+ "환불된 결제 금액 합계 (원, #115) — 결제 대행사 환불이 끝난 몫이다. 적립금 반환은 포함하지 않는다. 서버는 항상 싣는다",
193
+ ),
194
+ refundPendingAmount: z
195
+ .number()
196
+ .int()
197
+ .optional()
198
+ .default(0)
199
+ .describe(
200
+ "환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다",
201
+ ),
186
202
  }),
187
203
  testPayment: z
188
204
  .boolean()