@channelpayments/node-sdk 1.131.0 → 1.137.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/AdminCreateTransactionRefundDto.d.ts +82 -0
- package/dist/cjs/models/AdminCreateTransactionRefundDto.js +84 -0
- package/dist/cjs/models/AdminVoidTransactionDto.d.ts +32 -0
- package/dist/cjs/models/AdminVoidTransactionDto.js +50 -0
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +155 -0
- package/dist/cjs/models/CreateMerchantAccountDto.js +124 -0
- package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/cjs/models/CreateMerchantAccountDtoCFee.js +57 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
- package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantDto.js +3 -3
- package/dist/cjs/models/MerchantAccountEntity.d.ts +166 -0
- package/dist/cjs/models/MerchantAccountEntity.js +139 -0
- package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/cjs/models/MerchantAccountEntityCFee.js +57 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +3 -3
- package/dist/cjs/models/MerchantAccountServiceEntity.js +3 -3
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +136 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.js +111 -0
- package/dist/cjs/models/UpdateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/UpdateMerchantDto.js +3 -3
- package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
- package/dist/cjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +11 -11
- package/dist/cjs/models/index.d.ts +8 -3
- package/dist/cjs/models/index.js +8 -3
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +82 -0
- package/dist/mjs/models/AdminCreateTransactionRefundDto.js +77 -0
- package/dist/mjs/models/AdminVoidTransactionDto.d.ts +32 -0
- package/dist/mjs/models/AdminVoidTransactionDto.js +43 -0
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +155 -0
- package/dist/mjs/models/CreateMerchantAccountDto.js +117 -0
- package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js} +7 -7
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
- package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantDto.js +3 -3
- package/dist/mjs/models/MerchantAccountEntity.d.ts +166 -0
- package/dist/mjs/models/MerchantAccountEntity.js +132 -0
- package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/mjs/models/{CreateMerchantAccountWithoutMerchantIdDtoCFee.js → MerchantAccountEntityCFee.js} +7 -7
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +3 -3
- package/dist/mjs/models/MerchantAccountServiceEntity.js +3 -3
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +136 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.js +104 -0
- package/dist/mjs/models/UpdateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/UpdateMerchantDto.js +3 -3
- package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
- package/dist/mjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +6 -6
- package/dist/mjs/models/index.d.ts +8 -3
- package/dist/mjs/models/index.js +8 -3
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +0 -57
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +0 -57
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
- package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
|
|
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
|
+
*
|
|
41
|
+
* @type {CreateMerchantAccountDtoCFee}
|
|
42
|
+
* @memberof CreateMerchantAccountDto
|
|
43
|
+
*/
|
|
44
|
+
cFee: CreateMerchantAccountDtoCFee;
|
|
45
|
+
/**
|
|
46
|
+
* The accepted card types
|
|
47
|
+
* @type {Array<string>}
|
|
48
|
+
* @memberof CreateMerchantAccountDto
|
|
49
|
+
*/
|
|
50
|
+
cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
|
|
51
|
+
/**
|
|
52
|
+
* The accepted card schemes
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof CreateMerchantAccountDto
|
|
55
|
+
*/
|
|
56
|
+
cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
|
|
57
|
+
/**
|
|
58
|
+
* The accepted currencies
|
|
59
|
+
* @type {Array<string>}
|
|
60
|
+
* @memberof CreateMerchantAccountDto
|
|
61
|
+
*/
|
|
62
|
+
currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
|
|
63
|
+
/**
|
|
64
|
+
* The list of merchant connectors
|
|
65
|
+
* @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
|
|
66
|
+
* @memberof CreateMerchantAccountDto
|
|
67
|
+
*/
|
|
68
|
+
connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
|
|
69
|
+
/**
|
|
70
|
+
* The MCC (Merchant Category Code)
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CreateMerchantAccountDto
|
|
73
|
+
*/
|
|
74
|
+
mcc?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The BIN (Bank Identification Number)
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateMerchantAccountDto
|
|
79
|
+
*/
|
|
80
|
+
bin?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The chain or franchise information associated with the merchant
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateMerchantAccountDto
|
|
85
|
+
*/
|
|
86
|
+
chain?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The store information associated with the merchant
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CreateMerchantAccountDto
|
|
91
|
+
*/
|
|
92
|
+
store?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The agent information associated with the merchant
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CreateMerchantAccountDto
|
|
97
|
+
*/
|
|
98
|
+
agent?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const CreateMerchantAccountDtoMethodEnum: {
|
|
104
|
+
readonly Card: "CARD";
|
|
105
|
+
readonly Ach: "ACH";
|
|
106
|
+
};
|
|
107
|
+
export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
|
|
108
|
+
/**
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export declare const CreateMerchantAccountDtoPspEnum: {
|
|
112
|
+
readonly Tsys: "TSYS";
|
|
113
|
+
readonly Nashville: "NASHVILLE";
|
|
114
|
+
readonly North: "NORTH";
|
|
115
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
116
|
+
};
|
|
117
|
+
export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const CreateMerchantAccountDtoCardTypesEnum: {
|
|
122
|
+
readonly Credit: "CREDIT";
|
|
123
|
+
readonly Debit: "DEBIT";
|
|
124
|
+
readonly Prepaid: "PREPAID";
|
|
125
|
+
};
|
|
126
|
+
export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const CreateMerchantAccountDtoCardSchemesEnum: {
|
|
131
|
+
readonly Visa: "VISA";
|
|
132
|
+
readonly Mastercard: "MASTERCARD";
|
|
133
|
+
readonly Amex: "AMEX";
|
|
134
|
+
readonly Discover: "DISCOVER";
|
|
135
|
+
readonly Jcb: "JCB";
|
|
136
|
+
readonly DinersClub: "DINERS_CLUB";
|
|
137
|
+
readonly Maestro: "MAESTRO";
|
|
138
|
+
};
|
|
139
|
+
export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export declare const CreateMerchantAccountDtoCurrenciesEnum: {
|
|
144
|
+
readonly Usd: "USD";
|
|
145
|
+
readonly Aud: "AUD";
|
|
146
|
+
readonly Cad: "CAD";
|
|
147
|
+
};
|
|
148
|
+
export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
|
|
149
|
+
/**
|
|
150
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
151
|
+
*/
|
|
152
|
+
export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
|
|
153
|
+
export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
|
|
154
|
+
export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
|
|
155
|
+
export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
|
|
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 CreateMerchantAccountDtoCurrenciesEnum = {
|
|
52
|
+
Usd: 'USD',
|
|
53
|
+
Aud: 'AUD',
|
|
54
|
+
Cad: 'CAD'
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfCreateMerchantAccountDto(value) {
|
|
60
|
+
let isInstance = true;
|
|
61
|
+
isInstance = isInstance && "merchantId" in value;
|
|
62
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
63
|
+
isInstance = isInstance && "method" in value;
|
|
64
|
+
isInstance = isInstance && "psp" in value;
|
|
65
|
+
isInstance = isInstance && "cFee" in value;
|
|
66
|
+
isInstance = isInstance && "connectors" in value;
|
|
67
|
+
return isInstance;
|
|
68
|
+
}
|
|
69
|
+
export function CreateMerchantAccountDtoFromJSON(json) {
|
|
70
|
+
return CreateMerchantAccountDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
export function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
const typed = {
|
|
77
|
+
'merchantId': json['merchantId'],
|
|
78
|
+
'issuedMid': json['issuedMid'],
|
|
79
|
+
'method': json['method'],
|
|
80
|
+
'psp': json['psp'],
|
|
81
|
+
'cFee': CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
|
|
82
|
+
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
83
|
+
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
84
|
+
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
85
|
+
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
86
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
87
|
+
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
88
|
+
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
89
|
+
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
90
|
+
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
91
|
+
};
|
|
92
|
+
return removeNullUndefined(typed);
|
|
93
|
+
}
|
|
94
|
+
export function CreateMerchantAccountDtoToJSON(value) {
|
|
95
|
+
if (value === undefined) {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
if (value === null) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
'merchantId': value.merchantId,
|
|
103
|
+
'issuedMid': value.issuedMid,
|
|
104
|
+
'method': value.method,
|
|
105
|
+
'psp': value.psp,
|
|
106
|
+
'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
|
|
107
|
+
'cardTypes': value.cardTypes,
|
|
108
|
+
'cardSchemes': value.cardSchemes,
|
|
109
|
+
'currencies': value.currencies,
|
|
110
|
+
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
111
|
+
'mcc': value.mcc,
|
|
112
|
+
'bin': value.bin,
|
|
113
|
+
'chain': value.chain,
|
|
114
|
+
'store': value.store,
|
|
115
|
+
'agent': value.agent,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The CFee details
|
|
9
|
+
* @export
|
|
10
|
+
* @interface CreateMerchantAccountDtoCFee
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateMerchantAccountDtoCFee {
|
|
13
|
+
/**
|
|
14
|
+
* The type of the cFee.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateMerchantAccountDtoCFee
|
|
17
|
+
*/
|
|
18
|
+
type: CreateMerchantAccountDtoCFeeTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The rate of the cFee as an integer.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CreateMerchantAccountDtoCFee
|
|
23
|
+
*/
|
|
24
|
+
rate: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const CreateMerchantAccountDtoCFeeTypeEnum: {
|
|
30
|
+
readonly Percentage: "PERCENTAGE";
|
|
31
|
+
readonly Fixed: "FIXED";
|
|
32
|
+
};
|
|
33
|
+
export type CreateMerchantAccountDtoCFeeTypeEnum = typeof CreateMerchantAccountDtoCFeeTypeEnum[keyof typeof CreateMerchantAccountDtoCFeeTypeEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CreateMerchantAccountDtoCFee interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfCreateMerchantAccountDtoCFee(value: object): boolean;
|
|
38
|
+
export declare function CreateMerchantAccountDtoCFeeFromJSON(json: any): CreateMerchantAccountDtoCFee;
|
|
39
|
+
export declare function CreateMerchantAccountDtoCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDtoCFee;
|
|
40
|
+
export declare function CreateMerchantAccountDtoCFeeToJSON(value?: CreateMerchantAccountDtoCFee | null): any;
|
package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js}
RENAMED
|
@@ -10,23 +10,23 @@ import { removeNullUndefined } from '../runtime';
|
|
|
10
10
|
/**
|
|
11
11
|
* @export
|
|
12
12
|
*/
|
|
13
|
-
export const
|
|
13
|
+
export const CreateMerchantAccountDtoCFeeTypeEnum = {
|
|
14
14
|
Percentage: 'PERCENTAGE',
|
|
15
15
|
Fixed: 'FIXED'
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the CreateMerchantAccountDtoCFee interface.
|
|
19
19
|
*/
|
|
20
|
-
export function
|
|
20
|
+
export function instanceOfCreateMerchantAccountDtoCFee(value) {
|
|
21
21
|
let isInstance = true;
|
|
22
22
|
isInstance = isInstance && "type" in value;
|
|
23
23
|
isInstance = isInstance && "rate" in value;
|
|
24
24
|
return isInstance;
|
|
25
25
|
}
|
|
26
|
-
export function
|
|
27
|
-
return
|
|
26
|
+
export function CreateMerchantAccountDtoCFeeFromJSON(json) {
|
|
27
|
+
return CreateMerchantAccountDtoCFeeFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
29
|
+
export function CreateMerchantAccountDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
30
|
if ((json === undefined) || (json === null)) {
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
@@ -36,7 +36,7 @@ export function MerchantAccountServiceEntityCFeeFromJSONTyped(json, ignoreDiscri
|
|
|
36
36
|
};
|
|
37
37
|
return removeNullUndefined(typed);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function CreateMerchantAccountDtoCFeeToJSON(value) {
|
|
40
40
|
if (value === undefined) {
|
|
41
41
|
return undefined;
|
|
42
42
|
}
|
|
@@ -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 { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
|
|
8
8
|
import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -32,10 +32,10 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
32
32
|
psp: CreateMerchantAccountWithoutMerchantIdDtoPspEnum;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @type {
|
|
35
|
+
* @type {CreateMerchantAccountDtoCFee}
|
|
36
36
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
37
37
|
*/
|
|
38
|
-
cFee:
|
|
38
|
+
cFee: CreateMerchantAccountDtoCFee;
|
|
39
39
|
/**
|
|
40
40
|
* The accepted card types
|
|
41
41
|
* @type {Array<string>}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
-
import {
|
|
10
|
+
import { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
|
|
11
11
|
import { CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON, CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON, } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
12
12
|
/**
|
|
13
13
|
* @export
|
|
@@ -76,7 +76,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ign
|
|
|
76
76
|
'issuedMid': json['issuedMid'],
|
|
77
77
|
'method': json['method'],
|
|
78
78
|
'psp': json['psp'],
|
|
79
|
-
'cFee':
|
|
79
|
+
'cFee': CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
|
|
80
80
|
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
81
81
|
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
82
82
|
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
@@ -100,7 +100,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
|
|
|
100
100
|
'issuedMid': value.issuedMid,
|
|
101
101
|
'method': value.method,
|
|
102
102
|
'psp': value.psp,
|
|
103
|
-
'cFee':
|
|
103
|
+
'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
|
|
104
104
|
'cardTypes': value.cardTypes,
|
|
105
105
|
'cardSchemes': value.cardSchemes,
|
|
106
106
|
'currencies': value.currencies,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
8
|
-
import type {
|
|
8
|
+
import type { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
* @export
|
|
@@ -32,10 +32,10 @@ export interface CreateMerchantDto {
|
|
|
32
32
|
phoneNumber: string;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @type {
|
|
35
|
+
* @type {UpdateMerchantDtoAddress}
|
|
36
36
|
* @memberof CreateMerchantDto
|
|
37
37
|
*/
|
|
38
|
-
address:
|
|
38
|
+
address: UpdateMerchantDtoAddress;
|
|
39
39
|
/**
|
|
40
40
|
* The website URL of the merchant.
|
|
41
41
|
* @type {string}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { CreateMerchantAccountWithoutMerchantIdDtoFromJSON, CreateMerchantAccountWithoutMerchantIdDtoToJSON, } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
11
|
-
import {
|
|
11
|
+
import { UpdateMerchantDtoAddressFromJSON, UpdateMerchantDtoAddressToJSON, } from './UpdateMerchantDtoAddress';
|
|
12
12
|
/**
|
|
13
13
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
14
14
|
*/
|
|
@@ -31,7 +31,7 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'name': json['name'],
|
|
32
32
|
'email': json['email'],
|
|
33
33
|
'phoneNumber': json['phoneNumber'],
|
|
34
|
-
'address':
|
|
34
|
+
'address': UpdateMerchantDtoAddressFromJSON(json['address']),
|
|
35
35
|
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
36
36
|
'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
37
37
|
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
@@ -49,7 +49,7 @@ export function CreateMerchantDtoToJSON(value) {
|
|
|
49
49
|
'name': value.name,
|
|
50
50
|
'email': value.email,
|
|
51
51
|
'phoneNumber': value.phoneNumber,
|
|
52
|
-
'address':
|
|
52
|
+
'address': UpdateMerchantDtoAddressToJSON(value.address),
|
|
53
53
|
'website': value.website,
|
|
54
54
|
'parentMerchantId': value.parentMerchantId,
|
|
55
55
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
|
|
8
|
+
import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface MerchantAccountEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface MerchantAccountEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The alphanumeric ID of the merchant account.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof MerchantAccountEntity
|
|
19
|
+
*/
|
|
20
|
+
merchantAccountId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The associated merchant ID.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof MerchantAccountEntity
|
|
25
|
+
*/
|
|
26
|
+
merchantId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The issued MID (Merchant ID).
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof MerchantAccountEntity
|
|
31
|
+
*/
|
|
32
|
+
issuedMid: string;
|
|
33
|
+
/**
|
|
34
|
+
* The payment service provider.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof MerchantAccountEntity
|
|
37
|
+
*/
|
|
38
|
+
psp: MerchantAccountEntityPspEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {MerchantAccountEntityCFee}
|
|
42
|
+
* @memberof MerchantAccountEntity
|
|
43
|
+
*/
|
|
44
|
+
cFee: MerchantAccountEntityCFee;
|
|
45
|
+
/**
|
|
46
|
+
* The date the merchant was created.
|
|
47
|
+
* @type {Date}
|
|
48
|
+
* @memberof MerchantAccountEntity
|
|
49
|
+
*/
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
/**
|
|
52
|
+
* The date the merchant was last updated.
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof MerchantAccountEntity
|
|
55
|
+
*/
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* The payment method.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof MerchantAccountEntity
|
|
61
|
+
*/
|
|
62
|
+
method: MerchantAccountEntityMethodEnum;
|
|
63
|
+
/**
|
|
64
|
+
* The status of the merchant account.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof MerchantAccountEntity
|
|
67
|
+
*/
|
|
68
|
+
status: MerchantAccountEntityStatusEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The card schemes.
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof MerchantAccountEntity
|
|
73
|
+
*/
|
|
74
|
+
cardSchemes: Array<MerchantAccountEntityCardSchemesEnum>;
|
|
75
|
+
/**
|
|
76
|
+
* The accepted currencies.
|
|
77
|
+
* @type {Array<string>}
|
|
78
|
+
* @memberof MerchantAccountEntity
|
|
79
|
+
*/
|
|
80
|
+
currencies: Array<MerchantAccountEntityCurrenciesEnum>;
|
|
81
|
+
/**
|
|
82
|
+
* The accepted card types.
|
|
83
|
+
* @type {Array<string>}
|
|
84
|
+
* @memberof MerchantAccountEntity
|
|
85
|
+
*/
|
|
86
|
+
cardTypes: Array<MerchantAccountEntityCardTypesEnum>;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the merchant account.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof MerchantAccountEntity
|
|
91
|
+
*/
|
|
92
|
+
name?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The connectors.
|
|
95
|
+
* @type {Array<MerchantConnectorServiceEntity>}
|
|
96
|
+
* @memberof MerchantAccountEntity
|
|
97
|
+
*/
|
|
98
|
+
connectors?: Array<MerchantConnectorServiceEntity>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const MerchantAccountEntityPspEnum: {
|
|
104
|
+
readonly Tsys: "TSYS";
|
|
105
|
+
readonly Nashville: "NASHVILLE";
|
|
106
|
+
readonly North: "NORTH";
|
|
107
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
108
|
+
};
|
|
109
|
+
export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export declare const MerchantAccountEntityMethodEnum: {
|
|
114
|
+
readonly Card: "CARD";
|
|
115
|
+
readonly Ach: "ACH";
|
|
116
|
+
};
|
|
117
|
+
export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const MerchantAccountEntityStatusEnum: {
|
|
122
|
+
readonly Pending: "PENDING";
|
|
123
|
+
readonly Active: "ACTIVE";
|
|
124
|
+
readonly Inactive: "INACTIVE";
|
|
125
|
+
readonly Suspended: "SUSPENDED";
|
|
126
|
+
readonly Closed: "CLOSED";
|
|
127
|
+
};
|
|
128
|
+
export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
|
|
129
|
+
/**
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
export declare const MerchantAccountEntityCardSchemesEnum: {
|
|
133
|
+
readonly Visa: "VISA";
|
|
134
|
+
readonly Mastercard: "MASTERCARD";
|
|
135
|
+
readonly Amex: "AMEX";
|
|
136
|
+
readonly Discover: "DISCOVER";
|
|
137
|
+
readonly Jcb: "JCB";
|
|
138
|
+
readonly DinersClub: "DINERS_CLUB";
|
|
139
|
+
readonly Maestro: "MAESTRO";
|
|
140
|
+
};
|
|
141
|
+
export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
|
|
142
|
+
/**
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
145
|
+
export declare const MerchantAccountEntityCurrenciesEnum: {
|
|
146
|
+
readonly Usd: "USD";
|
|
147
|
+
readonly Aud: "AUD";
|
|
148
|
+
readonly Cad: "CAD";
|
|
149
|
+
};
|
|
150
|
+
export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const MerchantAccountEntityCardTypesEnum: {
|
|
155
|
+
readonly Credit: "CREDIT";
|
|
156
|
+
readonly Debit: "DEBIT";
|
|
157
|
+
readonly Prepaid: "PREPAID";
|
|
158
|
+
};
|
|
159
|
+
export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
|
|
160
|
+
/**
|
|
161
|
+
* Check if a given object implements the MerchantAccountEntity interface.
|
|
162
|
+
*/
|
|
163
|
+
export declare function instanceOfMerchantAccountEntity(value: object): boolean;
|
|
164
|
+
export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
|
|
165
|
+
export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
|
|
166
|
+
export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
|