@sayren/store-sdk 0.65.0 → 0.66.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.mjs CHANGED
@@ -3849,6 +3849,10 @@ const claimSchema = z$1.object({
3849
3849
  holdExpiresAt: z$1.string().nullable(),
3850
3850
  /** 보류를 이미 썼는지 — 보류는 클레임당 1회라 해제·만료 뒤에도 true */
3851
3851
  holdUsed: z$1.boolean(),
3852
+ rejection: z$1.object({
3853
+ reason: z$1.string().describe("거절 사유 코드 — `USED_PRODUCT`·`MISSING_COMPONENT`·`PERIOD_EXPIRED`·`BUYER_FAULT_DAMAGE`·`ETC`. 값이 추가될 수 있어 문자열로 받는다"),
3854
+ detail: z$1.string().describe("거절 상세 사유. 구매자에게 그대로 보인다")
3855
+ }).nullable().optional().default(null).describe("판매자가 거절한 사유. 거절(`REJECTED`) 클레임만 값이 있고 그 밖에는 null이다. 서버는 항상 싣는다"),
3852
3856
  returnAddress: claimReturnAddressSchema.nullable().describe("수거 안내에 쓸 반품지(이슈 #30). 상품이 지정한 반품지, 없으면 상점 기본 반품지다. 취소 클레임과 반품지를 등록하지 않은 상점은 null")
3853
3857
  });
3854
3858
  /** `GET /v1/claims` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/store-sdk",
3
- "version": "0.65.0",
3
+ "version": "0.66.0",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
@@ -113,6 +113,21 @@ export const claimSchema = z.object({
113
113
  holdExpiresAt: z.string().nullable(),
114
114
  /** 보류를 이미 썼는지 — 보류는 클레임당 1회라 해제·만료 뒤에도 true */
115
115
  holdUsed: z.boolean(),
116
+ rejection: z
117
+ .object({
118
+ reason: z
119
+ .string()
120
+ .describe(
121
+ "거절 사유 코드 — `USED_PRODUCT`·`MISSING_COMPONENT`·`PERIOD_EXPIRED`·`BUYER_FAULT_DAMAGE`·`ETC`. 값이 추가될 수 있어 문자열로 받는다",
122
+ ),
123
+ detail: z.string().describe("거절 상세 사유. 구매자에게 그대로 보인다"),
124
+ })
125
+ .nullable()
126
+ .optional()
127
+ .default(null)
128
+ .describe(
129
+ "판매자가 거절한 사유. 거절(`REJECTED`) 클레임만 값이 있고 그 밖에는 null이다. 서버는 항상 싣는다",
130
+ ),
116
131
  returnAddress: claimReturnAddressSchema
117
132
  .nullable()
118
133
  .describe(