@channelpayments/node-sdk 1.210.0 → 1.212.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.
@@ -41,6 +41,12 @@ export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
41
41
  * @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
42
42
  */
43
43
  name?: string;
44
+ /**
45
+ * The ID of the merchant in the connector system.
46
+ * @type {string}
47
+ * @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
48
+ */
49
+ connectorMerchantId?: string;
44
50
  }
45
51
  /**
46
52
  * @export
@@ -55,6 +55,7 @@ function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSONTyped(json, i
55
55
  : (0, CreateMerchantConnectorCredentialsDto_1.CreateMerchantConnectorCredentialsDtoFromJSON)(json['connectorCredentials']),
56
56
  issuedConnectorId: !(0, runtime_1.exists)(json, 'issuedConnectorId') ? undefined : json['issuedConnectorId'],
57
57
  name: !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
58
+ connectorMerchantId: !(0, runtime_1.exists)(json, 'connectorMerchantId') ? undefined : json['connectorMerchantId'],
58
59
  };
59
60
  return (0, runtime_1.removeNullUndefined)(typed);
60
61
  }
@@ -71,5 +72,6 @@ function CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON(value) {
71
72
  connectorCredentials: (0, CreateMerchantConnectorCredentialsDto_1.CreateMerchantConnectorCredentialsDtoToJSON)(value.connectorCredentials),
72
73
  issuedConnectorId: value.issuedConnectorId,
73
74
  name: value.name,
75
+ connectorMerchantId: value.connectorMerchantId,
74
76
  };
75
77
  }
@@ -58,6 +58,12 @@ export interface MerchantConnectorServiceEntity {
58
58
  * @memberof MerchantConnectorServiceEntity
59
59
  */
60
60
  name?: string;
61
+ /**
62
+ * The ID of the merchant in the connector system.
63
+ * @type {string}
64
+ * @memberof MerchantConnectorServiceEntity
65
+ */
66
+ connectorMerchantId?: string;
61
67
  }
62
68
  /**
63
69
  * @export
@@ -60,6 +60,7 @@ function MerchantConnectorServiceEntityFromJSONTyped(json, ignoreDiscriminator)
60
60
  updatedAt: new Date(json['updatedAt']),
61
61
  type: json['type'],
62
62
  name: !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
63
+ connectorMerchantId: !(0, runtime_1.exists)(json, 'connectorMerchantId') ? undefined : json['connectorMerchantId'],
63
64
  };
64
65
  return (0, runtime_1.removeNullUndefined)(typed);
65
66
  }
@@ -79,5 +80,6 @@ function MerchantConnectorServiceEntityToJSON(value) {
79
80
  updatedAt: value.updatedAt.toISOString(),
80
81
  type: value.type,
81
82
  name: value.name,
83
+ connectorMerchantId: value.connectorMerchantId,
82
84
  };
83
85
  }
@@ -114,7 +114,7 @@ class BaseAPI {
114
114
  createFetchParams(context) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
116
  Object.keys(context.headers).forEach((key) => context.headers[key] === undefined ? delete context.headers[key] : {});
117
- context.headers['user-agent'] = '@channelpayments/node-sdk/v1.210.0';
117
+ context.headers['user-agent'] = '@channelpayments/node-sdk/v1.212.0';
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -41,6 +41,12 @@ export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
41
41
  * @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
42
42
  */
43
43
  name?: string;
44
+ /**
45
+ * The ID of the merchant in the connector system.
46
+ * @type {string}
47
+ * @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
48
+ */
49
+ connectorMerchantId?: string;
44
50
  }
45
51
  /**
46
52
  * @export
@@ -48,6 +48,7 @@ export function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSONTyped(
48
48
  : CreateMerchantConnectorCredentialsDtoFromJSON(json['connectorCredentials']),
49
49
  issuedConnectorId: !exists(json, 'issuedConnectorId') ? undefined : json['issuedConnectorId'],
50
50
  name: !exists(json, 'name') ? undefined : json['name'],
51
+ connectorMerchantId: !exists(json, 'connectorMerchantId') ? undefined : json['connectorMerchantId'],
51
52
  };
52
53
  return removeNullUndefined(typed);
53
54
  }
@@ -64,5 +65,6 @@ export function CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON(value)
64
65
  connectorCredentials: CreateMerchantConnectorCredentialsDtoToJSON(value.connectorCredentials),
65
66
  issuedConnectorId: value.issuedConnectorId,
66
67
  name: value.name,
68
+ connectorMerchantId: value.connectorMerchantId,
67
69
  };
68
70
  }
@@ -58,6 +58,12 @@ export interface MerchantConnectorServiceEntity {
58
58
  * @memberof MerchantConnectorServiceEntity
59
59
  */
60
60
  name?: string;
61
+ /**
62
+ * The ID of the merchant in the connector system.
63
+ * @type {string}
64
+ * @memberof MerchantConnectorServiceEntity
65
+ */
66
+ connectorMerchantId?: string;
61
67
  }
62
68
  /**
63
69
  * @export
@@ -53,6 +53,7 @@ export function MerchantConnectorServiceEntityFromJSONTyped(json, ignoreDiscrimi
53
53
  updatedAt: new Date(json['updatedAt']),
54
54
  type: json['type'],
55
55
  name: !exists(json, 'name') ? undefined : json['name'],
56
+ connectorMerchantId: !exists(json, 'connectorMerchantId') ? undefined : json['connectorMerchantId'],
56
57
  };
57
58
  return removeNullUndefined(typed);
58
59
  }
@@ -72,5 +73,6 @@ export function MerchantConnectorServiceEntityToJSON(value) {
72
73
  updatedAt: value.updatedAt.toISOString(),
73
74
  type: value.type,
74
75
  name: value.name,
76
+ connectorMerchantId: value.connectorMerchantId,
75
77
  };
76
78
  }
@@ -64,7 +64,7 @@ export class BaseAPI {
64
64
  }
65
65
  async createFetchParams(context) {
66
66
  Object.keys(context.headers).forEach((key) => context.headers[key] === undefined ? delete context.headers[key] : {});
67
- context.headers['user-agent'] = '@channelpayments/node-sdk/v1.210.0';
67
+ context.headers['user-agent'] = '@channelpayments/node-sdk/v1.212.0';
68
68
  const token = this.generateAuthToken();
69
69
  context.headers['Authorization'] = `Bearer ${token}`;
70
70
  let url = this.url + context.path;
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.210.0",
4
+ "version": "1.212.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",