diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-29 16:52:25 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-29 16:52:40 -0300 |
commit | c3cba95a9fd88eb77fd18263287d3a63a9f757e2 (patch) | |
tree | 5d05bc48742c0984d8d0aff3a4c2a94c54332803 /packages/taler-util | |
parent | 81f87ede72ada7e7f313b9a4212e0c75c5f54ac9 (diff) | |
download | wallet-core-c3cba95a9fd88eb77fd18263287d3a63a9f757e2.tar.xz |
wip #8655
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/http-client/merchant.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-util/src/http-client/merchant.ts b/packages/taler-util/src/http-client/merchant.ts index fec1e7143..b7fe3e62c 100644 --- a/packages/taler-util/src/http-client/merchant.ts +++ b/packages/taler-util/src/http-client/merchant.ts @@ -667,7 +667,7 @@ export class TalerMerchantInstanceHttpClient { async updateProduct( token: AccessToken | undefined, productId: string, - body: TalerMerchantApi.ProductAddDetail, + body: TalerMerchantApi.ProductPatchDetail, ) { const url = new URL(`private/products/${productId}`, this.baseUrl); @@ -776,7 +776,7 @@ export class TalerMerchantInstanceHttpClient { /** * https://docs.taler.net/core/api-merchant.html#removing-products-from-inventory */ - async removeProduct(token: AccessToken | undefined, productId: string) { + async deleteProduct(token: AccessToken | undefined, productId: string) { const url = new URL(`private/products/${productId}`, this.baseUrl); const headers: Record<string, string> = {} @@ -1559,7 +1559,7 @@ export class TalerMerchantInstanceHttpClient { /** * https://docs.taler.net/core/api-merchant.html#delete-[-instances-$INSTANCES]-private-webhooks-$WEBHOOK_ID */ - async removeWebhook(token: AccessToken | undefined, webhookId: string) { + async deleteWebhook(token: AccessToken | undefined, webhookId: string) { const url = new URL(`private/webhooks/${webhookId}`, this.baseUrl); const headers: Record<string, string> = {} |