Comparing version 0.6.11 to 0.7.0
@@ -80,3 +80,8 @@ import { APIGroup, LinkedObject } from "./common"; | ||
create(params: CreateCustomerRequest): Promise<Customer>; | ||
/** | ||
* List contact addresses for a customer | ||
* @param customerId | ||
*/ | ||
contacts(customerId: number): Promise<CustomerContactResponse[]>; | ||
createContact(customerId: number, contact: CustomerContact): Promise<CustomerContactResponse>; | ||
} |
@@ -45,2 +45,11 @@ "use strict"; | ||
} | ||
/** | ||
* List contact addresses for a customer | ||
* @param customerId | ||
*/ | ||
contacts(customerId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return (yield this.axios.get(`/sales/customers/${customerId}/contacts`)).data; | ||
}); | ||
} | ||
createContact(customerId, contact) { | ||
@@ -47,0 +56,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "tigerbay", | ||
"version": "0.6.11", | ||
"version": "0.7.0", | ||
"description": "API Client library for TigerBay", | ||
@@ -5,0 +5,0 @@ "main": "lib/client.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80333
1993