@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,149 @@
|
|
|
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 { CFeeEntityFromJSON, CFeeEntityToJSON, } from './CFeeEntity';
|
|
11
|
+
import { MerchantConnectorServiceEntityFromJSON, MerchantConnectorServiceEntityToJSON, } from './MerchantConnectorServiceEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const MerchantAccountEntityPspEnum = {
|
|
16
|
+
Tsys: 'TSYS',
|
|
17
|
+
Nashville: 'NASHVILLE',
|
|
18
|
+
North: 'NORTH',
|
|
19
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const MerchantAccountEntityMethodEnum = {
|
|
25
|
+
Card: 'CARD',
|
|
26
|
+
Ach: 'ACH'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const MerchantAccountEntityStatusEnum = {
|
|
32
|
+
Pending: 'PENDING',
|
|
33
|
+
Active: 'ACTIVE',
|
|
34
|
+
Inactive: 'INACTIVE',
|
|
35
|
+
Suspended: 'SUSPENDED',
|
|
36
|
+
Closed: 'CLOSED'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const MerchantAccountEntityCardSchemesEnum = {
|
|
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
|
+
export const MerchantAccountEntityCurrenciesEnum = {
|
|
54
|
+
Usd: 'USD',
|
|
55
|
+
Aud: 'AUD',
|
|
56
|
+
Cad: 'CAD'
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const MerchantAccountEntityCardTypesEnum = {
|
|
62
|
+
Credit: 'CREDIT',
|
|
63
|
+
Debit: 'DEBIT',
|
|
64
|
+
Prepaid: 'PREPAID'
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export const MerchantAccountEntityDataSourceEnum = {
|
|
70
|
+
Moto: 'MOTO',
|
|
71
|
+
Internet: 'INTERNET'
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the MerchantAccountEntity interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfMerchantAccountEntity(value) {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
isInstance = isInstance && "merchantAccountId" in value;
|
|
79
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
80
|
+
isInstance = isInstance && "psp" in value;
|
|
81
|
+
isInstance = isInstance && "cFee" in value;
|
|
82
|
+
isInstance = isInstance && "createdAt" in value;
|
|
83
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
84
|
+
isInstance = isInstance && "method" in value;
|
|
85
|
+
isInstance = isInstance && "status" in value;
|
|
86
|
+
isInstance = isInstance && "cardSchemes" in value;
|
|
87
|
+
isInstance = isInstance && "currencies" in value;
|
|
88
|
+
isInstance = isInstance && "cardTypes" in value;
|
|
89
|
+
return isInstance;
|
|
90
|
+
}
|
|
91
|
+
export function MerchantAccountEntityFromJSON(json) {
|
|
92
|
+
return MerchantAccountEntityFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
95
|
+
if ((json === undefined) || (json === null)) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
const typed = {
|
|
99
|
+
'merchantAccountId': json['merchantAccountId'],
|
|
100
|
+
'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
|
|
101
|
+
'issuedMid': json['issuedMid'],
|
|
102
|
+
'psp': json['psp'],
|
|
103
|
+
'cFee': CFeeEntityFromJSON(json['cFee']),
|
|
104
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
105
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
106
|
+
'method': json['method'],
|
|
107
|
+
'status': json['status'],
|
|
108
|
+
'cardSchemes': json['cardSchemes'],
|
|
109
|
+
'currencies': json['currencies'],
|
|
110
|
+
'cardTypes': json['cardTypes'],
|
|
111
|
+
'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
|
|
112
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
113
|
+
'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
|
|
114
|
+
'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
115
|
+
'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
|
|
116
|
+
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
117
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
118
|
+
};
|
|
119
|
+
return removeNullUndefined(typed);
|
|
120
|
+
}
|
|
121
|
+
export function MerchantAccountEntityToJSON(value) {
|
|
122
|
+
if (value === undefined) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
if (value === null) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
'merchantAccountId': value.merchantAccountId,
|
|
130
|
+
'merchantId': value.merchantId,
|
|
131
|
+
'issuedMid': value.issuedMid,
|
|
132
|
+
'psp': value.psp,
|
|
133
|
+
'cFee': CFeeEntityToJSON(value.cFee),
|
|
134
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
135
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
136
|
+
'method': value.method,
|
|
137
|
+
'status': value.status,
|
|
138
|
+
'cardSchemes': value.cardSchemes,
|
|
139
|
+
'currencies': value.currencies,
|
|
140
|
+
'cardTypes': value.cardTypes,
|
|
141
|
+
'isDefault': value.isDefault,
|
|
142
|
+
'name': value.name,
|
|
143
|
+
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
|
|
144
|
+
'transactionLimit': value.transactionLimit,
|
|
145
|
+
'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
|
|
146
|
+
'dataSource': value.dataSource,
|
|
147
|
+
'mcc': value.mcc,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
@@ -102,6 +102,12 @@ export interface MerchantAccountServiceEntity {
|
|
|
102
102
|
* @memberof MerchantAccountServiceEntity
|
|
103
103
|
*/
|
|
104
104
|
connectors?: Array<MerchantConnectorServiceEntity>;
|
|
105
|
+
/**
|
|
106
|
+
* Transaction limit for this merchant account.
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof MerchantAccountServiceEntity
|
|
109
|
+
*/
|
|
110
|
+
transactionLimit?: number;
|
|
105
111
|
/**
|
|
106
112
|
* The date the merchant account was last polled for return notifications.
|
|
107
113
|
* @type {Date}
|
|
@@ -111,6 +111,7 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
|
|
|
111
111
|
'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
|
|
112
112
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
113
113
|
'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
|
|
114
|
+
'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
114
115
|
'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
|
|
115
116
|
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
116
117
|
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
@@ -140,6 +141,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
|
|
|
140
141
|
'isDefault': value.isDefault,
|
|
141
142
|
'name': value.name,
|
|
142
143
|
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
|
|
144
|
+
'transactionLimit': value.transactionLimit,
|
|
143
145
|
'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
|
|
144
146
|
'dataSource': value.dataSource,
|
|
145
147
|
'mcc': value.mcc,
|
|
@@ -36,11 +36,17 @@ export interface MerchantSettingsBaseDto {
|
|
|
36
36
|
*/
|
|
37
37
|
isPartialAuthEnabled?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* Enable bill payment on this merchant
|
|
39
|
+
* Enable bill payment on this merchant.
|
|
40
40
|
* @type {boolean}
|
|
41
41
|
* @memberof MerchantSettingsBaseDto
|
|
42
42
|
*/
|
|
43
43
|
isBillPaymentEnabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Store card on decline option for this merchant.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof MerchantSettingsBaseDto
|
|
48
|
+
*/
|
|
49
|
+
storeOnCardDecline?: boolean;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
@@ -28,6 +28,7 @@ export function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
28
28
|
'isDebtRepaymentEnabled': !exists(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
29
29
|
'isPartialAuthEnabled': !exists(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
30
30
|
'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
31
|
+
'storeOnCardDecline': !exists(json, 'storeOnCardDecline') ? undefined : json['storeOnCardDecline'],
|
|
31
32
|
};
|
|
32
33
|
return removeNullUndefined(typed);
|
|
33
34
|
}
|
|
@@ -44,5 +45,6 @@ export function MerchantSettingsBaseDtoToJSON(value) {
|
|
|
44
45
|
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
45
46
|
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
46
47
|
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
48
|
+
'storeOnCardDecline': value.storeOnCardDecline,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -47,6 +47,12 @@ export interface MerchantSettingsEntity {
|
|
|
47
47
|
* @memberof MerchantSettingsEntity
|
|
48
48
|
*/
|
|
49
49
|
isBillPaymentEnabled: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to store the card on decline for this merchant.
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof MerchantSettingsEntity
|
|
54
|
+
*/
|
|
55
|
+
storeOnCardDecline: boolean;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
@@ -18,6 +18,7 @@ export function instanceOfMerchantSettingsEntity(value) {
|
|
|
18
18
|
isInstance = isInstance && "isDebtRepaymentEnabled" in value;
|
|
19
19
|
isInstance = isInstance && "isPartialAuthEnabled" in value;
|
|
20
20
|
isInstance = isInstance && "isBillPaymentEnabled" in value;
|
|
21
|
+
isInstance = isInstance && "storeOnCardDecline" in value;
|
|
21
22
|
return isInstance;
|
|
22
23
|
}
|
|
23
24
|
export function MerchantSettingsEntityFromJSON(json) {
|
|
@@ -34,6 +35,7 @@ export function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
|
|
35
36
|
'isPartialAuthEnabled': json['isPartialAuthEnabled'],
|
|
36
37
|
'isBillPaymentEnabled': json['isBillPaymentEnabled'],
|
|
38
|
+
'storeOnCardDecline': json['storeOnCardDecline'],
|
|
37
39
|
};
|
|
38
40
|
return removeNullUndefined(typed);
|
|
39
41
|
}
|
|
@@ -51,5 +53,6 @@ export function MerchantSettingsEntityToJSON(value) {
|
|
|
51
53
|
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
52
54
|
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
53
55
|
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
56
|
+
'storeOnCardDecline': value.storeOnCardDecline,
|
|
54
57
|
};
|
|
55
58
|
}
|
|
@@ -11,12 +11,6 @@ import type { CreateCFeeDto } from './CreateCFeeDto';
|
|
|
11
11
|
* @interface UpdateMerchantAccountDto
|
|
12
12
|
*/
|
|
13
13
|
export interface UpdateMerchantAccountDto {
|
|
14
|
-
/**
|
|
15
|
-
* The payment service provider
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof UpdateMerchantAccountDto
|
|
18
|
-
*/
|
|
19
|
-
psp?: UpdateMerchantAccountDtoPspEnum;
|
|
20
14
|
/**
|
|
21
15
|
* The CFee details
|
|
22
16
|
* @type {CreateCFeeDto}
|
|
@@ -47,6 +41,12 @@ export interface UpdateMerchantAccountDto {
|
|
|
47
41
|
* @memberof UpdateMerchantAccountDto
|
|
48
42
|
*/
|
|
49
43
|
currencies?: Array<UpdateMerchantAccountDtoCurrenciesEnum>;
|
|
44
|
+
/**
|
|
45
|
+
* The associated merchant name
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateMerchantAccountDto
|
|
48
|
+
*/
|
|
49
|
+
name?: string;
|
|
50
50
|
/**
|
|
51
51
|
* The MCC (Merchant Category Code)
|
|
52
52
|
* @type {string}
|
|
@@ -83,6 +83,12 @@ export interface UpdateMerchantAccountDto {
|
|
|
83
83
|
* @memberof UpdateMerchantAccountDto
|
|
84
84
|
*/
|
|
85
85
|
isDefault?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Transaction limit for this merchant.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof UpdateMerchantAccountDto
|
|
90
|
+
*/
|
|
91
|
+
transactionLimit?: number;
|
|
86
92
|
/**
|
|
87
93
|
* The date the merchant account was last polled for return notifications.
|
|
88
94
|
* @type {string}
|
|
@@ -90,16 +96,6 @@ export interface UpdateMerchantAccountDto {
|
|
|
90
96
|
*/
|
|
91
97
|
lastPolledAt?: string;
|
|
92
98
|
}
|
|
93
|
-
/**
|
|
94
|
-
* @export
|
|
95
|
-
*/
|
|
96
|
-
export declare const UpdateMerchantAccountDtoPspEnum: {
|
|
97
|
-
readonly Tsys: "TSYS";
|
|
98
|
-
readonly Nashville: "NASHVILLE";
|
|
99
|
-
readonly North: "NORTH";
|
|
100
|
-
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
101
|
-
};
|
|
102
|
-
export type UpdateMerchantAccountDtoPspEnum = typeof UpdateMerchantAccountDtoPspEnum[keyof typeof UpdateMerchantAccountDtoPspEnum];
|
|
103
99
|
/**
|
|
104
100
|
* @export
|
|
105
101
|
*/
|
|
@@ -8,15 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { CreateCFeeDtoFromJSON, CreateCFeeDtoToJSON, } from './CreateCFeeDto';
|
|
11
|
-
/**
|
|
12
|
-
* @export
|
|
13
|
-
*/
|
|
14
|
-
export const UpdateMerchantAccountDtoPspEnum = {
|
|
15
|
-
Tsys: 'TSYS',
|
|
16
|
-
Nashville: 'NASHVILLE',
|
|
17
|
-
North: 'NORTH',
|
|
18
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
19
|
-
};
|
|
20
11
|
/**
|
|
21
12
|
* @export
|
|
22
13
|
*/
|
|
@@ -67,18 +58,19 @@ export function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
67
58
|
return json;
|
|
68
59
|
}
|
|
69
60
|
const typed = {
|
|
70
|
-
'psp': !exists(json, 'psp') ? undefined : json['psp'],
|
|
71
61
|
'cFee': !exists(json, 'cFee') ? undefined : CreateCFeeDtoFromJSON(json['cFee']),
|
|
72
62
|
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
73
63
|
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
74
64
|
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
75
65
|
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
66
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
76
67
|
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
77
68
|
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
78
69
|
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
79
70
|
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
80
71
|
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
81
72
|
'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
|
|
73
|
+
'transactionLimit': !exists(json, 'transactionLimit') ? undefined : json['transactionLimit'],
|
|
82
74
|
'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : json['lastPolledAt'],
|
|
83
75
|
};
|
|
84
76
|
return removeNullUndefined(typed);
|
|
@@ -91,18 +83,19 @@ export function UpdateMerchantAccountDtoToJSON(value) {
|
|
|
91
83
|
return null;
|
|
92
84
|
}
|
|
93
85
|
return {
|
|
94
|
-
'psp': value.psp,
|
|
95
86
|
'cFee': CreateCFeeDtoToJSON(value.cFee),
|
|
96
87
|
'cardTypes': value.cardTypes,
|
|
97
88
|
'cardSchemes': value.cardSchemes,
|
|
98
89
|
'dataSource': value.dataSource,
|
|
99
90
|
'currencies': value.currencies,
|
|
91
|
+
'name': value.name,
|
|
100
92
|
'mcc': value.mcc,
|
|
101
93
|
'bin': value.bin,
|
|
102
94
|
'chain': value.chain,
|
|
103
95
|
'store': value.store,
|
|
104
96
|
'agent': value.agent,
|
|
105
97
|
'isDefault': value.isDefault,
|
|
98
|
+
'transactionLimit': value.transactionLimit,
|
|
106
99
|
'lastPolledAt': value.lastPolledAt,
|
|
107
100
|
};
|
|
108
101
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdateMerchantConnectorCredentialsDto
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateMerchantConnectorCredentialsDto {
|
|
13
|
+
/**
|
|
14
|
+
* The key or username for the connector account.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof UpdateMerchantConnectorCredentialsDto
|
|
17
|
+
*/
|
|
18
|
+
username?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The secret or password for the connector account.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateMerchantConnectorCredentialsDto
|
|
23
|
+
*/
|
|
24
|
+
password?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The associated merchant connector ID.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateMerchantConnectorCredentialsDto
|
|
29
|
+
*/
|
|
30
|
+
credentialsId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateMerchantConnectorCredentialsDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateMerchantConnectorCredentialsDto(value: object): boolean;
|
|
36
|
+
export declare function UpdateMerchantConnectorCredentialsDtoFromJSON(json: any): UpdateMerchantConnectorCredentialsDto;
|
|
37
|
+
export declare function UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantConnectorCredentialsDto;
|
|
38
|
+
export declare function UpdateMerchantConnectorCredentialsDtoToJSON(value?: UpdateMerchantConnectorCredentialsDto | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
11
|
+
* Check if a given object implements the UpdateMerchantConnectorCredentialsDto interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfUpdateMerchantConnectorCredentialsDto(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "credentialsId" in value;
|
|
16
|
+
return isInstance;
|
|
17
|
+
}
|
|
18
|
+
export function UpdateMerchantConnectorCredentialsDtoFromJSON(json) {
|
|
19
|
+
return UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function UpdateMerchantConnectorCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
const typed = {
|
|
26
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
27
|
+
'password': !exists(json, 'password') ? undefined : json['password'],
|
|
28
|
+
'credentialsId': json['credentialsId'],
|
|
29
|
+
};
|
|
30
|
+
return removeNullUndefined(typed);
|
|
31
|
+
}
|
|
32
|
+
export function UpdateMerchantConnectorCredentialsDtoToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'username': value.username,
|
|
41
|
+
'password': value.password,
|
|
42
|
+
'credentialsId': value.credentialsId,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './AddressEntity';
|
|
2
|
+
export * from './AdminCreateMerchantCredentialsDto';
|
|
3
|
+
export * from './AdminMerchantSettingsDto';
|
|
2
4
|
export * from './AuthorizedPaymentInstrumentsEntity';
|
|
3
5
|
export * from './AvailablePaymentMethodEntity';
|
|
4
6
|
export * from './BankDetailsServiceEntity';
|
|
@@ -34,6 +36,7 @@ export * from './CreateEventDomainDto';
|
|
|
34
36
|
export * from './CreateFeatureDto';
|
|
35
37
|
export * from './CreateFeatureTargetDto';
|
|
36
38
|
export * from './CreateInitialUserDto';
|
|
39
|
+
export * from './CreateMerchantAccountDto';
|
|
37
40
|
export * from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
38
41
|
export * from './CreateMerchantAddressDto';
|
|
39
42
|
export * from './CreateMerchantConnectorCredentialsDto';
|
|
@@ -60,6 +63,7 @@ export * from './FeatureTargetEntity';
|
|
|
60
63
|
export * from './FeaturesEntity';
|
|
61
64
|
export * from './FeeDetailsEntity';
|
|
62
65
|
export * from './LogoUploadEntity';
|
|
66
|
+
export * from './MerchantAccountEntity';
|
|
63
67
|
export * from './MerchantAccountServiceEntity';
|
|
64
68
|
export * from './MerchantAccountsSearchEntity';
|
|
65
69
|
export * from './MerchantAddressEntity';
|
|
@@ -113,6 +117,7 @@ export * from './UpdateBuyerDto';
|
|
|
113
117
|
export * from './UpdateFeatureDto';
|
|
114
118
|
export * from './UpdateFeatureTargetDto';
|
|
115
119
|
export * from './UpdateMerchantAccountDto';
|
|
120
|
+
export * from './UpdateMerchantConnectorCredentialsDto';
|
|
116
121
|
export * from './UpdateMerchantCredentialsDto';
|
|
117
122
|
export * from './UpdateMerchantDto';
|
|
118
123
|
export * from './UpdatePaymentMethodStatusDto';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AddressEntity';
|
|
4
|
+
export * from './AdminCreateMerchantCredentialsDto';
|
|
5
|
+
export * from './AdminMerchantSettingsDto';
|
|
4
6
|
export * from './AuthorizedPaymentInstrumentsEntity';
|
|
5
7
|
export * from './AvailablePaymentMethodEntity';
|
|
6
8
|
export * from './BankDetailsServiceEntity';
|
|
@@ -36,6 +38,7 @@ export * from './CreateEventDomainDto';
|
|
|
36
38
|
export * from './CreateFeatureDto';
|
|
37
39
|
export * from './CreateFeatureTargetDto';
|
|
38
40
|
export * from './CreateInitialUserDto';
|
|
41
|
+
export * from './CreateMerchantAccountDto';
|
|
39
42
|
export * from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
40
43
|
export * from './CreateMerchantAddressDto';
|
|
41
44
|
export * from './CreateMerchantConnectorCredentialsDto';
|
|
@@ -62,6 +65,7 @@ export * from './FeatureTargetEntity';
|
|
|
62
65
|
export * from './FeaturesEntity';
|
|
63
66
|
export * from './FeeDetailsEntity';
|
|
64
67
|
export * from './LogoUploadEntity';
|
|
68
|
+
export * from './MerchantAccountEntity';
|
|
65
69
|
export * from './MerchantAccountServiceEntity';
|
|
66
70
|
export * from './MerchantAccountsSearchEntity';
|
|
67
71
|
export * from './MerchantAddressEntity';
|
|
@@ -115,6 +119,7 @@ export * from './UpdateBuyerDto';
|
|
|
115
119
|
export * from './UpdateFeatureDto';
|
|
116
120
|
export * from './UpdateFeatureTargetDto';
|
|
117
121
|
export * from './UpdateMerchantAccountDto';
|
|
122
|
+
export * from './UpdateMerchantConnectorCredentialsDto';
|
|
118
123
|
export * from './UpdateMerchantCredentialsDto';
|
|
119
124
|
export * from './UpdateMerchantDto';
|
|
120
125
|
export * from './UpdatePaymentMethodStatusDto';
|
package/dist/mjs/runtime.js
CHANGED
|
@@ -64,7 +64,7 @@ export class BaseAPI {
|
|
|
64
64
|
}
|
|
65
65
|
async createFetchParams(context) {
|
|
66
66
|
Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
|
|
67
|
-
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.
|
|
67
|
+
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.200.0";
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@channelpayments/node-sdk",
|
|
3
3
|
"description": "Channel Payments nodejs sdk",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.200.1",
|
|
5
5
|
"author": "Channel Payments",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"cross-fetch": "4.1.0",
|
|
26
|
-
"jsonwebtoken": "9.0.
|
|
26
|
+
"jsonwebtoken": "9.0.3",
|
|
27
27
|
"ulidx": "2.4.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@aws-sdk/client-s3": "3.
|
|
31
|
-
"@aws-sdk/client-ssm": "3.
|
|
32
|
-
"@cp/channel-utils": "1.
|
|
33
|
-
"@types/jsonwebtoken": "9.0.
|
|
34
|
-
"@types/node": "22.
|
|
30
|
+
"@aws-sdk/client-s3": "3.975.0",
|
|
31
|
+
"@aws-sdk/client-ssm": "3.975.0",
|
|
32
|
+
"@cp/channel-utils": "1.2.0",
|
|
33
|
+
"@types/jsonwebtoken": "9.0.10",
|
|
34
|
+
"@types/node": "22.19.7",
|
|
35
35
|
"chalk": "4.1.2",
|
|
36
36
|
"commander": "12.1.0",
|
|
37
37
|
"openapi-merge": "1.3.3",
|
|
38
|
-
"prettier": "3.
|
|
38
|
+
"prettier": "3.8.1",
|
|
39
39
|
"ts-node": "10.9.2",
|
|
40
|
-
"typescript": "5.
|
|
40
|
+
"typescript": "5.9.3"
|
|
41
41
|
}
|
|
42
42
|
}
|