Skip to content

Commit

Permalink
Remove setManualPrice function and route from the checkout client
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersontuc committed Sep 23, 2020
1 parent 2b0d4a2 commit dce3a86
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions node/clients/checkout.ts
Expand Up @@ -265,18 +265,6 @@ export class Checkout extends JanusClient {
public getProfile = (email: string) =>
this.get<CheckoutProfile>(this.routes.profile(email))

public setManualPrice = (
orderFormId: string,
itemIndex: number,
price: number
) =>
this.put<CheckoutOrderForm>(
this.routes.setManualPrice(orderFormId, itemIndex),
{
price,
}
)

protected get = <T>(url: string, config: RequestConfig = {}) => {
config.headers = {
...config.headers,
Expand Down Expand Up @@ -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`,
}
}
}

0 comments on commit dce3a86

Please sign in to comment.