apirocket 0.16.13 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,7 @@ type EcommerceConfig = {
53
53
  defaultPriceListId?: number;
54
54
  customerFilterType: '' | 'B2B' | 'B2C' = '';
55
55
  ecommerceId: string;
56
+ locale?: string: 'es' | 'en' | 'de';
56
57
  logo?: string;
57
58
  legalLinks?: LegalLinks;
58
59
  pricesTaxIncluded?: boolean = true;
@@ -102,7 +103,7 @@ interface ReadOnly <CustomerService> {
102
103
  createBillingAddress: (input: Omit <BillingAddress, 'id'>) => Promise <BillingAddress>;
103
104
  createShippingAddress: (input: Omit <ShippingAddress, 'id'>) => Promise <ShippingAddress>;
104
105
  deleteShippingAddress: (id: number) => Promise <boolean>;
105
- login: (email: string, password: string) => customer.login (email, password);
106
+ login: (email: string, password: string) => customer.login (email, password): { status: number, token?: string, customer?: CustomerData };
106
107
  logout: () => customer.logout ();
107
108
  myAccount: () => Promise <CustomerAccount>;
108
109
  price: (productId: number) => Promise <ProductPrice>;
@@ -115,7 +116,20 @@ interface ReadOnly <CustomerService> {
115
116
  updateBillingAddress: (input: BillingAddress) => Promise <BillingAddress>;
116
117
  updateShippingAddress: (input: ShippingAddress) => Promise <ShippingAddress>;
117
118
  }
119
+ ```
120
+
118
121
 
122
+ ### CustomerData
123
+ ```javascript
124
+ type CustomerData = {
125
+ acceptEmailMarketing: boolean,
126
+ email: string,
127
+ firstName: string,
128
+ id: number,
129
+ lastName: string,
130
+ phone: string,
131
+ type: CustomerType
132
+ };
119
133
  ```
120
134
 
121
135
  ### CartService