@channelpayments/node-sdk 1.193.0 → 1.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantDto.js +3 -3
- package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
- package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
- package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
- package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
- package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
- package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
- package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
- package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
- package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/cjs/models/MerchantSettingsDto.js +2 -2
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
- package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
- package/dist/cjs/models/ReportCreatorEntity.js +49 -0
- package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
- package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
- package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
- package/dist/cjs/models/TransactionsReportEntity.js +133 -0
- package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
- package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
- package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
- package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
- package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
- package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
- package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
- package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
- package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
- package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
- package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
- package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
- package/dist/cjs/models/index.d.ts +16 -2
- package/dist/cjs/models/index.js +16 -2
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantDto.js +3 -3
- package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
- package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
- package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
- package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
- package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
- package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
- package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
- package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
- package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/mjs/models/MerchantSettingsDto.js +2 -2
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
- package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
- package/dist/mjs/models/ReportCreatorEntity.js +43 -0
- package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
- package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
- package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
- package/dist/mjs/models/TransactionsReportEntity.js +126 -0
- package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
- package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
- package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
- package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
- package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
- package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
- package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
- package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
- package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
- package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
- package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
- package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
- package/dist/mjs/models/index.d.ts +16 -2
- package/dist/mjs/models/index.js +16 -2
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
- package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/cjs/models/MerchantAccountEntity.js +0 -143
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
- package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/mjs/models/MerchantAccountEntity.js +0 -136
|
@@ -0,0 +1,83 @@
|
|
|
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 { CreateTransactionsReportsFiltersDtoFromJSON, CreateTransactionsReportsFiltersDtoToJSON, } from './CreateTransactionsReportsFiltersDto';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const CreateTransactionsReportsTemplateDtoOrderEnum = {
|
|
15
|
+
Asc: 'asc',
|
|
16
|
+
Desc: 'desc'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const CreateTransactionsReportsTemplateDtoDateRangeEnum = {
|
|
22
|
+
Today: 'TODAY',
|
|
23
|
+
Yesterday: 'YESTERDAY',
|
|
24
|
+
Last7Days: 'LAST_7_DAYS',
|
|
25
|
+
Last30Days: 'LAST_30_DAYS',
|
|
26
|
+
Last60Days: 'LAST_60_DAYS',
|
|
27
|
+
Last90Days: 'LAST_90_DAYS',
|
|
28
|
+
LastWeek: 'LAST_WEEK',
|
|
29
|
+
LastMonth: 'LAST_MONTH',
|
|
30
|
+
LastQuarter: 'LAST_QUARTER',
|
|
31
|
+
LastYear: 'LAST_YEAR',
|
|
32
|
+
Custom: 'CUSTOM'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CreateTransactionsReportsTemplateDto interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfCreateTransactionsReportsTemplateDto(value) {
|
|
38
|
+
let isInstance = true;
|
|
39
|
+
isInstance = isInstance && "name" in value;
|
|
40
|
+
isInstance = isInstance && "dateRange" in value;
|
|
41
|
+
isInstance = isInstance && "startTime" in value;
|
|
42
|
+
isInstance = isInstance && "endTime" in value;
|
|
43
|
+
isInstance = isInstance && "columns" in value;
|
|
44
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
45
|
+
return isInstance;
|
|
46
|
+
}
|
|
47
|
+
export function CreateTransactionsReportsTemplateDtoFromJSON(json) {
|
|
48
|
+
return CreateTransactionsReportsTemplateDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function CreateTransactionsReportsTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
const typed = {
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
57
|
+
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
58
|
+
'dateRange': json['dateRange'],
|
|
59
|
+
'startTime': json['startTime'],
|
|
60
|
+
'endTime': json['endTime'],
|
|
61
|
+
'columns': json['columns'],
|
|
62
|
+
'transactionsFilters': CreateTransactionsReportsFiltersDtoFromJSON(json['transactionsFilters']),
|
|
63
|
+
};
|
|
64
|
+
return removeNullUndefined(typed);
|
|
65
|
+
}
|
|
66
|
+
export function CreateTransactionsReportsTemplateDtoToJSON(value) {
|
|
67
|
+
if (value === undefined) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
if (value === null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'name': value.name,
|
|
75
|
+
'description': value.description,
|
|
76
|
+
'order': value.order,
|
|
77
|
+
'dateRange': value.dateRange,
|
|
78
|
+
'startTime': value.startTime,
|
|
79
|
+
'endTime': value.endTime,
|
|
80
|
+
'columns': value.columns,
|
|
81
|
+
'transactionsFilters': CreateTransactionsReportsFiltersDtoToJSON(value.transactionsFilters),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -108,6 +108,18 @@ export interface MerchantAccountServiceEntity {
|
|
|
108
108
|
* @memberof MerchantAccountServiceEntity
|
|
109
109
|
*/
|
|
110
110
|
lastPolledAt?: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Source of card data for this merchant account
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof MerchantAccountServiceEntity
|
|
115
|
+
*/
|
|
116
|
+
dataSource?: MerchantAccountServiceEntityDataSourceEnum;
|
|
117
|
+
/**
|
|
118
|
+
* The merchant category code.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof MerchantAccountServiceEntity
|
|
121
|
+
*/
|
|
122
|
+
mcc?: string;
|
|
111
123
|
}
|
|
112
124
|
/**
|
|
113
125
|
* @export
|
|
@@ -169,6 +181,14 @@ export declare const MerchantAccountServiceEntityCardTypesEnum: {
|
|
|
169
181
|
readonly Prepaid: "PREPAID";
|
|
170
182
|
};
|
|
171
183
|
export type MerchantAccountServiceEntityCardTypesEnum = typeof MerchantAccountServiceEntityCardTypesEnum[keyof typeof MerchantAccountServiceEntityCardTypesEnum];
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export declare const MerchantAccountServiceEntityDataSourceEnum: {
|
|
188
|
+
readonly Moto: "MOTO";
|
|
189
|
+
readonly Internet: "INTERNET";
|
|
190
|
+
};
|
|
191
|
+
export type MerchantAccountServiceEntityDataSourceEnum = typeof MerchantAccountServiceEntityDataSourceEnum[keyof typeof MerchantAccountServiceEntityDataSourceEnum];
|
|
172
192
|
/**
|
|
173
193
|
* Check if a given object implements the MerchantAccountServiceEntity interface.
|
|
174
194
|
*/
|
|
@@ -63,6 +63,13 @@ export const MerchantAccountServiceEntityCardTypesEnum = {
|
|
|
63
63
|
Debit: 'DEBIT',
|
|
64
64
|
Prepaid: 'PREPAID'
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export const MerchantAccountServiceEntityDataSourceEnum = {
|
|
70
|
+
Moto: 'MOTO',
|
|
71
|
+
Internet: 'INTERNET'
|
|
72
|
+
};
|
|
66
73
|
/**
|
|
67
74
|
* Check if a given object implements the MerchantAccountServiceEntity interface.
|
|
68
75
|
*/
|
|
@@ -105,6 +112,8 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
|
|
|
105
112
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
106
113
|
'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
|
|
107
114
|
'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
|
|
115
|
+
'dataSource': !exists(json, 'dataSource') ? undefined : json['dataSource'],
|
|
116
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
108
117
|
};
|
|
109
118
|
return removeNullUndefined(typed);
|
|
110
119
|
}
|
|
@@ -132,5 +141,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
|
|
|
132
141
|
'name': value.name,
|
|
133
142
|
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
|
|
134
143
|
'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
|
|
144
|
+
'dataSource': value.dataSource,
|
|
145
|
+
'mcc': value.mcc,
|
|
135
146
|
};
|
|
136
147
|
}
|
|
@@ -29,7 +29,7 @@ export interface MerchantConnectorServiceEntity {
|
|
|
29
29
|
*/
|
|
30
30
|
merchantAccountId: string;
|
|
31
31
|
/**
|
|
32
|
-
* The
|
|
32
|
+
* The payment processor connector (e.g., TSYS, ePay, Authorize.net)
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof MerchantConnectorServiceEntity
|
|
35
35
|
*/
|
|
@@ -64,9 +64,9 @@ export interface MerchantConnectorServiceEntity {
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const MerchantConnectorServiceEntityConnectorEnum: {
|
|
66
66
|
readonly Epay: "EPAY";
|
|
67
|
-
readonly Nmi: "NMI";
|
|
68
67
|
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
69
68
|
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
69
|
+
readonly Tsys: "TSYS";
|
|
70
70
|
};
|
|
71
71
|
export type MerchantConnectorServiceEntityConnectorEnum = typeof MerchantConnectorServiceEntityConnectorEnum[keyof typeof MerchantConnectorServiceEntityConnectorEnum];
|
|
72
72
|
/**
|
|
@@ -12,9 +12,9 @@ import { exists, removeNullUndefined } from '../runtime';
|
|
|
12
12
|
*/
|
|
13
13
|
export const MerchantConnectorServiceEntityConnectorEnum = {
|
|
14
14
|
Epay: 'EPAY',
|
|
15
|
-
Nmi: 'NMI',
|
|
16
15
|
AuthorizeNet: 'AUTHORIZE_NET',
|
|
17
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
16
|
+
ChannelPayments: 'CHANNEL_PAYMENTS',
|
|
17
|
+
Tsys: 'TSYS'
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* @export
|
|
@@ -0,0 +1,51 @@
|
|
|
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 MerchantSettingsBaseDto
|
|
12
|
+
*/
|
|
13
|
+
export interface MerchantSettingsBaseDto {
|
|
14
|
+
/**
|
|
15
|
+
* The custom theme for hosted checkout.
|
|
16
|
+
* @type {MerchantThemeDto}
|
|
17
|
+
* @memberof MerchantSettingsBaseDto
|
|
18
|
+
*/
|
|
19
|
+
checkoutTheme?: MerchantThemeDto;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable split card fee transactions.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof MerchantSettingsBaseDto
|
|
24
|
+
*/
|
|
25
|
+
isSplitCFeeEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable debt repayment.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof MerchantSettingsBaseDto
|
|
30
|
+
*/
|
|
31
|
+
isDebtRepaymentEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Enable or disable partial authorization.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof MerchantSettingsBaseDto
|
|
36
|
+
*/
|
|
37
|
+
isPartialAuthEnabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enable bill payment on this merchant
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof MerchantSettingsBaseDto
|
|
42
|
+
*/
|
|
43
|
+
isBillPaymentEnabled?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfMerchantSettingsBaseDto(value: object): boolean;
|
|
49
|
+
export declare function MerchantSettingsBaseDtoFromJSON(json: any): MerchantSettingsBaseDto;
|
|
50
|
+
export declare function MerchantSettingsBaseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantSettingsBaseDto;
|
|
51
|
+
export declare function MerchantSettingsBaseDtoToJSON(value?: MerchantSettingsBaseDto | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { MerchantThemeDtoFromJSON, MerchantThemeDtoToJSON, } from './MerchantThemeDto';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfMerchantSettingsBaseDto(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
return isInstance;
|
|
17
|
+
}
|
|
18
|
+
export function MerchantSettingsBaseDtoFromJSON(json) {
|
|
19
|
+
return MerchantSettingsBaseDtoFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
const typed = {
|
|
26
|
+
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
|
|
27
|
+
'isSplitCFeeEnabled': !exists(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
28
|
+
'isDebtRepaymentEnabled': !exists(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
29
|
+
'isPartialAuthEnabled': !exists(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
30
|
+
'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
31
|
+
};
|
|
32
|
+
return removeNullUndefined(typed);
|
|
33
|
+
}
|
|
34
|
+
export function MerchantSettingsBaseDtoToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
|
|
43
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
44
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
45
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
46
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -18,11 +18,11 @@ export interface MerchantSettingsDto {
|
|
|
18
18
|
*/
|
|
19
19
|
checkoutTheme?: MerchantThemeDto;
|
|
20
20
|
/**
|
|
21
|
-
* Enable
|
|
21
|
+
* Enable bill payment on this merchant
|
|
22
22
|
* @type {boolean}
|
|
23
23
|
* @memberof MerchantSettingsDto
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
isBillPaymentEnabled?: boolean;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Check if a given object implements the MerchantSettingsDto interface.
|
|
@@ -24,7 +24,7 @@ export function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
}
|
|
25
25
|
const typed = {
|
|
26
26
|
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
|
|
27
|
-
'
|
|
27
|
+
'isBillPaymentEnabled': !exists(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
28
28
|
};
|
|
29
29
|
return removeNullUndefined(typed);
|
|
30
30
|
}
|
|
@@ -37,6 +37,6 @@ export function MerchantSettingsDtoToJSON(value) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
|
|
40
|
-
'
|
|
40
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -29,6 +29,24 @@ export interface MerchantSettingsEntity {
|
|
|
29
29
|
* @memberof MerchantSettingsEntity
|
|
30
30
|
*/
|
|
31
31
|
isSplitCFeeEnabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether debt repayment is enabled.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof MerchantSettingsEntity
|
|
36
|
+
*/
|
|
37
|
+
isDebtRepaymentEnabled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether partial authorization is enabled.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof MerchantSettingsEntity
|
|
42
|
+
*/
|
|
43
|
+
isPartialAuthEnabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether bill payment is enabled for this merchant.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof MerchantSettingsEntity
|
|
48
|
+
*/
|
|
49
|
+
isBillPaymentEnabled: boolean;
|
|
32
50
|
}
|
|
33
51
|
/**
|
|
34
52
|
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
@@ -15,6 +15,9 @@ export function instanceOfMerchantSettingsEntity(value) {
|
|
|
15
15
|
let isInstance = true;
|
|
16
16
|
isInstance = isInstance && "merchantId" in value;
|
|
17
17
|
isInstance = isInstance && "isSplitCFeeEnabled" in value;
|
|
18
|
+
isInstance = isInstance && "isDebtRepaymentEnabled" in value;
|
|
19
|
+
isInstance = isInstance && "isPartialAuthEnabled" in value;
|
|
20
|
+
isInstance = isInstance && "isBillPaymentEnabled" in value;
|
|
18
21
|
return isInstance;
|
|
19
22
|
}
|
|
20
23
|
export function MerchantSettingsEntityFromJSON(json) {
|
|
@@ -28,6 +31,9 @@ export function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
31
|
'merchantId': json['merchantId'],
|
|
29
32
|
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeEntityFromJSON(json['checkoutTheme']),
|
|
30
33
|
'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
|
|
34
|
+
'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
|
|
35
|
+
'isPartialAuthEnabled': json['isPartialAuthEnabled'],
|
|
36
|
+
'isBillPaymentEnabled': json['isBillPaymentEnabled'],
|
|
31
37
|
};
|
|
32
38
|
return removeNullUndefined(typed);
|
|
33
39
|
}
|
|
@@ -42,5 +48,8 @@ export function MerchantSettingsEntityToJSON(value) {
|
|
|
42
48
|
'merchantId': value.merchantId,
|
|
43
49
|
'checkoutTheme': MerchantThemeEntityToJSON(value.checkoutTheme),
|
|
44
50
|
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
51
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
52
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
53
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
45
54
|
};
|
|
46
55
|
}
|
|
@@ -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 ReportCreatorEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface ReportCreatorEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The user creator ID.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof ReportCreatorEntity
|
|
17
|
+
*/
|
|
18
|
+
userId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The user creator full name.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ReportCreatorEntity
|
|
23
|
+
*/
|
|
24
|
+
fullName: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ReportCreatorEntity interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfReportCreatorEntity(value: object): boolean;
|
|
30
|
+
export declare function ReportCreatorEntityFromJSON(json: any): ReportCreatorEntity;
|
|
31
|
+
export declare function ReportCreatorEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreatorEntity;
|
|
32
|
+
export declare function ReportCreatorEntityToJSON(value?: ReportCreatorEntity | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the ReportCreatorEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfReportCreatorEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "userId" in value;
|
|
16
|
+
isInstance = isInstance && "fullName" in value;
|
|
17
|
+
return isInstance;
|
|
18
|
+
}
|
|
19
|
+
export function ReportCreatorEntityFromJSON(json) {
|
|
20
|
+
return ReportCreatorEntityFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
export function ReportCreatorEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
const typed = {
|
|
27
|
+
'userId': json['userId'],
|
|
28
|
+
'fullName': json['fullName'],
|
|
29
|
+
};
|
|
30
|
+
return removeNullUndefined(typed);
|
|
31
|
+
}
|
|
32
|
+
export function ReportCreatorEntityToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'userId': value.userId,
|
|
41
|
+
'fullName': value.fullName,
|
|
42
|
+
};
|
|
43
|
+
}
|