From dce3a86c5a1800a839a6b38ee27c85196e521f04 Mon Sep 17 00:00:00 2001 From: Jefferson Date: Wed, 23 Sep 2020 16:58:10 -0300 Subject: [PATCH] Remove setManualPrice function and route from the checkout client --- node/clients/checkout.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/node/clients/checkout.ts b/node/clients/checkout.ts index 0befedc..0e72a4d 100644 --- a/node/clients/checkout.ts +++ b/node/clients/checkout.ts @@ -265,18 +265,6 @@ export class Checkout extends JanusClient { public getProfile = (email: string) => this.get(this.routes.profile(email)) - public setManualPrice = ( - orderFormId: string, - itemIndex: number, - price: number - ) => - this.put( - this.routes.setManualPrice(orderFormId, itemIndex), - { - price, - } - ) - protected get = (url: string, config: RequestConfig = {}) => { config.headers = { ...config.headers, @@ -413,8 +401,6 @@ export class Checkout extends JanusClient { savePaymentToken: (queryString: string) => `${base}/current-user/payment-tokens/${queryString}`, getPaymentSession: () => `${base}/payment-session`, - setManualPrice: (orderFormId: string, itemIndex: number) => - `${base}/orderForm/${orderFormId}/items/${itemIndex}/price`, } } }