@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,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateTransactionsReportsFiltersDto } from './CreateTransactionsReportsFiltersDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateTransactionsReportsScheduleDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateTransactionsReportsScheduleDto {
|
|
14
|
+
/**
|
|
15
|
+
* The report schedule name.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The report schedule description.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The interval of this report schedule.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
30
|
+
*/
|
|
31
|
+
interval: CreateTransactionsReportsScheduleDtoIntervalEnum;
|
|
32
|
+
/**
|
|
33
|
+
* The date range applied for this report schedule.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
36
|
+
*/
|
|
37
|
+
dateRange: CreateTransactionsReportsScheduleDtoDateRangeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* The list of email addresses recipients of this report schedule.
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
42
|
+
*/
|
|
43
|
+
recipients: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The order in which the report records are returned.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
48
|
+
*/
|
|
49
|
+
order?: CreateTransactionsReportsScheduleDtoOrderEnum;
|
|
50
|
+
/**
|
|
51
|
+
* The start time for this report schedule.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
54
|
+
*/
|
|
55
|
+
startTime: string;
|
|
56
|
+
/**
|
|
57
|
+
* The end time for this report schedule.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
60
|
+
*/
|
|
61
|
+
endTime: string;
|
|
62
|
+
/**
|
|
63
|
+
* The next run date for this report schedule.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
66
|
+
*/
|
|
67
|
+
nextRun: string;
|
|
68
|
+
/**
|
|
69
|
+
* The columns associated to this report schedule.
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
72
|
+
*/
|
|
73
|
+
columns: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The filters associated to this report schedule.
|
|
76
|
+
* @type {CreateTransactionsReportsFiltersDto}
|
|
77
|
+
* @memberof CreateTransactionsReportsScheduleDto
|
|
78
|
+
*/
|
|
79
|
+
transactionsFilters: CreateTransactionsReportsFiltersDto;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const CreateTransactionsReportsScheduleDtoIntervalEnum: {
|
|
85
|
+
readonly Daily: "DAILY";
|
|
86
|
+
readonly Weekly: "WEEKLY";
|
|
87
|
+
readonly Monthly: "MONTHLY";
|
|
88
|
+
};
|
|
89
|
+
export type CreateTransactionsReportsScheduleDtoIntervalEnum = typeof CreateTransactionsReportsScheduleDtoIntervalEnum[keyof typeof CreateTransactionsReportsScheduleDtoIntervalEnum];
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const CreateTransactionsReportsScheduleDtoDateRangeEnum: {
|
|
94
|
+
readonly Today: "TODAY";
|
|
95
|
+
readonly Yesterday: "YESTERDAY";
|
|
96
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
97
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
98
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
99
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
100
|
+
readonly LastWeek: "LAST_WEEK";
|
|
101
|
+
readonly LastMonth: "LAST_MONTH";
|
|
102
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
103
|
+
readonly LastYear: "LAST_YEAR";
|
|
104
|
+
readonly Custom: "CUSTOM";
|
|
105
|
+
};
|
|
106
|
+
export type CreateTransactionsReportsScheduleDtoDateRangeEnum = typeof CreateTransactionsReportsScheduleDtoDateRangeEnum[keyof typeof CreateTransactionsReportsScheduleDtoDateRangeEnum];
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const CreateTransactionsReportsScheduleDtoOrderEnum: {
|
|
111
|
+
readonly Asc: "asc";
|
|
112
|
+
readonly Desc: "desc";
|
|
113
|
+
};
|
|
114
|
+
export type CreateTransactionsReportsScheduleDtoOrderEnum = typeof CreateTransactionsReportsScheduleDtoOrderEnum[keyof typeof CreateTransactionsReportsScheduleDtoOrderEnum];
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the CreateTransactionsReportsScheduleDto interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfCreateTransactionsReportsScheduleDto(value: object): boolean;
|
|
119
|
+
export declare function CreateTransactionsReportsScheduleDtoFromJSON(json: any): CreateTransactionsReportsScheduleDto;
|
|
120
|
+
export declare function CreateTransactionsReportsScheduleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionsReportsScheduleDto;
|
|
121
|
+
export declare function CreateTransactionsReportsScheduleDtoToJSON(value?: CreateTransactionsReportsScheduleDto | null): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
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.CreateTransactionsReportsScheduleDtoOrderEnum = exports.CreateTransactionsReportsScheduleDtoDateRangeEnum = exports.CreateTransactionsReportsScheduleDtoIntervalEnum = void 0;
|
|
12
|
+
exports.instanceOfCreateTransactionsReportsScheduleDto = instanceOfCreateTransactionsReportsScheduleDto;
|
|
13
|
+
exports.CreateTransactionsReportsScheduleDtoFromJSON = CreateTransactionsReportsScheduleDtoFromJSON;
|
|
14
|
+
exports.CreateTransactionsReportsScheduleDtoFromJSONTyped = CreateTransactionsReportsScheduleDtoFromJSONTyped;
|
|
15
|
+
exports.CreateTransactionsReportsScheduleDtoToJSON = CreateTransactionsReportsScheduleDtoToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const CreateTransactionsReportsFiltersDto_1 = require("./CreateTransactionsReportsFiltersDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateTransactionsReportsScheduleDtoIntervalEnum = {
|
|
22
|
+
Daily: 'DAILY',
|
|
23
|
+
Weekly: 'WEEKLY',
|
|
24
|
+
Monthly: 'MONTHLY'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.CreateTransactionsReportsScheduleDtoDateRangeEnum = {
|
|
30
|
+
Today: 'TODAY',
|
|
31
|
+
Yesterday: 'YESTERDAY',
|
|
32
|
+
Last7Days: 'LAST_7_DAYS',
|
|
33
|
+
Last30Days: 'LAST_30_DAYS',
|
|
34
|
+
Last60Days: 'LAST_60_DAYS',
|
|
35
|
+
Last90Days: 'LAST_90_DAYS',
|
|
36
|
+
LastWeek: 'LAST_WEEK',
|
|
37
|
+
LastMonth: 'LAST_MONTH',
|
|
38
|
+
LastQuarter: 'LAST_QUARTER',
|
|
39
|
+
LastYear: 'LAST_YEAR',
|
|
40
|
+
Custom: 'CUSTOM'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.CreateTransactionsReportsScheduleDtoOrderEnum = {
|
|
46
|
+
Asc: 'asc',
|
|
47
|
+
Desc: 'desc'
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CreateTransactionsReportsScheduleDto interface.
|
|
51
|
+
*/
|
|
52
|
+
function instanceOfCreateTransactionsReportsScheduleDto(value) {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "name" in value;
|
|
55
|
+
isInstance = isInstance && "interval" in value;
|
|
56
|
+
isInstance = isInstance && "dateRange" in value;
|
|
57
|
+
isInstance = isInstance && "recipients" in value;
|
|
58
|
+
isInstance = isInstance && "startTime" in value;
|
|
59
|
+
isInstance = isInstance && "endTime" in value;
|
|
60
|
+
isInstance = isInstance && "nextRun" in value;
|
|
61
|
+
isInstance = isInstance && "columns" in value;
|
|
62
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
63
|
+
return isInstance;
|
|
64
|
+
}
|
|
65
|
+
function CreateTransactionsReportsScheduleDtoFromJSON(json) {
|
|
66
|
+
return CreateTransactionsReportsScheduleDtoFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function CreateTransactionsReportsScheduleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
69
|
+
if ((json === undefined) || (json === null)) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
const typed = {
|
|
73
|
+
'name': json['name'],
|
|
74
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
75
|
+
'interval': json['interval'],
|
|
76
|
+
'dateRange': json['dateRange'],
|
|
77
|
+
'recipients': json['recipients'],
|
|
78
|
+
'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
|
|
79
|
+
'startTime': json['startTime'],
|
|
80
|
+
'endTime': json['endTime'],
|
|
81
|
+
'nextRun': json['nextRun'],
|
|
82
|
+
'columns': json['columns'],
|
|
83
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoFromJSON)(json['transactionsFilters']),
|
|
84
|
+
};
|
|
85
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
86
|
+
}
|
|
87
|
+
function CreateTransactionsReportsScheduleDtoToJSON(value) {
|
|
88
|
+
if (value === undefined) {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
if (value === null) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
'name': value.name,
|
|
96
|
+
'description': value.description,
|
|
97
|
+
'interval': value.interval,
|
|
98
|
+
'dateRange': value.dateRange,
|
|
99
|
+
'recipients': value.recipients,
|
|
100
|
+
'order': value.order,
|
|
101
|
+
'startTime': value.startTime,
|
|
102
|
+
'endTime': value.endTime,
|
|
103
|
+
'nextRun': value.nextRun,
|
|
104
|
+
'columns': value.columns,
|
|
105
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoToJSON)(value.transactionsFilters),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateTransactionsReportsFiltersDto } from './CreateTransactionsReportsFiltersDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateTransactionsReportsTemplateDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateTransactionsReportsTemplateDto {
|
|
14
|
+
/**
|
|
15
|
+
* The report template name.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The report template description.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The order in which the report records are returned.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
30
|
+
*/
|
|
31
|
+
order?: CreateTransactionsReportsTemplateDtoOrderEnum;
|
|
32
|
+
/**
|
|
33
|
+
* The date range applied for this report template.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
36
|
+
*/
|
|
37
|
+
dateRange: CreateTransactionsReportsTemplateDtoDateRangeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* The start time for this report template.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
42
|
+
*/
|
|
43
|
+
startTime: string;
|
|
44
|
+
/**
|
|
45
|
+
* The end time for this report template.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
48
|
+
*/
|
|
49
|
+
endTime: string;
|
|
50
|
+
/**
|
|
51
|
+
* The columns associated to this report template.
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
54
|
+
*/
|
|
55
|
+
columns: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The filters associated to this report template.
|
|
58
|
+
* @type {CreateTransactionsReportsFiltersDto}
|
|
59
|
+
* @memberof CreateTransactionsReportsTemplateDto
|
|
60
|
+
*/
|
|
61
|
+
transactionsFilters: CreateTransactionsReportsFiltersDto;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const CreateTransactionsReportsTemplateDtoOrderEnum: {
|
|
67
|
+
readonly Asc: "asc";
|
|
68
|
+
readonly Desc: "desc";
|
|
69
|
+
};
|
|
70
|
+
export type CreateTransactionsReportsTemplateDtoOrderEnum = typeof CreateTransactionsReportsTemplateDtoOrderEnum[keyof typeof CreateTransactionsReportsTemplateDtoOrderEnum];
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const CreateTransactionsReportsTemplateDtoDateRangeEnum: {
|
|
75
|
+
readonly Today: "TODAY";
|
|
76
|
+
readonly Yesterday: "YESTERDAY";
|
|
77
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
78
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
79
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
80
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
81
|
+
readonly LastWeek: "LAST_WEEK";
|
|
82
|
+
readonly LastMonth: "LAST_MONTH";
|
|
83
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
84
|
+
readonly LastYear: "LAST_YEAR";
|
|
85
|
+
readonly Custom: "CUSTOM";
|
|
86
|
+
};
|
|
87
|
+
export type CreateTransactionsReportsTemplateDtoDateRangeEnum = typeof CreateTransactionsReportsTemplateDtoDateRangeEnum[keyof typeof CreateTransactionsReportsTemplateDtoDateRangeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the CreateTransactionsReportsTemplateDto interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfCreateTransactionsReportsTemplateDto(value: object): boolean;
|
|
92
|
+
export declare function CreateTransactionsReportsTemplateDtoFromJSON(json: any): CreateTransactionsReportsTemplateDto;
|
|
93
|
+
export declare function CreateTransactionsReportsTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionsReportsTemplateDto;
|
|
94
|
+
export declare function CreateTransactionsReportsTemplateDtoToJSON(value?: CreateTransactionsReportsTemplateDto | null): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.CreateTransactionsReportsTemplateDtoDateRangeEnum = exports.CreateTransactionsReportsTemplateDtoOrderEnum = void 0;
|
|
12
|
+
exports.instanceOfCreateTransactionsReportsTemplateDto = instanceOfCreateTransactionsReportsTemplateDto;
|
|
13
|
+
exports.CreateTransactionsReportsTemplateDtoFromJSON = CreateTransactionsReportsTemplateDtoFromJSON;
|
|
14
|
+
exports.CreateTransactionsReportsTemplateDtoFromJSONTyped = CreateTransactionsReportsTemplateDtoFromJSONTyped;
|
|
15
|
+
exports.CreateTransactionsReportsTemplateDtoToJSON = CreateTransactionsReportsTemplateDtoToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const CreateTransactionsReportsFiltersDto_1 = require("./CreateTransactionsReportsFiltersDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateTransactionsReportsTemplateDtoOrderEnum = {
|
|
22
|
+
Asc: 'asc',
|
|
23
|
+
Desc: 'desc'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.CreateTransactionsReportsTemplateDtoDateRangeEnum = {
|
|
29
|
+
Today: 'TODAY',
|
|
30
|
+
Yesterday: 'YESTERDAY',
|
|
31
|
+
Last7Days: 'LAST_7_DAYS',
|
|
32
|
+
Last30Days: 'LAST_30_DAYS',
|
|
33
|
+
Last60Days: 'LAST_60_DAYS',
|
|
34
|
+
Last90Days: 'LAST_90_DAYS',
|
|
35
|
+
LastWeek: 'LAST_WEEK',
|
|
36
|
+
LastMonth: 'LAST_MONTH',
|
|
37
|
+
LastQuarter: 'LAST_QUARTER',
|
|
38
|
+
LastYear: 'LAST_YEAR',
|
|
39
|
+
Custom: 'CUSTOM'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the CreateTransactionsReportsTemplateDto interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfCreateTransactionsReportsTemplateDto(value) {
|
|
45
|
+
let isInstance = true;
|
|
46
|
+
isInstance = isInstance && "name" in value;
|
|
47
|
+
isInstance = isInstance && "dateRange" in value;
|
|
48
|
+
isInstance = isInstance && "startTime" in value;
|
|
49
|
+
isInstance = isInstance && "endTime" in value;
|
|
50
|
+
isInstance = isInstance && "columns" in value;
|
|
51
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
52
|
+
return isInstance;
|
|
53
|
+
}
|
|
54
|
+
function CreateTransactionsReportsTemplateDtoFromJSON(json) {
|
|
55
|
+
return CreateTransactionsReportsTemplateDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function CreateTransactionsReportsTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
const typed = {
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
64
|
+
'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
|
|
65
|
+
'dateRange': json['dateRange'],
|
|
66
|
+
'startTime': json['startTime'],
|
|
67
|
+
'endTime': json['endTime'],
|
|
68
|
+
'columns': json['columns'],
|
|
69
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoFromJSON)(json['transactionsFilters']),
|
|
70
|
+
};
|
|
71
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
72
|
+
}
|
|
73
|
+
function CreateTransactionsReportsTemplateDtoToJSON(value) {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'name': value.name,
|
|
82
|
+
'description': value.description,
|
|
83
|
+
'order': value.order,
|
|
84
|
+
'dateRange': value.dateRange,
|
|
85
|
+
'startTime': value.startTime,
|
|
86
|
+
'endTime': value.endTime,
|
|
87
|
+
'columns': value.columns,
|
|
88
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoToJSON)(value.transactionsFilters),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
|
|
11
|
+
exports.MerchantAccountServiceEntityDataSourceEnum = exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
|
|
12
12
|
exports.instanceOfMerchantAccountServiceEntity = instanceOfMerchantAccountServiceEntity;
|
|
13
13
|
exports.MerchantAccountServiceEntityFromJSON = MerchantAccountServiceEntityFromJSON;
|
|
14
14
|
exports.MerchantAccountServiceEntityFromJSONTyped = MerchantAccountServiceEntityFromJSONTyped;
|
|
@@ -70,6 +70,13 @@ exports.MerchantAccountServiceEntityCardTypesEnum = {
|
|
|
70
70
|
Debit: 'DEBIT',
|
|
71
71
|
Prepaid: 'PREPAID'
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
exports.MerchantAccountServiceEntityDataSourceEnum = {
|
|
77
|
+
Moto: 'MOTO',
|
|
78
|
+
Internet: 'INTERNET'
|
|
79
|
+
};
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the MerchantAccountServiceEntity interface.
|
|
75
82
|
*/
|
|
@@ -112,6 +119,8 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
119
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
113
120
|
'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
|
|
114
121
|
'lastPolledAt': !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
|
|
122
|
+
'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
123
|
+
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
115
124
|
};
|
|
116
125
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
117
126
|
}
|
|
@@ -139,5 +148,7 @@ function MerchantAccountServiceEntityToJSON(value) {
|
|
|
139
148
|
'name': value.name,
|
|
140
149
|
'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
|
|
141
150
|
'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
|
|
151
|
+
'dataSource': value.dataSource,
|
|
152
|
+
'mcc': value.mcc,
|
|
142
153
|
};
|
|
143
154
|
}
|
|
@@ -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
|
/**
|
|
@@ -19,9 +19,9 @@ const runtime_1 = require("../runtime");
|
|
|
19
19
|
*/
|
|
20
20
|
exports.MerchantConnectorServiceEntityConnectorEnum = {
|
|
21
21
|
Epay: 'EPAY',
|
|
22
|
-
Nmi: 'NMI',
|
|
23
22
|
AuthorizeNet: 'AUTHORIZE_NET',
|
|
24
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
23
|
+
ChannelPayments: 'CHANNEL_PAYMENTS',
|
|
24
|
+
Tsys: 'TSYS'
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* @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,54 @@
|
|
|
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.instanceOfMerchantSettingsBaseDto = instanceOfMerchantSettingsBaseDto;
|
|
12
|
+
exports.MerchantSettingsBaseDtoFromJSON = MerchantSettingsBaseDtoFromJSON;
|
|
13
|
+
exports.MerchantSettingsBaseDtoFromJSONTyped = MerchantSettingsBaseDtoFromJSONTyped;
|
|
14
|
+
exports.MerchantSettingsBaseDtoToJSON = MerchantSettingsBaseDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeDto_1 = require("./MerchantThemeDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MerchantSettingsBaseDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMerchantSettingsBaseDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
function MerchantSettingsBaseDtoFromJSON(json) {
|
|
25
|
+
return MerchantSettingsBaseDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
function MerchantSettingsBaseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
33
|
+
'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
34
|
+
'isDebtRepaymentEnabled': !(0, runtime_1.exists)(json, 'isDebtRepaymentEnabled') ? undefined : json['isDebtRepaymentEnabled'],
|
|
35
|
+
'isPartialAuthEnabled': !(0, runtime_1.exists)(json, 'isPartialAuthEnabled') ? undefined : json['isPartialAuthEnabled'],
|
|
36
|
+
'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
37
|
+
};
|
|
38
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
39
|
+
}
|
|
40
|
+
function MerchantSettingsBaseDtoToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
49
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
50
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
51
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
52
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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.
|
|
@@ -30,7 +30,7 @@ function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
const typed = {
|
|
32
32
|
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
33
|
-
'
|
|
33
|
+
'isBillPaymentEnabled': !(0, runtime_1.exists)(json, 'isBillPaymentEnabled') ? undefined : json['isBillPaymentEnabled'],
|
|
34
34
|
};
|
|
35
35
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
36
36
|
}
|
|
@@ -43,6 +43,6 @@ function MerchantSettingsDtoToJSON(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
46
|
-
'
|
|
46
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
47
47
|
};
|
|
48
48
|
}
|