@channelpayments/node-sdk 1.207.0 → 1.209.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/dist/cjs/models/CreatePaymentMethodDto.d.ts +7 -0
- package/dist/cjs/models/CreatePaymentMethodDto.js +3 -0
- package/dist/cjs/models/MerchantAccountEntity.d.ts +24 -0
- package/dist/cjs/models/MerchantAccountEntity.js +8 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +24 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +8 -0
- package/dist/cjs/models/UpdateConditionDto.d.ts +2 -2
- package/dist/cjs/models/UpdateConditionDto.js +4 -2
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CreatePaymentMethodDto.d.ts +7 -0
- package/dist/mjs/models/CreatePaymentMethodDto.js +3 -0
- package/dist/mjs/models/MerchantAccountEntity.d.ts +24 -0
- package/dist/mjs/models/MerchantAccountEntity.js +8 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +24 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +8 -0
- package/dist/mjs/models/UpdateConditionDto.d.ts +2 -2
- package/dist/mjs/models/UpdateConditionDto.js +4 -2
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
+
import type { BillingDetailsDto } from './BillingDetailsDto';
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @export
|
|
@@ -70,6 +71,12 @@ export interface CreatePaymentMethodDto {
|
|
|
70
71
|
* @memberof CreatePaymentMethodDto
|
|
71
72
|
*/
|
|
72
73
|
externalPaymentMethodId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The billing details of the account holder.
|
|
76
|
+
* @type {BillingDetailsDto}
|
|
77
|
+
* @memberof CreatePaymentMethodDto
|
|
78
|
+
*/
|
|
79
|
+
billingDetails?: BillingDetailsDto;
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
* @export
|
|
@@ -14,6 +14,7 @@ exports.CreatePaymentMethodDtoFromJSON = CreatePaymentMethodDtoFromJSON;
|
|
|
14
14
|
exports.CreatePaymentMethodDtoFromJSONTyped = CreatePaymentMethodDtoFromJSONTyped;
|
|
15
15
|
exports.CreatePaymentMethodDtoToJSON = CreatePaymentMethodDtoToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
|
+
const BillingDetailsDto_1 = require("./BillingDetailsDto");
|
|
17
18
|
/**
|
|
18
19
|
* @export
|
|
19
20
|
*/
|
|
@@ -54,6 +55,7 @@ function CreatePaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
55
|
externalBuyerId: !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
55
56
|
buyerId: !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
56
57
|
externalPaymentMethodId: !(0, runtime_1.exists)(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
58
|
+
billingDetails: !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsDto_1.BillingDetailsDtoFromJSON)(json['billingDetails']),
|
|
57
59
|
};
|
|
58
60
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
59
61
|
}
|
|
@@ -75,5 +77,6 @@ function CreatePaymentMethodDtoToJSON(value) {
|
|
|
75
77
|
externalBuyerId: value.externalBuyerId,
|
|
76
78
|
buyerId: value.buyerId,
|
|
77
79
|
externalPaymentMethodId: value.externalPaymentMethodId,
|
|
80
|
+
billingDetails: (0, BillingDetailsDto_1.BillingDetailsDtoToJSON)(value.billingDetails),
|
|
78
81
|
};
|
|
79
82
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountEntity {
|
|
|
126
126
|
* @memberof MerchantAccountEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -124,6 +124,10 @@ function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
124
124
|
lastPolledAt: !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
125
125
|
dataSource: !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
126
126
|
mcc: !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
127
|
+
agent: !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
128
|
+
bin: !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
129
|
+
chain: !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
130
|
+
store: !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
127
131
|
};
|
|
128
132
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
129
133
|
}
|
|
@@ -156,5 +160,9 @@ function MerchantAccountEntityToJSON(value) {
|
|
|
156
160
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
157
161
|
dataSource: value.dataSource,
|
|
158
162
|
mcc: value.mcc,
|
|
163
|
+
agent: value.agent,
|
|
164
|
+
bin: value.bin,
|
|
165
|
+
chain: value.chain,
|
|
166
|
+
store: value.store,
|
|
159
167
|
};
|
|
160
168
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountServiceEntity {
|
|
|
126
126
|
* @memberof MerchantAccountServiceEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountServiceEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountServiceEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountServiceEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountServiceEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -124,6 +124,10 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
124
124
|
lastPolledAt: !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
125
125
|
dataSource: !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
126
126
|
mcc: !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
127
|
+
agent: !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
128
|
+
bin: !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
129
|
+
chain: !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
130
|
+
store: !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
127
131
|
};
|
|
128
132
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
129
133
|
}
|
|
@@ -156,5 +160,9 @@ function MerchantAccountServiceEntityToJSON(value) {
|
|
|
156
160
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
157
161
|
dataSource: value.dataSource,
|
|
158
162
|
mcc: value.mcc,
|
|
163
|
+
agent: value.agent,
|
|
164
|
+
bin: value.bin,
|
|
165
|
+
chain: value.chain,
|
|
166
|
+
store: value.store,
|
|
159
167
|
};
|
|
160
168
|
}
|
|
@@ -16,13 +16,13 @@ export interface UpdateConditionDto {
|
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof UpdateConditionDto
|
|
18
18
|
*/
|
|
19
|
-
field
|
|
19
|
+
field: UpdateConditionDtoFieldEnum;
|
|
20
20
|
/**
|
|
21
21
|
* The operator to apply to the condition
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof UpdateConditionDto
|
|
24
24
|
*/
|
|
25
|
-
operator
|
|
25
|
+
operator: UpdateConditionDtoOperatorEnum;
|
|
26
26
|
/**
|
|
27
27
|
* The integer value to compare against (if applicable)
|
|
28
28
|
* @type {number}
|
|
@@ -47,6 +47,8 @@ exports.UpdateConditionDtoOperatorEnum = {
|
|
|
47
47
|
*/
|
|
48
48
|
function instanceOfUpdateConditionDto(value) {
|
|
49
49
|
let isInstance = true;
|
|
50
|
+
isInstance = isInstance && 'field' in value;
|
|
51
|
+
isInstance = isInstance && 'operator' in value;
|
|
50
52
|
return isInstance;
|
|
51
53
|
}
|
|
52
54
|
function UpdateConditionDtoFromJSON(json) {
|
|
@@ -57,8 +59,8 @@ function UpdateConditionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
return json;
|
|
58
60
|
}
|
|
59
61
|
const typed = {
|
|
60
|
-
field:
|
|
61
|
-
operator:
|
|
62
|
+
field: json['field'],
|
|
63
|
+
operator: json['operator'],
|
|
62
64
|
intValue: !(0, runtime_1.exists)(json, 'intValue') ? undefined : json['intValue'],
|
|
63
65
|
intMin: !(0, runtime_1.exists)(json, 'intMin') ? undefined : json['intMin'],
|
|
64
66
|
intMax: !(0, runtime_1.exists)(json, 'intMax') ? undefined : json['intMax'],
|
package/dist/cjs/runtime.js
CHANGED
|
@@ -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.
|
|
117
|
+
context.headers['user-agent'] = '@channelpayments/node-sdk/v1.209.0';
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
+
import type { BillingDetailsDto } from './BillingDetailsDto';
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @export
|
|
@@ -70,6 +71,12 @@ export interface CreatePaymentMethodDto {
|
|
|
70
71
|
* @memberof CreatePaymentMethodDto
|
|
71
72
|
*/
|
|
72
73
|
externalPaymentMethodId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The billing details of the account holder.
|
|
76
|
+
* @type {BillingDetailsDto}
|
|
77
|
+
* @memberof CreatePaymentMethodDto
|
|
78
|
+
*/
|
|
79
|
+
billingDetails?: BillingDetailsDto;
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
* @export
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BillingDetailsDtoFromJSON, BillingDetailsDtoToJSON, } from './BillingDetailsDto';
|
|
10
11
|
/**
|
|
11
12
|
* @export
|
|
12
13
|
*/
|
|
@@ -47,6 +48,7 @@ export function CreatePaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
externalBuyerId: !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
48
49
|
buyerId: !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
49
50
|
externalPaymentMethodId: !exists(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
51
|
+
billingDetails: !exists(json, 'billingDetails') ? undefined : BillingDetailsDtoFromJSON(json['billingDetails']),
|
|
50
52
|
};
|
|
51
53
|
return removeNullUndefined(typed);
|
|
52
54
|
}
|
|
@@ -68,5 +70,6 @@ export function CreatePaymentMethodDtoToJSON(value) {
|
|
|
68
70
|
externalBuyerId: value.externalBuyerId,
|
|
69
71
|
buyerId: value.buyerId,
|
|
70
72
|
externalPaymentMethodId: value.externalPaymentMethodId,
|
|
73
|
+
billingDetails: BillingDetailsDtoToJSON(value.billingDetails),
|
|
71
74
|
};
|
|
72
75
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountEntity {
|
|
|
126
126
|
* @memberof MerchantAccountEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -117,6 +117,10 @@ export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
117
117
|
lastPolledAt: !exists(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
118
118
|
dataSource: !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
119
119
|
mcc: !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
120
|
+
agent: !exists(json, 'agent') ? undefined : json['agent'],
|
|
121
|
+
bin: !exists(json, 'bin') ? undefined : json['bin'],
|
|
122
|
+
chain: !exists(json, 'chain') ? undefined : json['chain'],
|
|
123
|
+
store: !exists(json, 'store') ? undefined : json['store'],
|
|
120
124
|
};
|
|
121
125
|
return removeNullUndefined(typed);
|
|
122
126
|
}
|
|
@@ -149,5 +153,9 @@ export function MerchantAccountEntityToJSON(value) {
|
|
|
149
153
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
150
154
|
dataSource: value.dataSource,
|
|
151
155
|
mcc: value.mcc,
|
|
156
|
+
agent: value.agent,
|
|
157
|
+
bin: value.bin,
|
|
158
|
+
chain: value.chain,
|
|
159
|
+
store: value.store,
|
|
152
160
|
};
|
|
153
161
|
}
|
|
@@ -126,6 +126,30 @@ export interface MerchantAccountServiceEntity {
|
|
|
126
126
|
* @memberof MerchantAccountServiceEntity
|
|
127
127
|
*/
|
|
128
128
|
mcc?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The agent associated with the merchant account.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof MerchantAccountServiceEntity
|
|
133
|
+
*/
|
|
134
|
+
agent?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The BIN associated with the merchant account.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof MerchantAccountServiceEntity
|
|
139
|
+
*/
|
|
140
|
+
bin?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The chain associated with the merchant account.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof MerchantAccountServiceEntity
|
|
145
|
+
*/
|
|
146
|
+
chain?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The store associated with the merchant account.
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof MerchantAccountServiceEntity
|
|
151
|
+
*/
|
|
152
|
+
store?: string;
|
|
129
153
|
}
|
|
130
154
|
/**
|
|
131
155
|
* @export
|
|
@@ -117,6 +117,10 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
|
|
|
117
117
|
lastPolledAt: !exists(json, 'lastPolledAt') ? undefined : new Date(json['lastPolledAt']),
|
|
118
118
|
dataSource: !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
119
119
|
mcc: !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
120
|
+
agent: !exists(json, 'agent') ? undefined : json['agent'],
|
|
121
|
+
bin: !exists(json, 'bin') ? undefined : json['bin'],
|
|
122
|
+
chain: !exists(json, 'chain') ? undefined : json['chain'],
|
|
123
|
+
store: !exists(json, 'store') ? undefined : json['store'],
|
|
120
124
|
};
|
|
121
125
|
return removeNullUndefined(typed);
|
|
122
126
|
}
|
|
@@ -149,5 +153,9 @@ export function MerchantAccountServiceEntityToJSON(value) {
|
|
|
149
153
|
lastPolledAt: value.lastPolledAt === undefined ? undefined : value.lastPolledAt.toISOString(),
|
|
150
154
|
dataSource: value.dataSource,
|
|
151
155
|
mcc: value.mcc,
|
|
156
|
+
agent: value.agent,
|
|
157
|
+
bin: value.bin,
|
|
158
|
+
chain: value.chain,
|
|
159
|
+
store: value.store,
|
|
152
160
|
};
|
|
153
161
|
}
|
|
@@ -16,13 +16,13 @@ export interface UpdateConditionDto {
|
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof UpdateConditionDto
|
|
18
18
|
*/
|
|
19
|
-
field
|
|
19
|
+
field: UpdateConditionDtoFieldEnum;
|
|
20
20
|
/**
|
|
21
21
|
* The operator to apply to the condition
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof UpdateConditionDto
|
|
24
24
|
*/
|
|
25
|
-
operator
|
|
25
|
+
operator: UpdateConditionDtoOperatorEnum;
|
|
26
26
|
/**
|
|
27
27
|
* The integer value to compare against (if applicable)
|
|
28
28
|
* @type {number}
|
|
@@ -40,6 +40,8 @@ export const UpdateConditionDtoOperatorEnum = {
|
|
|
40
40
|
*/
|
|
41
41
|
export function instanceOfUpdateConditionDto(value) {
|
|
42
42
|
let isInstance = true;
|
|
43
|
+
isInstance = isInstance && 'field' in value;
|
|
44
|
+
isInstance = isInstance && 'operator' in value;
|
|
43
45
|
return isInstance;
|
|
44
46
|
}
|
|
45
47
|
export function UpdateConditionDtoFromJSON(json) {
|
|
@@ -50,8 +52,8 @@ export function UpdateConditionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
return json;
|
|
51
53
|
}
|
|
52
54
|
const typed = {
|
|
53
|
-
field:
|
|
54
|
-
operator:
|
|
55
|
+
field: json['field'],
|
|
56
|
+
operator: json['operator'],
|
|
55
57
|
intValue: !exists(json, 'intValue') ? undefined : json['intValue'],
|
|
56
58
|
intMin: !exists(json, 'intMin') ? undefined : json['intMin'],
|
|
57
59
|
intMax: !exists(json, 'intMax') ? undefined : json['intMax'],
|
package/dist/mjs/runtime.js
CHANGED
|
@@ -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.
|
|
67
|
+
context.headers['user-agent'] = '@channelpayments/node-sdk/v1.209.0';
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|