@sayren/store-sdk 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +722 -67
- package/dist/index.mjs +81 -2
- package/package.json +1 -1
- package/src/client.ts +22 -0
- package/src/schemas/checkout.ts +77 -1
- package/src/schemas/common.ts +4 -0
- package/src/schemas/order.ts +76 -1
package/dist/index.d.mts
CHANGED
|
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>;
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
169
168
|
DENIED: "DENIED";
|
|
169
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
170
170
|
ALLOW: "ALLOW";
|
|
171
171
|
}>;
|
|
172
172
|
export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
|
|
@@ -191,8 +191,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
|
|
|
191
191
|
export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
192
192
|
dryRun: z.ZodLiteral<true>;
|
|
193
193
|
decision: z.ZodEnum<{
|
|
194
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
195
194
|
DENIED: "DENIED";
|
|
195
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
196
196
|
ALLOW: "ALLOW";
|
|
197
197
|
}>;
|
|
198
198
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -5939,6 +5939,95 @@ export declare const sellerCheckoutPageSchema: z.ZodObject<{
|
|
|
5939
5939
|
}, z.core.$strip>>;
|
|
5940
5940
|
}, z.core.$strip>;
|
|
5941
5941
|
export type SellerCheckoutPage = z.infer<typeof sellerCheckoutPageSchema>;
|
|
5942
|
+
/** 주문 직접 생성의 배송지(이슈 #117) — 국내 배송지다 */
|
|
5943
|
+
export declare const directOrderShippingAddressSchema: z.ZodObject<{
|
|
5944
|
+
receiverName: z.ZodString;
|
|
5945
|
+
phone: z.ZodString;
|
|
5946
|
+
zipCode: z.ZodString;
|
|
5947
|
+
address1: z.ZodString;
|
|
5948
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
5949
|
+
deliveryMemo: z.ZodOptional<z.ZodString>;
|
|
5950
|
+
}, z.core.$strip>;
|
|
5951
|
+
/**
|
|
5952
|
+
* 주문 직접 생성 요청(이슈 #117) — 셀러가 결제 대기 주문을 만든다. 회원을 고르거나(`memberId`) 비회원 주문자 정보(`guest`)를 준다.
|
|
5953
|
+
* 줄·단가·이행 방식·재고 추적·유효 기한은 셀러 작성 주문서와 같은 규칙이다
|
|
5954
|
+
*/
|
|
5955
|
+
export declare const createOrderRequestSchema: z.ZodObject<{
|
|
5956
|
+
memberId: z.ZodOptional<z.ZodString>;
|
|
5957
|
+
guest: z.ZodOptional<z.ZodObject<{
|
|
5958
|
+
name: z.ZodString;
|
|
5959
|
+
phone: z.ZodString;
|
|
5960
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
5961
|
+
}, z.core.$strip>>;
|
|
5962
|
+
shippingAddress: z.ZodOptional<z.ZodObject<{
|
|
5963
|
+
receiverName: z.ZodString;
|
|
5964
|
+
phone: z.ZodString;
|
|
5965
|
+
zipCode: z.ZodString;
|
|
5966
|
+
address1: z.ZodString;
|
|
5967
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
5968
|
+
deliveryMemo: z.ZodOptional<z.ZodString>;
|
|
5969
|
+
}, z.core.$strip>>;
|
|
5970
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5971
|
+
productId: z.ZodString;
|
|
5972
|
+
optionId: z.ZodOptional<z.ZodString>;
|
|
5973
|
+
quantity: z.ZodNumber;
|
|
5974
|
+
unitPrice: z.ZodOptional<z.ZodNumber>;
|
|
5975
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5976
|
+
groupId: z.ZodString;
|
|
5977
|
+
valueId: z.ZodString;
|
|
5978
|
+
}, z.core.$strip>>>;
|
|
5979
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5980
|
+
inputId: z.ZodString;
|
|
5981
|
+
value: z.ZodString;
|
|
5982
|
+
}, z.core.$strip>>>;
|
|
5983
|
+
}, z.core.$strip>>;
|
|
5984
|
+
expiresAt: z.ZodISODateTime;
|
|
5985
|
+
fulfillmentMethod: z.ZodOptional<z.ZodEnum<{
|
|
5986
|
+
CARRIER: "CARRIER";
|
|
5987
|
+
DIRECT: "DIRECT";
|
|
5988
|
+
PICKUP: "PICKUP";
|
|
5989
|
+
PROVIDED: "PROVIDED";
|
|
5990
|
+
}>>;
|
|
5991
|
+
pickupLocationId: z.ZodOptional<z.ZodString>;
|
|
5992
|
+
trackInventory: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5993
|
+
}, z.core.$strip>;
|
|
5994
|
+
export type CreateOrderRequest = z.input<typeof createOrderRequestSchema>;
|
|
5995
|
+
/** 주문 직접 생성 응답(이슈 #117) — 결제 대기 주문과 그 결제 요청(결제 링크) */
|
|
5996
|
+
export declare const createdOrderSchema: z.ZodObject<{
|
|
5997
|
+
orderId: z.ZodString;
|
|
5998
|
+
orderNo: z.ZodString;
|
|
5999
|
+
paymentRequest: z.ZodObject<{
|
|
6000
|
+
checkoutId: z.ZodString;
|
|
6001
|
+
status: z.ZodString;
|
|
6002
|
+
checkoutUrl: z.ZodString;
|
|
6003
|
+
currency: z.ZodString;
|
|
6004
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6005
|
+
lineId: z.ZodString;
|
|
6006
|
+
productId: z.ZodString;
|
|
6007
|
+
productName: z.ZodString;
|
|
6008
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
6009
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
6010
|
+
quantity: z.ZodNumber;
|
|
6011
|
+
unitPrice: z.ZodNumber;
|
|
6012
|
+
listUnitPrice: z.ZodNumber;
|
|
6013
|
+
totalPrice: z.ZodNumber;
|
|
6014
|
+
}, z.core.$strip>>;
|
|
6015
|
+
amounts: z.ZodObject<{
|
|
6016
|
+
productAmount: z.ZodNumber;
|
|
6017
|
+
deliveryFee: z.ZodNumber;
|
|
6018
|
+
totalAmount: z.ZodNumber;
|
|
6019
|
+
}, z.core.$strip>;
|
|
6020
|
+
requiresShipping: z.ZodBoolean;
|
|
6021
|
+
trackInventory: z.ZodBoolean;
|
|
6022
|
+
couponsEnabled: z.ZodBoolean;
|
|
6023
|
+
pointsEnabled: z.ZodBoolean;
|
|
6024
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
6025
|
+
additionalPayment: z.ZodBoolean;
|
|
6026
|
+
createdAt: z.ZodString;
|
|
6027
|
+
expiresAt: z.ZodString;
|
|
6028
|
+
}, z.core.$strip>;
|
|
6029
|
+
}, z.core.$strip>;
|
|
6030
|
+
export type CreatedOrder = z.infer<typeof createdOrderSchema>;
|
|
5942
6031
|
//#endregion
|
|
5943
6032
|
//#region src/schemas/common.d.ts
|
|
5944
6033
|
export declare const pageInfoSchema: z.ZodObject<{
|
|
@@ -5999,10 +6088,13 @@ export declare const changeTypeSchema: z.ZodEnum<{
|
|
|
5999
6088
|
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
6000
6089
|
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
6001
6090
|
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
6091
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
6002
6092
|
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
6003
6093
|
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
6004
6094
|
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
6005
6095
|
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
6096
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
6097
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
6006
6098
|
}>;
|
|
6007
6099
|
export type ChangeType = z.infer<typeof changeTypeSchema>;
|
|
6008
6100
|
//#endregion
|
|
@@ -9620,10 +9712,13 @@ export declare const orderItemSchema: z.ZodObject<{
|
|
|
9620
9712
|
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
9621
9713
|
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
9622
9714
|
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
9715
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
9623
9716
|
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
9624
9717
|
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
9625
9718
|
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
9626
9719
|
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
9720
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
9721
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
9627
9722
|
}>;
|
|
9628
9723
|
testPayment: z.ZodBoolean;
|
|
9629
9724
|
}, z.core.$strip>;
|
|
@@ -9738,6 +9833,36 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
9738
9833
|
paidAt: z.ZodString;
|
|
9739
9834
|
refundedAmount: z.ZodNumber;
|
|
9740
9835
|
}, z.core.$strip>>>>;
|
|
9836
|
+
paymentRequests: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9837
|
+
checkoutId: z.ZodString;
|
|
9838
|
+
status: z.ZodString;
|
|
9839
|
+
checkoutUrl: z.ZodString;
|
|
9840
|
+
currency: z.ZodString;
|
|
9841
|
+
items: z.ZodArray<z.ZodObject<{
|
|
9842
|
+
lineId: z.ZodString;
|
|
9843
|
+
productId: z.ZodString;
|
|
9844
|
+
productName: z.ZodString;
|
|
9845
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
9846
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
9847
|
+
quantity: z.ZodNumber;
|
|
9848
|
+
unitPrice: z.ZodNumber;
|
|
9849
|
+
listUnitPrice: z.ZodNumber;
|
|
9850
|
+
totalPrice: z.ZodNumber;
|
|
9851
|
+
}, z.core.$strip>>;
|
|
9852
|
+
amounts: z.ZodObject<{
|
|
9853
|
+
productAmount: z.ZodNumber;
|
|
9854
|
+
deliveryFee: z.ZodNumber;
|
|
9855
|
+
totalAmount: z.ZodNumber;
|
|
9856
|
+
}, z.core.$strip>;
|
|
9857
|
+
requiresShipping: z.ZodBoolean;
|
|
9858
|
+
trackInventory: z.ZodBoolean;
|
|
9859
|
+
couponsEnabled: z.ZodBoolean;
|
|
9860
|
+
pointsEnabled: z.ZodBoolean;
|
|
9861
|
+
orderId: z.ZodNullable<z.ZodString>;
|
|
9862
|
+
additionalPayment: z.ZodBoolean;
|
|
9863
|
+
createdAt: z.ZodString;
|
|
9864
|
+
expiresAt: z.ZodString;
|
|
9865
|
+
}, z.core.$strip>>>>;
|
|
9741
9866
|
items: z.ZodArray<z.ZodObject<{
|
|
9742
9867
|
orderItemId: z.ZodString;
|
|
9743
9868
|
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -9841,10 +9966,13 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
9841
9966
|
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
9842
9967
|
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
9843
9968
|
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
9969
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
9844
9970
|
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
9845
9971
|
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
9846
9972
|
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
9847
9973
|
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
9974
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
9975
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
9848
9976
|
}>;
|
|
9849
9977
|
testPayment: z.ZodBoolean;
|
|
9850
9978
|
}, z.core.$strip>>;
|
|
@@ -9997,10 +10125,13 @@ export declare const orderItemPageSchema: z.ZodObject<{
|
|
|
9997
10125
|
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
9998
10126
|
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
9999
10127
|
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
10128
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
10000
10129
|
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
10001
10130
|
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
10002
10131
|
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
10003
10132
|
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
10133
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
10134
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
10004
10135
|
}>;
|
|
10005
10136
|
testPayment: z.ZodBoolean;
|
|
10006
10137
|
}, z.core.$strip>>;
|
|
@@ -10050,10 +10181,13 @@ export declare const orderItemListQuerySchema: z.ZodObject<{
|
|
|
10050
10181
|
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
10051
10182
|
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
10052
10183
|
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
10184
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
10053
10185
|
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
10054
10186
|
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
10055
10187
|
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
10056
10188
|
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
10189
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
10190
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
10057
10191
|
}>>;
|
|
10058
10192
|
testPayment: z.ZodOptional<z.ZodEnum<{
|
|
10059
10193
|
true: "true";
|
|
@@ -10121,76 +10255,415 @@ export declare const deliveryInfoSchema: z.ZodObject<{
|
|
|
10121
10255
|
}, z.core.$strip>;
|
|
10122
10256
|
export type DeliveryInfo = z.infer<typeof deliveryInfoSchema>;
|
|
10123
10257
|
/**
|
|
10124
|
-
*
|
|
10125
|
-
*
|
|
10258
|
+
* 배송 주문상품 한 줄 — `GET /v1/order-items/shipping`(이슈 #208·#209). 발송 작업용으로 주문상품에 주문번호·주문자·배송지·발송 정보를 붙였다.
|
|
10259
|
+
* 배송지가 필요한 줄(택배·직접 배달)만 나온다
|
|
10126
10260
|
*/
|
|
10127
|
-
export declare const
|
|
10128
|
-
/** `GET /v1/order-items/{orderItemId}/delivery` 응답 — 배송 정보 + 배송 추적 이벤트 */
|
|
10129
|
-
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
10261
|
+
export declare const shippingOrderItemSchema: z.ZodObject<{
|
|
10130
10262
|
orderItemId: z.ZodString;
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
QUICK: "QUICK";
|
|
10135
|
-
NOTHING: "NOTHING";
|
|
10136
|
-
}>;
|
|
10137
|
-
carrierCode: z.ZodNullable<z.ZodString>;
|
|
10138
|
-
carrierName: z.ZodNullable<z.ZodString>;
|
|
10139
|
-
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
10140
|
-
trackingUrl: z.ZodNullable<z.ZodURL>;
|
|
10263
|
+
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10264
|
+
orderId: z.ZodString;
|
|
10265
|
+
paymentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10141
10266
|
status: z.ZodEnum<{
|
|
10267
|
+
PAID: "PAID";
|
|
10268
|
+
CANCELED: "CANCELED";
|
|
10269
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
10270
|
+
CONFIRMED: "CONFIRMED";
|
|
10142
10271
|
DISPATCHED: "DISPATCHED";
|
|
10143
10272
|
DELIVERING: "DELIVERING";
|
|
10144
10273
|
DELIVERED: "DELIVERED";
|
|
10274
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
10145
10275
|
}>;
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10276
|
+
claimStatus: z.ZodNullable<z.ZodEnum<{
|
|
10277
|
+
CANCEL_REQUESTED: "CANCEL_REQUESTED";
|
|
10278
|
+
RETURN_REQUESTED: "RETURN_REQUESTED";
|
|
10279
|
+
EXCHANGE_REQUESTED: "EXCHANGE_REQUESTED";
|
|
10280
|
+
}>>;
|
|
10281
|
+
productId: z.ZodString;
|
|
10282
|
+
productName: z.ZodString;
|
|
10283
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
10284
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
10285
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10286
|
+
kind: z.ZodString;
|
|
10287
|
+
groupName: z.ZodString;
|
|
10288
|
+
valueName: z.ZodString;
|
|
10289
|
+
additionalPrice: z.ZodNumber;
|
|
10290
|
+
}, z.core.$strip>>>>;
|
|
10291
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10292
|
+
label: z.ZodString;
|
|
10293
|
+
value: z.ZodString;
|
|
10294
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10295
|
+
type: z.ZodOptional<z.ZodString>;
|
|
10296
|
+
}, z.core.$strip>>>>;
|
|
10297
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
10298
|
+
checkIn: z.ZodString;
|
|
10299
|
+
checkOut: z.ZodString;
|
|
10300
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
10301
|
+
date: z.ZodString;
|
|
10302
|
+
price: z.ZodNumber;
|
|
10303
|
+
}, z.core.$strip>>;
|
|
10304
|
+
}, z.core.$strip>>;
|
|
10305
|
+
sellerCode: z.ZodNullable<z.ZodString>;
|
|
10306
|
+
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10307
|
+
type: z.ZodLiteral<"SHIPPING">;
|
|
10308
|
+
shipping: z.ZodObject<{
|
|
10309
|
+
bundleKey: z.ZodNullable<z.ZodString>;
|
|
10310
|
+
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
10311
|
+
}, z.core.$strip>;
|
|
10312
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10313
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
10314
|
+
locationId: z.ZodString;
|
|
10315
|
+
name: z.ZodString;
|
|
10316
|
+
address: z.ZodString;
|
|
10317
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
10318
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
10319
|
+
}, z.core.$strip>>;
|
|
10320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10321
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
10322
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10323
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
10324
|
+
locationId: z.ZodString;
|
|
10325
|
+
name: z.ZodString;
|
|
10326
|
+
address: z.ZodString;
|
|
10327
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
10328
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
10329
|
+
}, z.core.$strip>>;
|
|
10330
|
+
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
10331
|
+
type: z.ZodString;
|
|
10332
|
+
}, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
|
|
10333
|
+
[x: string]: unknown;
|
|
10334
|
+
type: string;
|
|
10335
|
+
}>>]>;
|
|
10336
|
+
quantity: z.ZodNumber;
|
|
10337
|
+
canceledQuantity: z.ZodNumber;
|
|
10338
|
+
activeQuantity: z.ZodNumber;
|
|
10339
|
+
unitPrice: z.ZodNumber;
|
|
10340
|
+
discountAmount: z.ZodNumber;
|
|
10341
|
+
totalPrice: z.ZodNumber;
|
|
10342
|
+
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10343
|
+
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10344
|
+
hold: z.ZodNullable<z.ZodObject<{
|
|
10345
|
+
reason: z.ZodString;
|
|
10346
|
+
expectedDispatchDate: z.ZodString;
|
|
10347
|
+
}, z.core.$strip>>;
|
|
10348
|
+
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10149
10349
|
status: z.ZodString;
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
stage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10153
|
-
}, z.core.$strip>>>;
|
|
10154
|
-
tracking: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10155
|
-
result: z.ZodNullable<z.ZodString>;
|
|
10156
|
-
stage: z.ZodNullable<z.ZodString>;
|
|
10157
|
-
checkedAt: z.ZodNullable<z.ZodString>;
|
|
10158
|
-
carrierDeliveredAt: z.ZodNullable<z.ZodString>;
|
|
10350
|
+
fulfilledAt: z.ZodString;
|
|
10351
|
+
note: z.ZodNullable<z.ZodString>;
|
|
10159
10352
|
}, z.core.$strip>>>>;
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10353
|
+
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
10354
|
+
sellerMemo: z.ZodNullable<z.ZodString>;
|
|
10355
|
+
orderedAt: z.ZodString;
|
|
10356
|
+
lastChangedAt: z.ZodString;
|
|
10357
|
+
lastChangedType: z.ZodEnum<{
|
|
10358
|
+
"ORDER.PAID": "ORDER.PAID";
|
|
10359
|
+
"ORDER.CONFIRMED": "ORDER.CONFIRMED";
|
|
10360
|
+
"ORDER.DISPATCHED": "ORDER.DISPATCHED";
|
|
10361
|
+
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
10362
|
+
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
10363
|
+
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
10364
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
10365
|
+
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
10366
|
+
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
10367
|
+
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
10368
|
+
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
10369
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
10370
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
10371
|
+
}>;
|
|
10372
|
+
testPayment: z.ZodBoolean;
|
|
10373
|
+
orderNo: z.ZodNullable<z.ZodString>;
|
|
10374
|
+
ordererName: z.ZodString;
|
|
10375
|
+
ordererPhone: z.ZodString;
|
|
10376
|
+
shippingAddress: z.ZodObject<{
|
|
10377
|
+
receiverName: z.ZodString;
|
|
10378
|
+
phone: z.ZodString;
|
|
10379
|
+
zipCode: z.ZodString;
|
|
10380
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
10381
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10382
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10383
|
+
address1: z.ZodString;
|
|
10384
|
+
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10385
|
+
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10386
|
+
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10387
|
+
}, z.core.$strip>;
|
|
10388
|
+
delivery: z.ZodNullable<z.ZodObject<{
|
|
10389
|
+
orderItemId: z.ZodString;
|
|
10390
|
+
deliveryMethod: z.ZodEnum<{
|
|
10391
|
+
DIRECT: "DIRECT";
|
|
10392
|
+
COURIER: "COURIER";
|
|
10393
|
+
QUICK: "QUICK";
|
|
10394
|
+
NOTHING: "NOTHING";
|
|
10395
|
+
}>;
|
|
10396
|
+
carrierCode: z.ZodNullable<z.ZodString>;
|
|
10397
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
10398
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
10399
|
+
trackingUrl: z.ZodNullable<z.ZodURL>;
|
|
10400
|
+
status: z.ZodEnum<{
|
|
10401
|
+
DISPATCHED: "DISPATCHED";
|
|
10402
|
+
DELIVERING: "DELIVERING";
|
|
10403
|
+
DELIVERED: "DELIVERED";
|
|
10404
|
+
}>;
|
|
10405
|
+
dispatchedAt: z.ZodString;
|
|
10406
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
10407
|
+
}, z.core.$strip>>;
|
|
10408
|
+
}, z.core.$strip>;
|
|
10409
|
+
export type ShippingOrderItem = z.infer<typeof shippingOrderItemSchema>;
|
|
10410
|
+
export declare const shippingOrderItemPageSchema: z.ZodObject<{
|
|
10411
|
+
page: z.ZodNumber;
|
|
10412
|
+
size: z.ZodNumber;
|
|
10413
|
+
totalElements: z.ZodNumber;
|
|
10414
|
+
totalPages: z.ZodNumber;
|
|
10415
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
10416
|
+
orderItemId: z.ZodString;
|
|
10417
|
+
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10418
|
+
orderId: z.ZodString;
|
|
10419
|
+
paymentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10420
|
+
status: z.ZodEnum<{
|
|
10421
|
+
PAID: "PAID";
|
|
10422
|
+
CANCELED: "CANCELED";
|
|
10423
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
10424
|
+
CONFIRMED: "CONFIRMED";
|
|
10425
|
+
DISPATCHED: "DISPATCHED";
|
|
10426
|
+
DELIVERING: "DELIVERING";
|
|
10427
|
+
DELIVERED: "DELIVERED";
|
|
10428
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
10429
|
+
}>;
|
|
10430
|
+
claimStatus: z.ZodNullable<z.ZodEnum<{
|
|
10431
|
+
CANCEL_REQUESTED: "CANCEL_REQUESTED";
|
|
10432
|
+
RETURN_REQUESTED: "RETURN_REQUESTED";
|
|
10433
|
+
EXCHANGE_REQUESTED: "EXCHANGE_REQUESTED";
|
|
10434
|
+
}>>;
|
|
10435
|
+
productId: z.ZodString;
|
|
10436
|
+
productName: z.ZodString;
|
|
10437
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
10438
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
10439
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10440
|
+
kind: z.ZodString;
|
|
10441
|
+
groupName: z.ZodString;
|
|
10442
|
+
valueName: z.ZodString;
|
|
10443
|
+
additionalPrice: z.ZodNumber;
|
|
10444
|
+
}, z.core.$strip>>>>;
|
|
10445
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10446
|
+
label: z.ZodString;
|
|
10447
|
+
value: z.ZodString;
|
|
10448
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10449
|
+
type: z.ZodOptional<z.ZodString>;
|
|
10450
|
+
}, z.core.$strip>>>>;
|
|
10451
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
10452
|
+
checkIn: z.ZodString;
|
|
10453
|
+
checkOut: z.ZodString;
|
|
10454
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
10455
|
+
date: z.ZodString;
|
|
10456
|
+
price: z.ZodNumber;
|
|
10457
|
+
}, z.core.$strip>>;
|
|
10458
|
+
}, z.core.$strip>>;
|
|
10459
|
+
sellerCode: z.ZodNullable<z.ZodString>;
|
|
10460
|
+
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10461
|
+
type: z.ZodLiteral<"SHIPPING">;
|
|
10462
|
+
shipping: z.ZodObject<{
|
|
10463
|
+
bundleKey: z.ZodNullable<z.ZodString>;
|
|
10464
|
+
returnAddressId: z.ZodNullable<z.ZodString>;
|
|
10465
|
+
}, z.core.$strip>;
|
|
10466
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10467
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
10468
|
+
locationId: z.ZodString;
|
|
10469
|
+
name: z.ZodString;
|
|
10470
|
+
address: z.ZodString;
|
|
10471
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
10472
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
10473
|
+
}, z.core.$strip>>;
|
|
10474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10475
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
10476
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10477
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
10478
|
+
locationId: z.ZodString;
|
|
10479
|
+
name: z.ZodString;
|
|
10480
|
+
address: z.ZodString;
|
|
10481
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
10482
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
10483
|
+
}, z.core.$strip>>;
|
|
10484
|
+
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
10485
|
+
type: z.ZodString;
|
|
10486
|
+
}, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
|
|
10487
|
+
[x: string]: unknown;
|
|
10488
|
+
type: string;
|
|
10489
|
+
}>>]>;
|
|
10490
|
+
quantity: z.ZodNumber;
|
|
10491
|
+
canceledQuantity: z.ZodNumber;
|
|
10492
|
+
activeQuantity: z.ZodNumber;
|
|
10493
|
+
unitPrice: z.ZodNumber;
|
|
10494
|
+
discountAmount: z.ZodNumber;
|
|
10495
|
+
totalPrice: z.ZodNumber;
|
|
10496
|
+
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10497
|
+
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10498
|
+
hold: z.ZodNullable<z.ZodObject<{
|
|
10499
|
+
reason: z.ZodString;
|
|
10500
|
+
expectedDispatchDate: z.ZodString;
|
|
10501
|
+
}, z.core.$strip>>;
|
|
10502
|
+
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10503
|
+
status: z.ZodString;
|
|
10504
|
+
fulfilledAt: z.ZodString;
|
|
10505
|
+
note: z.ZodNullable<z.ZodString>;
|
|
10506
|
+
}, z.core.$strip>>>>;
|
|
10507
|
+
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
10508
|
+
sellerMemo: z.ZodNullable<z.ZodString>;
|
|
10509
|
+
orderedAt: z.ZodString;
|
|
10510
|
+
lastChangedAt: z.ZodString;
|
|
10511
|
+
lastChangedType: z.ZodEnum<{
|
|
10512
|
+
"ORDER.PAID": "ORDER.PAID";
|
|
10513
|
+
"ORDER.CONFIRMED": "ORDER.CONFIRMED";
|
|
10514
|
+
"ORDER.DISPATCHED": "ORDER.DISPATCHED";
|
|
10515
|
+
"ORDER.DELIVERED": "ORDER.DELIVERED";
|
|
10516
|
+
"ORDER.PURCHASE_DECIDED": "ORDER.PURCHASE_DECIDED";
|
|
10517
|
+
"ORDER.ADDRESS_CHANGE_REQUESTED": "ORDER.ADDRESS_CHANGE_REQUESTED";
|
|
10518
|
+
"ORDER.CANCELED": "ORDER.CANCELED";
|
|
10519
|
+
"CLAIM.CANCEL_REQUESTED": "CLAIM.CANCEL_REQUESTED";
|
|
10520
|
+
"CLAIM.RETURN_REQUESTED": "CLAIM.RETURN_REQUESTED";
|
|
10521
|
+
"CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
|
|
10522
|
+
"CLAIM.COMPLETED": "CLAIM.COMPLETED";
|
|
10523
|
+
"ORDER.PAYMENT_WAITING": "ORDER.PAYMENT_WAITING";
|
|
10524
|
+
"ORDER.DELIVERING": "ORDER.DELIVERING";
|
|
10525
|
+
}>;
|
|
10526
|
+
testPayment: z.ZodBoolean;
|
|
10527
|
+
orderNo: z.ZodNullable<z.ZodString>;
|
|
10528
|
+
ordererName: z.ZodString;
|
|
10529
|
+
ordererPhone: z.ZodString;
|
|
10530
|
+
shippingAddress: z.ZodObject<{
|
|
10531
|
+
receiverName: z.ZodString;
|
|
10532
|
+
phone: z.ZodString;
|
|
10533
|
+
zipCode: z.ZodString;
|
|
10534
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
10535
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10536
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10537
|
+
address1: z.ZodString;
|
|
10538
|
+
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10539
|
+
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10540
|
+
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10541
|
+
}, z.core.$strip>;
|
|
10542
|
+
delivery: z.ZodNullable<z.ZodObject<{
|
|
10543
|
+
orderItemId: z.ZodString;
|
|
10544
|
+
deliveryMethod: z.ZodEnum<{
|
|
10545
|
+
DIRECT: "DIRECT";
|
|
10546
|
+
COURIER: "COURIER";
|
|
10547
|
+
QUICK: "QUICK";
|
|
10548
|
+
NOTHING: "NOTHING";
|
|
10549
|
+
}>;
|
|
10550
|
+
carrierCode: z.ZodNullable<z.ZodString>;
|
|
10551
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
10552
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
10553
|
+
trackingUrl: z.ZodNullable<z.ZodURL>;
|
|
10554
|
+
status: z.ZodEnum<{
|
|
10555
|
+
DISPATCHED: "DISPATCHED";
|
|
10556
|
+
DELIVERING: "DELIVERING";
|
|
10557
|
+
DELIVERED: "DELIVERED";
|
|
10558
|
+
}>;
|
|
10559
|
+
dispatchedAt: z.ZodString;
|
|
10560
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
10561
|
+
}, z.core.$strip>>;
|
|
10562
|
+
}, z.core.$strip>>;
|
|
10563
|
+
}, z.core.$strip>;
|
|
10564
|
+
export type ShippingOrderItemPage = z.infer<typeof shippingOrderItemPageSchema>;
|
|
10565
|
+
/**
|
|
10566
|
+
* `GET /v1/order-items/shipping` 쿼리 — OpenAPI 문서용 형태. `orderedFrom` 누락 400 `MISSING_PARAMETER`, 형식 오류 400
|
|
10567
|
+
* `INVALID_PARAMETER`, 366일 초과 400 `RANGE_TOO_WIDE`, `testPayment` 값 오류 400 `INVALID_PARAMETER`
|
|
10568
|
+
*/
|
|
10569
|
+
export declare const shippingOrderItemListQuerySchema: z.ZodObject<{
|
|
10570
|
+
size: z.ZodOptional<z.ZodString>;
|
|
10571
|
+
page: z.ZodOptional<z.ZodString>;
|
|
10572
|
+
orderedFrom: z.ZodOptional<z.ZodString>;
|
|
10573
|
+
orderedTo: z.ZodOptional<z.ZodString>;
|
|
10574
|
+
status: z.ZodOptional<z.ZodString>;
|
|
10575
|
+
orderItemNos: z.ZodOptional<z.ZodString>;
|
|
10576
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
10577
|
+
testPayment: z.ZodOptional<z.ZodEnum<{
|
|
10578
|
+
true: "true";
|
|
10579
|
+
false: "false";
|
|
10580
|
+
}>>;
|
|
10581
|
+
}, z.core.$strip>;
|
|
10582
|
+
export type ShippingOrderItemListParams = PageParams & {
|
|
10583
|
+
orderedTo?: string;
|
|
10584
|
+
/** 하나 또는 여러 상태 */
|
|
10585
|
+
status?: OrderItemStatus | OrderItemStatus[];
|
|
10586
|
+
keyword?: string;
|
|
10587
|
+
/** 테스트 결제 필터 — `"true"` 테스트 결제 주문만, `"false"` 실결제만, 생략하면 전부 */
|
|
10588
|
+
testPayment?: "true" | "false";
|
|
10589
|
+
} & ({
|
|
10590
|
+
orderedFrom: string;
|
|
10591
|
+
orderItemNos?: string[];
|
|
10592
|
+
} | {
|
|
10593
|
+
orderedFrom?: string;
|
|
10594
|
+
orderItemNos: string[];
|
|
10595
|
+
});
|
|
10596
|
+
/**
|
|
10597
|
+
* 택배 추적 단계. 응답에서는 문자열로 받는다(값이 추가될 수 있다) — 현재 값은 `ACCEPTED`(접수)·`IN_TRANSIT`(이동 중)·
|
|
10598
|
+
* `OUT_FOR_DELIVERY`(배송 출발)·`DELIVERED`(배송완료)다.
|
|
10599
|
+
*/
|
|
10600
|
+
export declare const trackingStageResponseSchema: z.ZodString;
|
|
10601
|
+
/** `GET /v1/order-items/{orderItemId}/delivery` 응답 — 배송 정보 + 배송 추적 이벤트 */
|
|
10602
|
+
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
10603
|
+
orderItemId: z.ZodString;
|
|
10604
|
+
deliveryMethod: z.ZodEnum<{
|
|
10605
|
+
DIRECT: "DIRECT";
|
|
10606
|
+
COURIER: "COURIER";
|
|
10607
|
+
QUICK: "QUICK";
|
|
10608
|
+
NOTHING: "NOTHING";
|
|
10609
|
+
}>;
|
|
10610
|
+
carrierCode: z.ZodNullable<z.ZodString>;
|
|
10611
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
10612
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
10613
|
+
trackingUrl: z.ZodNullable<z.ZodURL>;
|
|
10614
|
+
status: z.ZodEnum<{
|
|
10615
|
+
DISPATCHED: "DISPATCHED";
|
|
10616
|
+
DELIVERING: "DELIVERING";
|
|
10617
|
+
DELIVERED: "DELIVERED";
|
|
10618
|
+
}>;
|
|
10619
|
+
dispatchedAt: z.ZodString;
|
|
10620
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
10621
|
+
trackingEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10622
|
+
status: z.ZodString;
|
|
10623
|
+
location: z.ZodString;
|
|
10624
|
+
occurredAt: z.ZodString;
|
|
10625
|
+
stage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10626
|
+
}, z.core.$strip>>>;
|
|
10627
|
+
tracking: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10628
|
+
result: z.ZodNullable<z.ZodString>;
|
|
10629
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
10630
|
+
checkedAt: z.ZodNullable<z.ZodString>;
|
|
10631
|
+
carrierDeliveredAt: z.ZodNullable<z.ZodString>;
|
|
10632
|
+
}, z.core.$strip>>>>;
|
|
10633
|
+
}, z.core.$strip>;
|
|
10634
|
+
export type DeliveryStatus = z.infer<typeof deliveryStatusSchema>;
|
|
10635
|
+
/** `PUT /v1/order-items/{orderItemId}/dispatch/tracking` 응답 — 바뀐 송장 */
|
|
10636
|
+
export declare const trackingUpdateResultSchema: z.ZodObject<{
|
|
10637
|
+
orderItemId: z.ZodString;
|
|
10638
|
+
carrierCode: z.ZodString;
|
|
10639
|
+
trackingNumber: z.ZodString;
|
|
10640
|
+
}, z.core.$strip>;
|
|
10641
|
+
export type TrackingUpdateResult = z.infer<typeof trackingUpdateResultSchema>;
|
|
10642
|
+
export declare const carrierSchema: z.ZodObject<{
|
|
10643
|
+
carrierCode: z.ZodString;
|
|
10644
|
+
name: z.ZodString;
|
|
10645
|
+
trackingUrlTemplate: z.ZodString;
|
|
10646
|
+
}, z.core.$strip>;
|
|
10647
|
+
export type Carrier = z.infer<typeof carrierSchema>;
|
|
10648
|
+
export declare const holdOrderItemRequestSchema: z.ZodObject<{
|
|
10649
|
+
reason: z.ZodEnum<{
|
|
10650
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
10651
|
+
CUSTOMER_REQUEST: "CUSTOMER_REQUEST";
|
|
10652
|
+
CUSTOMS: "CUSTOMS";
|
|
10653
|
+
ETC: "ETC";
|
|
10654
|
+
}>;
|
|
10655
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
10656
|
+
expectedDispatchDate: z.ZodString;
|
|
10657
|
+
}, z.core.$strip>;
|
|
10658
|
+
export type HoldOrderItemRequest = z.infer<typeof holdOrderItemRequestSchema>;
|
|
10659
|
+
export declare const cancelBySellerRequestSchema: z.ZodObject<{
|
|
10660
|
+
reason: z.ZodEnum<{
|
|
10661
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
10662
|
+
ETC: "ETC";
|
|
10663
|
+
PRICE_ERROR: "PRICE_ERROR";
|
|
10664
|
+
DELIVERY_IMPOSSIBLE: "DELIVERY_IMPOSSIBLE";
|
|
10665
|
+
}>;
|
|
10666
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
10194
10667
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
10195
10668
|
holdRefund: z.ZodOptional<z.ZodBoolean>;
|
|
10196
10669
|
}, z.core.$strip>;
|
|
@@ -17806,6 +18279,36 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17806
18279
|
paidAt: string;
|
|
17807
18280
|
refundedAmount: number;
|
|
17808
18281
|
}[];
|
|
18282
|
+
paymentRequests: {
|
|
18283
|
+
checkoutId: string;
|
|
18284
|
+
status: string;
|
|
18285
|
+
checkoutUrl: string;
|
|
18286
|
+
currency: string;
|
|
18287
|
+
items: {
|
|
18288
|
+
lineId: string;
|
|
18289
|
+
productId: string;
|
|
18290
|
+
productName: string;
|
|
18291
|
+
optionId: string | null;
|
|
18292
|
+
optionName: string | null;
|
|
18293
|
+
quantity: number;
|
|
18294
|
+
unitPrice: number;
|
|
18295
|
+
listUnitPrice: number;
|
|
18296
|
+
totalPrice: number;
|
|
18297
|
+
}[];
|
|
18298
|
+
amounts: {
|
|
18299
|
+
productAmount: number;
|
|
18300
|
+
deliveryFee: number;
|
|
18301
|
+
totalAmount: number;
|
|
18302
|
+
};
|
|
18303
|
+
requiresShipping: boolean;
|
|
18304
|
+
trackInventory: boolean;
|
|
18305
|
+
couponsEnabled: boolean;
|
|
18306
|
+
pointsEnabled: boolean;
|
|
18307
|
+
orderId: string | null;
|
|
18308
|
+
additionalPayment: boolean;
|
|
18309
|
+
createdAt: string;
|
|
18310
|
+
expiresAt: string;
|
|
18311
|
+
}[];
|
|
17809
18312
|
items: {
|
|
17810
18313
|
orderItemId: string;
|
|
17811
18314
|
orderItemNo: string | null;
|
|
@@ -17876,7 +18379,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17876
18379
|
sellerMemo: string | null;
|
|
17877
18380
|
orderedAt: string;
|
|
17878
18381
|
lastChangedAt: string;
|
|
17879
|
-
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
|
|
18382
|
+
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "ORDER.PAYMENT_WAITING" | "ORDER.DELIVERING";
|
|
17880
18383
|
testPayment: boolean;
|
|
17881
18384
|
stay?: {
|
|
17882
18385
|
checkIn: string;
|
|
@@ -17891,6 +18394,44 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
17891
18394
|
currency?: string | undefined;
|
|
17892
18395
|
locale?: string | null | undefined;
|
|
17893
18396
|
}>;
|
|
18397
|
+
/**
|
|
18398
|
+
* `POST /v1/orders` — 주문 직접 생성(이슈 #117). 결제 대기 주문과 결제 요청을 만든다. 응답 `paymentRequest.checkoutUrl`이 구매자에게 보낼 결제 링크다.
|
|
18399
|
+
* 결제 기한까지 결제하지 않으면 주문이 자동으로 취소된다
|
|
18400
|
+
*/
|
|
18401
|
+
create: (body: CreateOrderRequest) => Promise<{
|
|
18402
|
+
orderId: string;
|
|
18403
|
+
orderNo: string;
|
|
18404
|
+
paymentRequest: {
|
|
18405
|
+
checkoutId: string;
|
|
18406
|
+
status: string;
|
|
18407
|
+
checkoutUrl: string;
|
|
18408
|
+
currency: string;
|
|
18409
|
+
items: {
|
|
18410
|
+
lineId: string;
|
|
18411
|
+
productId: string;
|
|
18412
|
+
productName: string;
|
|
18413
|
+
optionId: string | null;
|
|
18414
|
+
optionName: string | null;
|
|
18415
|
+
quantity: number;
|
|
18416
|
+
unitPrice: number;
|
|
18417
|
+
listUnitPrice: number;
|
|
18418
|
+
totalPrice: number;
|
|
18419
|
+
}[];
|
|
18420
|
+
amounts: {
|
|
18421
|
+
productAmount: number;
|
|
18422
|
+
deliveryFee: number;
|
|
18423
|
+
totalAmount: number;
|
|
18424
|
+
};
|
|
18425
|
+
requiresShipping: boolean;
|
|
18426
|
+
trackInventory: boolean;
|
|
18427
|
+
couponsEnabled: boolean;
|
|
18428
|
+
pointsEnabled: boolean;
|
|
18429
|
+
orderId: string | null;
|
|
18430
|
+
additionalPayment: boolean;
|
|
18431
|
+
createdAt: string;
|
|
18432
|
+
expiresAt: string;
|
|
18433
|
+
};
|
|
18434
|
+
}>;
|
|
17894
18435
|
/**
|
|
17895
18436
|
* `POST /v1/orders/{orderId}/cash-receipt/reissue` — 실패했거나 재시도 대기 중인 현금영수증을 지금 다시 발급·취소한다.
|
|
17896
18437
|
* 상점 플랫폼 OWNER·ADMIN 전용(PAT·M2M 403 `INSUFFICIENT_ROLE`). 404 `CASH_RECEIPT_NOT_FOUND`, 409 `CASH_RECEIPT_NOT_REISSUABLE`
|
|
@@ -18006,7 +18547,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18006
18547
|
sellerMemo: string | null;
|
|
18007
18548
|
orderedAt: string;
|
|
18008
18549
|
lastChangedAt: string;
|
|
18009
|
-
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
|
|
18550
|
+
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "ORDER.PAYMENT_WAITING" | "ORDER.DELIVERING";
|
|
18010
18551
|
testPayment: boolean;
|
|
18011
18552
|
stay?: {
|
|
18012
18553
|
checkIn: string;
|
|
@@ -18018,6 +18559,120 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18018
18559
|
} | undefined;
|
|
18019
18560
|
}[];
|
|
18020
18561
|
}>;
|
|
18562
|
+
/** `GET /v1/order-items/shipping` — 배송지가 필요한 주문상품을 주문번호·배송지·발송 정보와 함께, 주문 시각 최신순으로(#208). 스코프 `order:r` */
|
|
18563
|
+
listShipping: (params: ShippingOrderItemListParams) => Promise<{
|
|
18564
|
+
page: number;
|
|
18565
|
+
size: number;
|
|
18566
|
+
totalElements: number;
|
|
18567
|
+
totalPages: number;
|
|
18568
|
+
contents: {
|
|
18569
|
+
orderItemId: string;
|
|
18570
|
+
orderItemNo: string | null;
|
|
18571
|
+
orderId: string;
|
|
18572
|
+
paymentId: string | null;
|
|
18573
|
+
status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
18574
|
+
claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
|
|
18575
|
+
productId: string;
|
|
18576
|
+
productName: string;
|
|
18577
|
+
optionId: string | null;
|
|
18578
|
+
optionName: string | null;
|
|
18579
|
+
optionSelections: {
|
|
18580
|
+
kind: string;
|
|
18581
|
+
groupName: string;
|
|
18582
|
+
valueName: string;
|
|
18583
|
+
additionalPrice: number;
|
|
18584
|
+
}[];
|
|
18585
|
+
customInputs: {
|
|
18586
|
+
label: string;
|
|
18587
|
+
value: string;
|
|
18588
|
+
key?: string | null | undefined;
|
|
18589
|
+
type?: string | undefined;
|
|
18590
|
+
}[];
|
|
18591
|
+
sellerCode: string | null;
|
|
18592
|
+
fulfillmentSnapshot: UnknownFulfillment | {
|
|
18593
|
+
type: "SHIPPING";
|
|
18594
|
+
shipping: {
|
|
18595
|
+
bundleKey: string | null;
|
|
18596
|
+
returnAddressId: string | null;
|
|
18597
|
+
};
|
|
18598
|
+
method?: string | undefined;
|
|
18599
|
+
pickupLocation?: {
|
|
18600
|
+
locationId: string;
|
|
18601
|
+
name: string;
|
|
18602
|
+
address: string;
|
|
18603
|
+
phone: string | null;
|
|
18604
|
+
hours: string | null;
|
|
18605
|
+
} | undefined;
|
|
18606
|
+
} | {
|
|
18607
|
+
type: "MANUAL";
|
|
18608
|
+
method?: string | undefined;
|
|
18609
|
+
pickupLocation?: {
|
|
18610
|
+
locationId: string;
|
|
18611
|
+
name: string;
|
|
18612
|
+
address: string;
|
|
18613
|
+
phone: string | null;
|
|
18614
|
+
hours: string | null;
|
|
18615
|
+
} | undefined;
|
|
18616
|
+
};
|
|
18617
|
+
quantity: number;
|
|
18618
|
+
canceledQuantity: number;
|
|
18619
|
+
activeQuantity: number;
|
|
18620
|
+
unitPrice: number;
|
|
18621
|
+
discountAmount: number;
|
|
18622
|
+
totalPrice: number;
|
|
18623
|
+
couponDiscountAmount: number;
|
|
18624
|
+
pointAllocation: number;
|
|
18625
|
+
hold: {
|
|
18626
|
+
reason: string;
|
|
18627
|
+
expectedDispatchDate: string;
|
|
18628
|
+
} | null;
|
|
18629
|
+
fulfillment: {
|
|
18630
|
+
status: string;
|
|
18631
|
+
fulfilledAt: string;
|
|
18632
|
+
note: string | null;
|
|
18633
|
+
} | null;
|
|
18634
|
+
autoDecisionDate: string | null;
|
|
18635
|
+
sellerMemo: string | null;
|
|
18636
|
+
orderedAt: string;
|
|
18637
|
+
lastChangedAt: string;
|
|
18638
|
+
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "ORDER.PAYMENT_WAITING" | "ORDER.DELIVERING";
|
|
18639
|
+
testPayment: boolean;
|
|
18640
|
+
orderNo: string | null;
|
|
18641
|
+
ordererName: string;
|
|
18642
|
+
ordererPhone: string;
|
|
18643
|
+
shippingAddress: {
|
|
18644
|
+
receiverName: string;
|
|
18645
|
+
phone: string;
|
|
18646
|
+
zipCode: string;
|
|
18647
|
+
address1: string;
|
|
18648
|
+
countryCode?: string | undefined;
|
|
18649
|
+
region?: string | null | undefined;
|
|
18650
|
+
city?: string | null | undefined;
|
|
18651
|
+
address2?: string | null | undefined;
|
|
18652
|
+
deliveryMemo?: string | null | undefined;
|
|
18653
|
+
entranceCode?: string | null | undefined;
|
|
18654
|
+
};
|
|
18655
|
+
delivery: {
|
|
18656
|
+
orderItemId: string;
|
|
18657
|
+
deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
|
|
18658
|
+
carrierCode: string | null;
|
|
18659
|
+
carrierName: string | null;
|
|
18660
|
+
trackingNumber: string | null;
|
|
18661
|
+
trackingUrl: string | null;
|
|
18662
|
+
status: "DISPATCHED" | "DELIVERING" | "DELIVERED";
|
|
18663
|
+
dispatchedAt: string;
|
|
18664
|
+
deliveredAt: string | null;
|
|
18665
|
+
} | null;
|
|
18666
|
+
stay?: {
|
|
18667
|
+
checkIn: string;
|
|
18668
|
+
checkOut: string;
|
|
18669
|
+
nights: {
|
|
18670
|
+
date: string;
|
|
18671
|
+
price: number;
|
|
18672
|
+
}[];
|
|
18673
|
+
} | undefined;
|
|
18674
|
+
}[];
|
|
18675
|
+
}>;
|
|
18021
18676
|
confirm: (orderItemId: string, idempotencyKey?: string) => Promise<void>;
|
|
18022
18677
|
confirmBulk: (orderItemIds: string[], idempotencyKey?: string) => Promise<{
|
|
18023
18678
|
succeeded: string[];
|
|
@@ -18158,7 +18813,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18158
18813
|
sellerMemo: string | null;
|
|
18159
18814
|
orderedAt: string;
|
|
18160
18815
|
lastChangedAt: string;
|
|
18161
|
-
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
|
|
18816
|
+
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "ORDER.PAYMENT_WAITING" | "ORDER.DELIVERING";
|
|
18162
18817
|
testPayment: boolean;
|
|
18163
18818
|
stay?: {
|
|
18164
18819
|
checkIn: string;
|
|
@@ -18254,7 +18909,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18254
18909
|
sellerMemo: string | null;
|
|
18255
18910
|
orderedAt: string;
|
|
18256
18911
|
lastChangedAt: string;
|
|
18257
|
-
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
|
|
18912
|
+
lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "ORDER.PAYMENT_WAITING" | "ORDER.DELIVERING";
|
|
18258
18913
|
testPayment: boolean;
|
|
18259
18914
|
stay?: {
|
|
18260
18915
|
checkIn: string;
|