@channelpayments/node-sdk 1.40.0 → 1.41.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.
@@ -120,7 +120,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
120
120
  * Retrieve all child merchants of the merchant associated with the user making the request.
121
121
  * Find child merchants
122
122
  */
123
- getChildMerchants(): Promise<MerchantEntity>;
123
+ getChildMerchants(): Promise<Array<MerchantEntity>>;
124
124
  /**
125
125
  * Retrieve the merchant associated with the user making the request.
126
126
  * Find merchant
@@ -359,7 +359,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
359
359
  });
360
360
  let response;
361
361
  if (rawResponse.status === 200) {
362
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.MerchantEntityFromJSON)(jsonValue));
362
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(models_1.MerchantEntityFromJSON));
363
363
  }
364
364
  if (rawResponse.status === 401) {
365
365
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -120,7 +120,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
120
120
  * Retrieve all child merchants of the merchant associated with the user making the request.
121
121
  * Find child merchants
122
122
  */
123
- getChildMerchants(): Promise<MerchantEntity>;
123
+ getChildMerchants(): Promise<Array<MerchantEntity>>;
124
124
  /**
125
125
  * Retrieve the merchant associated with the user making the request.
126
126
  * Find merchant
@@ -311,7 +311,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
311
311
  });
312
312
  let response;
313
313
  if (rawResponse.status === 200) {
314
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => MerchantEntityFromJSON(jsonValue));
314
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(MerchantEntityFromJSON));
315
315
  }
316
316
  if (rawResponse.status === 401) {
317
317
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.40.0",
4
+ "version": "1.41.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",