@channelpayments/node-sdk 1.198.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/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/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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface AdminCreateMerchantCredentialsDto
|
|
11
|
+
*/
|
|
12
|
+
export interface AdminCreateMerchantCredentialsDto {
|
|
13
|
+
/**
|
|
14
|
+
* The given reference name.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AdminCreateMerchantCredentialsDto
|
|
17
|
+
*/
|
|
18
|
+
credentialsName: string;
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the merchant.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminCreateMerchantCredentialsDto
|
|
23
|
+
*/
|
|
24
|
+
merchantId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AdminCreateMerchantCredentialsDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAdminCreateMerchantCredentialsDto(value: object): boolean;
|
|
30
|
+
export declare function AdminCreateMerchantCredentialsDtoFromJSON(json: any): AdminCreateMerchantCredentialsDto;
|
|
31
|
+
export declare function AdminCreateMerchantCredentialsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCreateMerchantCredentialsDto;
|
|
32
|
+
export declare function AdminCreateMerchantCredentialsDtoToJSON(value?: AdminCreateMerchantCredentialsDto | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfAdminCreateMerchantCredentialsDto = instanceOfAdminCreateMerchantCredentialsDto;
|
|
12
|
+
exports.AdminCreateMerchantCredentialsDtoFromJSON = AdminCreateMerchantCredentialsDtoFromJSON;
|
|
13
|
+
exports.AdminCreateMerchantCredentialsDtoFromJSONTyped = AdminCreateMerchantCredentialsDtoFromJSONTyped;
|
|
14
|
+
exports.AdminCreateMerchantCredentialsDtoToJSON = AdminCreateMerchantCredentialsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the AdminCreateMerchantCredentialsDto interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfAdminCreateMerchantCredentialsDto(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "credentialsName" in value;
|
|
22
|
+
isInstance = isInstance && "merchantId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function AdminCreateMerchantCredentialsDtoFromJSON(json) {
|
|
26
|
+
return AdminCreateMerchantCredentialsDtoFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function AdminCreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'credentialsName': json['credentialsName'],
|
|
34
|
+
'merchantId': json['merchantId'],
|
|
35
|
+
};
|
|
36
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
37
|
+
}
|
|
38
|
+
function AdminCreateMerchantCredentialsDtoToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'credentialsName': value.credentialsName,
|
|
47
|
+
'merchantId': value.merchantId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 AdminMerchantSettingsDto
|
|
12
|
+
*/
|
|
13
|
+
export interface AdminMerchantSettingsDto {
|
|
14
|
+
/**
|
|
15
|
+
* The custom theme for hosted checkout.
|
|
16
|
+
* @type {MerchantThemeDto}
|
|
17
|
+
* @memberof AdminMerchantSettingsDto
|
|
18
|
+
*/
|
|
19
|
+
checkoutTheme?: MerchantThemeDto;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable split card fee transactions.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof AdminMerchantSettingsDto
|
|
24
|
+
*/
|
|
25
|
+
isSplitCFeeEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable debt repayment.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof AdminMerchantSettingsDto
|
|
30
|
+
*/
|
|
31
|
+
isDebtRepaymentEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Enable or disable partial authorization.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AdminMerchantSettingsDto
|
|
36
|
+
*/
|
|
37
|
+
isPartialAuthEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enable bill payment on this merchant.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof AdminMerchantSettingsDto
|
|
42
|
+
*/
|
|
43
|
+
isBillPaymentEnabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Store card on decline option for this merchant.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof AdminMerchantSettingsDto
|
|
48
|
+
*/
|
|
49
|
+
storeOnCardDecline?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The merchant ID to update settings for.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AdminMerchantSettingsDto
|
|
54
|
+
*/
|
|
55
|
+
merchantId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the AdminMerchantSettingsDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfAdminMerchantSettingsDto(value: object): boolean;
|
|
61
|
+
export declare function AdminMerchantSettingsDtoFromJSON(json: any): AdminMerchantSettingsDto;
|
|
62
|
+
export declare function AdminMerchantSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminMerchantSettingsDto;
|
|
63
|
+
export declare function AdminMerchantSettingsDtoToJSON(value?: AdminMerchantSettingsDto | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfAdminMerchantSettingsDto = instanceOfAdminMerchantSettingsDto;
|
|
12
|
+
exports.AdminMerchantSettingsDtoFromJSON = AdminMerchantSettingsDtoFromJSON;
|
|
13
|
+
exports.AdminMerchantSettingsDtoFromJSONTyped = AdminMerchantSettingsDtoFromJSONTyped;
|
|
14
|
+
exports.AdminMerchantSettingsDtoToJSON = AdminMerchantSettingsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeDto_1 = require("./MerchantThemeDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AdminMerchantSettingsDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAdminMerchantSettingsDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "merchantId" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function AdminMerchantSettingsDtoFromJSON(json) {
|
|
26
|
+
return AdminMerchantSettingsDtoFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function AdminMerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
34
|
+
'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
35
|
+
'isDebtRepaymentEnabled': !(0, runtime_1.exists)(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
36
|
+
'isPartialAuthEnabled': !(0, runtime_1.exists)(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
37
|
+
'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
38
|
+
'storeOnCardDecline': !(0, runtime_1.exists)(json, 'storeOnCardDecline') ? undefined : json['storeOnCardDecline'],
|
|
39
|
+
'merchantId': json['merchantId'],
|
|
40
|
+
};
|
|
41
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
42
|
+
}
|
|
43
|
+
function AdminMerchantSettingsDtoToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
52
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
53
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
54
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
55
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
56
|
+
'storeOnCardDecline': value.storeOnCardDecline,
|
|
57
|
+
'merchantId': value.merchantId,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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
|
|
@@ -40,6 +40,8 @@ function CFeeEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
const typed = {
|
|
41
41
|
'type': json['type'],
|
|
42
42
|
'rate': json['rate'],
|
|
43
|
+
'minFeeThreshold': !(0, runtime_1.exists)(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
44
|
+
'minFeeFixedRate': !(0, runtime_1.exists)(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
43
45
|
};
|
|
44
46
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
47
|
}
|
|
@@ -53,5 +55,7 @@ function CFeeEntityToJSON(value) {
|
|
|
53
55
|
return {
|
|
54
56
|
'type': value.type,
|
|
55
57
|
'rate': value.rate,
|
|
58
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
59
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -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
|
|
@@ -40,6 +40,8 @@ function CreateCFeeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
const typed = {
|
|
41
41
|
'type': json['type'],
|
|
42
42
|
'rate': json['rate'],
|
|
43
|
+
'minFeeThreshold': !(0, runtime_1.exists)(json, 'minFeeThreshold') ? undefined : json['minFeeThreshold'],
|
|
44
|
+
'minFeeFixedRate': !(0, runtime_1.exists)(json, 'minFeeFixedRate') ? undefined : json['minFeeFixedRate'],
|
|
43
45
|
};
|
|
44
46
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
47
|
}
|
|
@@ -53,5 +55,7 @@ function CreateCFeeDtoToJSON(value) {
|
|
|
53
55
|
return {
|
|
54
56
|
'type': value.type,
|
|
55
57
|
'rate': value.rate,
|
|
58
|
+
'minFeeThreshold': value.minFeeThreshold,
|
|
59
|
+
'minFeeFixedRate': value.minFeeFixedRate,
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -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,139 @@
|
|
|
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.CreateMerchantAccountDtoCurrenciesEnum = exports.CreateMerchantAccountDtoDataSourceEnum = exports.CreateMerchantAccountDtoCardSchemesEnum = exports.CreateMerchantAccountDtoCardTypesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoMethodEnum = void 0;
|
|
12
|
+
exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
|
|
13
|
+
exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
|
|
14
|
+
exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
|
|
15
|
+
exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const CreateCFeeDto_1 = require("./CreateCFeeDto");
|
|
18
|
+
const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.CreateMerchantAccountDtoMethodEnum = {
|
|
23
|
+
Card: 'CARD',
|
|
24
|
+
Ach: 'ACH'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.CreateMerchantAccountDtoPspEnum = {
|
|
30
|
+
Tsys: 'TSYS',
|
|
31
|
+
Nashville: 'NASHVILLE',
|
|
32
|
+
North: 'NORTH',
|
|
33
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.CreateMerchantAccountDtoCardTypesEnum = {
|
|
39
|
+
Credit: 'CREDIT',
|
|
40
|
+
Debit: 'DEBIT',
|
|
41
|
+
Prepaid: 'PREPAID'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
exports.CreateMerchantAccountDtoCardSchemesEnum = {
|
|
47
|
+
Visa: 'VISA',
|
|
48
|
+
Mastercard: 'MASTERCARD',
|
|
49
|
+
Amex: 'AMEX',
|
|
50
|
+
Discover: 'DISCOVER',
|
|
51
|
+
Jcb: 'JCB',
|
|
52
|
+
DinersClub: 'DINERS_CLUB',
|
|
53
|
+
Maestro: 'MAESTRO'
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
exports.CreateMerchantAccountDtoDataSourceEnum = {
|
|
59
|
+
Moto: 'MOTO',
|
|
60
|
+
Internet: 'INTERNET'
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
exports.CreateMerchantAccountDtoCurrenciesEnum = {
|
|
66
|
+
Usd: 'USD',
|
|
67
|
+
Aud: 'AUD',
|
|
68
|
+
Cad: 'CAD'
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
72
|
+
*/
|
|
73
|
+
function instanceOfCreateMerchantAccountDto(value) {
|
|
74
|
+
let isInstance = true;
|
|
75
|
+
isInstance = isInstance && "merchantId" in value;
|
|
76
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
77
|
+
isInstance = isInstance && "method" in value;
|
|
78
|
+
isInstance = isInstance && "psp" in value;
|
|
79
|
+
isInstance = isInstance && "cFee" in value;
|
|
80
|
+
isInstance = isInstance && "connectors" in value;
|
|
81
|
+
return isInstance;
|
|
82
|
+
}
|
|
83
|
+
function CreateMerchantAccountDtoFromJSON(json) {
|
|
84
|
+
return CreateMerchantAccountDtoFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
const typed = {
|
|
91
|
+
'merchantId': json['merchantId'],
|
|
92
|
+
'issuedMid': json['issuedMid'],
|
|
93
|
+
'method': json['method'],
|
|
94
|
+
'psp': json['psp'],
|
|
95
|
+
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
|
|
96
|
+
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
97
|
+
'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
98
|
+
'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
99
|
+
'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
100
|
+
'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
|
|
101
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
102
|
+
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
103
|
+
'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
104
|
+
'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
105
|
+
'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
106
|
+
'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
107
|
+
'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
|
|
108
|
+
'transactionLimit': !(0, runtime_1.exists)(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
109
|
+
};
|
|
110
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
111
|
+
}
|
|
112
|
+
function CreateMerchantAccountDtoToJSON(value) {
|
|
113
|
+
if (value === undefined) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
if (value === null) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
'merchantId': value.merchantId,
|
|
121
|
+
'issuedMid': value.issuedMid,
|
|
122
|
+
'method': value.method,
|
|
123
|
+
'psp': value.psp,
|
|
124
|
+
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
|
|
125
|
+
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
126
|
+
'cardTypes': value.cardTypes,
|
|
127
|
+
'cardSchemes': value.cardSchemes,
|
|
128
|
+
'dataSource': value.dataSource,
|
|
129
|
+
'currencies': value.currencies,
|
|
130
|
+
'name': value.name,
|
|
131
|
+
'mcc': value.mcc,
|
|
132
|
+
'bin': value.bin,
|
|
133
|
+
'chain': value.chain,
|
|
134
|
+
'store': value.store,
|
|
135
|
+
'agent': value.agent,
|
|
136
|
+
'isDefault': value.isDefault,
|
|
137
|
+
'transactionLimit': value.transactionLimit,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -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
|