@channelpayments/node-sdk 1.192.0 → 1.193.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.
@@ -157,6 +157,12 @@ export interface CheckoutSessionBaseEntity {
157
157
  * @memberof CheckoutSessionBaseEntity
158
158
  */
159
159
  externalBuyerId?: string;
160
+ /**
161
+ * Who should initiate the transaction.
162
+ * @type {string}
163
+ * @memberof CheckoutSessionBaseEntity
164
+ */
165
+ transactionInitiator?: CheckoutSessionBaseEntityTransactionInitiatorEnum;
160
166
  }
161
167
  /**
162
168
  * @export
@@ -176,6 +182,15 @@ export declare const CheckoutSessionBaseEntityStatusEnum: {
176
182
  readonly Completed: "COMPLETED";
177
183
  };
178
184
  export type CheckoutSessionBaseEntityStatusEnum = typeof CheckoutSessionBaseEntityStatusEnum[keyof typeof CheckoutSessionBaseEntityStatusEnum];
185
+ /**
186
+ * @export
187
+ */
188
+ export declare const CheckoutSessionBaseEntityTransactionInitiatorEnum: {
189
+ readonly Mit: "MIT";
190
+ readonly Cit: "CIT";
191
+ readonly Sit: "SIT";
192
+ };
193
+ export type CheckoutSessionBaseEntityTransactionInitiatorEnum = typeof CheckoutSessionBaseEntityTransactionInitiatorEnum[keyof typeof CheckoutSessionBaseEntityTransactionInitiatorEnum];
179
194
  /**
180
195
  * Check if a given object implements the CheckoutSessionBaseEntity interface.
181
196
  */
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.CheckoutSessionBaseEntityStatusEnum = exports.CheckoutSessionBaseEntityUiModeEnum = void 0;
11
+ exports.CheckoutSessionBaseEntityTransactionInitiatorEnum = exports.CheckoutSessionBaseEntityStatusEnum = exports.CheckoutSessionBaseEntityUiModeEnum = void 0;
12
12
  exports.instanceOfCheckoutSessionBaseEntity = instanceOfCheckoutSessionBaseEntity;
13
13
  exports.CheckoutSessionBaseEntityFromJSON = CheckoutSessionBaseEntityFromJSON;
14
14
  exports.CheckoutSessionBaseEntityFromJSONTyped = CheckoutSessionBaseEntityFromJSONTyped;
@@ -33,6 +33,14 @@ exports.CheckoutSessionBaseEntityStatusEnum = {
33
33
  Expired: 'EXPIRED',
34
34
  Completed: 'COMPLETED'
35
35
  };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.CheckoutSessionBaseEntityTransactionInitiatorEnum = {
40
+ Mit: 'MIT',
41
+ Cit: 'CIT',
42
+ Sit: 'SIT'
43
+ };
36
44
  /**
37
45
  * Check if a given object implements the CheckoutSessionBaseEntity interface.
38
46
  */
@@ -88,6 +96,7 @@ function CheckoutSessionBaseEntityFromJSONTyped(json, ignoreDiscriminator) {
88
96
  'canStore': !(0, runtime_1.exists)(json, 'canStore') ? undefined : json['canStore'],
89
97
  'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
90
98
  'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
99
+ 'transactionInitiator': !(0, runtime_1.exists)(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
91
100
  };
92
101
  return (0, runtime_1.removeNullUndefined)(typed);
93
102
  }
@@ -123,5 +132,6 @@ function CheckoutSessionBaseEntityToJSON(value) {
123
132
  'canStore': value.canStore,
124
133
  'buyerId': value.buyerId,
125
134
  'externalBuyerId': value.externalBuyerId,
135
+ 'transactionInitiator': value.transactionInitiator,
126
136
  };
127
137
  }
@@ -157,6 +157,12 @@ export interface CheckoutSessionEntity {
157
157
  * @memberof CheckoutSessionEntity
158
158
  */
159
159
  externalBuyerId?: string;
160
+ /**
161
+ * Who should initiate the transaction.
162
+ * @type {string}
163
+ * @memberof CheckoutSessionEntity
164
+ */
165
+ transactionInitiator?: CheckoutSessionEntityTransactionInitiatorEnum;
160
166
  /**
161
167
  *
162
168
  * @type {string}
@@ -200,6 +206,15 @@ export declare const CheckoutSessionEntityStatusEnum: {
200
206
  readonly Completed: "COMPLETED";
201
207
  };
202
208
  export type CheckoutSessionEntityStatusEnum = typeof CheckoutSessionEntityStatusEnum[keyof typeof CheckoutSessionEntityStatusEnum];
209
+ /**
210
+ * @export
211
+ */
212
+ export declare const CheckoutSessionEntityTransactionInitiatorEnum: {
213
+ readonly Mit: "MIT";
214
+ readonly Cit: "CIT";
215
+ readonly Sit: "SIT";
216
+ };
217
+ export type CheckoutSessionEntityTransactionInitiatorEnum = typeof CheckoutSessionEntityTransactionInitiatorEnum[keyof typeof CheckoutSessionEntityTransactionInitiatorEnum];
203
218
  /**
204
219
  * Check if a given object implements the CheckoutSessionEntity interface.
205
220
  */
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.CheckoutSessionEntityStatusEnum = exports.CheckoutSessionEntityUiModeEnum = void 0;
11
+ exports.CheckoutSessionEntityTransactionInitiatorEnum = exports.CheckoutSessionEntityStatusEnum = exports.CheckoutSessionEntityUiModeEnum = void 0;
12
12
  exports.instanceOfCheckoutSessionEntity = instanceOfCheckoutSessionEntity;
13
13
  exports.CheckoutSessionEntityFromJSON = CheckoutSessionEntityFromJSON;
14
14
  exports.CheckoutSessionEntityFromJSONTyped = CheckoutSessionEntityFromJSONTyped;
@@ -33,6 +33,14 @@ exports.CheckoutSessionEntityStatusEnum = {
33
33
  Expired: 'EXPIRED',
34
34
  Completed: 'COMPLETED'
35
35
  };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.CheckoutSessionEntityTransactionInitiatorEnum = {
40
+ Mit: 'MIT',
41
+ Cit: 'CIT',
42
+ Sit: 'SIT'
43
+ };
36
44
  /**
37
45
  * Check if a given object implements the CheckoutSessionEntity interface.
38
46
  */
@@ -90,6 +98,7 @@ function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
90
98
  'canStore': !(0, runtime_1.exists)(json, 'canStore') ? undefined : json['canStore'],
91
99
  'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
92
100
  'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
101
+ 'transactionInitiator': !(0, runtime_1.exists)(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
93
102
  'redirectUrl': !(0, runtime_1.exists)(json, 'redirectUrl') ? undefined : json['redirectUrl'],
94
103
  'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
95
104
  'secCode': !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
@@ -129,6 +138,7 @@ function CheckoutSessionEntityToJSON(value) {
129
138
  'canStore': value.canStore,
130
139
  'buyerId': value.buyerId,
131
140
  'externalBuyerId': value.externalBuyerId,
141
+ 'transactionInitiator': value.transactionInitiator,
132
142
  'redirectUrl': value.redirectUrl,
133
143
  'externalTransactionId': value.externalTransactionId,
134
144
  'secCode': value.secCode,
@@ -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.192.0";
117
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.193.0";
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -157,6 +157,12 @@ export interface CheckoutSessionBaseEntity {
157
157
  * @memberof CheckoutSessionBaseEntity
158
158
  */
159
159
  externalBuyerId?: string;
160
+ /**
161
+ * Who should initiate the transaction.
162
+ * @type {string}
163
+ * @memberof CheckoutSessionBaseEntity
164
+ */
165
+ transactionInitiator?: CheckoutSessionBaseEntityTransactionInitiatorEnum;
160
166
  }
161
167
  /**
162
168
  * @export
@@ -176,6 +182,15 @@ export declare const CheckoutSessionBaseEntityStatusEnum: {
176
182
  readonly Completed: "COMPLETED";
177
183
  };
178
184
  export type CheckoutSessionBaseEntityStatusEnum = typeof CheckoutSessionBaseEntityStatusEnum[keyof typeof CheckoutSessionBaseEntityStatusEnum];
185
+ /**
186
+ * @export
187
+ */
188
+ export declare const CheckoutSessionBaseEntityTransactionInitiatorEnum: {
189
+ readonly Mit: "MIT";
190
+ readonly Cit: "CIT";
191
+ readonly Sit: "SIT";
192
+ };
193
+ export type CheckoutSessionBaseEntityTransactionInitiatorEnum = typeof CheckoutSessionBaseEntityTransactionInitiatorEnum[keyof typeof CheckoutSessionBaseEntityTransactionInitiatorEnum];
179
194
  /**
180
195
  * Check if a given object implements the CheckoutSessionBaseEntity interface.
181
196
  */
@@ -26,6 +26,14 @@ export const CheckoutSessionBaseEntityStatusEnum = {
26
26
  Expired: 'EXPIRED',
27
27
  Completed: 'COMPLETED'
28
28
  };
29
+ /**
30
+ * @export
31
+ */
32
+ export const CheckoutSessionBaseEntityTransactionInitiatorEnum = {
33
+ Mit: 'MIT',
34
+ Cit: 'CIT',
35
+ Sit: 'SIT'
36
+ };
29
37
  /**
30
38
  * Check if a given object implements the CheckoutSessionBaseEntity interface.
31
39
  */
@@ -81,6 +89,7 @@ export function CheckoutSessionBaseEntityFromJSONTyped(json, ignoreDiscriminator
81
89
  'canStore': !exists(json, 'canStore') ? undefined : json['canStore'],
82
90
  'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
83
91
  'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
92
+ 'transactionInitiator': !exists(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
84
93
  };
85
94
  return removeNullUndefined(typed);
86
95
  }
@@ -116,5 +125,6 @@ export function CheckoutSessionBaseEntityToJSON(value) {
116
125
  'canStore': value.canStore,
117
126
  'buyerId': value.buyerId,
118
127
  'externalBuyerId': value.externalBuyerId,
128
+ 'transactionInitiator': value.transactionInitiator,
119
129
  };
120
130
  }
@@ -157,6 +157,12 @@ export interface CheckoutSessionEntity {
157
157
  * @memberof CheckoutSessionEntity
158
158
  */
159
159
  externalBuyerId?: string;
160
+ /**
161
+ * Who should initiate the transaction.
162
+ * @type {string}
163
+ * @memberof CheckoutSessionEntity
164
+ */
165
+ transactionInitiator?: CheckoutSessionEntityTransactionInitiatorEnum;
160
166
  /**
161
167
  *
162
168
  * @type {string}
@@ -200,6 +206,15 @@ export declare const CheckoutSessionEntityStatusEnum: {
200
206
  readonly Completed: "COMPLETED";
201
207
  };
202
208
  export type CheckoutSessionEntityStatusEnum = typeof CheckoutSessionEntityStatusEnum[keyof typeof CheckoutSessionEntityStatusEnum];
209
+ /**
210
+ * @export
211
+ */
212
+ export declare const CheckoutSessionEntityTransactionInitiatorEnum: {
213
+ readonly Mit: "MIT";
214
+ readonly Cit: "CIT";
215
+ readonly Sit: "SIT";
216
+ };
217
+ export type CheckoutSessionEntityTransactionInitiatorEnum = typeof CheckoutSessionEntityTransactionInitiatorEnum[keyof typeof CheckoutSessionEntityTransactionInitiatorEnum];
203
218
  /**
204
219
  * Check if a given object implements the CheckoutSessionEntity interface.
205
220
  */
@@ -26,6 +26,14 @@ export const CheckoutSessionEntityStatusEnum = {
26
26
  Expired: 'EXPIRED',
27
27
  Completed: 'COMPLETED'
28
28
  };
29
+ /**
30
+ * @export
31
+ */
32
+ export const CheckoutSessionEntityTransactionInitiatorEnum = {
33
+ Mit: 'MIT',
34
+ Cit: 'CIT',
35
+ Sit: 'SIT'
36
+ };
29
37
  /**
30
38
  * Check if a given object implements the CheckoutSessionEntity interface.
31
39
  */
@@ -83,6 +91,7 @@ export function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
83
91
  'canStore': !exists(json, 'canStore') ? undefined : json['canStore'],
84
92
  'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
85
93
  'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
94
+ 'transactionInitiator': !exists(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
86
95
  'redirectUrl': !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
87
96
  'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
88
97
  'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
@@ -122,6 +131,7 @@ export function CheckoutSessionEntityToJSON(value) {
122
131
  'canStore': value.canStore,
123
132
  'buyerId': value.buyerId,
124
133
  'externalBuyerId': value.externalBuyerId,
134
+ 'transactionInitiator': value.transactionInitiator,
125
135
  'redirectUrl': value.redirectUrl,
126
136
  'externalTransactionId': value.externalTransactionId,
127
137
  'secCode': value.secCode,
@@ -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.192.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.193.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.192.0",
4
+ "version": "1.193.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",