diff --git a/.changeset/curvy-rivers-destroy.md b/.changeset/curvy-rivers-destroy.md new file mode 100644 index 0000000..09bacba --- /dev/null +++ b/.changeset/curvy-rivers-destroy.md @@ -0,0 +1,5 @@ +--- +"@portone/server-sdk": minor +--- + +서버 SDK REST API 래퍼 구현 diff --git a/packages/server-sdk/package.json b/packages/server-sdk/package.json index c5b91aa..392bfaa 100644 --- a/packages/server-sdk/package.json +++ b/packages/server-sdk/package.json @@ -3,12 +3,7 @@ "type": "module", "version": "0.1.0", "description": "PortOne JavaScript SDK for server-side usage", - "keywords": [ - "PortOne", - "payment", - "포트원", - "결제 연동" - ], + "keywords": ["PortOne", "payment", "포트원", "결제 연동"], "author": { "name": "portone-dx", "email": "support@portone.io" @@ -41,9 +36,7 @@ "unbuild": "^2.0.0", "vitest": "^2.0.5" }, - "files": [ - "dist" - ], + "files": ["dist"], "sideEffects": false, "license": "(Apache-2.0 OR MIT)" } diff --git a/packages/server-sdk/src/client.ts b/packages/server-sdk/src/client.ts index c80c7a2..da1f0c2 100644 --- a/packages/server-sdk/src/client.ts +++ b/packages/server-sdk/src/client.ts @@ -1,11 +1,11 @@ import type { ApiRequestMethod, - SdkPaths, - QuerySchema, BodySchema, - ResponseSchema, - PathSchema, EffectiveQuerySchema, + PathSchema, + QuerySchema, + ResponseSchema, + SdkPaths, } from "./api"; import type { components, operations } from "./schema"; diff --git a/packages/server-sdk/src/payments.ts b/packages/server-sdk/src/payments.ts index b9455a3..124dbb1 100644 --- a/packages/server-sdk/src/payments.ts +++ b/packages/server-sdk/src/payments.ts @@ -4,9 +4,9 @@ import { BillingKeyAlreadyDeletedError, BillingKeyNotFoundError, CancelAmountExceedsCancellableAmountError, - CancellableAmountConsistencyBrokenError, CancelTaxAmountExceedsCancellableTaxAmountError, CancelTaxFreeAmountExceedsCancellableTaxFreeAmountError, + CancellableAmountConsistencyBrokenError, ChannelNotFoundError, ForbiddenError, InvalidInputError,