@channelpayments/node-sdk 1.212.0 → 1.213.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.
@@ -163,6 +163,12 @@ export interface CheckoutSessionBaseEntity {
163
163
  * @memberof CheckoutSessionBaseEntity
164
164
  */
165
165
  transactionInitiator?: CheckoutSessionBaseEntityTransactionInitiatorEnum;
166
+ /**
167
+ * The origin of the checkout session request.
168
+ * @type {string}
169
+ * @memberof CheckoutSessionBaseEntity
170
+ */
171
+ origin?: string;
166
172
  }
167
173
  /**
168
174
  * @export
@@ -98,6 +98,7 @@ function CheckoutSessionBaseEntityFromJSONTyped(json, ignoreDiscriminator) {
98
98
  buyerId: !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
99
99
  externalBuyerId: !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
100
100
  transactionInitiator: !(0, runtime_1.exists)(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
101
+ origin: !(0, runtime_1.exists)(json, 'origin') ? undefined : json['origin'],
101
102
  };
102
103
  return (0, runtime_1.removeNullUndefined)(typed);
103
104
  }
@@ -134,5 +135,6 @@ function CheckoutSessionBaseEntityToJSON(value) {
134
135
  buyerId: value.buyerId,
135
136
  externalBuyerId: value.externalBuyerId,
136
137
  transactionInitiator: value.transactionInitiator,
138
+ origin: value.origin,
137
139
  };
138
140
  }
@@ -163,6 +163,12 @@ export interface CheckoutSessionEntity {
163
163
  * @memberof CheckoutSessionEntity
164
164
  */
165
165
  transactionInitiator?: CheckoutSessionEntityTransactionInitiatorEnum;
166
+ /**
167
+ * The origin of the checkout session request.
168
+ * @type {string}
169
+ * @memberof CheckoutSessionEntity
170
+ */
171
+ origin?: string;
166
172
  /**
167
173
  *
168
174
  * @type {string}
@@ -98,6 +98,7 @@ function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
98
98
  buyerId: !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
99
99
  externalBuyerId: !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
100
100
  transactionInitiator: !(0, runtime_1.exists)(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
101
+ origin: !(0, runtime_1.exists)(json, 'origin') ? undefined : json['origin'],
101
102
  redirectUrl: !(0, runtime_1.exists)(json, 'redirectUrl') ? undefined : json['redirectUrl'],
102
103
  externalTransactionId: !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
103
104
  secCode: !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
@@ -138,6 +139,7 @@ function CheckoutSessionEntityToJSON(value) {
138
139
  buyerId: value.buyerId,
139
140
  externalBuyerId: value.externalBuyerId,
140
141
  transactionInitiator: value.transactionInitiator,
142
+ origin: value.origin,
141
143
  redirectUrl: value.redirectUrl,
142
144
  externalTransactionId: value.externalTransactionId,
143
145
  secCode: value.secCode,
@@ -90,6 +90,12 @@ export interface CreateCheckoutSessionDto {
90
90
  * @memberof CreateCheckoutSessionDto
91
91
  */
92
92
  tags?: Array<TagDto>;
93
+ /**
94
+ * The fully qualified origin (scheme + host) of the embedding website, e.g., https://merchant.com
95
+ * @type {string}
96
+ * @memberof CreateCheckoutSessionDto
97
+ */
98
+ origin?: string;
93
99
  }
94
100
  /**
95
101
  * @export
@@ -62,6 +62,7 @@ function CreateCheckoutSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
62
62
  duration: !(0, runtime_1.exists)(json, 'duration') ? undefined : json['duration'],
63
63
  externalTransactionId: !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
64
64
  tags: !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'].map(TagDto_1.TagDtoFromJSON),
65
+ origin: !(0, runtime_1.exists)(json, 'origin') ? undefined : json['origin'],
65
66
  };
66
67
  return (0, runtime_1.removeNullUndefined)(typed);
67
68
  }
@@ -86,5 +87,6 @@ function CreateCheckoutSessionDtoToJSON(value) {
86
87
  duration: value.duration,
87
88
  externalTransactionId: value.externalTransactionId,
88
89
  tags: value.tags === undefined ? undefined : value.tags.map(TagDto_1.TagDtoToJSON),
90
+ origin: value.origin,
89
91
  };
90
92
  }
@@ -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.212.0';
117
+ context.headers['user-agent'] = '@channelpayments/node-sdk/v1.213.0';
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -163,6 +163,12 @@ export interface CheckoutSessionBaseEntity {
163
163
  * @memberof CheckoutSessionBaseEntity
164
164
  */
165
165
  transactionInitiator?: CheckoutSessionBaseEntityTransactionInitiatorEnum;
166
+ /**
167
+ * The origin of the checkout session request.
168
+ * @type {string}
169
+ * @memberof CheckoutSessionBaseEntity
170
+ */
171
+ origin?: string;
166
172
  }
167
173
  /**
168
174
  * @export
@@ -91,6 +91,7 @@ export function CheckoutSessionBaseEntityFromJSONTyped(json, ignoreDiscriminator
91
91
  buyerId: !exists(json, 'buyerId') ? undefined : json['buyerId'],
92
92
  externalBuyerId: !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
93
93
  transactionInitiator: !exists(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
94
+ origin: !exists(json, 'origin') ? undefined : json['origin'],
94
95
  };
95
96
  return removeNullUndefined(typed);
96
97
  }
@@ -127,5 +128,6 @@ export function CheckoutSessionBaseEntityToJSON(value) {
127
128
  buyerId: value.buyerId,
128
129
  externalBuyerId: value.externalBuyerId,
129
130
  transactionInitiator: value.transactionInitiator,
131
+ origin: value.origin,
130
132
  };
131
133
  }
@@ -163,6 +163,12 @@ export interface CheckoutSessionEntity {
163
163
  * @memberof CheckoutSessionEntity
164
164
  */
165
165
  transactionInitiator?: CheckoutSessionEntityTransactionInitiatorEnum;
166
+ /**
167
+ * The origin of the checkout session request.
168
+ * @type {string}
169
+ * @memberof CheckoutSessionEntity
170
+ */
171
+ origin?: string;
166
172
  /**
167
173
  *
168
174
  * @type {string}
@@ -91,6 +91,7 @@ export function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
91
91
  buyerId: !exists(json, 'buyerId') ? undefined : json['buyerId'],
92
92
  externalBuyerId: !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
93
93
  transactionInitiator: !exists(json, 'transactionInitiator') ? undefined : json['transactionInitiator'],
94
+ origin: !exists(json, 'origin') ? undefined : json['origin'],
94
95
  redirectUrl: !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
95
96
  externalTransactionId: !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
96
97
  secCode: !exists(json, 'secCode') ? undefined : json['secCode'],
@@ -131,6 +132,7 @@ export function CheckoutSessionEntityToJSON(value) {
131
132
  buyerId: value.buyerId,
132
133
  externalBuyerId: value.externalBuyerId,
133
134
  transactionInitiator: value.transactionInitiator,
135
+ origin: value.origin,
134
136
  redirectUrl: value.redirectUrl,
135
137
  externalTransactionId: value.externalTransactionId,
136
138
  secCode: value.secCode,
@@ -90,6 +90,12 @@ export interface CreateCheckoutSessionDto {
90
90
  * @memberof CreateCheckoutSessionDto
91
91
  */
92
92
  tags?: Array<TagDto>;
93
+ /**
94
+ * The fully qualified origin (scheme + host) of the embedding website, e.g., https://merchant.com
95
+ * @type {string}
96
+ * @memberof CreateCheckoutSessionDto
97
+ */
98
+ origin?: string;
93
99
  }
94
100
  /**
95
101
  * @export
@@ -55,6 +55,7 @@ export function CreateCheckoutSessionDtoFromJSONTyped(json, ignoreDiscriminator)
55
55
  duration: !exists(json, 'duration') ? undefined : json['duration'],
56
56
  externalTransactionId: !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
57
57
  tags: !exists(json, 'tags') ? undefined : json['tags'].map(TagDtoFromJSON),
58
+ origin: !exists(json, 'origin') ? undefined : json['origin'],
58
59
  };
59
60
  return removeNullUndefined(typed);
60
61
  }
@@ -79,5 +80,6 @@ export function CreateCheckoutSessionDtoToJSON(value) {
79
80
  duration: value.duration,
80
81
  externalTransactionId: value.externalTransactionId,
81
82
  tags: value.tags === undefined ? undefined : value.tags.map(TagDtoToJSON),
83
+ origin: value.origin,
82
84
  };
83
85
  }
@@ -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.212.0';
67
+ context.headers['user-agent'] = '@channelpayments/node-sdk/v1.213.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.212.0",
4
+ "version": "1.213.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",