Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change internal deposit method to PUT. #175

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/fake-iamport-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-iamport-server",
"version": "5.0.5",
"version": "5.0.6",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export namespace webhook {
* @author Samchon
*
* @controller FakeIamportInternalController.deposit
* @path GET /internal/deposit/:imp_uid
* @path PUT /internal/deposit/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
export async function deposit(
Expand All @@ -127,7 +127,7 @@ export async function deposit(
export namespace deposit {

export const METADATA = {
method: "GET",
method: "PUT",
path: "/internal/deposit/:imp_uid",
request: null,
response: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FakeIamportInternalController {
* @security bearer
* @author Samchon
*/
@core.TypedRoute.Get("deposit/:imp_uid")
@core.TypedRoute.Put("deposit/:imp_uid")
public deposit(
@nest.Request() request: fastify.FastifyRequest,
@core.TypedParam("imp_uid") imp_uid: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/fake-toss-payments-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-toss-payments-server",
"version": "5.0.5",
"version": "5.0.6",
"description": "Fake toss-payments server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export namespace webhook {
* @author Samchon
*
* @controller FakeTossInternalController.deposit
* @path GET /internal/:paymentKey/deposit
* @path PUT /internal/:paymentKey/deposit
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
export async function deposit(
Expand All @@ -130,7 +130,7 @@ export namespace deposit {
export type Output = Primitive<ITossPayment>;

export const METADATA = {
method: "GET",
method: "PUT",
path: "/internal/:paymentKey/deposit",
request: null,
response: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class FakeTossInternalController {
* @security basic
* @author Samchon
*/
@core.TypedRoute.Get(":paymentKey/deposit")
@core.TypedRoute.Put(":paymentKey/deposit")
public deposit(
@nest.Request() request: fastify.FastifyRequest,
@core.TypedParam("paymentKey") paymentKey: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/iamport-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iamport-server-api",
"version": "5.0.5",
"version": "5.0.6",
"description": "API for Iamport Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/iamport-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Iamport API",
"description": "Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)",
"version": "5.0.5",
"version": "5.0.6",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -498,7 +498,7 @@
}
},
"/internal/deposit/{imp_uid}": {
"get": {
"put": {
"tags": [],
"parameters": [
{
Expand All @@ -512,7 +512,7 @@
}
],
"responses": {
"200": {
"201": {
"description": "",
"x-nestia-encrypted": false
}
Expand Down Expand Up @@ -574,7 +574,7 @@
]
}
],
"x-nestia-method": "GET"
"x-nestia-method": "PUT"
}
},
"/payments/{imp_uid}": {
Expand Down
6 changes: 3 additions & 3 deletions packages/payment-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-api",
"version": "5.0.5",
"version": "5.0.6",
"description": "API for Payment Backend",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -35,8 +35,8 @@
},
"dependencies": {
"@nestia/fetcher": "^2.3.4",
"iamport-server-api": "^5.0.5",
"toss-payments-server-api": "^5.0.5",
"iamport-server-api": "^5.0.6",
"toss-payments-server-api": "^5.0.6",
"typia": "^5.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/payment-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
],
"info": {
"version": "5.0.5",
"version": "5.0.6",
"title": "@samchon/payment-backend",
"description": "Payment Backend Server",
"license": {
Expand Down
10 changes: 5 additions & 5 deletions packages/payment-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-backend",
"version": "5.0.5",
"version": "5.0.6",
"description": "Payment Backend Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -65,14 +65,14 @@
"@typescript-eslint/parser": "^5.26.0",
"cli": "^1.0.1",
"copyfiles": "^2.4.1",
"iamport-server-api": "^5.0.5",
"iamport-server-api": "^5.0.6",
"nestia": "^5.0.1",
"pm2": "^4.5.6",
"prettier": "^2.6.2",
"prisma-markdown": "^1.0.6",
"rimraf": "^3.0.2",
"sloc": "^0.2.1",
"toss-payments-server-api": "^5.0.5",
"toss-payments-server-api": "^5.0.6",
"ts-node": "^10.9.1",
"ts-patch": "^3.0.2",
"typescript": "^5.2.2",
Expand All @@ -84,8 +84,8 @@
"bcryptjs": "^2.4.3",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"fake-iamport-server": "^5.0.5",
"fake-toss-payments-server": "^5.0.5",
"fake-iamport-server": "^5.0.6",
"fake-toss-payments-server": "^5.0.6",
"git-last-commit": "^1.0.0",
"inquirer": "^8.2.5",
"mutex-server": "^0.3.1",
Expand Down
1 change: 0 additions & 1 deletion packages/payment-backend/src/services/toss/TossAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export namespace TossAsset {
host,
headers: {
Authorization: `Basic ${token}`,
"Content-Type": "application/json",
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/toss-payments-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toss-payments-server-api",
"version": "5.0.5",
"version": "5.0.6",
"description": "API for Toss Payments Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/toss-payments-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Toss Payments API",
"description": "Built by [fake-toss-payments-server](https://github.com/samchon/payments/tree/master/packages/toss-payments-server-api) with [nestia](https://github.com/samchon/nestia)",
"version": "5.0.5",
"version": "5.0.6",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -644,7 +644,7 @@
}
},
"/internal/{paymentKey}/deposit": {
"get": {
"put": {
"tags": [],
"parameters": [
{
Expand All @@ -658,7 +658,7 @@
}
],
"responses": {
"200": {
"201": {
"description": "입금 완료된 가상 꼐좌 결제 정보",
"content": {
"application/json": {
Expand Down Expand Up @@ -743,7 +743,7 @@
]
}
],
"x-nestia-method": "GET"
"x-nestia-method": "PUT"
}
},
"/v1/payments/{paymentKey}": {
Expand Down