@channelpayments/node-sdk 1.197.0 → 1.200.1
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/apis/ChannelPaymentsApi.d.ts +7 -6
- package/dist/cjs/apis/ChannelPaymentsApi.js +73 -18
- package/dist/cjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/cjs/models/AdminCreateMerchantCredentialsDto.js +49 -0
- package/dist/cjs/models/AdminMerchantSettingsDto.d.ts +63 -0
- package/dist/cjs/models/AdminMerchantSettingsDto.js +59 -0
- package/dist/cjs/models/CFeeEntity.d.ts +12 -0
- package/dist/cjs/models/CFeeEntity.js +4 -0
- package/dist/cjs/models/CreateCFeeDto.d.ts +13 -1
- package/dist/cjs/models/CreateCFeeDto.js +4 -0
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +187 -0
- package/dist/cjs/models/CreateMerchantAccountDto.js +139 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
- package/dist/cjs/models/CreateMerchantDto.d.ts +6 -6
- package/dist/cjs/models/CreateMerchantDto.js +2 -2
- package/dist/cjs/models/MerchantAccountEntity.d.ts +204 -0
- package/dist/cjs/models/MerchantAccountEntity.js +156 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +6 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +2 -0
- package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +7 -1
- package/dist/cjs/models/MerchantSettingsBaseDto.js +2 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +1 -1
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +6 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +3 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +12 -16
- package/dist/cjs/models/UpdateMerchantAccountDto.js +5 -12
- package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
- package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.js +50 -0
- package/dist/cjs/models/index.d.ts +5 -0
- package/dist/cjs/models/index.js +5 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +7 -6
- package/dist/mjs/apis/ChannelPaymentsApi.js +71 -18
- package/dist/mjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/mjs/models/AdminCreateMerchantCredentialsDto.js +43 -0
- package/dist/mjs/models/AdminMerchantSettingsDto.d.ts +63 -0
- package/dist/mjs/models/AdminMerchantSettingsDto.js +53 -0
- package/dist/mjs/models/CFeeEntity.d.ts +12 -0
- package/dist/mjs/models/CFeeEntity.js +5 -1
- package/dist/mjs/models/CreateCFeeDto.d.ts +13 -1
- package/dist/mjs/models/CreateCFeeDto.js +5 -1
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +187 -0
- package/dist/mjs/models/CreateMerchantAccountDto.js +132 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
- package/dist/mjs/models/CreateMerchantDto.d.ts +6 -6
- package/dist/mjs/models/CreateMerchantDto.js +2 -2
- package/dist/mjs/models/MerchantAccountEntity.d.ts +204 -0
- package/dist/mjs/models/MerchantAccountEntity.js +149 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +6 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +2 -0
- package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +7 -1
- package/dist/mjs/models/MerchantSettingsBaseDto.js +2 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +1 -1
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +6 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +3 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +12 -16
- package/dist/mjs/models/UpdateMerchantAccountDto.js +4 -11
- package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
- package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.js +44 -0
- package/dist/mjs/models/index.d.ts +5 -0
- package/dist/mjs/models/index.js +5 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { MerchantThemeDtoFromJSON, MerchantThemeDtoToJSON, } from './MerchantThemeDto';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the AdminMerchantSettingsDto interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfAdminMerchantSettingsDto(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "merchantId" in value;
|
|
17
|
+
return isInstance;
|
|
18
|
+
}
|
|
19
|
+
export function AdminMerchantSettingsDtoFromJSON(json) {
|
|
20
|
+
return AdminMerchantSettingsDtoFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
export function AdminMerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
const typed = {
|
|
27
|
+
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
|
|
28
|
+
'isSplitCFeeEnabled': !exists(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
29
|
+
'isDebtRepaymentEnabled': !exists(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
30
|
+
'isPartialAuthEnabled': !exists(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
31
|
+
'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
32
|
+
'storeOnCardDecline': !exists(json, 'storeOnCardDecline') ? undefined : json['storeOnCardDecline'],
|
|
33
|
+
'merchantId': json['merchantId'],
|
|
34
|
+
};
|
|
35
|
+
return removeNullUndefined(typed);
|
|
36
|
+
}
|
|
37
|
+
export function AdminMerchantSettingsDtoToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
|
|
46
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
47
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
48
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
49
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
50
|
+
'storeOnCardDecline': value.storeOnCardDecline,
|
|
51
|
+
'merchantId': value.merchantId,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -22,6 +22,18 @@ export interface CFeeEntity {
|
|
|
22
22
|
* @memberof CFeeEntity
|
|
23
23
|
*/
|
|
24
24
|
rate: number;
|
|
25
|
+
/**
|
|
26
|
+
* The minimum fee threshold for the CFee.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CFeeEntity
|
|
29
|
+
*/
|
|
30
|
+
minFeeThreshold?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The minimum fixed fee rate for the CFee if total amount is below the threshold.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CFeeEntity
|
|
35
|
+
*/
|
|
36
|
+
minFeeFixedRate?: number;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* @export
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
import { removeNullUndefined } from '../runtime';
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
/**
|
|
11
11
|
* @export
|
|
12
12
|
*/
|
|
@@ -33,6 +33,8 @@ export function CFeeEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
const typed = {
|
|
34
34
|
'type': json['type'],
|
|
35
35
|
'rate': json['rate'],
|
|
36
|
+
'minFeeThreshold': !exists(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
37
|
+
'minFeeFixedRate': !exists(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
36
38
|
};
|
|
37
39
|
return removeNullUndefined(typed);
|
|
38
40
|
}
|
|
@@ -46,5 +48,7 @@ export function CFeeEntityToJSON(value) {
|
|
|
46
48
|
return {
|
|
47
49
|
'type': value.type,
|
|
48
50
|
'rate': value.rate,
|
|
51
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
52
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -17,11 +17,23 @@ export interface CreateCFeeDto {
|
|
|
17
17
|
*/
|
|
18
18
|
type: CreateCFeeDtoTypeEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The rate of the cFee
|
|
20
|
+
* The rate of the cFee.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof CreateCFeeDto
|
|
23
23
|
*/
|
|
24
24
|
rate: number;
|
|
25
|
+
/**
|
|
26
|
+
* The minimum fee threshold for the cFee.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CreateCFeeDto
|
|
29
|
+
*/
|
|
30
|
+
minFeeThreshold?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The minimum fee rate for the cFee if total amount is below the threshold.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CreateCFeeDto
|
|
35
|
+
*/
|
|
36
|
+
minFeeFixedRate?: number;
|
|
25
37
|
}
|
|
26
38
|
/**
|
|
27
39
|
* @export
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
import { removeNullUndefined } from '../runtime';
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
/**
|
|
11
11
|
* @export
|
|
12
12
|
*/
|
|
@@ -33,6 +33,8 @@ export function CreateCFeeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
const typed = {
|
|
34
34
|
'type': json['type'],
|
|
35
35
|
'rate': json['rate'],
|
|
36
|
+
'minFeeThreshold': !exists(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
37
|
+
'minFeeFixedRate': !exists(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
36
38
|
};
|
|
37
39
|
return removeNullUndefined(typed);
|
|
38
40
|
}
|
|
@@ -46,5 +48,7 @@ export function CreateCFeeDtoToJSON(value) {
|
|
|
46
48
|
return {
|
|
47
49
|
'type': value.type,
|
|
48
50
|
'rate': value.rate,
|
|
51
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
52
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateCFeeDto } from './CreateCFeeDto';
|
|
8
|
+
import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface CreateMerchantAccountDto
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMerchantAccountDto {
|
|
15
|
+
/**
|
|
16
|
+
* The associated merchant ID
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof CreateMerchantAccountDto
|
|
19
|
+
*/
|
|
20
|
+
merchantId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The issued MID (Merchant ID)
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateMerchantAccountDto
|
|
25
|
+
*/
|
|
26
|
+
issuedMid: string;
|
|
27
|
+
/**
|
|
28
|
+
* The payment method
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CreateMerchantAccountDto
|
|
31
|
+
*/
|
|
32
|
+
method: CreateMerchantAccountDtoMethodEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The payment service provider
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CreateMerchantAccountDto
|
|
37
|
+
*/
|
|
38
|
+
psp: CreateMerchantAccountDtoPspEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The CFee details
|
|
41
|
+
* @type {CreateCFeeDto}
|
|
42
|
+
* @memberof CreateMerchantAccountDto
|
|
43
|
+
*/
|
|
44
|
+
cFee: CreateCFeeDto;
|
|
45
|
+
/**
|
|
46
|
+
* The list of merchant connectors
|
|
47
|
+
* @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
|
|
48
|
+
* @memberof CreateMerchantAccountDto
|
|
49
|
+
*/
|
|
50
|
+
connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
|
|
51
|
+
/**
|
|
52
|
+
* The accepted card types
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof CreateMerchantAccountDto
|
|
55
|
+
*/
|
|
56
|
+
cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
|
|
57
|
+
/**
|
|
58
|
+
* The accepted card schemes
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof CreateMerchantAccountDto
|
|
61
|
+
*/
|
|
62
|
+
cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
|
|
63
|
+
/**
|
|
64
|
+
* Source of card data for this merchant account
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateMerchantAccountDto
|
|
67
|
+
*/
|
|
68
|
+
dataSource?: CreateMerchantAccountDtoDataSourceEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The accepted currencies
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof CreateMerchantAccountDto
|
|
73
|
+
*/
|
|
74
|
+
currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
|
|
75
|
+
/**
|
|
76
|
+
* The associated merchant name
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateMerchantAccountDto
|
|
79
|
+
*/
|
|
80
|
+
name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The MCC (Merchant Category Code)
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateMerchantAccountDto
|
|
85
|
+
*/
|
|
86
|
+
mcc?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The BIN (Bank Identification Number)
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CreateMerchantAccountDto
|
|
91
|
+
*/
|
|
92
|
+
bin?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The chain or franchise information associated with the merchant
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CreateMerchantAccountDto
|
|
97
|
+
*/
|
|
98
|
+
chain?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The store information associated with the merchant
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof CreateMerchantAccountDto
|
|
103
|
+
*/
|
|
104
|
+
store?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The agent information associated with the merchant
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof CreateMerchantAccountDto
|
|
109
|
+
*/
|
|
110
|
+
agent?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The default merchant account
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof CreateMerchantAccountDto
|
|
115
|
+
*/
|
|
116
|
+
isDefault?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Transaction limit for this merchant.
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof CreateMerchantAccountDto
|
|
121
|
+
*/
|
|
122
|
+
transactionLimit?: number;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export declare const CreateMerchantAccountDtoMethodEnum: {
|
|
128
|
+
readonly Card: "CARD";
|
|
129
|
+
readonly Ach: "ACH";
|
|
130
|
+
};
|
|
131
|
+
export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const CreateMerchantAccountDtoPspEnum: {
|
|
136
|
+
readonly Tsys: "TSYS";
|
|
137
|
+
readonly Nashville: "NASHVILLE";
|
|
138
|
+
readonly North: "NORTH";
|
|
139
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
140
|
+
};
|
|
141
|
+
export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
|
|
142
|
+
/**
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
145
|
+
export declare const CreateMerchantAccountDtoCardTypesEnum: {
|
|
146
|
+
readonly Credit: "CREDIT";
|
|
147
|
+
readonly Debit: "DEBIT";
|
|
148
|
+
readonly Prepaid: "PREPAID";
|
|
149
|
+
};
|
|
150
|
+
export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const CreateMerchantAccountDtoCardSchemesEnum: {
|
|
155
|
+
readonly Visa: "VISA";
|
|
156
|
+
readonly Mastercard: "MASTERCARD";
|
|
157
|
+
readonly Amex: "AMEX";
|
|
158
|
+
readonly Discover: "DISCOVER";
|
|
159
|
+
readonly Jcb: "JCB";
|
|
160
|
+
readonly DinersClub: "DINERS_CLUB";
|
|
161
|
+
readonly Maestro: "MAESTRO";
|
|
162
|
+
};
|
|
163
|
+
export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
|
|
164
|
+
/**
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export declare const CreateMerchantAccountDtoDataSourceEnum: {
|
|
168
|
+
readonly Moto: "MOTO";
|
|
169
|
+
readonly Internet: "INTERNET";
|
|
170
|
+
};
|
|
171
|
+
export type CreateMerchantAccountDtoDataSourceEnum = typeof CreateMerchantAccountDtoDataSourceEnum[keyof typeof CreateMerchantAccountDtoDataSourceEnum];
|
|
172
|
+
/**
|
|
173
|
+
* @export
|
|
174
|
+
*/
|
|
175
|
+
export declare const CreateMerchantAccountDtoCurrenciesEnum: {
|
|
176
|
+
readonly Usd: "USD";
|
|
177
|
+
readonly Aud: "AUD";
|
|
178
|
+
readonly Cad: "CAD";
|
|
179
|
+
};
|
|
180
|
+
export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
|
|
181
|
+
/**
|
|
182
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
183
|
+
*/
|
|
184
|
+
export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
|
|
185
|
+
export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
|
|
186
|
+
export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
|
|
187
|
+
export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateCFeeDtoFromJSON, CreateCFeeDtoToJSON, } from './CreateCFeeDto';
|
|
11
|
+
import { CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON, CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON, } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const CreateMerchantAccountDtoMethodEnum = {
|
|
16
|
+
Card: 'CARD',
|
|
17
|
+
Ach: 'ACH'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const CreateMerchantAccountDtoPspEnum = {
|
|
23
|
+
Tsys: 'TSYS',
|
|
24
|
+
Nashville: 'NASHVILLE',
|
|
25
|
+
North: 'NORTH',
|
|
26
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const CreateMerchantAccountDtoCardTypesEnum = {
|
|
32
|
+
Credit: 'CREDIT',
|
|
33
|
+
Debit: 'DEBIT',
|
|
34
|
+
Prepaid: 'PREPAID'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const CreateMerchantAccountDtoCardSchemesEnum = {
|
|
40
|
+
Visa: 'VISA',
|
|
41
|
+
Mastercard: 'MASTERCARD',
|
|
42
|
+
Amex: 'AMEX',
|
|
43
|
+
Discover: 'DISCOVER',
|
|
44
|
+
Jcb: 'JCB',
|
|
45
|
+
DinersClub: 'DINERS_CLUB',
|
|
46
|
+
Maestro: 'MAESTRO'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export const CreateMerchantAccountDtoDataSourceEnum = {
|
|
52
|
+
Moto: 'MOTO',
|
|
53
|
+
Internet: 'INTERNET'
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const CreateMerchantAccountDtoCurrenciesEnum = {
|
|
59
|
+
Usd: 'USD',
|
|
60
|
+
Aud: 'AUD',
|
|
61
|
+
Cad: 'CAD'
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfCreateMerchantAccountDto(value) {
|
|
67
|
+
let isInstance = true;
|
|
68
|
+
isInstance = isInstance && "merchantId" in value;
|
|
69
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
70
|
+
isInstance = isInstance && "method" in value;
|
|
71
|
+
isInstance = isInstance && "psp" in value;
|
|
72
|
+
isInstance = isInstance && "cFee" in value;
|
|
73
|
+
isInstance = isInstance && "connectors" in value;
|
|
74
|
+
return isInstance;
|
|
75
|
+
}
|
|
76
|
+
export function CreateMerchantAccountDtoFromJSON(json) {
|
|
77
|
+
return CreateMerchantAccountDtoFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
export function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
80
|
+
if ((json === undefined) || (json === null)) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
const typed = {
|
|
84
|
+
'merchantId': json['merchantId'],
|
|
85
|
+
'issuedMid': json['issuedMid'],
|
|
86
|
+
'method': json['method'],
|
|
87
|
+
'psp': json['psp'],
|
|
88
|
+
'cFee': CreateCFeeDtoFromJSON(json['cFee']),
|
|
89
|
+
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
90
|
+
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
91
|
+
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
92
|
+
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
93
|
+
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
94
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
95
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
96
|
+
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
97
|
+
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
98
|
+
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
99
|
+
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
100
|
+
'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
|
|
101
|
+
'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
102
|
+
};
|
|
103
|
+
return removeNullUndefined(typed);
|
|
104
|
+
}
|
|
105
|
+
export function CreateMerchantAccountDtoToJSON(value) {
|
|
106
|
+
if (value === undefined) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
if (value === null) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
'merchantId': value.merchantId,
|
|
114
|
+
'issuedMid': value.issuedMid,
|
|
115
|
+
'method': value.method,
|
|
116
|
+
'psp': value.psp,
|
|
117
|
+
'cFee': CreateCFeeDtoToJSON(value.cFee),
|
|
118
|
+
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
119
|
+
'cardTypes': value.cardTypes,
|
|
120
|
+
'cardSchemes': value.cardSchemes,
|
|
121
|
+
'dataSource': value.dataSource,
|
|
122
|
+
'currencies': value.currencies,
|
|
123
|
+
'name': value.name,
|
|
124
|
+
'mcc': value.mcc,
|
|
125
|
+
'bin': value.bin,
|
|
126
|
+
'chain': value.chain,
|
|
127
|
+
'store': value.store,
|
|
128
|
+
'agent': value.agent,
|
|
129
|
+
'isDefault': value.isDefault,
|
|
130
|
+
'transactionLimit': value.transactionLimit,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
@@ -36,6 +36,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
36
36
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
37
37
|
*/
|
|
38
38
|
cFee: CreateCFeeDto;
|
|
39
|
+
/**
|
|
40
|
+
* The list of merchant connectors
|
|
41
|
+
* @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
|
|
42
|
+
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
43
|
+
*/
|
|
44
|
+
connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
|
|
39
45
|
/**
|
|
40
46
|
* The accepted card types
|
|
41
47
|
* @type {Array<string>}
|
|
@@ -61,11 +67,11 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
61
67
|
*/
|
|
62
68
|
currencies?: Array<CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum>;
|
|
63
69
|
/**
|
|
64
|
-
* The
|
|
65
|
-
* @type {
|
|
70
|
+
* The associated merchant name
|
|
71
|
+
* @type {string}
|
|
66
72
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
67
73
|
*/
|
|
68
|
-
|
|
74
|
+
name?: string;
|
|
69
75
|
/**
|
|
70
76
|
* The MCC (Merchant Category Code)
|
|
71
77
|
* @type {string}
|
|
@@ -102,6 +108,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
102
108
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
103
109
|
*/
|
|
104
110
|
isDefault?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Transaction limit for this merchant.
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
115
|
+
*/
|
|
116
|
+
transactionLimit?: number;
|
|
105
117
|
}
|
|
106
118
|
/**
|
|
107
119
|
* @export
|
|
@@ -84,17 +84,19 @@ export function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ign
|
|
|
84
84
|
'method': json['method'],
|
|
85
85
|
'psp': json['psp'],
|
|
86
86
|
'cFee': CreateCFeeDtoFromJSON(json['cFee']),
|
|
87
|
+
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
87
88
|
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
88
89
|
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
89
90
|
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
90
91
|
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
91
|
-
'
|
|
92
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
92
93
|
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
93
94
|
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
94
95
|
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
95
96
|
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
96
97
|
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
97
98
|
'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
|
|
99
|
+
'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
98
100
|
};
|
|
99
101
|
return removeNullUndefined(typed);
|
|
100
102
|
}
|
|
@@ -110,16 +112,18 @@ export function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
|
|
|
110
112
|
'method': value.method,
|
|
111
113
|
'psp': value.psp,
|
|
112
114
|
'cFee': CreateCFeeDtoToJSON(value.cFee),
|
|
115
|
+
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
113
116
|
'cardTypes': value.cardTypes,
|
|
114
117
|
'cardSchemes': value.cardSchemes,
|
|
115
118
|
'dataSource': value.dataSource,
|
|
116
119
|
'currencies': value.currencies,
|
|
117
|
-
'
|
|
120
|
+
'name': value.name,
|
|
118
121
|
'mcc': value.mcc,
|
|
119
122
|
'bin': value.bin,
|
|
120
123
|
'chain': value.chain,
|
|
121
124
|
'store': value.store,
|
|
122
125
|
'agent': value.agent,
|
|
123
126
|
'isDefault': value.isDefault,
|
|
127
|
+
'transactionLimit': value.transactionLimit,
|
|
124
128
|
};
|
|
125
129
|
}
|
|
@@ -37,6 +37,12 @@ export interface CreateMerchantDto {
|
|
|
37
37
|
* @memberof CreateMerchantDto
|
|
38
38
|
*/
|
|
39
39
|
address: CreateMerchantAddressDto;
|
|
40
|
+
/**
|
|
41
|
+
* Array of merchant accounts.
|
|
42
|
+
* @type {Array<CreateMerchantAccountWithoutMerchantIdDto>}
|
|
43
|
+
* @memberof CreateMerchantDto
|
|
44
|
+
*/
|
|
45
|
+
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
40
46
|
/**
|
|
41
47
|
* The website URL of the merchant.
|
|
42
48
|
* @type {string}
|
|
@@ -49,12 +55,6 @@ export interface CreateMerchantDto {
|
|
|
49
55
|
* @memberof CreateMerchantDto
|
|
50
56
|
*/
|
|
51
57
|
parentMerchantId?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Array of merchant accounts.
|
|
54
|
-
* @type {Array<CreateMerchantAccountWithoutMerchantIdDto>}
|
|
55
|
-
* @memberof CreateMerchantDto
|
|
56
|
-
*/
|
|
57
|
-
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
58
58
|
/**
|
|
59
59
|
* The merchant settings.
|
|
60
60
|
* @type {MerchantSettingsBaseDto}
|
|
@@ -33,9 +33,9 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'email': json['email'],
|
|
34
34
|
'phoneNumber': json['phoneNumber'],
|
|
35
35
|
'address': CreateMerchantAddressDtoFromJSON(json['address']),
|
|
36
|
+
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
36
37
|
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
37
38
|
'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
38
|
-
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
39
39
|
'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsBaseDtoFromJSON(json['merchantSettings']),
|
|
40
40
|
};
|
|
41
41
|
return removeNullUndefined(typed);
|
|
@@ -52,9 +52,9 @@ export function CreateMerchantDtoToJSON(value) {
|
|
|
52
52
|
'email': value.email,
|
|
53
53
|
'phoneNumber': value.phoneNumber,
|
|
54
54
|
'address': CreateMerchantAddressDtoToJSON(value.address),
|
|
55
|
+
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
55
56
|
'website': value.website,
|
|
56
57
|
'parentMerchantId': value.parentMerchantId,
|
|
57
|
-
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
58
58
|
'merchantSettings': MerchantSettingsBaseDtoToJSON(value.merchantSettings),
|
|
59
59
|
};
|
|
60
60
|
}
|