@channelpayments/node-sdk 1.189.0 → 1.190.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/CheckoutSessionEntity.d.ts +6 -0
- package/dist/cjs/models/CheckoutSessionEntity.js +3 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +6 -0
- package/dist/mjs/models/CheckoutSessionEntity.js +3 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -55,6 +55,7 @@ function instanceOfCheckoutSessionEntity(value) {
|
|
|
55
55
|
isInstance = isInstance && "cancelRedirectUrl" in value;
|
|
56
56
|
isInstance = isInstance && "country" in value;
|
|
57
57
|
isInstance = isInstance && "canExtend" in value;
|
|
58
|
+
isInstance = isInstance && "excludeCFee" in value;
|
|
58
59
|
return isInstance;
|
|
59
60
|
}
|
|
60
61
|
function CheckoutSessionEntityFromJSON(json) {
|
|
@@ -92,6 +93,7 @@ function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
93
|
'redirectUrl': !(0, runtime_1.exists)(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
93
94
|
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
94
95
|
'secCode': !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
|
|
96
|
+
'excludeCFee': json['excludeCFee'],
|
|
95
97
|
};
|
|
96
98
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
97
99
|
}
|
|
@@ -130,5 +132,6 @@ function CheckoutSessionEntityToJSON(value) {
|
|
|
130
132
|
'redirectUrl': value.redirectUrl,
|
|
131
133
|
'externalTransactionId': value.externalTransactionId,
|
|
132
134
|
'secCode': value.secCode,
|
|
135
|
+
'excludeCFee': value.excludeCFee,
|
|
133
136
|
};
|
|
134
137
|
}
|
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.190.0";
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -48,6 +48,7 @@ export function instanceOfCheckoutSessionEntity(value) {
|
|
|
48
48
|
isInstance = isInstance && "cancelRedirectUrl" in value;
|
|
49
49
|
isInstance = isInstance && "country" in value;
|
|
50
50
|
isInstance = isInstance && "canExtend" in value;
|
|
51
|
+
isInstance = isInstance && "excludeCFee" in value;
|
|
51
52
|
return isInstance;
|
|
52
53
|
}
|
|
53
54
|
export function CheckoutSessionEntityFromJSON(json) {
|
|
@@ -85,6 +86,7 @@ export function CheckoutSessionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
86
|
'redirectUrl': !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
86
87
|
'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
87
88
|
'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
|
|
89
|
+
'excludeCFee': json['excludeCFee'],
|
|
88
90
|
};
|
|
89
91
|
return removeNullUndefined(typed);
|
|
90
92
|
}
|
|
@@ -123,5 +125,6 @@ export function CheckoutSessionEntityToJSON(value) {
|
|
|
123
125
|
'redirectUrl': value.redirectUrl,
|
|
124
126
|
'externalTransactionId': value.externalTransactionId,
|
|
125
127
|
'secCode': value.secCode,
|
|
128
|
+
'excludeCFee': value.excludeCFee,
|
|
126
129
|
};
|
|
127
130
|
}
|
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.190.0";
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|