@channelpayments/node-sdk 1.194.0 → 1.196.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/BillingDetailsDto1.d.ts +45 -0
- package/dist/cjs/models/BillingDetailsDto1.js +56 -0
- package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantDto.js +3 -3
- package/dist/cjs/models/CreateTransactionRequestDto.d.ts +19 -1
- package/dist/cjs/models/CreateTransactionRequestDto.js +6 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
- package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/cjs/models/MerchantSettingsDto.js +2 -2
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
- package/dist/cjs/models/PaymentMethodDto.d.ts +7 -0
- package/dist/cjs/models/PaymentMethodDto.js +3 -0
- package/dist/cjs/models/TransactionEntity.d.ts +57 -33
- package/dist/cjs/models/TransactionEntity.js +20 -12
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
- package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
- package/dist/cjs/models/index.d.ts +2 -4
- package/dist/cjs/models/index.js +2 -4
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/BillingDetailsDto1.d.ts +45 -0
- package/dist/mjs/models/BillingDetailsDto1.js +50 -0
- package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantDto.js +3 -3
- package/dist/mjs/models/CreateTransactionRequestDto.d.ts +19 -1
- package/dist/mjs/models/CreateTransactionRequestDto.js +6 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
- package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/mjs/models/MerchantSettingsDto.js +2 -2
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
- package/dist/mjs/models/PaymentMethodDto.d.ts +7 -0
- package/dist/mjs/models/PaymentMethodDto.js +3 -0
- package/dist/mjs/models/TransactionEntity.d.ts +57 -33
- package/dist/mjs/models/TransactionEntity.js +20 -12
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
- package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
- package/dist/mjs/models/index.d.ts +2 -4
- package/dist/mjs/models/index.js +2 -4
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
- package/dist/cjs/models/AdminCreateTransactionRefundDto.js +0 -84
- package/dist/cjs/models/AdminVoidTransactionDto.d.ts +0 -32
- package/dist/cjs/models/AdminVoidTransactionDto.js +0 -49
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
- package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/cjs/models/MerchantAccountEntity.js +0 -143
- package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
- package/dist/mjs/models/AdminCreateTransactionRefundDto.js +0 -77
- package/dist/mjs/models/AdminVoidTransactionDto.d.ts +0 -32
- package/dist/mjs/models/AdminVoidTransactionDto.js +0 -43
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
- package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/mjs/models/MerchantAccountEntity.js +0 -136
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BillingAddressDto } from './BillingAddressDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BillingDetailsDto1
|
|
12
|
+
*/
|
|
13
|
+
export interface BillingDetailsDto1 {
|
|
14
|
+
/**
|
|
15
|
+
* The address of the account holder.
|
|
16
|
+
* @type {BillingAddressDto}
|
|
17
|
+
* @memberof BillingDetailsDto1
|
|
18
|
+
*/
|
|
19
|
+
billingAddress: BillingAddressDto;
|
|
20
|
+
/**
|
|
21
|
+
* The email address of the account holder.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BillingDetailsDto1
|
|
24
|
+
*/
|
|
25
|
+
email: string;
|
|
26
|
+
/**
|
|
27
|
+
* The first name of the account holder.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BillingDetailsDto1
|
|
30
|
+
*/
|
|
31
|
+
givenName: string;
|
|
32
|
+
/**
|
|
33
|
+
* The last name of the account holder.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BillingDetailsDto1
|
|
36
|
+
*/
|
|
37
|
+
familyName: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the BillingDetailsDto1 interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfBillingDetailsDto1(value: object): boolean;
|
|
43
|
+
export declare function BillingDetailsDto1FromJSON(json: any): BillingDetailsDto1;
|
|
44
|
+
export declare function BillingDetailsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetailsDto1;
|
|
45
|
+
export declare function BillingDetailsDto1ToJSON(value?: BillingDetailsDto1 | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.instanceOfBillingDetailsDto1 = instanceOfBillingDetailsDto1;
|
|
12
|
+
exports.BillingDetailsDto1FromJSON = BillingDetailsDto1FromJSON;
|
|
13
|
+
exports.BillingDetailsDto1FromJSONTyped = BillingDetailsDto1FromJSONTyped;
|
|
14
|
+
exports.BillingDetailsDto1ToJSON = BillingDetailsDto1ToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const BillingAddressDto_1 = require("./BillingAddressDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BillingDetailsDto1 interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBillingDetailsDto1(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "billingAddress" in value;
|
|
23
|
+
isInstance = isInstance && "email" in value;
|
|
24
|
+
isInstance = isInstance && "givenName" in value;
|
|
25
|
+
isInstance = isInstance && "familyName" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
function BillingDetailsDto1FromJSON(json) {
|
|
29
|
+
return BillingDetailsDto1FromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BillingDetailsDto1FromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
const typed = {
|
|
36
|
+
'billingAddress': (0, BillingAddressDto_1.BillingAddressDtoFromJSON)(json['billingAddress']),
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'givenName': json['givenName'],
|
|
39
|
+
'familyName': json['familyName'],
|
|
40
|
+
};
|
|
41
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
42
|
+
}
|
|
43
|
+
function BillingDetailsDto1ToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'billingAddress': (0, BillingAddressDto_1.BillingAddressDtoToJSON)(value.billingAddress),
|
|
52
|
+
'email': value.email,
|
|
53
|
+
'givenName': value.givenName,
|
|
54
|
+
'familyName': value.familyName,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 { BillingDetailsDto1 } from './BillingDetailsDto1';
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @export
|
|
@@ -64,6 +65,12 @@ export interface CreateCheckoutSessionPaymentMethodDto {
|
|
|
64
65
|
* @memberof CreateCheckoutSessionPaymentMethodDto
|
|
65
66
|
*/
|
|
66
67
|
accountType?: CreateCheckoutSessionPaymentMethodDtoAccountTypeEnum;
|
|
68
|
+
/**
|
|
69
|
+
* The billing details.
|
|
70
|
+
* @type {BillingDetailsDto1}
|
|
71
|
+
* @memberof CreateCheckoutSessionPaymentMethodDto
|
|
72
|
+
*/
|
|
73
|
+
billingDetails?: BillingDetailsDto1;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* @export
|
|
@@ -14,6 +14,7 @@ exports.CreateCheckoutSessionPaymentMethodDtoFromJSON = CreateCheckoutSessionPay
|
|
|
14
14
|
exports.CreateCheckoutSessionPaymentMethodDtoFromJSONTyped = CreateCheckoutSessionPaymentMethodDtoFromJSONTyped;
|
|
15
15
|
exports.CreateCheckoutSessionPaymentMethodDtoToJSON = CreateCheckoutSessionPaymentMethodDtoToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
|
+
const BillingDetailsDto1_1 = require("./BillingDetailsDto1");
|
|
17
18
|
/**
|
|
18
19
|
* @export
|
|
19
20
|
*/
|
|
@@ -54,6 +55,7 @@ function CreateCheckoutSessionPaymentMethodDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
54
55
|
'abaNumber': !(0, runtime_1.exists)(json, 'abaNumber') ? undefined : json['abaNumber'],
|
|
55
56
|
'accountNumber': !(0, runtime_1.exists)(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
56
57
|
'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
|
|
58
|
+
'billingDetails': !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsDto1_1.BillingDetailsDto1FromJSON)(json['billingDetails']),
|
|
57
59
|
};
|
|
58
60
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
59
61
|
}
|
|
@@ -74,5 +76,6 @@ function CreateCheckoutSessionPaymentMethodDtoToJSON(value) {
|
|
|
74
76
|
'abaNumber': value.abaNumber,
|
|
75
77
|
'accountNumber': value.accountNumber,
|
|
76
78
|
'accountType': value.accountType,
|
|
79
|
+
'billingDetails': (0, BillingDetailsDto1_1.BillingDetailsDto1ToJSON)(value.billingDetails),
|
|
77
80
|
};
|
|
78
81
|
}
|
|
@@ -48,6 +48,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
48
48
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
49
49
|
*/
|
|
50
50
|
cardSchemes?: Array<CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum>;
|
|
51
|
+
/**
|
|
52
|
+
* Source of card data for this merchant account
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
55
|
+
*/
|
|
56
|
+
dataSource?: CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum;
|
|
51
57
|
/**
|
|
52
58
|
* The accepted currencies
|
|
53
59
|
* @type {Array<string>}
|
|
@@ -137,6 +143,14 @@ export declare const CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum: {
|
|
|
137
143
|
readonly Maestro: "MAESTRO";
|
|
138
144
|
};
|
|
139
145
|
export type CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum];
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export declare const CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum: {
|
|
150
|
+
readonly Moto: "MOTO";
|
|
151
|
+
readonly Internet: "INTERNET";
|
|
152
|
+
};
|
|
153
|
+
export type CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum];
|
|
140
154
|
/**
|
|
141
155
|
* @export
|
|
142
156
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
|
|
11
|
+
exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
|
|
12
12
|
exports.instanceOfCreateMerchantAccountWithoutMerchantIdDto = instanceOfCreateMerchantAccountWithoutMerchantIdDto;
|
|
13
13
|
exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSON = CreateMerchantAccountWithoutMerchantIdDtoFromJSON;
|
|
14
14
|
exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped = CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped;
|
|
@@ -52,6 +52,13 @@ exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = {
|
|
|
52
52
|
DinersClub: 'DINERS_CLUB',
|
|
53
53
|
Maestro: 'MAESTRO'
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
exports.CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = {
|
|
59
|
+
Moto: 'MOTO',
|
|
60
|
+
Internet: 'INTERNET'
|
|
61
|
+
};
|
|
55
62
|
/**
|
|
56
63
|
* @export
|
|
57
64
|
*/
|
|
@@ -86,6 +93,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDisc
|
|
|
86
93
|
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
|
|
87
94
|
'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
88
95
|
'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
96
|
+
'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
89
97
|
'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
|
|
90
98
|
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
91
99
|
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
@@ -111,6 +119,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
|
|
|
111
119
|
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
|
|
112
120
|
'cardTypes': value.cardTypes,
|
|
113
121
|
'cardSchemes': value.cardSchemes,
|
|
122
|
+
'dataSource': value.dataSource,
|
|
114
123
|
'currencies': value.currencies,
|
|
115
124
|
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
116
125
|
'mcc': value.mcc,
|
|
@@ -47,9 +47,9 @@ export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum: {
|
|
49
49
|
readonly Epay: "EPAY";
|
|
50
|
-
readonly Nmi: "NMI";
|
|
51
50
|
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
52
51
|
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
52
|
+
readonly Tsys: "TSYS";
|
|
53
53
|
};
|
|
54
54
|
export type CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum[keyof typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum];
|
|
55
55
|
/**
|
|
@@ -20,9 +20,9 @@ const CreateMerchantConnectorCredentialsDto_1 = require("./CreateMerchantConnect
|
|
|
20
20
|
*/
|
|
21
21
|
exports.CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = {
|
|
22
22
|
Epay: 'EPAY',
|
|
23
|
-
Nmi: 'NMI',
|
|
24
23
|
AuthorizeNet: 'AUTHORIZE_NET',
|
|
25
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
24
|
+
ChannelPayments: 'CHANNEL_PAYMENTS',
|
|
25
|
+
Tsys: 'TSYS'
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @export
|
|
@@ -10,12 +10,6 @@
|
|
|
10
10
|
* @interface CreateMerchantCredentialsDto
|
|
11
11
|
*/
|
|
12
12
|
export interface CreateMerchantCredentialsDto {
|
|
13
|
-
/**
|
|
14
|
-
* The ID of the merchant.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantCredentialsDto
|
|
17
|
-
*/
|
|
18
|
-
merchantId: string;
|
|
19
13
|
/**
|
|
20
14
|
* The given reference name.
|
|
21
15
|
* @type {string}
|
|
@@ -18,7 +18,6 @@ const runtime_1 = require("../runtime");
|
|
|
18
18
|
*/
|
|
19
19
|
function instanceOfCreateMerchantCredentialsDto(value) {
|
|
20
20
|
let isInstance = true;
|
|
21
|
-
isInstance = isInstance && "merchantId" in value;
|
|
22
21
|
isInstance = isInstance && "credentialsName" in value;
|
|
23
22
|
return isInstance;
|
|
24
23
|
}
|
|
@@ -30,7 +29,6 @@ function CreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
29
|
return json;
|
|
31
30
|
}
|
|
32
31
|
const typed = {
|
|
33
|
-
'merchantId': json['merchantId'],
|
|
34
32
|
'credentialsName': json['credentialsName'],
|
|
35
33
|
};
|
|
36
34
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
@@ -43,7 +41,6 @@ function CreateMerchantCredentialsDtoToJSON(value) {
|
|
|
43
41
|
return null;
|
|
44
42
|
}
|
|
45
43
|
return {
|
|
46
|
-
'merchantId': value.merchantId,
|
|
47
44
|
'credentialsName': value.credentialsName,
|
|
48
45
|
};
|
|
49
46
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
8
8
|
import type { CreateMerchantAddressDto } from './CreateMerchantAddressDto';
|
|
9
|
-
import type {
|
|
9
|
+
import type { MerchantSettingsBaseDto } from './MerchantSettingsBaseDto';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
* @export
|
|
@@ -57,10 +57,10 @@ export interface CreateMerchantDto {
|
|
|
57
57
|
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
58
58
|
/**
|
|
59
59
|
* The merchant settings.
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {MerchantSettingsBaseDto}
|
|
61
61
|
* @memberof CreateMerchantDto
|
|
62
62
|
*/
|
|
63
|
-
merchantSettings?:
|
|
63
|
+
merchantSettings?: MerchantSettingsBaseDto;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
@@ -15,7 +15,7 @@ exports.CreateMerchantDtoToJSON = CreateMerchantDtoToJSON;
|
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
16
|
const CreateMerchantAccountWithoutMerchantIdDto_1 = require("./CreateMerchantAccountWithoutMerchantIdDto");
|
|
17
17
|
const CreateMerchantAddressDto_1 = require("./CreateMerchantAddressDto");
|
|
18
|
-
const
|
|
18
|
+
const MerchantSettingsBaseDto_1 = require("./MerchantSettingsBaseDto");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
21
21
|
*/
|
|
@@ -42,7 +42,7 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
|
|
43
43
|
'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
44
44
|
'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
45
|
-
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0,
|
|
45
|
+
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoFromJSON)(json['merchantSettings']),
|
|
46
46
|
};
|
|
47
47
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
48
48
|
}
|
|
@@ -61,6 +61,6 @@ function CreateMerchantDtoToJSON(value) {
|
|
|
61
61
|
'website': value.website,
|
|
62
62
|
'parentMerchantId': value.parentMerchantId,
|
|
63
63
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
64
|
-
'merchantSettings': (0,
|
|
64
|
+
'merchantSettings': (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoToJSON)(value.merchantSettings),
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -13,11 +13,17 @@ import type { TagDto } from './TagDto';
|
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateTransactionRequestDto {
|
|
15
15
|
/**
|
|
16
|
-
* The amount to charge the buyer.
|
|
16
|
+
* The total amount to charge the buyer.
|
|
17
17
|
* @type {number}
|
|
18
18
|
* @memberof CreateTransactionRequestDto
|
|
19
19
|
*/
|
|
20
20
|
amount: number;
|
|
21
|
+
/**
|
|
22
|
+
* The total sales tax of the transaction.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof CreateTransactionRequestDto
|
|
25
|
+
*/
|
|
26
|
+
salesTax?: number;
|
|
21
27
|
/**
|
|
22
28
|
* The ISO-4217 currency code of the amount to charge the buyer.
|
|
23
29
|
* @type {string}
|
|
@@ -54,6 +60,12 @@ export interface CreateTransactionRequestDto {
|
|
|
54
60
|
* @memberof CreateTransactionRequestDto
|
|
55
61
|
*/
|
|
56
62
|
externalTransactionId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Optional alphanumeric field (a-z, A-Z, 0-9, space).
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateTransactionRequestDto
|
|
67
|
+
*/
|
|
68
|
+
purchaseOrderId?: string;
|
|
57
69
|
/**
|
|
58
70
|
* The SEC code of the ACH transaction. Must be unset if method is not BANK.
|
|
59
71
|
* @type {string}
|
|
@@ -66,6 +78,12 @@ export interface CreateTransactionRequestDto {
|
|
|
66
78
|
* @memberof CreateTransactionRequestDto
|
|
67
79
|
*/
|
|
68
80
|
tags?: Array<TagDto>;
|
|
81
|
+
/**
|
|
82
|
+
* Optional transaction descriptor.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateTransactionRequestDto
|
|
85
|
+
*/
|
|
86
|
+
description?: string;
|
|
69
87
|
}
|
|
70
88
|
/**
|
|
71
89
|
* @export
|
|
@@ -61,14 +61,17 @@ function CreateTransactionRequestDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
}
|
|
62
62
|
const typed = {
|
|
63
63
|
'amount': json['amount'],
|
|
64
|
+
'salesTax': !(0, runtime_1.exists)(json, 'salesTax') ? undefined : json['salesTax'],
|
|
64
65
|
'currency': json['currency'],
|
|
65
66
|
'paymentMethod': (0, PaymentMethodDto_1.PaymentMethodDtoFromJSON)(json['paymentMethod']),
|
|
66
67
|
'intent': json['intent'],
|
|
67
68
|
'excludeCFee': !(0, runtime_1.exists)(json, 'excludeCFee') ? undefined : json['excludeCFee'],
|
|
68
69
|
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
69
70
|
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
71
|
+
'purchaseOrderId': !(0, runtime_1.exists)(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
|
|
70
72
|
'secCode': !(0, runtime_1.exists)(json, 'secCode') ? undefined : json['secCode'],
|
|
71
73
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (json['tags'].map(TagDto_1.TagDtoFromJSON)),
|
|
74
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
72
75
|
};
|
|
73
76
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
74
77
|
}
|
|
@@ -81,13 +84,16 @@ function CreateTransactionRequestDtoToJSON(value) {
|
|
|
81
84
|
}
|
|
82
85
|
return {
|
|
83
86
|
'amount': value.amount,
|
|
87
|
+
'salesTax': value.salesTax,
|
|
84
88
|
'currency': value.currency,
|
|
85
89
|
'paymentMethod': (0, PaymentMethodDto_1.PaymentMethodDtoToJSON)(value.paymentMethod),
|
|
86
90
|
'intent': value.intent,
|
|
87
91
|
'excludeCFee': value.excludeCFee,
|
|
88
92
|
'country': value.country,
|
|
89
93
|
'externalTransactionId': value.externalTransactionId,
|
|
94
|
+
'purchaseOrderId': value.purchaseOrderId,
|
|
90
95
|
'secCode': value.secCode,
|
|
91
96
|
'tags': value.tags === undefined ? undefined : (value.tags.map(TagDto_1.TagDtoToJSON)),
|
|
97
|
+
'description': value.description,
|
|
92
98
|
};
|
|
93
99
|
}
|
|
@@ -108,6 +108,18 @@ export interface MerchantAccountServiceEntity {
|
|
|
108
108
|
* @memberof MerchantAccountServiceEntity
|
|
109
109
|
*/
|
|
110
110
|
lastPolledAt?: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Source of card data for this merchant account
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof MerchantAccountServiceEntity
|
|
115
|
+
*/
|
|
116
|
+
dataSource?: MerchantAccountServiceEntityDataSourceEnum;
|
|
117
|
+
/**
|
|
118
|
+
* The merchant category code.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof MerchantAccountServiceEntity
|
|
121
|
+
*/
|
|
122
|
+
mcc?: string;
|
|
111
123
|
}
|
|
112
124
|
/**
|
|
113
125
|
* @export
|
|
@@ -169,6 +181,14 @@ export declare const MerchantAccountServiceEntityCardTypesEnum: {
|
|
|
169
181
|
readonly Prepaid: "PREPAID";
|
|
170
182
|
};
|
|
171
183
|
export type MerchantAccountServiceEntityCardTypesEnum = typeof MerchantAccountServiceEntityCardTypesEnum[keyof typeof MerchantAccountServiceEntityCardTypesEnum];
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export declare const MerchantAccountServiceEntityDataSourceEnum: {
|
|
188
|
+
readonly Moto: "MOTO";
|
|
189
|
+
readonly Internet: "INTERNET";
|
|
190
|
+
};
|
|
191
|
+
export type MerchantAccountServiceEntityDataSourceEnum = typeof MerchantAccountServiceEntityDataSourceEnum[keyof typeof MerchantAccountServiceEntityDataSourceEnum];
|
|
172
192
|
/**
|
|
173
193
|
* Check if a given object implements the MerchantAccountServiceEntity interface.
|
|
174
194
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
|
|
11
|
+
exports.MerchantAccountServiceEntityDataSourceEnum = exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
|
|
12
12
|
exports.instanceOfMerchantAccountServiceEntity = instanceOfMerchantAccountServiceEntity;
|
|
13
13
|
exports.MerchantAccountServiceEntityFromJSON = MerchantAccountServiceEntityFromJSON;
|
|
14
14
|
exports.MerchantAccountServiceEntityFromJSONTyped = MerchantAccountServiceEntityFromJSONTyped;
|
|
@@ -70,6 +70,13 @@ exports.MerchantAccountServiceEntityCardTypesEnum = {
|
|
|
70
70
|
Debit: 'DEBIT',
|
|
71
71
|
Prepaid: 'PREPAID'
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
exports.MerchantAccountServiceEntityDataSourceEnum = {
|
|
77
|
+
Moto: 'MOTO',
|
|
78
|
+
Internet: 'INTERNET'
|
|
79
|
+
};
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the MerchantAccountServiceEntity interface.
|
|
75
82
|
*/
|
|
@@ -112,6 +119,8 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
119
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
113
120
|
'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
|
|
114
121
|
'lastPolledAt': !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
|
|
122
|
+
'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
123
|
+
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
115
124
|
};
|
|
116
125
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
117
126
|
}
|
|
@@ -139,5 +148,7 @@ function MerchantAccountServiceEntityToJSON(value) {
|
|
|
139
148
|
'name': value.name,
|
|
140
149
|
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
|
|
141
150
|
'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
|
|
151
|
+
'dataSource': value.dataSource,
|
|
152
|
+
'mcc': value.mcc,
|
|
142
153
|
};
|
|
143
154
|
}
|
|
@@ -29,7 +29,7 @@ export interface MerchantConnectorServiceEntity {
|
|
|
29
29
|
*/
|
|
30
30
|
merchantAccountId: string;
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The payment processor connector (e.g., TSYS, ePay, Authorize.net)
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof MerchantConnectorServiceEntity
|
|
35
35
|
*/
|
|
@@ -64,9 +64,9 @@ export interface MerchantConnectorServiceEntity {
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const MerchantConnectorServiceEntityConnectorEnum: {
|
|
66
66
|
readonly Epay: "EPAY";
|
|
67
|
-
readonly Nmi: "NMI";
|
|
68
67
|
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
69
68
|
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
69
|
+
readonly Tsys: "TSYS";
|
|
70
70
|
};
|
|
71
71
|
export type MerchantConnectorServiceEntityConnectorEnum = typeof MerchantConnectorServiceEntityConnectorEnum[keyof typeof MerchantConnectorServiceEntityConnectorEnum];
|
|
72
72
|
/**
|
|
@@ -19,9 +19,9 @@ const runtime_1 = require("../runtime");
|
|
|
19
19
|
*/
|
|
20
20
|
exports.MerchantConnectorServiceEntityConnectorEnum = {
|
|
21
21
|
Epay: 'EPAY',
|
|
22
|
-
Nmi: 'NMI',
|
|
23
22
|
AuthorizeNet: 'AUTHORIZE_NET',
|
|
24
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
23
|
+
ChannelPayments: 'CHANNEL_PAYMENTS',
|
|
24
|
+
Tsys: 'TSYS'
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* @export
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantThemeDto } from './MerchantThemeDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface MerchantSettingsBaseDto
|
|
12
|
+
*/
|
|
13
|
+
export interface MerchantSettingsBaseDto {
|
|
14
|
+
/**
|
|
15
|
+
* The custom theme for hosted checkout.
|
|
16
|
+
* @type {MerchantThemeDto}
|
|
17
|
+
* @memberof MerchantSettingsBaseDto
|
|
18
|
+
*/
|
|
19
|
+
checkoutTheme?: MerchantThemeDto;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable split card fee transactions.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof MerchantSettingsBaseDto
|
|
24
|
+
*/
|
|
25
|
+
isSplitCFeeEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable debt repayment.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof MerchantSettingsBaseDto
|
|
30
|
+
*/
|
|
31
|
+
isDebtRepaymentEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Enable or disable partial authorization.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof MerchantSettingsBaseDto
|
|
36
|
+
*/
|
|
37
|
+
isPartialAuthEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enable bill payment on this merchant
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof MerchantSettingsBaseDto
|
|
42
|
+
*/
|
|
43
|
+
isBillPaymentEnabled?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfMerchantSettingsBaseDto(value: object): boolean;
|
|
49
|
+
export declare function MerchantSettingsBaseDtoFromJSON(json: any): MerchantSettingsBaseDto;
|
|
50
|
+
export declare function MerchantSettingsBaseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantSettingsBaseDto;
|
|
51
|
+
export declare function MerchantSettingsBaseDtoToJSON(value?: MerchantSettingsBaseDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.instanceOfMerchantSettingsBaseDto = instanceOfMerchantSettingsBaseDto;
|
|
12
|
+
exports.MerchantSettingsBaseDtoFromJSON = MerchantSettingsBaseDtoFromJSON;
|
|
13
|
+
exports.MerchantSettingsBaseDtoFromJSONTyped = MerchantSettingsBaseDtoFromJSONTyped;
|
|
14
|
+
exports.MerchantSettingsBaseDtoToJSON = MerchantSettingsBaseDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeDto_1 = require("./MerchantThemeDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMerchantSettingsBaseDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
function MerchantSettingsBaseDtoFromJSON(json) {
|
|
25
|
+
return MerchantSettingsBaseDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
33
|
+
'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
34
|
+
'isDebtRepaymentEnabled': !(0, runtime_1.exists)(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
35
|
+
'isPartialAuthEnabled': !(0, runtime_1.exists)(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
36
|
+
'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
37
|
+
};
|
|
38
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
39
|
+
}
|
|
40
|
+
function MerchantSettingsBaseDtoToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
49
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
50
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
51
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
52
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -18,11 +18,11 @@ export interface MerchantSettingsDto {
|
|
|
18
18
|
*/
|
|
19
19
|
checkoutTheme?: MerchantThemeDto;
|
|
20
20
|
/**
|
|
21
|
-
* Enable
|
|
21
|
+
* Enable bill payment on this merchant
|
|
22
22
|
* @type {boolean}
|
|
23
23
|
* @memberof MerchantSettingsDto
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
isBillPaymentEnabled?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Check if a given object implements the MerchantSettingsDto interface.
|