@cometh/checkout-sdk
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -44,2 +44,10 @@ import type { Product } from '../models/Product'; | ||
updateProduct(productId: number, requestBody: Product): CancelablePromise<any>; | ||
/** | ||
* Delete product | ||
* Delete product by product ID | ||
* @param productId | ||
* @returns void | ||
* @throws ApiError | ||
*/ | ||
deleteProduct(productId: number): CancelablePromise<void>; | ||
} |
@@ -97,2 +97,25 @@ export class ProductsService { | ||
} | ||
/** | ||
* Delete product | ||
* Delete product by product ID | ||
* @param productId | ||
* @returns void | ||
* @throws ApiError | ||
*/ | ||
deleteProduct(productId) { | ||
return this.httpRequest.request({ | ||
method: 'DELETE', | ||
url: '/products/{productId}', | ||
path: { | ||
'productId': productId, | ||
}, | ||
errors: { | ||
400: `Invalid input, object invalid.`, | ||
401: `Missing API key or secret`, | ||
403: `Resource is access restricted.`, | ||
404: `Ressource not found.`, | ||
500: `Internal server error`, | ||
}, | ||
}); | ||
} | ||
} |
{ | ||
"name": "@cometh/checkout-sdk", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "SDK to use Cometh Checkout API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
68871
1918