@sayren/storefront-sdk 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.mts +12 -3
- package/dist/auth/index.mjs +13 -4
- package/dist/checkout-CHpxo2Ap.mjs +310 -0
- package/dist/{client-D9iQIWnV.mjs → client-CHfCafer.mjs} +134 -13
- package/dist/{http-BbFHVGBf.d.mts → http-CeRVoUGu.d.mts} +19 -1
- package/dist/{index-DvHOQm2-.d.mts → index-OqvbJ6Xi.d.mts} +459 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/payments/index.d.mts +5 -1
- package/dist/payments/index.mjs +4 -2
- package/package.json +1 -1
- package/src/auth/index.ts +18 -3
- package/src/client.ts +28 -0
- package/src/index.ts +1 -0
- package/src/payments/index.ts +11 -1
- package/src/schemas/auth.ts +16 -0
- package/src/schemas/checkout.ts +192 -1
- package/src/schemas/claim.ts +63 -3
- package/src/schemas/consent.ts +72 -0
- package/src/schemas/member.ts +6 -0
- package/src/schemas/order.ts +52 -8
- package/dist/checkout-JFk3b8RG.mjs +0 -189
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as IdpTokenRequest, f as SignupRequest, h as WithdrawRequest, l as LinkIdentityRequest, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, u as LoginRequest } from "./http-CeRVoUGu.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/analytics-ids.d.ts
|
|
4
4
|
/**
|
|
@@ -255,6 +255,37 @@ declare const createCheckoutRequestSchema: z.ZodObject<{
|
|
|
255
255
|
}, z.core.$strip>>;
|
|
256
256
|
}, z.core.$strip>;
|
|
257
257
|
type CreateCheckoutRequest = z.infer<typeof createCheckoutRequestSchema>;
|
|
258
|
+
/** 지역 추가 배송비 구분 — 우편번호로 판정한다 */
|
|
259
|
+
declare const remoteAreaSchema: z.ZodEnum<{
|
|
260
|
+
NONE: "NONE";
|
|
261
|
+
JEJU: "JEJU";
|
|
262
|
+
ISOLATED: "ISOLATED";
|
|
263
|
+
}>;
|
|
264
|
+
type RemoteArea = z.infer<typeof remoteAreaSchema>;
|
|
265
|
+
/**
|
|
266
|
+
* 배송비 내역 (이슈 #29) — 배송비를 **몇 번, 왜** 부과했는지다.
|
|
267
|
+
*
|
|
268
|
+
* 배송비는 **배송 묶음**마다 붙는다. 같은 출고지 + 같은 배송 정책인 상품은 한 묶음이고 한 번만 낸다.
|
|
269
|
+
* 제주·도서산간 추가 배송비는 묶음마다 더하고, 무료배송이어도 붙는다.
|
|
270
|
+
*
|
|
271
|
+
* 주문서를 만들 때는 배송지를 모르므로 `zipCode`가 null이고 `remoteSurcharge`가 0이다.
|
|
272
|
+
* 배송지를 입력하면 `POST /storefront/v1/checkout/{checkoutId}/delivery-quote`로 다시 받고,
|
|
273
|
+
* **결제 시작이 보낸 배송지로 최종 확정한다** — 그래서 주문서 조회 금액과 실제 결제 금액이 다를 수 있다.
|
|
274
|
+
*/
|
|
275
|
+
declare const checkoutDeliverySchema: z.ZodObject<{
|
|
276
|
+
baseFee: z.ZodNumber;
|
|
277
|
+
remoteSurcharge: z.ZodNumber;
|
|
278
|
+
remoteArea: z.ZodEnum<{
|
|
279
|
+
NONE: "NONE";
|
|
280
|
+
JEJU: "JEJU";
|
|
281
|
+
ISOLATED: "ISOLATED";
|
|
282
|
+
}>;
|
|
283
|
+
remoteAreaLabel: z.ZodNullable<z.ZodString>;
|
|
284
|
+
bundleCount: z.ZodNumber;
|
|
285
|
+
freeByThreshold: z.ZodBoolean;
|
|
286
|
+
zipCode: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
type CheckoutDelivery = z.infer<typeof checkoutDeliverySchema>;
|
|
258
289
|
declare const checkoutSessionSchema: z.ZodObject<{
|
|
259
290
|
checkoutId: z.ZodString;
|
|
260
291
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -271,6 +302,19 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
271
302
|
deliveryFee: z.ZodNumber;
|
|
272
303
|
totalAmount: z.ZodNumber;
|
|
273
304
|
}, z.core.$strip>;
|
|
305
|
+
delivery: z.ZodObject<{
|
|
306
|
+
baseFee: z.ZodNumber;
|
|
307
|
+
remoteSurcharge: z.ZodNumber;
|
|
308
|
+
remoteArea: z.ZodEnum<{
|
|
309
|
+
NONE: "NONE";
|
|
310
|
+
JEJU: "JEJU";
|
|
311
|
+
ISOLATED: "ISOLATED";
|
|
312
|
+
}>;
|
|
313
|
+
remoteAreaLabel: z.ZodNullable<z.ZodString>;
|
|
314
|
+
bundleCount: z.ZodNumber;
|
|
315
|
+
freeByThreshold: z.ZodBoolean;
|
|
316
|
+
zipCode: z.ZodNullable<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>;
|
|
274
318
|
expiresAt: z.ZodString;
|
|
275
319
|
paymentOptions: z.ZodLazy<z.ZodPreprocess<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
276
320
|
pg: z.ZodEnum<{
|
|
@@ -315,6 +359,37 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
315
359
|
testPayment: z.ZodBoolean;
|
|
316
360
|
}, z.core.$strip>;
|
|
317
361
|
type CheckoutSession = z.infer<typeof checkoutSessionSchema>;
|
|
362
|
+
/**
|
|
363
|
+
* 배송비 미리보기 요청 — 배송지 우편번호로 배송비를 다시 계산한다. 주문서를 바꾸지 않는다(읽기 계산이다).
|
|
364
|
+
*
|
|
365
|
+
* 구매자가 배송지를 입력하거나 고칠 때 부르면 제주·도서산간 추가 배송비가 반영된 금액을 미리 보여 줄 수 있다.
|
|
366
|
+
*/
|
|
367
|
+
declare const deliveryQuoteRequestSchema: z.ZodObject<{
|
|
368
|
+
zipCode: z.ZodString;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
type DeliveryQuoteRequest = z.infer<typeof deliveryQuoteRequestSchema>;
|
|
371
|
+
/** 배송비 미리보기 응답 — 이 배송지로 결제하면 나갈 금액이다 */
|
|
372
|
+
declare const deliveryQuoteSchema: z.ZodObject<{
|
|
373
|
+
amounts: z.ZodObject<{
|
|
374
|
+
productAmount: z.ZodNumber;
|
|
375
|
+
deliveryFee: z.ZodNumber;
|
|
376
|
+
totalAmount: z.ZodNumber;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
delivery: z.ZodObject<{
|
|
379
|
+
baseFee: z.ZodNumber;
|
|
380
|
+
remoteSurcharge: z.ZodNumber;
|
|
381
|
+
remoteArea: z.ZodEnum<{
|
|
382
|
+
NONE: "NONE";
|
|
383
|
+
JEJU: "JEJU";
|
|
384
|
+
ISOLATED: "ISOLATED";
|
|
385
|
+
}>;
|
|
386
|
+
remoteAreaLabel: z.ZodNullable<z.ZodString>;
|
|
387
|
+
bundleCount: z.ZodNumber;
|
|
388
|
+
freeByThreshold: z.ZodBoolean;
|
|
389
|
+
zipCode: z.ZodNullable<z.ZodString>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
type DeliveryQuoteResult = z.infer<typeof deliveryQuoteSchema>;
|
|
318
393
|
declare const paymentMethodSchema: z.ZodEnum<{
|
|
319
394
|
CARD: "CARD";
|
|
320
395
|
EASY_PAY: "EASY_PAY";
|
|
@@ -493,6 +568,61 @@ declare const guestInfoSchema: z.ZodObject<{
|
|
|
493
568
|
orderPassword: z.ZodString;
|
|
494
569
|
}, z.core.$strip>;
|
|
495
570
|
type GuestInfo = z.infer<typeof guestInfoSchema>;
|
|
571
|
+
/** 현금영수증을 신청할 수 있는 결제수단 — 계좌이체·가상계좌 */
|
|
572
|
+
declare const CASH_RECEIPT_METHODS: readonly ["BANK_TRANSFER", "VIRTUAL_ACCOUNT"];
|
|
573
|
+
/** 이 결제수단으로 현금영수증을 신청할 수 있는가 */
|
|
574
|
+
declare function cashReceiptAvailable(method: string): boolean;
|
|
575
|
+
/** 현금영수증 용도 — `INCOME_DEDUCTION` 소득공제(개인) · `EXPENSE_PROOF` 지출증빙(사업자) */
|
|
576
|
+
declare const cashReceiptTypeSchema: z.ZodEnum<{
|
|
577
|
+
INCOME_DEDUCTION: "INCOME_DEDUCTION";
|
|
578
|
+
EXPENSE_PROOF: "EXPENSE_PROOF";
|
|
579
|
+
}>;
|
|
580
|
+
type CashReceiptType = z.infer<typeof cashReceiptTypeSchema>;
|
|
581
|
+
/** 현금영수증 식별 번호 종류 — 휴대폰 번호 · 현금영수증카드 번호 · 사업자등록번호 */
|
|
582
|
+
type CashReceiptIdentityType = "PHONE" | "CARD" | "BUSINESS";
|
|
583
|
+
/**
|
|
584
|
+
* 주민등록번호·외국인등록번호 형식인가 — 현금영수증 식별 번호로는 받지 않는다.
|
|
585
|
+
*
|
|
586
|
+
* 현금영수증카드 번호의 아래 끝(13자리)이 주민등록번호 길이와 겹친다. 개인 식별 번호는 최소로 받는다는 원칙이라
|
|
587
|
+
* 주민등록번호로 읽히는 값은 카드 번호 자리로도 받지 않는다.
|
|
588
|
+
*
|
|
589
|
+
* **13자리 숫자 전부를 막지 않는다.** 13자리 현금영수증카드를 쓰는 구매자가 신청할 수 없게 되기 때문이다.
|
|
590
|
+
* 대신 주민등록번호 형식 — 생년월일 6자리(월 01~12, 일 01~31) + 성별·세기 코드(1~8, 5~8은 외국인등록번호) — 으로
|
|
591
|
+
* 판정해 오탐을 줄인다(13자리 숫자 중 이 형식에 걸리는 비율은 약 3%다).
|
|
592
|
+
*
|
|
593
|
+
* 검증번호(뒤 1자리 mod 11)까지는 보지 않는다. 한 자리 오타가 난 주민등록번호도 생년월일을 담고 있어 막아야 하고,
|
|
594
|
+
* 2020년 10월 이후 발급된 외국인등록번호에는 검증번호 규칙이 없다.
|
|
595
|
+
*
|
|
596
|
+
* `cashReceiptIdentityTypeOf`와 같이 하이픈·공백은 빼고 판정한다.
|
|
597
|
+
*/
|
|
598
|
+
declare function residentNumberLike(identityNumber: string): boolean;
|
|
599
|
+
/**
|
|
600
|
+
* 식별 번호 → 종류. 하이픈·공백은 빼고 판정한다. 용도에 맞지 않는 번호면 null이다.
|
|
601
|
+
* - 소득공제: 휴대폰 번호(01로 시작하는 10~11자리) 또는 현금영수증카드 번호(13~19자리)
|
|
602
|
+
* - 지출증빙: 사업자등록번호(10자리) 또는 현금영수증카드 번호(13~19자리)
|
|
603
|
+
*
|
|
604
|
+
* 자릿수 근거. PG 문서는 식별 번호의 최대 길이만 정하고 종류별 자릿수는 정하지 않는다
|
|
605
|
+
* (토스페이먼츠 `customerIdentityNumber` "최대 길이는 30자", 소득공제는 휴대폰 번호·현금영수증카드 번호,
|
|
606
|
+
* 지출증빙은 사업자등록번호: https://docs.tosspayments.com/common/apis/cash-receipt /
|
|
607
|
+
* 포트원 V2는 종류만 PHONE·CARD·BUSINESS로 나눈다: https://developers.portone.io/api/rest-v2/payment.cashReceipt).
|
|
608
|
+
* 그래서 자릿수는 국세청이 정하는 발급수단 규격을 따른다 — 홈택스 소비자 발급수단 등록의 카드 번호는
|
|
609
|
+
* 13~19자리 숫자이고(https://thisthatbase.com/cash-receipts-card-registration/ 가 옮긴 홈택스 안내,
|
|
610
|
+
* 원본은 https://www.hometax.go.kr/ 소비자 발급수단 관리), 사업자등록번호는 10자리, 휴대폰 번호는 01X + 7~8자리다.
|
|
611
|
+
* 국세청 자진발급 번호(010-000-1234)도 휴대폰 형식으로 통과한다.
|
|
612
|
+
*/
|
|
613
|
+
declare function cashReceiptIdentityTypeOf(type: CashReceiptType, identityNumber: string): CashReceiptIdentityType | null;
|
|
614
|
+
/**
|
|
615
|
+
* 현금영수증 신청 — 계좌이체·가상계좌 결제에서만 보낼 수 있다. 결제가 승인되면 sayren이 결제한 PG로 발급하고,
|
|
616
|
+
* 환불하면 그만큼 취소한다. 식별 번호는 암호화해 저장하고 응답에는 가린 값만 나간다.
|
|
617
|
+
*/
|
|
618
|
+
declare const cashReceiptRequestSchema: z.ZodObject<{
|
|
619
|
+
type: z.ZodEnum<{
|
|
620
|
+
INCOME_DEDUCTION: "INCOME_DEDUCTION";
|
|
621
|
+
EXPENSE_PROOF: "EXPENSE_PROOF";
|
|
622
|
+
}>;
|
|
623
|
+
identityNumber: z.ZodString;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
type CashReceiptRequest = z.infer<typeof cashReceiptRequestSchema>;
|
|
496
626
|
/**
|
|
497
627
|
* 결제 시작 — 배송지를 확정하고 고른 결제 옵션으로 결제 시도를 연다. 응답의 `payUrl`(결제 서비스)을 팝업(`mode=popup`)이나
|
|
498
628
|
* 전체 페이지로 열면 결제 서비스가 PG 결제창을 띄우고 승인까지 한다. 리다이렉트 결제가 끝나면 구매자는 `returnUrl`로 돌아온다.
|
|
@@ -553,9 +683,20 @@ declare const startPaymentRequestSchema: z.ZodObject<{
|
|
|
553
683
|
email: z.ZodEmail;
|
|
554
684
|
orderPassword: z.ZodString;
|
|
555
685
|
}, z.core.$strip>>;
|
|
686
|
+
cashReceipt: z.ZodOptional<z.ZodObject<{
|
|
687
|
+
type: z.ZodEnum<{
|
|
688
|
+
INCOME_DEDUCTION: "INCOME_DEDUCTION";
|
|
689
|
+
EXPENSE_PROOF: "EXPENSE_PROOF";
|
|
690
|
+
}>;
|
|
691
|
+
identityNumber: z.ZodString;
|
|
692
|
+
}, z.core.$strip>>;
|
|
556
693
|
}, z.core.$strip>;
|
|
557
694
|
type StartPaymentRequest = z.infer<typeof startPaymentRequestSchema>;
|
|
558
|
-
/**
|
|
695
|
+
/**
|
|
696
|
+
* 같은 결제에서 다른 결제 옵션으로 다시 시도. `returnUrl`을 생략하면 결제 시작 때의 복귀 주소를 쓴다.
|
|
697
|
+
* `cashReceipt`를 보내면 현금영수증 신청을 이 값으로 바꾸고, 생략하면 결제 시작 때의 신청을 그대로 둔다
|
|
698
|
+
* (승인된 결제수단이 계좌이체·가상계좌가 아니면 발급하지 않는다)
|
|
699
|
+
*/
|
|
559
700
|
declare const retryPaymentRequestSchema: z.ZodObject<{
|
|
560
701
|
option: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
561
702
|
pg: z.ZodEnum<{
|
|
@@ -595,6 +736,13 @@ declare const retryPaymentRequestSchema: z.ZodObject<{
|
|
|
595
736
|
method: z.ZodLiteral<"MOBILE">;
|
|
596
737
|
}, z.core.$strip>], "method">;
|
|
597
738
|
returnUrl: z.ZodOptional<z.ZodURL>;
|
|
739
|
+
cashReceipt: z.ZodOptional<z.ZodObject<{
|
|
740
|
+
type: z.ZodEnum<{
|
|
741
|
+
INCOME_DEDUCTION: "INCOME_DEDUCTION";
|
|
742
|
+
EXPENSE_PROOF: "EXPENSE_PROOF";
|
|
743
|
+
}>;
|
|
744
|
+
identityNumber: z.ZodString;
|
|
745
|
+
}, z.core.$strip>>;
|
|
598
746
|
}, z.core.$strip>;
|
|
599
747
|
type RetryPaymentRequest = z.infer<typeof retryPaymentRequestSchema>;
|
|
600
748
|
declare const paymentStartSchema: z.ZodObject<{
|
|
@@ -640,6 +788,24 @@ declare const paymentStartSchema: z.ZodObject<{
|
|
|
640
788
|
payUrl: z.ZodString;
|
|
641
789
|
expiresAt: z.ZodString;
|
|
642
790
|
testPayment: z.ZodBoolean;
|
|
791
|
+
amounts: z.ZodObject<{
|
|
792
|
+
productAmount: z.ZodNumber;
|
|
793
|
+
deliveryFee: z.ZodNumber;
|
|
794
|
+
totalAmount: z.ZodNumber;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
delivery: z.ZodObject<{
|
|
797
|
+
baseFee: z.ZodNumber;
|
|
798
|
+
remoteSurcharge: z.ZodNumber;
|
|
799
|
+
remoteArea: z.ZodEnum<{
|
|
800
|
+
NONE: "NONE";
|
|
801
|
+
JEJU: "JEJU";
|
|
802
|
+
ISOLATED: "ISOLATED";
|
|
803
|
+
}>;
|
|
804
|
+
remoteAreaLabel: z.ZodNullable<z.ZodString>;
|
|
805
|
+
bundleCount: z.ZodNumber;
|
|
806
|
+
freeByThreshold: z.ZodBoolean;
|
|
807
|
+
zipCode: z.ZodNullable<z.ZodString>;
|
|
808
|
+
}, z.core.$strip>;
|
|
643
809
|
}, z.core.$strip>;
|
|
644
810
|
type PaymentStart = z.infer<typeof paymentStartSchema>;
|
|
645
811
|
/** 결제창에서 결제하지 못한 이유 */
|
|
@@ -718,6 +884,7 @@ declare const createClaimRequestSchema: z.ZodObject<{
|
|
|
718
884
|
reasonDetail: z.ZodOptional<z.ZodString>;
|
|
719
885
|
evidenceImages: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
720
886
|
exchangeOptionId: z.ZodOptional<z.ZodString>;
|
|
887
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
721
888
|
}, z.core.$strip>;
|
|
722
889
|
type CreateClaimRequest = z.infer<typeof createClaimRequestSchema>;
|
|
723
890
|
declare const createClaimResultSchema: z.ZodObject<{
|
|
@@ -725,8 +892,26 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
725
892
|
status: z.ZodLiteral<"REQUESTED">;
|
|
726
893
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
727
894
|
claimDeliveryFee: z.ZodNumber;
|
|
895
|
+
quantity: z.ZodNumber;
|
|
896
|
+
deliveryFeeRefundAmount: z.ZodNumber;
|
|
728
897
|
}, z.core.$strip>;
|
|
729
898
|
type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
899
|
+
/**
|
|
900
|
+
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 스토어 주소록의 기본 반품지이거나,
|
|
901
|
+
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
902
|
+
*
|
|
903
|
+
* 취소 클레임은 보낼 물건이 없어 null이고, 반품지를 등록하지 않은 스토어도 null이다.
|
|
904
|
+
* 구매자가 직접 보내는 수거(`BUYER_SEND`)에 이 주소가 필요하다.
|
|
905
|
+
*/
|
|
906
|
+
declare const claimReturnAddressSchema: z.ZodObject<{
|
|
907
|
+
name: z.ZodString;
|
|
908
|
+
contactName: z.ZodString;
|
|
909
|
+
phone: z.ZodString;
|
|
910
|
+
zipCode: z.ZodString;
|
|
911
|
+
address1: z.ZodString;
|
|
912
|
+
address2: z.ZodNullable<z.ZodString>;
|
|
913
|
+
}, z.core.$strip>;
|
|
914
|
+
type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
|
|
730
915
|
declare const myClaimSchema: z.ZodObject<{
|
|
731
916
|
claimId: z.ZodString;
|
|
732
917
|
type: z.ZodEnum<{
|
|
@@ -747,14 +932,125 @@ declare const myClaimSchema: z.ZodObject<{
|
|
|
747
932
|
}>;
|
|
748
933
|
orderItemId: z.ZodString;
|
|
749
934
|
productName: z.ZodString;
|
|
935
|
+
quantity: z.ZodNumber;
|
|
750
936
|
reason: z.ZodString;
|
|
751
937
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
938
|
+
expectedDeliveryFeeRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
752
939
|
rejectReason: z.ZodNullable<z.ZodString>;
|
|
940
|
+
returnAddress: z.ZodNullable<z.ZodObject<{
|
|
941
|
+
name: z.ZodString;
|
|
942
|
+
contactName: z.ZodString;
|
|
943
|
+
phone: z.ZodString;
|
|
944
|
+
zipCode: z.ZodString;
|
|
945
|
+
address1: z.ZodString;
|
|
946
|
+
address2: z.ZodNullable<z.ZodString>;
|
|
947
|
+
}, z.core.$strip>>;
|
|
753
948
|
requestedAt: z.ZodString;
|
|
754
949
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
755
950
|
}, z.core.$strip>;
|
|
756
951
|
type MyClaim = z.infer<typeof myClaimSchema>;
|
|
757
952
|
//#endregion
|
|
953
|
+
//#region src/schemas/consent.d.ts
|
|
954
|
+
/**
|
|
955
|
+
* 동의 종류 — 이용약관(`TERMS`)·개인정보 수집이용(`PRIVACY`)은 가입 필수, 마케팅 수신(`MARKETING`)은 선택이다.
|
|
956
|
+
* 필수 동의는 철회할 수 없다(철회 = 탈퇴).
|
|
957
|
+
*/
|
|
958
|
+
declare const consentKindSchema: z.ZodEnum<{
|
|
959
|
+
TERMS: "TERMS";
|
|
960
|
+
PRIVACY: "PRIVACY";
|
|
961
|
+
MARKETING: "MARKETING";
|
|
962
|
+
}>;
|
|
963
|
+
type ConsentKind = z.infer<typeof consentKindSchema>;
|
|
964
|
+
/** 동의 이력의 한 줄이 무엇인가 — 동의했거나 철회했다 */
|
|
965
|
+
declare const consentActionSchema: z.ZodEnum<{
|
|
966
|
+
WITHDRAWN: "WITHDRAWN";
|
|
967
|
+
AGREED: "AGREED";
|
|
968
|
+
}>;
|
|
969
|
+
type ConsentAction = z.infer<typeof consentActionSchema>;
|
|
970
|
+
/**
|
|
971
|
+
* 동의가 일어난 경로. 값이 추가될 수 있어 모르는 값은 그대로 보여 준다.
|
|
972
|
+
* `SIGNUP` 비밀번호 가입 · `SOCIAL_SIGNUP` 소셜 가입 · `DELEGATED` 셀러 자체 회원 연동 ·
|
|
973
|
+
* `RECONSENT` 약관 개정 재동의 · `MEMBER_UPDATE` 구매자가 직접 변경 · `SELLER` 셀러가 처리
|
|
974
|
+
*/
|
|
975
|
+
declare const consentSourceSchema: z.ZodEnum<{
|
|
976
|
+
SIGNUP: "SIGNUP";
|
|
977
|
+
SOCIAL_SIGNUP: "SOCIAL_SIGNUP";
|
|
978
|
+
DELEGATED: "DELEGATED";
|
|
979
|
+
RECONSENT: "RECONSENT";
|
|
980
|
+
MEMBER_UPDATE: "MEMBER_UPDATE";
|
|
981
|
+
SELLER: "SELLER";
|
|
982
|
+
}>;
|
|
983
|
+
type ConsentSource = z.infer<typeof consentSourceSchema>;
|
|
984
|
+
/** 종류별 현재 동의 상태 */
|
|
985
|
+
declare const consentStateSchema: z.ZodObject<{
|
|
986
|
+
kind: z.ZodEnum<{
|
|
987
|
+
TERMS: "TERMS";
|
|
988
|
+
PRIVACY: "PRIVACY";
|
|
989
|
+
MARKETING: "MARKETING";
|
|
990
|
+
}>;
|
|
991
|
+
agreed: z.ZodBoolean;
|
|
992
|
+
agreedVersion: z.ZodNullable<z.ZodString>;
|
|
993
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
994
|
+
currentDocumentUrl: z.ZodNullable<z.ZodString>;
|
|
995
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
996
|
+
reconsentRequired: z.ZodBoolean;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
type ConsentState = z.infer<typeof consentStateSchema>;
|
|
999
|
+
/** `GET /storefront/v1/me/consents` 응답 */
|
|
1000
|
+
declare const memberConsentsSchema: z.ZodObject<{
|
|
1001
|
+
terms: z.ZodObject<{
|
|
1002
|
+
kind: z.ZodEnum<{
|
|
1003
|
+
TERMS: "TERMS";
|
|
1004
|
+
PRIVACY: "PRIVACY";
|
|
1005
|
+
MARKETING: "MARKETING";
|
|
1006
|
+
}>;
|
|
1007
|
+
agreed: z.ZodBoolean;
|
|
1008
|
+
agreedVersion: z.ZodNullable<z.ZodString>;
|
|
1009
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
1010
|
+
currentDocumentUrl: z.ZodNullable<z.ZodString>;
|
|
1011
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1012
|
+
reconsentRequired: z.ZodBoolean;
|
|
1013
|
+
}, z.core.$strip>;
|
|
1014
|
+
privacy: z.ZodObject<{
|
|
1015
|
+
kind: z.ZodEnum<{
|
|
1016
|
+
TERMS: "TERMS";
|
|
1017
|
+
PRIVACY: "PRIVACY";
|
|
1018
|
+
MARKETING: "MARKETING";
|
|
1019
|
+
}>;
|
|
1020
|
+
agreed: z.ZodBoolean;
|
|
1021
|
+
agreedVersion: z.ZodNullable<z.ZodString>;
|
|
1022
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
1023
|
+
currentDocumentUrl: z.ZodNullable<z.ZodString>;
|
|
1024
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1025
|
+
reconsentRequired: z.ZodBoolean;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
marketing: z.ZodObject<{
|
|
1028
|
+
kind: z.ZodEnum<{
|
|
1029
|
+
TERMS: "TERMS";
|
|
1030
|
+
PRIVACY: "PRIVACY";
|
|
1031
|
+
MARKETING: "MARKETING";
|
|
1032
|
+
}>;
|
|
1033
|
+
agreed: z.ZodBoolean;
|
|
1034
|
+
agreedVersion: z.ZodNullable<z.ZodString>;
|
|
1035
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
1036
|
+
currentDocumentUrl: z.ZodNullable<z.ZodString>;
|
|
1037
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1038
|
+
reconsentRequired: z.ZodBoolean;
|
|
1039
|
+
}, z.core.$strip>;
|
|
1040
|
+
reconsentRequired: z.ZodBoolean;
|
|
1041
|
+
}, z.core.$strip>;
|
|
1042
|
+
type MemberConsents = z.infer<typeof memberConsentsSchema>;
|
|
1043
|
+
/**
|
|
1044
|
+
* `POST /storefront/v1/me/consents` 본문 — 바꿀 항목만 보낸다.
|
|
1045
|
+
* 필수 동의는 동의(`true`)만 보낼 수 있다. 이미 현재 버전에 동의한 항목은 이력을 더 남기지 않는다.
|
|
1046
|
+
*/
|
|
1047
|
+
declare const consentUpdateRequestSchema: z.ZodObject<{
|
|
1048
|
+
terms: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1049
|
+
privacy: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1050
|
+
marketing: z.ZodOptional<z.ZodBoolean>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
type ConsentUpdateRequest = z.infer<typeof consentUpdateRequestSchema>;
|
|
1053
|
+
//#endregion
|
|
758
1054
|
//#region src/schemas/customer-inquiry.d.ts
|
|
759
1055
|
declare const customerInquiryCategorySchema: z.ZodEnum<{
|
|
760
1056
|
RETURN: "RETURN";
|
|
@@ -834,6 +1130,7 @@ declare const memberSchema: z.ZodObject<{
|
|
|
834
1130
|
point: z.ZodNumber;
|
|
835
1131
|
marketingAgreed: z.ZodBoolean;
|
|
836
1132
|
joinedAt: z.ZodString;
|
|
1133
|
+
reconsentRequired: z.ZodBoolean;
|
|
837
1134
|
}, z.core.$strip>;
|
|
838
1135
|
type Member = z.infer<typeof memberSchema>;
|
|
839
1136
|
declare const updateProfileRequestSchema: z.ZodObject<{
|
|
@@ -1055,6 +1352,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1055
1352
|
point: number;
|
|
1056
1353
|
marketingAgreed: boolean;
|
|
1057
1354
|
joinedAt: string;
|
|
1355
|
+
reconsentRequired: boolean;
|
|
1058
1356
|
} | null>;
|
|
1059
1357
|
auth: {
|
|
1060
1358
|
/** 비회원 익명 세션 발급 — 응답의 cartToken을 `cartToken` 옵션(X-Cart-Token)으로 쓴다 */
|
|
@@ -1340,6 +1638,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1340
1638
|
deliveryFee: number;
|
|
1341
1639
|
totalAmount: number;
|
|
1342
1640
|
};
|
|
1641
|
+
delivery: {
|
|
1642
|
+
baseFee: number;
|
|
1643
|
+
remoteSurcharge: number;
|
|
1644
|
+
remoteArea: "NONE" | "JEJU" | "ISOLATED";
|
|
1645
|
+
remoteAreaLabel: string | null;
|
|
1646
|
+
bundleCount: number;
|
|
1647
|
+
freeByThreshold: boolean;
|
|
1648
|
+
zipCode: string | null;
|
|
1649
|
+
};
|
|
1343
1650
|
expiresAt: string;
|
|
1344
1651
|
paymentOptions: (({
|
|
1345
1652
|
pg: "tosspayments" | "portone";
|
|
@@ -1363,6 +1670,31 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1363
1670
|
})[];
|
|
1364
1671
|
testPayment: boolean;
|
|
1365
1672
|
}>;
|
|
1673
|
+
/**
|
|
1674
|
+
* `POST /checkout/{checkoutId}/delivery-quote` — 배송비 미리보기. 배송지 우편번호로 배송비를 다시 계산한다.
|
|
1675
|
+
*
|
|
1676
|
+
* 주문서를 만들 때는 배송지를 모르므로 제주·도서산간 추가 배송비가 빠져 있다. 구매자가 배송지를 입력하거나
|
|
1677
|
+
* 고칠 때 이 메서드로 금액을 갱신하면 결제 직전에 금액이 바뀌는 일을 피할 수 있다. 주문서를 바꾸지 않는
|
|
1678
|
+
* 읽기 계산이고, **최종 금액은 결제 시작 응답의 `amounts`다.**
|
|
1679
|
+
*
|
|
1680
|
+
* 에러(`ApiError.code`): 404 `CHECKOUT_NOT_FOUND`, 409 `CHECKOUT_EXPIRED`, 409 `ALREADY_PAID`
|
|
1681
|
+
*/
|
|
1682
|
+
quoteDelivery: (checkoutId: string, body: DeliveryQuoteRequest) => Promise<{
|
|
1683
|
+
amounts: {
|
|
1684
|
+
productAmount: number;
|
|
1685
|
+
deliveryFee: number;
|
|
1686
|
+
totalAmount: number;
|
|
1687
|
+
};
|
|
1688
|
+
delivery: {
|
|
1689
|
+
baseFee: number;
|
|
1690
|
+
remoteSurcharge: number;
|
|
1691
|
+
remoteArea: "NONE" | "JEJU" | "ISOLATED";
|
|
1692
|
+
remoteAreaLabel: string | null;
|
|
1693
|
+
bundleCount: number;
|
|
1694
|
+
freeByThreshold: boolean;
|
|
1695
|
+
zipCode: string | null;
|
|
1696
|
+
};
|
|
1697
|
+
}>;
|
|
1366
1698
|
/**
|
|
1367
1699
|
* `POST /checkout/{checkoutId}/payment` — 결제 시작. 배송지와 결제 옵션(`paymentOptions` 항목 또는 직접 쓴 옵션)으로
|
|
1368
1700
|
* 결제 세션·첫 시도를 만들고 결제 서비스 주소(`payUrl`)를 돌려준다. 그 주소를 열어 결제를 진행하는 것은
|
|
@@ -1398,6 +1730,20 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1398
1730
|
payUrl: string;
|
|
1399
1731
|
expiresAt: string;
|
|
1400
1732
|
testPayment: boolean;
|
|
1733
|
+
amounts: {
|
|
1734
|
+
productAmount: number;
|
|
1735
|
+
deliveryFee: number;
|
|
1736
|
+
totalAmount: number;
|
|
1737
|
+
};
|
|
1738
|
+
delivery: {
|
|
1739
|
+
baseFee: number;
|
|
1740
|
+
remoteSurcharge: number;
|
|
1741
|
+
remoteArea: "NONE" | "JEJU" | "ISOLATED";
|
|
1742
|
+
remoteAreaLabel: string | null;
|
|
1743
|
+
bundleCount: number;
|
|
1744
|
+
freeByThreshold: boolean;
|
|
1745
|
+
zipCode: string | null;
|
|
1746
|
+
};
|
|
1401
1747
|
}>;
|
|
1402
1748
|
};
|
|
1403
1749
|
payments: {
|
|
@@ -1449,6 +1795,20 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1449
1795
|
payUrl: string;
|
|
1450
1796
|
expiresAt: string;
|
|
1451
1797
|
testPayment: boolean;
|
|
1798
|
+
amounts: {
|
|
1799
|
+
productAmount: number;
|
|
1800
|
+
deliveryFee: number;
|
|
1801
|
+
totalAmount: number;
|
|
1802
|
+
};
|
|
1803
|
+
delivery: {
|
|
1804
|
+
baseFee: number;
|
|
1805
|
+
remoteSurcharge: number;
|
|
1806
|
+
remoteArea: "NONE" | "JEJU" | "ISOLATED";
|
|
1807
|
+
remoteAreaLabel: string | null;
|
|
1808
|
+
bundleCount: number;
|
|
1809
|
+
freeByThreshold: boolean;
|
|
1810
|
+
zipCode: string | null;
|
|
1811
|
+
};
|
|
1452
1812
|
}>;
|
|
1453
1813
|
};
|
|
1454
1814
|
myOrders: {
|
|
@@ -1470,6 +1830,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1470
1830
|
thumbnailUrl: string | null;
|
|
1471
1831
|
optionName: string | null;
|
|
1472
1832
|
quantity: number;
|
|
1833
|
+
canceledQuantity: number;
|
|
1834
|
+
activeQuantity: number;
|
|
1473
1835
|
totalPrice: number;
|
|
1474
1836
|
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
1475
1837
|
claimStatus: string | null;
|
|
@@ -1505,6 +1867,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1505
1867
|
thumbnailUrl: string | null;
|
|
1506
1868
|
optionName: string | null;
|
|
1507
1869
|
quantity: number;
|
|
1870
|
+
canceledQuantity: number;
|
|
1871
|
+
activeQuantity: number;
|
|
1508
1872
|
totalPrice: number;
|
|
1509
1873
|
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
1510
1874
|
claimStatus: string | null;
|
|
@@ -1542,6 +1906,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1542
1906
|
thumbnailUrl: string | null;
|
|
1543
1907
|
optionName: string | null;
|
|
1544
1908
|
quantity: number;
|
|
1909
|
+
canceledQuantity: number;
|
|
1910
|
+
activeQuantity: number;
|
|
1545
1911
|
totalPrice: number;
|
|
1546
1912
|
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
1547
1913
|
claimStatus: string | null;
|
|
@@ -1575,7 +1941,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1575
1941
|
status: string;
|
|
1576
1942
|
location: string;
|
|
1577
1943
|
occurredAt: string;
|
|
1944
|
+
stage: string | null;
|
|
1578
1945
|
}[];
|
|
1946
|
+
trackingStage: string | null;
|
|
1947
|
+
trackingCheckedAt: string | null;
|
|
1579
1948
|
}>;
|
|
1580
1949
|
decidePurchase: (orderItemId: string) => Promise<void>;
|
|
1581
1950
|
};
|
|
@@ -1585,6 +1954,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1585
1954
|
status: "REQUESTED";
|
|
1586
1955
|
expectedRefundAmount: number | null;
|
|
1587
1956
|
claimDeliveryFee: number;
|
|
1957
|
+
quantity: number;
|
|
1958
|
+
deliveryFeeRefundAmount: number;
|
|
1588
1959
|
}>;
|
|
1589
1960
|
list: (params?: PageParams & {
|
|
1590
1961
|
status?: ClaimStatus;
|
|
@@ -1599,9 +1970,19 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1599
1970
|
status: "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "WITHDRAWN";
|
|
1600
1971
|
orderItemId: string;
|
|
1601
1972
|
productName: string;
|
|
1973
|
+
quantity: number;
|
|
1602
1974
|
reason: string;
|
|
1603
1975
|
expectedRefundAmount: number | null;
|
|
1976
|
+
expectedDeliveryFeeRefundAmount: number | null;
|
|
1604
1977
|
rejectReason: string | null;
|
|
1978
|
+
returnAddress: {
|
|
1979
|
+
name: string;
|
|
1980
|
+
contactName: string;
|
|
1981
|
+
phone: string;
|
|
1982
|
+
zipCode: string;
|
|
1983
|
+
address1: string;
|
|
1984
|
+
address2: string | null;
|
|
1985
|
+
} | null;
|
|
1605
1986
|
requestedAt: string;
|
|
1606
1987
|
completedAt: string | null;
|
|
1607
1988
|
}[];
|
|
@@ -1617,8 +1998,71 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
1617
1998
|
point: number;
|
|
1618
1999
|
marketingAgreed: boolean;
|
|
1619
2000
|
joinedAt: string;
|
|
2001
|
+
reconsentRequired: boolean;
|
|
1620
2002
|
}>;
|
|
1621
2003
|
updateMe: (body: UpdateProfileRequest) => Promise<void>;
|
|
2004
|
+
/** 약관·개인정보·마케팅 동의의 현재 상태와 재동의 필요 여부 */
|
|
2005
|
+
consents: () => Promise<{
|
|
2006
|
+
terms: {
|
|
2007
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2008
|
+
agreed: boolean;
|
|
2009
|
+
agreedVersion: string | null;
|
|
2010
|
+
currentVersion: string | null;
|
|
2011
|
+
currentDocumentUrl: string | null;
|
|
2012
|
+
updatedAt: string | null;
|
|
2013
|
+
reconsentRequired: boolean;
|
|
2014
|
+
};
|
|
2015
|
+
privacy: {
|
|
2016
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2017
|
+
agreed: boolean;
|
|
2018
|
+
agreedVersion: string | null;
|
|
2019
|
+
currentVersion: string | null;
|
|
2020
|
+
currentDocumentUrl: string | null;
|
|
2021
|
+
updatedAt: string | null;
|
|
2022
|
+
reconsentRequired: boolean;
|
|
2023
|
+
};
|
|
2024
|
+
marketing: {
|
|
2025
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2026
|
+
agreed: boolean;
|
|
2027
|
+
agreedVersion: string | null;
|
|
2028
|
+
currentVersion: string | null;
|
|
2029
|
+
currentDocumentUrl: string | null;
|
|
2030
|
+
updatedAt: string | null;
|
|
2031
|
+
reconsentRequired: boolean;
|
|
2032
|
+
};
|
|
2033
|
+
reconsentRequired: boolean;
|
|
2034
|
+
}>;
|
|
2035
|
+
/** 재동의·마케팅 동의 변경 — 바꾼 뒤의 상태를 돌려준다 */
|
|
2036
|
+
updateConsents: (body: ConsentUpdateRequest) => Promise<{
|
|
2037
|
+
terms: {
|
|
2038
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2039
|
+
agreed: boolean;
|
|
2040
|
+
agreedVersion: string | null;
|
|
2041
|
+
currentVersion: string | null;
|
|
2042
|
+
currentDocumentUrl: string | null;
|
|
2043
|
+
updatedAt: string | null;
|
|
2044
|
+
reconsentRequired: boolean;
|
|
2045
|
+
};
|
|
2046
|
+
privacy: {
|
|
2047
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2048
|
+
agreed: boolean;
|
|
2049
|
+
agreedVersion: string | null;
|
|
2050
|
+
currentVersion: string | null;
|
|
2051
|
+
currentDocumentUrl: string | null;
|
|
2052
|
+
updatedAt: string | null;
|
|
2053
|
+
reconsentRequired: boolean;
|
|
2054
|
+
};
|
|
2055
|
+
marketing: {
|
|
2056
|
+
kind: "TERMS" | "PRIVACY" | "MARKETING";
|
|
2057
|
+
agreed: boolean;
|
|
2058
|
+
agreedVersion: string | null;
|
|
2059
|
+
currentVersion: string | null;
|
|
2060
|
+
currentDocumentUrl: string | null;
|
|
2061
|
+
updatedAt: string | null;
|
|
2062
|
+
reconsentRequired: boolean;
|
|
2063
|
+
};
|
|
2064
|
+
reconsentRequired: boolean;
|
|
2065
|
+
}>;
|
|
1622
2066
|
listAddresses: () => Promise<{
|
|
1623
2067
|
addressId: string;
|
|
1624
2068
|
alias: string;
|
|
@@ -1871,6 +2315,8 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
1871
2315
|
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
1872
2316
|
optionName: z.ZodNullable<z.ZodString>;
|
|
1873
2317
|
quantity: z.ZodNumber;
|
|
2318
|
+
canceledQuantity: z.ZodNumber;
|
|
2319
|
+
activeQuantity: z.ZodNumber;
|
|
1874
2320
|
totalPrice: z.ZodNumber;
|
|
1875
2321
|
status: z.ZodEnum<{
|
|
1876
2322
|
CANCELED: "CANCELED";
|
|
@@ -1911,6 +2357,8 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
1911
2357
|
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
1912
2358
|
optionName: z.ZodNullable<z.ZodString>;
|
|
1913
2359
|
quantity: z.ZodNumber;
|
|
2360
|
+
canceledQuantity: z.ZodNumber;
|
|
2361
|
+
activeQuantity: z.ZodNumber;
|
|
1914
2362
|
totalPrice: z.ZodNumber;
|
|
1915
2363
|
status: z.ZodEnum<{
|
|
1916
2364
|
CANCELED: "CANCELED";
|
|
@@ -1951,6 +2399,11 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
1951
2399
|
testPayment: z.ZodBoolean;
|
|
1952
2400
|
}, z.core.$strip>;
|
|
1953
2401
|
type MyOrder = z.infer<typeof myOrderSchema>;
|
|
2402
|
+
/**
|
|
2403
|
+
* 택배 추적 단계. 응답에서는 문자열로 받는다(값이 추가될 수 있다) — 현재 값은 `ACCEPTED`(접수)·`IN_TRANSIT`(이동 중)·
|
|
2404
|
+
* `OUT_FOR_DELIVERY`(배송 출발)·`DELIVERED`(배송완료)다.
|
|
2405
|
+
*/
|
|
2406
|
+
declare const trackingStageResponseSchema: z.ZodString;
|
|
1954
2407
|
declare const deliveryTrackingSchema: z.ZodObject<{
|
|
1955
2408
|
carrierName: z.ZodString;
|
|
1956
2409
|
trackingNumber: z.ZodString;
|
|
@@ -1964,7 +2417,10 @@ declare const deliveryTrackingSchema: z.ZodObject<{
|
|
|
1964
2417
|
status: z.ZodString;
|
|
1965
2418
|
location: z.ZodString;
|
|
1966
2419
|
occurredAt: z.ZodString;
|
|
2420
|
+
stage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1967
2421
|
}, z.core.$strip>>;
|
|
2422
|
+
trackingStage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2423
|
+
trackingCheckedAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1968
2424
|
}, z.core.$strip>;
|
|
1969
2425
|
type DeliveryTracking = z.infer<typeof deliveryTrackingSchema>;
|
|
1970
2426
|
/** `POST /me/order-items/{orderItemId}/purchase-decision` 응답 */
|
|
@@ -1995,4 +2451,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
1995
2451
|
}, z.core.$strip>;
|
|
1996
2452
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
1997
2453
|
//#endregion
|
|
1998
|
-
export {
|
|
2454
|
+
export { Member as $, productCardSchema as $n, DeliveryQuoteRequest as $t, StorefrontClientOptions as A, guestInfoSchema as An, consentStateSchema as At, ReviewPage as B, remoteAreaSchema as Bn, claimReturnAddressSchema as Bt, AnalyticsServerEventName as C, checkoutDeliverySchema as Cn, ConsentSource as Ct, analyticsIdSchema as D, deliveryQuoteSchema as Dn, consentActionSchema as Dt, analyticsClientEventSchema as E, deliveryQuoteRequestSchema as En, MemberConsents as Et, StorefrontSessionOptions as F, paymentOptionListSchema as Fn, ClaimType as Ft, createReviewRequestSchema as G, CategoryNode as Gn, AvailablePaymentOption as Gt, UpdateReviewRequest as H, retryPaymentRequestSchema as Hn, createClaimRequestSchema as Ht, createStorefrontSession as I, paymentOptionSchema as In, CreateClaimRequest as It, reviewPageSchema as J, ProductFacets as Jn, CashReceiptRequest as Jt, createReviewResultSchema as K, ProductCard as Kn, CASH_RECEIPT_METHODS as Kt, CreateReviewRequest as L, paymentStartSchema as Ln, CreateClaimResult as Lt, STOREFRONT_SESSION_KEYS as M, paymentMessageSchema as Mn, memberConsentsSchema as Mt, SessionStorage as N, paymentMethodSchema as Nn, ClaimReason as Nt, analyticsServerEventNameSchema as O, easyPayProviderResponseSchema as On, consentKindSchema as Ot, StorefrontSession as P, paymentOptionKey as Pn, ClaimReturnAddress as Pt, writableReviewSchema as Q, categoryNodeSchema as Qn, CreateCheckoutRequest as Qt, CreateReviewResult as R, paymentStatusSchema as Rn, MyClaim as Rt, AnalyticsEventName as S, cashReceiptTypeSchema as Sn, ConsentKind as St, analyticsClientEventNameSchema as T, createCheckoutRequestSchema as Tn, ConsentUpdateRequest as Tt, UpdateReviewResult as U, shippingAddressInputSchema as Un, createClaimResultSchema as Ut, ReviewSummary as V, residentNumberLike as Vn, claimTypeSchema as Vt, WritableReview as W, startPaymentRequestSchema as Wn, myClaimSchema as Wt, updateReviewRequestSchema as X, ProductSearchParams as Xn, CheckoutDelivery as Xt, reviewSummarySchema as Y, ProductPage as Yn, CashReceiptType as Yt, updateReviewResultSchema as Z, ProductSort as Zn, CheckoutSession as Zt, ANALYTICS_VISITOR_COOKIE as _, StartPaymentRequest as _n, cartItemSchema as _r, CustomerInquiryCategory as _t, MyOrderItem as a, PAYMENT_RESULT_VALUES as an, OrderItemStatus as ar, memberAddressSchema as at, AnalyticsClientEvent as b, cashReceiptIdentityTypeOf as bn, analyticsIdsFromCookie as br, customerInquirySchema as bt, deliveryTrackingSchema as c, PaymentMessage as cn, claimStatusSchema as cr, wishlistAddResultSchema as ct, orderShippingAddressSchema as d, PaymentStart as dn, pageSchema as dr, PublicInquiry as dt, DeliveryQuoteResult as en, productDetailSchema as er, MemberAddress as et, purchaseDecisionResultSchema as f, PaymentStatus as fn, AddCartItemRequest as fr, createInquiryRequestSchema as ft, ANALYTICS_SESSION_HEADER as g, ShippingAddressInput as gn, addCartItemRequestSchema as gr, CustomerInquiry as gt, ANALYTICS_SESSION_COOKIE as h, RetryPaymentRequest as hn, UpdateCartItemRequest as hr, CreateCustomerInquiryRequest as ht, MyOrder as i, KnownPaymentStatus as in, ClaimStatus as ir, memberAddressRequestSchema as it, createStorefrontClient as j, paymentFailureCategorySchema as jn, consentUpdateRequestSchema as jt, StorefrontClient as k, easyPayProviderSchema as kn, consentSourceSchema as kt, myOrderItemSchema as l, PaymentMethod as ln, orderItemStatusSchema as lr, CreateInquiryRequest as lt, ANALYTICS_MAX_BATCH_BYTES as m, RemoteArea as mn, CartItem as mr, publicInquirySchema as mt, storefrontStoreSchema as n, GuestInfo as nn, productPageSchema as nr, UpdateProfileRequest as nt, OrderShippingAddress as o, PAYMENT_STATUS_VALUES as on, PageInfo as or, memberSchema as ot, trackingStageResponseSchema as p, PgProvider as pn, Cart as pr, createInquiryResultSchema as pt, publicReviewSchema as q, ProductDetail as qn, CashReceiptIdentityType as qt, DeliveryTracking as r, KnownPaymentResult as rn, productSortSchema as rr, WishlistAddResult as rt, PurchaseDecisionResult as s, PaymentFailureCategory as sn, PageParams as sr, updateProfileRequestSchema as st, StorefrontStore as t, EasyPayProvider as tn, productFacetsSchema as tr, MemberAddressRequest as tt, myOrderSchema as u, PaymentOption as un, pageInfoSchema as ur, CreateInquiryResult as ut, ANALYTICS_VISITOR_HEADER as v, availablePaymentOptionSchema as vn, cartSchema as vr, createCustomerInquiryRequestSchema as vt, analyticsBatchSchema as w, checkoutSessionSchema as wn, ConsentState as wt, AnalyticsClientEventName as x, cashReceiptRequestSchema as xn, ConsentAction as xt, AnalyticsBatch as y, cashReceiptAvailable as yn, updateCartItemRequestSchema as yr, customerInquiryCategorySchema as yt, PublicReview as z, pgProviderSchema as zn, claimReasonSchema as zt };
|