@channelpayments/node-sdk 1.183.0 → 1.185.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/BillingAddressDto.d.ts +56 -0
- package/dist/cjs/models/{BuyerAddressDto.js → BillingAddressDto.js} +16 -18
- package/dist/cjs/models/CheckoutSessionBaseEntity.d.ts +185 -0
- package/dist/cjs/models/CheckoutSessionBaseEntity.js +127 -0
- package/dist/cjs/models/CheckoutSessionEntity.d.ts +11 -5
- package/dist/cjs/models/CheckoutSessionEntity.js +4 -2
- package/dist/cjs/models/CheckoutSessionItemBaseEntity.d.ts +80 -0
- package/dist/cjs/models/CheckoutSessionItemBaseEntity.js +69 -0
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +12 -0
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +4 -0
- package/dist/cjs/models/CreateCheckoutSessionTransactionDto.d.ts +4 -4
- package/dist/cjs/models/CreateCheckoutSessionTransactionDto.js +4 -4
- package/dist/cjs/models/TransactionEntity.d.ts +3 -3
- package/dist/cjs/models/TransactionEntity.js +3 -3
- package/dist/cjs/models/TransactionPaymentInstrumentBaseEntity.d.ts +136 -0
- package/dist/cjs/models/{PaymentMethodBaseEntity.js → TransactionPaymentInstrumentBaseEntity.js} +14 -14
- package/dist/cjs/models/index.d.ts +4 -2
- package/dist/cjs/models/index.js +4 -2
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/BillingAddressDto.d.ts +56 -0
- package/dist/mjs/models/{BuyerAddressDto.js → BillingAddressDto.js} +12 -14
- package/dist/mjs/models/CheckoutSessionBaseEntity.d.ts +185 -0
- package/dist/mjs/models/CheckoutSessionBaseEntity.js +120 -0
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +11 -5
- package/dist/mjs/models/CheckoutSessionEntity.js +4 -2
- package/dist/mjs/models/CheckoutSessionItemBaseEntity.d.ts +80 -0
- package/dist/mjs/models/CheckoutSessionItemBaseEntity.js +63 -0
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +12 -0
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +4 -0
- package/dist/mjs/models/CreateCheckoutSessionTransactionDto.d.ts +4 -4
- package/dist/mjs/models/CreateCheckoutSessionTransactionDto.js +4 -4
- package/dist/mjs/models/TransactionEntity.d.ts +3 -3
- package/dist/mjs/models/TransactionEntity.js +3 -3
- package/dist/mjs/models/TransactionPaymentInstrumentBaseEntity.d.ts +136 -0
- package/dist/mjs/models/{PaymentMethodBaseEntity.js → TransactionPaymentInstrumentBaseEntity.js} +9 -9
- package/dist/mjs/models/index.d.ts +4 -2
- package/dist/mjs/models/index.js +4 -2
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/BuyerAddressDto.d.ts +0 -56
- package/dist/cjs/models/PaymentMethodBaseEntity.d.ts +0 -136
- package/dist/mjs/models/BuyerAddressDto.d.ts +0 -56
- package/dist/mjs/models/PaymentMethodBaseEntity.d.ts +0 -136
|
@@ -49,6 +49,8 @@ function CreateCheckoutSessionPaymentMethodDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
49
49
|
'number': !(0, runtime_1.exists)(json, 'number') ? undefined : json['number'],
|
|
50
50
|
'securityCode': !(0, runtime_1.exists)(json, 'securityCode') ? undefined : json['securityCode'],
|
|
51
51
|
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
52
|
+
'paymentMethodId': !(0, runtime_1.exists)(json, 'paymentMethodId') ? undefined : json['paymentMethodId'],
|
|
53
|
+
'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
52
54
|
'abaNumber': !(0, runtime_1.exists)(json, 'abaNumber') ? undefined : json['abaNumber'],
|
|
53
55
|
'accountNumber': !(0, runtime_1.exists)(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
54
56
|
'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
|
|
@@ -67,6 +69,8 @@ function CreateCheckoutSessionPaymentMethodDtoToJSON(value) {
|
|
|
67
69
|
'number': value.number,
|
|
68
70
|
'securityCode': value.securityCode,
|
|
69
71
|
'expirationDate': value.expirationDate,
|
|
72
|
+
'paymentMethodId': value.paymentMethodId,
|
|
73
|
+
'store': value.store,
|
|
70
74
|
'abaNumber': value.abaNumber,
|
|
71
75
|
'accountNumber': value.accountNumber,
|
|
72
76
|
'accountType': value.accountType,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { BillingAddressDto } from './BillingAddressDto';
|
|
8
8
|
import type { CreateCheckoutSessionPaymentMethodDto } from './CreateCheckoutSessionPaymentMethodDto';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -37,11 +37,11 @@ export interface CreateCheckoutSessionTransactionDto {
|
|
|
37
37
|
*/
|
|
38
38
|
email: string;
|
|
39
39
|
/**
|
|
40
|
-
* The address
|
|
41
|
-
* @type {
|
|
40
|
+
* The billing address.
|
|
41
|
+
* @type {BillingAddressDto}
|
|
42
42
|
* @memberof CreateCheckoutSessionTransactionDto
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
billingAddress: BillingAddressDto;
|
|
45
45
|
/**
|
|
46
46
|
* The payment method used for the checkout session.
|
|
47
47
|
* @type {CreateCheckoutSessionPaymentMethodDto}
|
|
@@ -13,7 +13,7 @@ exports.CreateCheckoutSessionTransactionDtoFromJSON = CreateCheckoutSessionTrans
|
|
|
13
13
|
exports.CreateCheckoutSessionTransactionDtoFromJSONTyped = CreateCheckoutSessionTransactionDtoFromJSONTyped;
|
|
14
14
|
exports.CreateCheckoutSessionTransactionDtoToJSON = CreateCheckoutSessionTransactionDtoToJSON;
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
|
-
const
|
|
16
|
+
const BillingAddressDto_1 = require("./BillingAddressDto");
|
|
17
17
|
const CreateCheckoutSessionPaymentMethodDto_1 = require("./CreateCheckoutSessionPaymentMethodDto");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the CreateCheckoutSessionTransactionDto interface.
|
|
@@ -24,7 +24,7 @@ function instanceOfCreateCheckoutSessionTransactionDto(value) {
|
|
|
24
24
|
isInstance = isInstance && "givenName" in value;
|
|
25
25
|
isInstance = isInstance && "familyName" in value;
|
|
26
26
|
isInstance = isInstance && "email" in value;
|
|
27
|
-
isInstance = isInstance && "
|
|
27
|
+
isInstance = isInstance && "billingAddress" in value;
|
|
28
28
|
isInstance = isInstance && "paymentMethod" in value;
|
|
29
29
|
return isInstance;
|
|
30
30
|
}
|
|
@@ -40,7 +40,7 @@ function CreateCheckoutSessionTransactionDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
40
40
|
'givenName': json['givenName'],
|
|
41
41
|
'familyName': json['familyName'],
|
|
42
42
|
'email': json['email'],
|
|
43
|
-
'
|
|
43
|
+
'billingAddress': (0, BillingAddressDto_1.BillingAddressDtoFromJSON)(json['billingAddress']),
|
|
44
44
|
'paymentMethod': (0, CreateCheckoutSessionPaymentMethodDto_1.CreateCheckoutSessionPaymentMethodDtoFromJSON)(json['paymentMethod']),
|
|
45
45
|
};
|
|
46
46
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
@@ -57,7 +57,7 @@ function CreateCheckoutSessionTransactionDtoToJSON(value) {
|
|
|
57
57
|
'givenName': value.givenName,
|
|
58
58
|
'familyName': value.familyName,
|
|
59
59
|
'email': value.email,
|
|
60
|
-
'
|
|
60
|
+
'billingAddress': (0, BillingAddressDto_1.BillingAddressDtoToJSON)(value.billingAddress),
|
|
61
61
|
'paymentMethod': (0, CreateCheckoutSessionPaymentMethodDto_1.CreateCheckoutSessionPaymentMethodDtoToJSON)(value.paymentMethod),
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
import type { PaymentMethodBaseEntity } from './PaymentMethodBaseEntity';
|
|
8
7
|
import type { TagEntity } from './TagEntity';
|
|
9
8
|
import type { TransactionFeeDetailsEntity } from './TransactionFeeDetailsEntity';
|
|
9
|
+
import type { TransactionPaymentInstrumentBaseEntity } from './TransactionPaymentInstrumentBaseEntity';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
* @export
|
|
@@ -81,10 +81,10 @@ export interface TransactionEntity {
|
|
|
81
81
|
secCode?: TransactionEntitySecCodeEnum;
|
|
82
82
|
/**
|
|
83
83
|
* The payment method of the transaction.
|
|
84
|
-
* @type {
|
|
84
|
+
* @type {TransactionPaymentInstrumentBaseEntity}
|
|
85
85
|
* @memberof TransactionEntity
|
|
86
86
|
*/
|
|
87
|
-
paymentMethod?:
|
|
87
|
+
paymentMethod?: TransactionPaymentInstrumentBaseEntity;
|
|
88
88
|
/**
|
|
89
89
|
* The raw response code of the transaction.
|
|
90
90
|
* @type {string}
|
|
@@ -14,9 +14,9 @@ exports.TransactionEntityFromJSON = TransactionEntityFromJSON;
|
|
|
14
14
|
exports.TransactionEntityFromJSONTyped = TransactionEntityFromJSONTyped;
|
|
15
15
|
exports.TransactionEntityToJSON = TransactionEntityToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
|
-
const PaymentMethodBaseEntity_1 = require("./PaymentMethodBaseEntity");
|
|
18
17
|
const TagEntity_1 = require("./TagEntity");
|
|
19
18
|
const TransactionFeeDetailsEntity_1 = require("./TransactionFeeDetailsEntity");
|
|
19
|
+
const TransactionPaymentInstrumentBaseEntity_1 = require("./TransactionPaymentInstrumentBaseEntity");
|
|
20
20
|
/**
|
|
21
21
|
* @export
|
|
22
22
|
*/
|
|
@@ -97,7 +97,7 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
97
|
'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : (json['feeDetails'].map(TransactionFeeDetailsEntity_1.TransactionFeeDetailsEntityFromJSON)),
|
|
98
98
|
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
99
99
|
'secCode': !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
|
|
100
|
-
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0,
|
|
100
|
+
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, TransactionPaymentInstrumentBaseEntity_1.TransactionPaymentInstrumentBaseEntityFromJSON)(json['paymentMethod']),
|
|
101
101
|
'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
102
102
|
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
103
103
|
'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
@@ -147,7 +147,7 @@ function TransactionEntityToJSON(value) {
|
|
|
147
147
|
'feeDetails': value.feeDetails === undefined ? undefined : (value.feeDetails.map(TransactionFeeDetailsEntity_1.TransactionFeeDetailsEntityToJSON)),
|
|
148
148
|
'currency': value.currency,
|
|
149
149
|
'secCode': value.secCode,
|
|
150
|
-
'paymentMethod': (0,
|
|
150
|
+
'paymentMethod': (0, TransactionPaymentInstrumentBaseEntity_1.TransactionPaymentInstrumentBaseEntityToJSON)(value.paymentMethod),
|
|
151
151
|
'rawResponseCode': value.rawResponseCode,
|
|
152
152
|
'rawResponseDescription': value.rawResponseDescription,
|
|
153
153
|
'avsResponseCode': value.avsResponseCode,
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface TransactionPaymentInstrumentBaseEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface TransactionPaymentInstrumentBaseEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the payment method.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
17
|
+
*/
|
|
18
|
+
paymentMethodId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The method for the payment method.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
23
|
+
*/
|
|
24
|
+
method: TransactionPaymentInstrumentBaseEntityMethodEnum;
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier of the external payment method.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
29
|
+
*/
|
|
30
|
+
externalPaymentMethodId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The label of the payment method.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
35
|
+
*/
|
|
36
|
+
label?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The scheme of the payment method.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
41
|
+
*/
|
|
42
|
+
scheme?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The expiration date of the payment method.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
47
|
+
*/
|
|
48
|
+
expirationDate?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The currency of the payment method.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
53
|
+
*/
|
|
54
|
+
currency?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The country of the payment method.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
59
|
+
*/
|
|
60
|
+
country?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The bin of the payment method.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
65
|
+
*/
|
|
66
|
+
bin?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The card type of the payment method.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
71
|
+
*/
|
|
72
|
+
cardType?: TransactionPaymentInstrumentBaseEntityCardTypeEnum;
|
|
73
|
+
/**
|
|
74
|
+
* The account holder name of the payment method.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
77
|
+
*/
|
|
78
|
+
accountHolderName?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The account number of the payment method.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
83
|
+
*/
|
|
84
|
+
accountNumber?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The last 4 digits of the bank account.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
89
|
+
*/
|
|
90
|
+
accountEnding?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The account type of the payment method.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
95
|
+
*/
|
|
96
|
+
accountType?: TransactionPaymentInstrumentBaseEntityAccountTypeEnum;
|
|
97
|
+
/**
|
|
98
|
+
* The aba number of the payment method.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof TransactionPaymentInstrumentBaseEntity
|
|
101
|
+
*/
|
|
102
|
+
abaNumber?: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const TransactionPaymentInstrumentBaseEntityMethodEnum: {
|
|
108
|
+
readonly Ach: "ACH";
|
|
109
|
+
readonly Bank: "BANK";
|
|
110
|
+
readonly Card: "CARD";
|
|
111
|
+
};
|
|
112
|
+
export type TransactionPaymentInstrumentBaseEntityMethodEnum = typeof TransactionPaymentInstrumentBaseEntityMethodEnum[keyof typeof TransactionPaymentInstrumentBaseEntityMethodEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const TransactionPaymentInstrumentBaseEntityCardTypeEnum: {
|
|
117
|
+
readonly Credit: "CREDIT";
|
|
118
|
+
readonly Debit: "DEBIT";
|
|
119
|
+
readonly Prepaid: "PREPAID";
|
|
120
|
+
};
|
|
121
|
+
export type TransactionPaymentInstrumentBaseEntityCardTypeEnum = typeof TransactionPaymentInstrumentBaseEntityCardTypeEnum[keyof typeof TransactionPaymentInstrumentBaseEntityCardTypeEnum];
|
|
122
|
+
/**
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export declare const TransactionPaymentInstrumentBaseEntityAccountTypeEnum: {
|
|
126
|
+
readonly Checking: "CHECKING";
|
|
127
|
+
readonly Savings: "SAVINGS";
|
|
128
|
+
};
|
|
129
|
+
export type TransactionPaymentInstrumentBaseEntityAccountTypeEnum = typeof TransactionPaymentInstrumentBaseEntityAccountTypeEnum[keyof typeof TransactionPaymentInstrumentBaseEntityAccountTypeEnum];
|
|
130
|
+
/**
|
|
131
|
+
* Check if a given object implements the TransactionPaymentInstrumentBaseEntity interface.
|
|
132
|
+
*/
|
|
133
|
+
export declare function instanceOfTransactionPaymentInstrumentBaseEntity(value: object): boolean;
|
|
134
|
+
export declare function TransactionPaymentInstrumentBaseEntityFromJSON(json: any): TransactionPaymentInstrumentBaseEntity;
|
|
135
|
+
export declare function TransactionPaymentInstrumentBaseEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPaymentInstrumentBaseEntity;
|
|
136
|
+
export declare function TransactionPaymentInstrumentBaseEntityToJSON(value?: TransactionPaymentInstrumentBaseEntity | null): any;
|
package/dist/cjs/models/{PaymentMethodBaseEntity.js → TransactionPaymentInstrumentBaseEntity.js}
RENAMED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
11
|
+
exports.TransactionPaymentInstrumentBaseEntityAccountTypeEnum = exports.TransactionPaymentInstrumentBaseEntityCardTypeEnum = exports.TransactionPaymentInstrumentBaseEntityMethodEnum = void 0;
|
|
12
|
+
exports.instanceOfTransactionPaymentInstrumentBaseEntity = instanceOfTransactionPaymentInstrumentBaseEntity;
|
|
13
|
+
exports.TransactionPaymentInstrumentBaseEntityFromJSON = TransactionPaymentInstrumentBaseEntityFromJSON;
|
|
14
|
+
exports.TransactionPaymentInstrumentBaseEntityFromJSONTyped = TransactionPaymentInstrumentBaseEntityFromJSONTyped;
|
|
15
|
+
exports.TransactionPaymentInstrumentBaseEntityToJSON = TransactionPaymentInstrumentBaseEntityToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
17
|
/**
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
exports.
|
|
20
|
+
exports.TransactionPaymentInstrumentBaseEntityMethodEnum = {
|
|
21
21
|
Ach: 'ACH',
|
|
22
22
|
Bank: 'BANK',
|
|
23
23
|
Card: 'CARD'
|
|
@@ -25,7 +25,7 @@ exports.PaymentMethodBaseEntityMethodEnum = {
|
|
|
25
25
|
/**
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
|
-
exports.
|
|
28
|
+
exports.TransactionPaymentInstrumentBaseEntityCardTypeEnum = {
|
|
29
29
|
Credit: 'CREDIT',
|
|
30
30
|
Debit: 'DEBIT',
|
|
31
31
|
Prepaid: 'PREPAID'
|
|
@@ -33,23 +33,23 @@ exports.PaymentMethodBaseEntityCardTypeEnum = {
|
|
|
33
33
|
/**
|
|
34
34
|
* @export
|
|
35
35
|
*/
|
|
36
|
-
exports.
|
|
36
|
+
exports.TransactionPaymentInstrumentBaseEntityAccountTypeEnum = {
|
|
37
37
|
Checking: 'CHECKING',
|
|
38
38
|
Savings: 'SAVINGS'
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* Check if a given object implements the
|
|
41
|
+
* Check if a given object implements the TransactionPaymentInstrumentBaseEntity interface.
|
|
42
42
|
*/
|
|
43
|
-
function
|
|
43
|
+
function instanceOfTransactionPaymentInstrumentBaseEntity(value) {
|
|
44
44
|
let isInstance = true;
|
|
45
45
|
isInstance = isInstance && "paymentMethodId" in value;
|
|
46
46
|
isInstance = isInstance && "method" in value;
|
|
47
47
|
return isInstance;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function TransactionPaymentInstrumentBaseEntityFromJSON(json) {
|
|
50
|
+
return TransactionPaymentInstrumentBaseEntityFromJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function TransactionPaymentInstrumentBaseEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
53
|
if ((json === undefined) || (json === null)) {
|
|
54
54
|
return json;
|
|
55
55
|
}
|
|
@@ -72,7 +72,7 @@ function PaymentMethodBaseEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
};
|
|
73
73
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function TransactionPaymentInstrumentBaseEntityToJSON(value) {
|
|
76
76
|
if (value === undefined) {
|
|
77
77
|
return undefined;
|
|
78
78
|
}
|
|
@@ -3,7 +3,7 @@ export * from './AdminCreateTransactionRefundDto';
|
|
|
3
3
|
export * from './AdminVoidTransactionDto';
|
|
4
4
|
export * from './AvailablePaymentMethodEntity';
|
|
5
5
|
export * from './BankDetailsServiceEntity';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './BillingAddressDto';
|
|
7
7
|
export * from './BuyerEntity';
|
|
8
8
|
export * from './BuyersAddressEntity';
|
|
9
9
|
export * from './BuyersEntity';
|
|
@@ -14,7 +14,9 @@ export * from './CaptureTransactionDto';
|
|
|
14
14
|
export * from './CardDetailsServiceEntity';
|
|
15
15
|
export * from './ChangeNotificationEntity';
|
|
16
16
|
export * from './ChangeNotificationsSearchEntity';
|
|
17
|
+
export * from './CheckoutSessionBaseEntity';
|
|
17
18
|
export * from './CheckoutSessionEntity';
|
|
19
|
+
export * from './CheckoutSessionItemBaseEntity';
|
|
18
20
|
export * from './CheckoutSessionItemEntity';
|
|
19
21
|
export * from './ConnectorServiceTokenEntity';
|
|
20
22
|
export * from './CreateBuyerAddressDto';
|
|
@@ -68,7 +70,6 @@ export * from './MerchantThemeDto';
|
|
|
68
70
|
export * from './MerchantThemeEntity';
|
|
69
71
|
export * from './MerchantThemeLogoDto';
|
|
70
72
|
export * from './MerchantThemeLogoEntity';
|
|
71
|
-
export * from './PaymentMethodBaseEntity';
|
|
72
73
|
export * from './PaymentMethodDto';
|
|
73
74
|
export * from './PaymentMethodEntity';
|
|
74
75
|
export * from './PaymentMethodFeeDetailsEntity';
|
|
@@ -82,6 +83,7 @@ export * from './TransactionEntity';
|
|
|
82
83
|
export * from './TransactionFeeDetailsEntity';
|
|
83
84
|
export * from './TransactionNoteEntity';
|
|
84
85
|
export * from './TransactionNoteHistoryEntity';
|
|
86
|
+
export * from './TransactionPaymentInstrumentBaseEntity';
|
|
85
87
|
export * from './TransactionRefundBaseEntity';
|
|
86
88
|
export * from './TransactionRefundEntity';
|
|
87
89
|
export * from './TransactionRefundsSearchEntity';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -21,7 +21,7 @@ __exportStar(require("./AdminCreateTransactionRefundDto"), exports);
|
|
|
21
21
|
__exportStar(require("./AdminVoidTransactionDto"), exports);
|
|
22
22
|
__exportStar(require("./AvailablePaymentMethodEntity"), exports);
|
|
23
23
|
__exportStar(require("./BankDetailsServiceEntity"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./BillingAddressDto"), exports);
|
|
25
25
|
__exportStar(require("./BuyerEntity"), exports);
|
|
26
26
|
__exportStar(require("./BuyersAddressEntity"), exports);
|
|
27
27
|
__exportStar(require("./BuyersEntity"), exports);
|
|
@@ -32,7 +32,9 @@ __exportStar(require("./CaptureTransactionDto"), exports);
|
|
|
32
32
|
__exportStar(require("./CardDetailsServiceEntity"), exports);
|
|
33
33
|
__exportStar(require("./ChangeNotificationEntity"), exports);
|
|
34
34
|
__exportStar(require("./ChangeNotificationsSearchEntity"), exports);
|
|
35
|
+
__exportStar(require("./CheckoutSessionBaseEntity"), exports);
|
|
35
36
|
__exportStar(require("./CheckoutSessionEntity"), exports);
|
|
37
|
+
__exportStar(require("./CheckoutSessionItemBaseEntity"), exports);
|
|
36
38
|
__exportStar(require("./CheckoutSessionItemEntity"), exports);
|
|
37
39
|
__exportStar(require("./ConnectorServiceTokenEntity"), exports);
|
|
38
40
|
__exportStar(require("./CreateBuyerAddressDto"), exports);
|
|
@@ -86,7 +88,6 @@ __exportStar(require("./MerchantThemeDto"), exports);
|
|
|
86
88
|
__exportStar(require("./MerchantThemeEntity"), exports);
|
|
87
89
|
__exportStar(require("./MerchantThemeLogoDto"), exports);
|
|
88
90
|
__exportStar(require("./MerchantThemeLogoEntity"), exports);
|
|
89
|
-
__exportStar(require("./PaymentMethodBaseEntity"), exports);
|
|
90
91
|
__exportStar(require("./PaymentMethodDto"), exports);
|
|
91
92
|
__exportStar(require("./PaymentMethodEntity"), exports);
|
|
92
93
|
__exportStar(require("./PaymentMethodFeeDetailsEntity"), exports);
|
|
@@ -100,6 +101,7 @@ __exportStar(require("./TransactionEntity"), exports);
|
|
|
100
101
|
__exportStar(require("./TransactionFeeDetailsEntity"), exports);
|
|
101
102
|
__exportStar(require("./TransactionNoteEntity"), exports);
|
|
102
103
|
__exportStar(require("./TransactionNoteHistoryEntity"), exports);
|
|
104
|
+
__exportStar(require("./TransactionPaymentInstrumentBaseEntity"), exports);
|
|
103
105
|
__exportStar(require("./TransactionRefundBaseEntity"), exports);
|
|
104
106
|
__exportStar(require("./TransactionRefundEntity"), exports);
|
|
105
107
|
__exportStar(require("./TransactionRefundsSearchEntity"), exports);
|
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.185.0";
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface BillingAddressDto
|
|
11
|
+
*/
|
|
12
|
+
export interface BillingAddressDto {
|
|
13
|
+
/**
|
|
14
|
+
* The city of the account holder address.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof BillingAddressDto
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The street address of the account holder.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BillingAddressDto
|
|
23
|
+
*/
|
|
24
|
+
streetAddress: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code of the account holder address.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BillingAddressDto
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The country code of the account holder address.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BillingAddressDto
|
|
35
|
+
*/
|
|
36
|
+
countryCode?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The state code of the account holder address.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BillingAddressDto
|
|
41
|
+
*/
|
|
42
|
+
subdivisionCode?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The second line of the street address of the account holder.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BillingAddressDto
|
|
47
|
+
*/
|
|
48
|
+
streetAddress2?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the BillingAddressDto interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfBillingAddressDto(value: object): boolean;
|
|
54
|
+
export declare function BillingAddressDtoFromJSON(json: any): BillingAddressDto;
|
|
55
|
+
export declare function BillingAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAddressDto;
|
|
56
|
+
export declare function BillingAddressDtoToJSON(value?: BillingAddressDto | null): any;
|
|
@@ -8,35 +8,33 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
/**
|
|
11
|
-
* Check if a given object implements the
|
|
11
|
+
* Check if a given object implements the BillingAddressDto interface.
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
13
|
+
export function instanceOfBillingAddressDto(value) {
|
|
14
14
|
let isInstance = true;
|
|
15
|
-
isInstance = isInstance && "streetAddress" in value;
|
|
16
15
|
isInstance = isInstance && "city" in value;
|
|
17
|
-
isInstance = isInstance && "
|
|
16
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
18
17
|
isInstance = isInstance && "postalCode" in value;
|
|
19
|
-
isInstance = isInstance && "countryCode" in value;
|
|
20
18
|
return isInstance;
|
|
21
19
|
}
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
20
|
+
export function BillingAddressDtoFromJSON(json) {
|
|
21
|
+
return BillingAddressDtoFromJSONTyped(json, false);
|
|
24
22
|
}
|
|
25
|
-
export function
|
|
23
|
+
export function BillingAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
24
|
if ((json === undefined) || (json === null)) {
|
|
27
25
|
return json;
|
|
28
26
|
}
|
|
29
27
|
const typed = {
|
|
30
|
-
'streetAddress': json['streetAddress'],
|
|
31
28
|
'city': json['city'],
|
|
32
|
-
'
|
|
29
|
+
'streetAddress': json['streetAddress'],
|
|
33
30
|
'postalCode': json['postalCode'],
|
|
34
|
-
'countryCode': json['countryCode'],
|
|
31
|
+
'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
|
|
32
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
35
33
|
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
36
34
|
};
|
|
37
35
|
return removeNullUndefined(typed);
|
|
38
36
|
}
|
|
39
|
-
export function
|
|
37
|
+
export function BillingAddressDtoToJSON(value) {
|
|
40
38
|
if (value === undefined) {
|
|
41
39
|
return undefined;
|
|
42
40
|
}
|
|
@@ -44,11 +42,11 @@ export function BuyerAddressDtoToJSON(value) {
|
|
|
44
42
|
return null;
|
|
45
43
|
}
|
|
46
44
|
return {
|
|
47
|
-
'streetAddress': value.streetAddress,
|
|
48
45
|
'city': value.city,
|
|
49
|
-
'
|
|
46
|
+
'streetAddress': value.streetAddress,
|
|
50
47
|
'postalCode': value.postalCode,
|
|
51
48
|
'countryCode': value.countryCode,
|
|
49
|
+
'subdivisionCode': value.subdivisionCode,
|
|
52
50
|
'streetAddress2': value.streetAddress2,
|
|
53
51
|
};
|
|
54
52
|
}
|