@channelpayments/node-sdk 1.129.0 → 1.135.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/apis/ChannelPaymentsApi.d.ts +1 -1
- package/dist/cjs/apis/ChannelPaymentsApi.js +1 -1
- 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 +6 -3
- package/dist/cjs/models/index.js +6 -3
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.js +1 -1
- 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 +6 -3
- package/dist/mjs/models/index.js +6 -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,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.MerchantAccountEntityToJSON = exports.MerchantAccountEntityFromJSONTyped = exports.MerchantAccountEntityFromJSON = exports.instanceOfMerchantAccountEntity = exports.MerchantAccountEntityCardTypesEnum = exports.MerchantAccountEntityCurrenciesEnum = exports.MerchantAccountEntityCardSchemesEnum = exports.MerchantAccountEntityStatusEnum = exports.MerchantAccountEntityMethodEnum = exports.MerchantAccountEntityPspEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const MerchantAccountEntityCFee_1 = require("./MerchantAccountEntityCFee");
|
|
14
|
+
const MerchantConnectorServiceEntity_1 = require("./MerchantConnectorServiceEntity");
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
exports.MerchantAccountEntityPspEnum = {
|
|
19
|
+
Tsys: 'TSYS',
|
|
20
|
+
Nashville: 'NASHVILLE',
|
|
21
|
+
North: 'NORTH',
|
|
22
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.MerchantAccountEntityMethodEnum = {
|
|
28
|
+
Card: 'CARD',
|
|
29
|
+
Ach: 'ACH'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.MerchantAccountEntityStatusEnum = {
|
|
35
|
+
Pending: 'PENDING',
|
|
36
|
+
Active: 'ACTIVE',
|
|
37
|
+
Inactive: 'INACTIVE',
|
|
38
|
+
Suspended: 'SUSPENDED',
|
|
39
|
+
Closed: 'CLOSED'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
exports.MerchantAccountEntityCardSchemesEnum = {
|
|
45
|
+
Visa: 'VISA',
|
|
46
|
+
Mastercard: 'MASTERCARD',
|
|
47
|
+
Amex: 'AMEX',
|
|
48
|
+
Discover: 'DISCOVER',
|
|
49
|
+
Jcb: 'JCB',
|
|
50
|
+
DinersClub: 'DINERS_CLUB',
|
|
51
|
+
Maestro: 'MAESTRO'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
exports.MerchantAccountEntityCurrenciesEnum = {
|
|
57
|
+
Usd: 'USD',
|
|
58
|
+
Aud: 'AUD',
|
|
59
|
+
Cad: 'CAD'
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
exports.MerchantAccountEntityCardTypesEnum = {
|
|
65
|
+
Credit: 'CREDIT',
|
|
66
|
+
Debit: 'DEBIT',
|
|
67
|
+
Prepaid: 'PREPAID'
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the MerchantAccountEntity interface.
|
|
71
|
+
*/
|
|
72
|
+
function instanceOfMerchantAccountEntity(value) {
|
|
73
|
+
let isInstance = true;
|
|
74
|
+
isInstance = isInstance && "merchantAccountId" in value;
|
|
75
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
76
|
+
isInstance = isInstance && "psp" in value;
|
|
77
|
+
isInstance = isInstance && "cFee" in value;
|
|
78
|
+
isInstance = isInstance && "createdAt" in value;
|
|
79
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
80
|
+
isInstance = isInstance && "method" in value;
|
|
81
|
+
isInstance = isInstance && "status" in value;
|
|
82
|
+
isInstance = isInstance && "cardSchemes" in value;
|
|
83
|
+
isInstance = isInstance && "currencies" in value;
|
|
84
|
+
isInstance = isInstance && "cardTypes" in value;
|
|
85
|
+
return isInstance;
|
|
86
|
+
}
|
|
87
|
+
exports.instanceOfMerchantAccountEntity = instanceOfMerchantAccountEntity;
|
|
88
|
+
function MerchantAccountEntityFromJSON(json) {
|
|
89
|
+
return MerchantAccountEntityFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
exports.MerchantAccountEntityFromJSON = MerchantAccountEntityFromJSON;
|
|
92
|
+
function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
93
|
+
if ((json === undefined) || (json === null)) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
const typed = {
|
|
97
|
+
'merchantAccountId': json['merchantAccountId'],
|
|
98
|
+
'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
|
|
99
|
+
'issuedMid': json['issuedMid'],
|
|
100
|
+
'psp': json['psp'],
|
|
101
|
+
'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeFromJSON)(json['cFee']),
|
|
102
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
103
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
104
|
+
'method': json['method'],
|
|
105
|
+
'status': json['status'],
|
|
106
|
+
'cardSchemes': json['cardSchemes'],
|
|
107
|
+
'currencies': json['currencies'],
|
|
108
|
+
'cardTypes': json['cardTypes'],
|
|
109
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
110
|
+
'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
|
|
111
|
+
};
|
|
112
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
113
|
+
}
|
|
114
|
+
exports.MerchantAccountEntityFromJSONTyped = MerchantAccountEntityFromJSONTyped;
|
|
115
|
+
function MerchantAccountEntityToJSON(value) {
|
|
116
|
+
if (value === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
if (value === null) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
'merchantAccountId': value.merchantAccountId,
|
|
124
|
+
'merchantId': value.merchantId,
|
|
125
|
+
'issuedMid': value.issuedMid,
|
|
126
|
+
'psp': value.psp,
|
|
127
|
+
'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeToJSON)(value.cFee),
|
|
128
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
129
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
130
|
+
'method': value.method,
|
|
131
|
+
'status': value.status,
|
|
132
|
+
'cardSchemes': value.cardSchemes,
|
|
133
|
+
'currencies': value.currencies,
|
|
134
|
+
'cardTypes': value.cardTypes,
|
|
135
|
+
'name': value.name,
|
|
136
|
+
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
exports.MerchantAccountEntityToJSON = MerchantAccountEntityToJSON;
|
|
@@ -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 MerchantAccountEntityCFee
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantAccountEntityCFee {
|
|
13
|
+
/**
|
|
14
|
+
* The type of the CFee.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantAccountEntityCFee
|
|
17
|
+
*/
|
|
18
|
+
type: MerchantAccountEntityCFeeTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The rate of the CFee as an integer.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof MerchantAccountEntityCFee
|
|
23
|
+
*/
|
|
24
|
+
rate: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const MerchantAccountEntityCFeeTypeEnum: {
|
|
30
|
+
readonly Percentage: "PERCENTAGE";
|
|
31
|
+
readonly Fixed: "FIXED";
|
|
32
|
+
};
|
|
33
|
+
export type MerchantAccountEntityCFeeTypeEnum = typeof MerchantAccountEntityCFeeTypeEnum[keyof typeof MerchantAccountEntityCFeeTypeEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the MerchantAccountEntityCFee interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfMerchantAccountEntityCFee(value: object): boolean;
|
|
38
|
+
export declare function MerchantAccountEntityCFeeFromJSON(json: any): MerchantAccountEntityCFee;
|
|
39
|
+
export declare function MerchantAccountEntityCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntityCFee;
|
|
40
|
+
export declare function MerchantAccountEntityCFeeToJSON(value?: MerchantAccountEntityCFee | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.MerchantAccountEntityCFeeToJSON = exports.MerchantAccountEntityCFeeFromJSONTyped = exports.MerchantAccountEntityCFeeFromJSON = exports.instanceOfMerchantAccountEntityCFee = exports.MerchantAccountEntityCFeeTypeEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.MerchantAccountEntityCFeeTypeEnum = {
|
|
17
|
+
Percentage: 'PERCENTAGE',
|
|
18
|
+
Fixed: 'FIXED'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the MerchantAccountEntityCFee interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfMerchantAccountEntityCFee(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "type" in value;
|
|
26
|
+
isInstance = isInstance && "rate" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfMerchantAccountEntityCFee = instanceOfMerchantAccountEntityCFee;
|
|
30
|
+
function MerchantAccountEntityCFeeFromJSON(json) {
|
|
31
|
+
return MerchantAccountEntityCFeeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.MerchantAccountEntityCFeeFromJSON = MerchantAccountEntityCFeeFromJSON;
|
|
34
|
+
function MerchantAccountEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const typed = {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'rate': json['rate'],
|
|
41
|
+
};
|
|
42
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
43
|
+
}
|
|
44
|
+
exports.MerchantAccountEntityCFeeFromJSONTyped = MerchantAccountEntityCFeeFromJSONTyped;
|
|
45
|
+
function MerchantAccountEntityCFeeToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'rate': value.rate,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.MerchantAccountEntityCFeeToJSON = MerchantAccountEntityCFeeToJSON;
|
|
@@ -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 { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
|
|
8
8
|
import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -38,10 +38,10 @@ export interface MerchantAccountServiceEntity {
|
|
|
38
38
|
psp: MerchantAccountServiceEntityPspEnum;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {MerchantAccountEntityCFee}
|
|
42
42
|
* @memberof MerchantAccountServiceEntity
|
|
43
43
|
*/
|
|
44
|
-
cFee:
|
|
44
|
+
cFee: MerchantAccountEntityCFee;
|
|
45
45
|
/**
|
|
46
46
|
* The date the merchant was created.
|
|
47
47
|
* @type {Date}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.MerchantAccountServiceEntityToJSON = exports.MerchantAccountServiceEntityFromJSONTyped = exports.MerchantAccountServiceEntityFromJSON = exports.instanceOfMerchantAccountServiceEntity = exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
|
|
12
12
|
const runtime_1 = require("../runtime");
|
|
13
|
-
const
|
|
13
|
+
const MerchantAccountEntityCFee_1 = require("./MerchantAccountEntityCFee");
|
|
14
14
|
const MerchantConnectorServiceEntity_1 = require("./MerchantConnectorServiceEntity");
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
@@ -98,7 +98,7 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
98
98
|
'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
|
|
99
99
|
'issuedMid': json['issuedMid'],
|
|
100
100
|
'psp': json['psp'],
|
|
101
|
-
'cFee': (0,
|
|
101
|
+
'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeFromJSON)(json['cFee']),
|
|
102
102
|
'createdAt': (new Date(json['createdAt'])),
|
|
103
103
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
104
104
|
'method': json['method'],
|
|
@@ -124,7 +124,7 @@ function MerchantAccountServiceEntityToJSON(value) {
|
|
|
124
124
|
'merchantId': value.merchantId,
|
|
125
125
|
'issuedMid': value.issuedMid,
|
|
126
126
|
'psp': value.psp,
|
|
127
|
-
'cFee': (0,
|
|
127
|
+
'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeToJSON)(value.cFee),
|
|
128
128
|
'createdAt': (value.createdAt.toISOString()),
|
|
129
129
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
130
130
|
'method': value.method,
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface UpdateMerchantAccountDto
|
|
12
|
+
*/
|
|
13
|
+
export interface UpdateMerchantAccountDto {
|
|
14
|
+
/**
|
|
15
|
+
* The payment method
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof UpdateMerchantAccountDto
|
|
18
|
+
*/
|
|
19
|
+
method?: UpdateMerchantAccountDtoMethodEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The payment service provider
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateMerchantAccountDto
|
|
24
|
+
*/
|
|
25
|
+
psp?: UpdateMerchantAccountDtoPspEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {CreateMerchantAccountDtoCFee}
|
|
29
|
+
* @memberof UpdateMerchantAccountDto
|
|
30
|
+
*/
|
|
31
|
+
cFee?: CreateMerchantAccountDtoCFee;
|
|
32
|
+
/**
|
|
33
|
+
* The accepted card types
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof UpdateMerchantAccountDto
|
|
36
|
+
*/
|
|
37
|
+
cardTypes?: Array<UpdateMerchantAccountDtoCardTypesEnum>;
|
|
38
|
+
/**
|
|
39
|
+
* The accepted card schemes
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof UpdateMerchantAccountDto
|
|
42
|
+
*/
|
|
43
|
+
cardSchemes?: Array<UpdateMerchantAccountDtoCardSchemesEnum>;
|
|
44
|
+
/**
|
|
45
|
+
* The accepted currencies
|
|
46
|
+
* @type {Array<string>}
|
|
47
|
+
* @memberof UpdateMerchantAccountDto
|
|
48
|
+
*/
|
|
49
|
+
currencies?: Array<UpdateMerchantAccountDtoCurrenciesEnum>;
|
|
50
|
+
/**
|
|
51
|
+
* The MCC (Merchant Category Code)
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UpdateMerchantAccountDto
|
|
54
|
+
*/
|
|
55
|
+
mcc?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The BIN (Bank Identification Number)
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof UpdateMerchantAccountDto
|
|
60
|
+
*/
|
|
61
|
+
bin?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The chain or franchise information associated with the merchant
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UpdateMerchantAccountDto
|
|
66
|
+
*/
|
|
67
|
+
chain?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The store information associated with the merchant
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof UpdateMerchantAccountDto
|
|
72
|
+
*/
|
|
73
|
+
store?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The agent information associated with the merchant
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof UpdateMerchantAccountDto
|
|
78
|
+
*/
|
|
79
|
+
agent?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const UpdateMerchantAccountDtoMethodEnum: {
|
|
85
|
+
readonly Card: "CARD";
|
|
86
|
+
readonly Ach: "ACH";
|
|
87
|
+
};
|
|
88
|
+
export type UpdateMerchantAccountDtoMethodEnum = typeof UpdateMerchantAccountDtoMethodEnum[keyof typeof UpdateMerchantAccountDtoMethodEnum];
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export declare const UpdateMerchantAccountDtoPspEnum: {
|
|
93
|
+
readonly Tsys: "TSYS";
|
|
94
|
+
readonly Nashville: "NASHVILLE";
|
|
95
|
+
readonly North: "NORTH";
|
|
96
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
97
|
+
};
|
|
98
|
+
export type UpdateMerchantAccountDtoPspEnum = typeof UpdateMerchantAccountDtoPspEnum[keyof typeof UpdateMerchantAccountDtoPspEnum];
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const UpdateMerchantAccountDtoCardTypesEnum: {
|
|
103
|
+
readonly Credit: "CREDIT";
|
|
104
|
+
readonly Debit: "DEBIT";
|
|
105
|
+
readonly Prepaid: "PREPAID";
|
|
106
|
+
};
|
|
107
|
+
export type UpdateMerchantAccountDtoCardTypesEnum = typeof UpdateMerchantAccountDtoCardTypesEnum[keyof typeof UpdateMerchantAccountDtoCardTypesEnum];
|
|
108
|
+
/**
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export declare const UpdateMerchantAccountDtoCardSchemesEnum: {
|
|
112
|
+
readonly Visa: "VISA";
|
|
113
|
+
readonly Mastercard: "MASTERCARD";
|
|
114
|
+
readonly Amex: "AMEX";
|
|
115
|
+
readonly Discover: "DISCOVER";
|
|
116
|
+
readonly Jcb: "JCB";
|
|
117
|
+
readonly DinersClub: "DINERS_CLUB";
|
|
118
|
+
readonly Maestro: "MAESTRO";
|
|
119
|
+
};
|
|
120
|
+
export type UpdateMerchantAccountDtoCardSchemesEnum = typeof UpdateMerchantAccountDtoCardSchemesEnum[keyof typeof UpdateMerchantAccountDtoCardSchemesEnum];
|
|
121
|
+
/**
|
|
122
|
+
* @export
|
|
123
|
+
*/
|
|
124
|
+
export declare const UpdateMerchantAccountDtoCurrenciesEnum: {
|
|
125
|
+
readonly Usd: "USD";
|
|
126
|
+
readonly Aud: "AUD";
|
|
127
|
+
readonly Cad: "CAD";
|
|
128
|
+
};
|
|
129
|
+
export type UpdateMerchantAccountDtoCurrenciesEnum = typeof UpdateMerchantAccountDtoCurrenciesEnum[keyof typeof UpdateMerchantAccountDtoCurrenciesEnum];
|
|
130
|
+
/**
|
|
131
|
+
* Check if a given object implements the UpdateMerchantAccountDto interface.
|
|
132
|
+
*/
|
|
133
|
+
export declare function instanceOfUpdateMerchantAccountDto(value: object): boolean;
|
|
134
|
+
export declare function UpdateMerchantAccountDtoFromJSON(json: any): UpdateMerchantAccountDto;
|
|
135
|
+
export declare function UpdateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantAccountDto;
|
|
136
|
+
export declare function UpdateMerchantAccountDtoToJSON(value?: UpdateMerchantAccountDto | null): any;
|
|
@@ -0,0 +1,111 @@
|
|
|
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.UpdateMerchantAccountDtoToJSON = exports.UpdateMerchantAccountDtoFromJSONTyped = exports.UpdateMerchantAccountDtoFromJSON = exports.instanceOfUpdateMerchantAccountDto = exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = exports.UpdateMerchantAccountDtoMethodEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
exports.UpdateMerchantAccountDtoMethodEnum = {
|
|
18
|
+
Card: 'CARD',
|
|
19
|
+
Ach: 'ACH'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.UpdateMerchantAccountDtoPspEnum = {
|
|
25
|
+
Tsys: 'TSYS',
|
|
26
|
+
Nashville: 'NASHVILLE',
|
|
27
|
+
North: 'NORTH',
|
|
28
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.UpdateMerchantAccountDtoCardTypesEnum = {
|
|
34
|
+
Credit: 'CREDIT',
|
|
35
|
+
Debit: 'DEBIT',
|
|
36
|
+
Prepaid: 'PREPAID'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.UpdateMerchantAccountDtoCardSchemesEnum = {
|
|
42
|
+
Visa: 'VISA',
|
|
43
|
+
Mastercard: 'MASTERCARD',
|
|
44
|
+
Amex: 'AMEX',
|
|
45
|
+
Discover: 'DISCOVER',
|
|
46
|
+
Jcb: 'JCB',
|
|
47
|
+
DinersClub: 'DINERS_CLUB',
|
|
48
|
+
Maestro: 'MAESTRO'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
exports.UpdateMerchantAccountDtoCurrenciesEnum = {
|
|
54
|
+
Usd: 'USD',
|
|
55
|
+
Aud: 'AUD',
|
|
56
|
+
Cad: 'CAD'
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the UpdateMerchantAccountDto interface.
|
|
60
|
+
*/
|
|
61
|
+
function instanceOfUpdateMerchantAccountDto(value) {
|
|
62
|
+
let isInstance = true;
|
|
63
|
+
return isInstance;
|
|
64
|
+
}
|
|
65
|
+
exports.instanceOfUpdateMerchantAccountDto = instanceOfUpdateMerchantAccountDto;
|
|
66
|
+
function UpdateMerchantAccountDtoFromJSON(json) {
|
|
67
|
+
return UpdateMerchantAccountDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
exports.UpdateMerchantAccountDtoFromJSON = UpdateMerchantAccountDtoFromJSON;
|
|
70
|
+
function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if ((json === undefined) || (json === null)) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
const typed = {
|
|
75
|
+
'method': !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
|
|
76
|
+
'psp': !(0, runtime_1.exists)(json, 'psp') ? undefined : json['psp'],
|
|
77
|
+
'cFee': !(0, runtime_1.exists)(json, 'cFee') ? undefined : (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
|
|
78
|
+
'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
79
|
+
'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
80
|
+
'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
|
|
81
|
+
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
82
|
+
'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
83
|
+
'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
84
|
+
'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
85
|
+
'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
86
|
+
};
|
|
87
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
88
|
+
}
|
|
89
|
+
exports.UpdateMerchantAccountDtoFromJSONTyped = UpdateMerchantAccountDtoFromJSONTyped;
|
|
90
|
+
function UpdateMerchantAccountDtoToJSON(value) {
|
|
91
|
+
if (value === undefined) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
if (value === null) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'method': value.method,
|
|
99
|
+
'psp': value.psp,
|
|
100
|
+
'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
|
|
101
|
+
'cardTypes': value.cardTypes,
|
|
102
|
+
'cardSchemes': value.cardSchemes,
|
|
103
|
+
'currencies': value.currencies,
|
|
104
|
+
'mcc': value.mcc,
|
|
105
|
+
'bin': value.bin,
|
|
106
|
+
'chain': value.chain,
|
|
107
|
+
'store': value.store,
|
|
108
|
+
'agent': value.agent,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
exports.UpdateMerchantAccountDtoToJSON = UpdateMerchantAccountDtoToJSON;
|
|
@@ -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 { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -31,10 +31,10 @@ export interface UpdateMerchantDto {
|
|
|
31
31
|
phoneNumber?: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {UpdateMerchantDtoAddress}
|
|
35
35
|
* @memberof UpdateMerchantDto
|
|
36
36
|
*/
|
|
37
|
-
address?:
|
|
37
|
+
address?: UpdateMerchantDtoAddress;
|
|
38
38
|
/**
|
|
39
39
|
* The website URL of the merchant.
|
|
40
40
|
* @type {string}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.UpdateMerchantDtoToJSON = exports.UpdateMerchantDtoFromJSONTyped = exports.UpdateMerchantDtoFromJSON = exports.instanceOfUpdateMerchantDto = void 0;
|
|
12
12
|
const runtime_1 = require("../runtime");
|
|
13
|
-
const
|
|
13
|
+
const UpdateMerchantDtoAddress_1 = require("./UpdateMerchantDtoAddress");
|
|
14
14
|
/**
|
|
15
15
|
* Check if a given object implements the UpdateMerchantDto interface.
|
|
16
16
|
*/
|
|
@@ -32,7 +32,7 @@ function UpdateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
33
33
|
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
34
34
|
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
35
|
-
'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0,
|
|
35
|
+
'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressFromJSON)(json['address']),
|
|
36
36
|
'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
|
|
37
37
|
'merchantId': json['merchantId'],
|
|
38
38
|
'cancelRedirectUrl': !(0, runtime_1.exists)(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
@@ -53,7 +53,7 @@ function UpdateMerchantDtoToJSON(value) {
|
|
|
53
53
|
'name': value.name,
|
|
54
54
|
'email': value.email,
|
|
55
55
|
'phoneNumber': value.phoneNumber,
|
|
56
|
-
'address': (0,
|
|
56
|
+
'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressToJSON)(value.address),
|
|
57
57
|
'website': value.website,
|
|
58
58
|
'merchantId': value.merchantId,
|
|
59
59
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts}
RENAMED
|
@@ -7,62 +7,62 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* The address of the merchant.
|
|
9
9
|
* @export
|
|
10
|
-
* @interface
|
|
10
|
+
* @interface UpdateMerchantDtoAddress
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
12
|
+
export interface UpdateMerchantDtoAddress {
|
|
13
13
|
/**
|
|
14
14
|
* The city of the merchant address.
|
|
15
15
|
* @type {string}
|
|
16
|
-
* @memberof
|
|
16
|
+
* @memberof UpdateMerchantDtoAddress
|
|
17
17
|
*/
|
|
18
18
|
city: string;
|
|
19
19
|
/**
|
|
20
20
|
* The country of the merchant address.
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof UpdateMerchantDtoAddress
|
|
23
23
|
*/
|
|
24
24
|
country: string;
|
|
25
25
|
/**
|
|
26
26
|
* The subdivision (state, province, or region) of the merchant address.
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof UpdateMerchantDtoAddress
|
|
29
29
|
*/
|
|
30
30
|
subdivision: string;
|
|
31
31
|
/**
|
|
32
32
|
* The street address of the merchant.
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof UpdateMerchantDtoAddress
|
|
35
35
|
*/
|
|
36
36
|
streetAddress: string;
|
|
37
37
|
/**
|
|
38
38
|
* The postal code of the merchant address.
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof UpdateMerchantDtoAddress
|
|
41
41
|
*/
|
|
42
42
|
postalCode: string;
|
|
43
43
|
/**
|
|
44
44
|
* The country code of the merchant address.
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof UpdateMerchantDtoAddress
|
|
47
47
|
*/
|
|
48
48
|
countryCode?: string;
|
|
49
49
|
/**
|
|
50
50
|
* The second line of the street address of the merchant.
|
|
51
51
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof UpdateMerchantDtoAddress
|
|
53
53
|
*/
|
|
54
54
|
streetAddress2?: string;
|
|
55
55
|
/**
|
|
56
56
|
* The optional subdivision code.
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof UpdateMerchantDtoAddress
|
|
59
59
|
*/
|
|
60
60
|
subdivisionCode?: string;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Check if a given object implements the
|
|
63
|
+
* Check if a given object implements the UpdateMerchantDtoAddress interface.
|
|
64
64
|
*/
|
|
65
|
-
export declare function
|
|
66
|
-
export declare function
|
|
67
|
-
export declare function
|
|
68
|
-
export declare function
|
|
65
|
+
export declare function instanceOfUpdateMerchantDtoAddress(value: object): boolean;
|
|
66
|
+
export declare function UpdateMerchantDtoAddressFromJSON(json: any): UpdateMerchantDtoAddress;
|
|
67
|
+
export declare function UpdateMerchantDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantDtoAddress;
|
|
68
|
+
export declare function UpdateMerchantDtoAddressToJSON(value?: UpdateMerchantDtoAddress | null): any;
|