@channelpayments/node-sdk 1.192.0 → 1.194.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/CheckoutSessionBaseEntity.d.ts +15 -0
- package/dist/cjs/models/CheckoutSessionBaseEntity.js +11 -1
- package/dist/cjs/models/CheckoutSessionEntity.d.ts +15 -0
- package/dist/cjs/models/CheckoutSessionEntity.js +11 -1
- 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/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/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 +15 -0
- package/dist/cjs/models/index.js +15 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CheckoutSessionBaseEntity.d.ts +15 -0
- package/dist/mjs/models/CheckoutSessionBaseEntity.js +10 -0
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +15 -0
- package/dist/mjs/models/CheckoutSessionEntity.js +10 -0
- 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/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/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 +15 -0
- package/dist/mjs/models/index.js +15 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
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 { ReportCreatorEntityFromJSON, ReportCreatorEntityToJSON, } from './ReportCreatorEntity';
|
|
11
|
+
import { TransactionsReportsFiltersEntityFromJSON, TransactionsReportsFiltersEntityToJSON, } from './TransactionsReportsFiltersEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const TransactionsReportEntityStatusEnum = {
|
|
16
|
+
Pending: 'PENDING',
|
|
17
|
+
Processing: 'PROCESSING',
|
|
18
|
+
Generated: 'GENERATED',
|
|
19
|
+
Failed: 'FAILED'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const TransactionsReportEntityOrderEnum = {
|
|
25
|
+
Asc: 'asc',
|
|
26
|
+
Desc: 'desc'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const TransactionsReportEntityDateRangeEnum = {
|
|
32
|
+
Today: 'TODAY',
|
|
33
|
+
Yesterday: 'YESTERDAY',
|
|
34
|
+
Last7Days: 'LAST_7_DAYS',
|
|
35
|
+
Last30Days: 'LAST_30_DAYS',
|
|
36
|
+
Last60Days: 'LAST_60_DAYS',
|
|
37
|
+
Last90Days: 'LAST_90_DAYS',
|
|
38
|
+
LastWeek: 'LAST_WEEK',
|
|
39
|
+
LastMonth: 'LAST_MONTH',
|
|
40
|
+
LastQuarter: 'LAST_QUARTER',
|
|
41
|
+
LastYear: 'LAST_YEAR',
|
|
42
|
+
Custom: 'CUSTOM'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the TransactionsReportEntity interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfTransactionsReportEntity(value) {
|
|
48
|
+
let isInstance = true;
|
|
49
|
+
isInstance = isInstance && "reportId" in value;
|
|
50
|
+
isInstance = isInstance && "name" in value;
|
|
51
|
+
isInstance = isInstance && "merchantId" in value;
|
|
52
|
+
isInstance = isInstance && "createdBy" in value;
|
|
53
|
+
isInstance = isInstance && "createdAt" in value;
|
|
54
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
55
|
+
isInstance = isInstance && "deletedAt" in value;
|
|
56
|
+
isInstance = isInstance && "startDate" in value;
|
|
57
|
+
isInstance = isInstance && "endDate" in value;
|
|
58
|
+
isInstance = isInstance && "status" in value;
|
|
59
|
+
isInstance = isInstance && "order" in value;
|
|
60
|
+
isInstance = isInstance && "recipients" in value;
|
|
61
|
+
isInstance = isInstance && "dateRange" in value;
|
|
62
|
+
isInstance = isInstance && "startTime" in value;
|
|
63
|
+
isInstance = isInstance && "endTime" in value;
|
|
64
|
+
isInstance = isInstance && "columns" in value;
|
|
65
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
66
|
+
return isInstance;
|
|
67
|
+
}
|
|
68
|
+
export function TransactionsReportEntityFromJSON(json) {
|
|
69
|
+
return TransactionsReportEntityFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
export function TransactionsReportEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
const typed = {
|
|
76
|
+
'reportId': json['reportId'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
79
|
+
'merchantId': json['merchantId'],
|
|
80
|
+
'createdBy': ReportCreatorEntityFromJSON(json['createdBy']),
|
|
81
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
82
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
83
|
+
'deletedAt': (new Date(json['deletedAt'])),
|
|
84
|
+
'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
|
|
85
|
+
'startDate': json['startDate'],
|
|
86
|
+
'endDate': json['endDate'],
|
|
87
|
+
'status': json['status'],
|
|
88
|
+
'order': json['order'],
|
|
89
|
+
'recipients': json['recipients'],
|
|
90
|
+
'dateRange': json['dateRange'],
|
|
91
|
+
'startTime': json['startTime'],
|
|
92
|
+
'endTime': json['endTime'],
|
|
93
|
+
'columns': json['columns'],
|
|
94
|
+
'transactionsFilters': TransactionsReportsFiltersEntityFromJSON(json['transactionsFilters']),
|
|
95
|
+
};
|
|
96
|
+
return removeNullUndefined(typed);
|
|
97
|
+
}
|
|
98
|
+
export function TransactionsReportEntityToJSON(value) {
|
|
99
|
+
if (value === undefined) {
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
if (value === null) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
'reportId': value.reportId,
|
|
107
|
+
'name': value.name,
|
|
108
|
+
'description': value.description,
|
|
109
|
+
'merchantId': value.merchantId,
|
|
110
|
+
'createdBy': ReportCreatorEntityToJSON(value.createdBy),
|
|
111
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
112
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
113
|
+
'deletedAt': (value.deletedAt.toISOString()),
|
|
114
|
+
'deleted': value.deleted,
|
|
115
|
+
'startDate': value.startDate,
|
|
116
|
+
'endDate': value.endDate,
|
|
117
|
+
'status': value.status,
|
|
118
|
+
'order': value.order,
|
|
119
|
+
'recipients': value.recipients,
|
|
120
|
+
'dateRange': value.dateRange,
|
|
121
|
+
'startTime': value.startTime,
|
|
122
|
+
'endTime': value.endTime,
|
|
123
|
+
'columns': value.columns,
|
|
124
|
+
'transactionsFilters': TransactionsReportsFiltersEntityToJSON(value.transactionsFilters),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { ReportCreatorEntity } from './ReportCreatorEntity';
|
|
8
|
+
import type { TransactionsReportsFiltersEntity } from './TransactionsReportsFiltersEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface TransactionsReportScheduleEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface TransactionsReportScheduleEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The report schedule ID.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof TransactionsReportScheduleEntity
|
|
19
|
+
*/
|
|
20
|
+
reportScheduleId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The report schedule name.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof TransactionsReportScheduleEntity
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* The report schedule description.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TransactionsReportScheduleEntity
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The sorting type.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof TransactionsReportScheduleEntity
|
|
37
|
+
*/
|
|
38
|
+
order?: TransactionsReportScheduleEntityOrderEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The user that created this report schedule.
|
|
41
|
+
* @type {ReportCreatorEntity}
|
|
42
|
+
* @memberof TransactionsReportScheduleEntity
|
|
43
|
+
*/
|
|
44
|
+
createdBy: ReportCreatorEntity;
|
|
45
|
+
/**
|
|
46
|
+
* The user that deleted this report schedule.
|
|
47
|
+
* @type {ReportCreatorEntity}
|
|
48
|
+
* @memberof TransactionsReportScheduleEntity
|
|
49
|
+
*/
|
|
50
|
+
deletedBy?: ReportCreatorEntity;
|
|
51
|
+
/**
|
|
52
|
+
* The merchant created this report schedule.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof TransactionsReportScheduleEntity
|
|
55
|
+
*/
|
|
56
|
+
merchantId: string;
|
|
57
|
+
/**
|
|
58
|
+
* The interval of this report schedule.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof TransactionsReportScheduleEntity
|
|
61
|
+
*/
|
|
62
|
+
interval: TransactionsReportScheduleEntityIntervalEnum;
|
|
63
|
+
/**
|
|
64
|
+
* The date range applied for this report schedule.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof TransactionsReportScheduleEntity
|
|
67
|
+
*/
|
|
68
|
+
dateRange: TransactionsReportScheduleEntityDateRangeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The start time for this report schedule.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof TransactionsReportScheduleEntity
|
|
73
|
+
*/
|
|
74
|
+
startTime: string;
|
|
75
|
+
/**
|
|
76
|
+
* The end time for this report schedule.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof TransactionsReportScheduleEntity
|
|
79
|
+
*/
|
|
80
|
+
endTime: string;
|
|
81
|
+
/**
|
|
82
|
+
* The recipients of this report schedule.
|
|
83
|
+
* @type {Array<string>}
|
|
84
|
+
* @memberof TransactionsReportScheduleEntity
|
|
85
|
+
*/
|
|
86
|
+
recipients: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The report schedule last run.
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof TransactionsReportScheduleEntity
|
|
91
|
+
*/
|
|
92
|
+
lastRun?: Date;
|
|
93
|
+
/**
|
|
94
|
+
* The report schedule next run.
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof TransactionsReportScheduleEntity
|
|
97
|
+
*/
|
|
98
|
+
nextRun: Date;
|
|
99
|
+
/**
|
|
100
|
+
* The report schedule creation date.
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof TransactionsReportScheduleEntity
|
|
103
|
+
*/
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* The report schedule last update date.
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof TransactionsReportScheduleEntity
|
|
109
|
+
*/
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the report schedule record is deleted or not.
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof TransactionsReportScheduleEntity
|
|
115
|
+
*/
|
|
116
|
+
deleted?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The report schedule deletion date.
|
|
119
|
+
* @type {Date}
|
|
120
|
+
* @memberof TransactionsReportScheduleEntity
|
|
121
|
+
*/
|
|
122
|
+
deletedAt?: Date;
|
|
123
|
+
/**
|
|
124
|
+
* The columns associated to this report schedule.
|
|
125
|
+
* @type {Array<string>}
|
|
126
|
+
* @memberof TransactionsReportScheduleEntity
|
|
127
|
+
*/
|
|
128
|
+
columns: Array<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The filters associated to this report schedule.
|
|
131
|
+
* @type {TransactionsReportsFiltersEntity}
|
|
132
|
+
* @memberof TransactionsReportScheduleEntity
|
|
133
|
+
*/
|
|
134
|
+
transactionsFilters: TransactionsReportsFiltersEntity;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const TransactionsReportScheduleEntityOrderEnum: {
|
|
140
|
+
readonly Asc: "asc";
|
|
141
|
+
readonly Desc: "desc";
|
|
142
|
+
};
|
|
143
|
+
export type TransactionsReportScheduleEntityOrderEnum = typeof TransactionsReportScheduleEntityOrderEnum[keyof typeof TransactionsReportScheduleEntityOrderEnum];
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export declare const TransactionsReportScheduleEntityIntervalEnum: {
|
|
148
|
+
readonly Daily: "DAILY";
|
|
149
|
+
readonly Weekly: "WEEKLY";
|
|
150
|
+
readonly Monthly: "MONTHLY";
|
|
151
|
+
};
|
|
152
|
+
export type TransactionsReportScheduleEntityIntervalEnum = typeof TransactionsReportScheduleEntityIntervalEnum[keyof typeof TransactionsReportScheduleEntityIntervalEnum];
|
|
153
|
+
/**
|
|
154
|
+
* @export
|
|
155
|
+
*/
|
|
156
|
+
export declare const TransactionsReportScheduleEntityDateRangeEnum: {
|
|
157
|
+
readonly Today: "TODAY";
|
|
158
|
+
readonly Yesterday: "YESTERDAY";
|
|
159
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
160
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
161
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
162
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
163
|
+
readonly LastWeek: "LAST_WEEK";
|
|
164
|
+
readonly LastMonth: "LAST_MONTH";
|
|
165
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
166
|
+
readonly LastYear: "LAST_YEAR";
|
|
167
|
+
readonly Custom: "CUSTOM";
|
|
168
|
+
};
|
|
169
|
+
export type TransactionsReportScheduleEntityDateRangeEnum = typeof TransactionsReportScheduleEntityDateRangeEnum[keyof typeof TransactionsReportScheduleEntityDateRangeEnum];
|
|
170
|
+
/**
|
|
171
|
+
* Check if a given object implements the TransactionsReportScheduleEntity interface.
|
|
172
|
+
*/
|
|
173
|
+
export declare function instanceOfTransactionsReportScheduleEntity(value: object): boolean;
|
|
174
|
+
export declare function TransactionsReportScheduleEntityFromJSON(json: any): TransactionsReportScheduleEntity;
|
|
175
|
+
export declare function TransactionsReportScheduleEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportScheduleEntity;
|
|
176
|
+
export declare function TransactionsReportScheduleEntityToJSON(value?: TransactionsReportScheduleEntity | null): any;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { ReportCreatorEntityFromJSON, ReportCreatorEntityToJSON, } from './ReportCreatorEntity';
|
|
11
|
+
import { TransactionsReportsFiltersEntityFromJSON, TransactionsReportsFiltersEntityToJSON, } from './TransactionsReportsFiltersEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const TransactionsReportScheduleEntityOrderEnum = {
|
|
16
|
+
Asc: 'asc',
|
|
17
|
+
Desc: 'desc'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const TransactionsReportScheduleEntityIntervalEnum = {
|
|
23
|
+
Daily: 'DAILY',
|
|
24
|
+
Weekly: 'WEEKLY',
|
|
25
|
+
Monthly: 'MONTHLY'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const TransactionsReportScheduleEntityDateRangeEnum = {
|
|
31
|
+
Today: 'TODAY',
|
|
32
|
+
Yesterday: 'YESTERDAY',
|
|
33
|
+
Last7Days: 'LAST_7_DAYS',
|
|
34
|
+
Last30Days: 'LAST_30_DAYS',
|
|
35
|
+
Last60Days: 'LAST_60_DAYS',
|
|
36
|
+
Last90Days: 'LAST_90_DAYS',
|
|
37
|
+
LastWeek: 'LAST_WEEK',
|
|
38
|
+
LastMonth: 'LAST_MONTH',
|
|
39
|
+
LastQuarter: 'LAST_QUARTER',
|
|
40
|
+
LastYear: 'LAST_YEAR',
|
|
41
|
+
Custom: 'CUSTOM'
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the TransactionsReportScheduleEntity interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfTransactionsReportScheduleEntity(value) {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "reportScheduleId" in value;
|
|
49
|
+
isInstance = isInstance && "name" in value;
|
|
50
|
+
isInstance = isInstance && "createdBy" in value;
|
|
51
|
+
isInstance = isInstance && "merchantId" in value;
|
|
52
|
+
isInstance = isInstance && "interval" in value;
|
|
53
|
+
isInstance = isInstance && "dateRange" in value;
|
|
54
|
+
isInstance = isInstance && "startTime" in value;
|
|
55
|
+
isInstance = isInstance && "endTime" in value;
|
|
56
|
+
isInstance = isInstance && "recipients" in value;
|
|
57
|
+
isInstance = isInstance && "nextRun" in value;
|
|
58
|
+
isInstance = isInstance && "createdAt" in value;
|
|
59
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
60
|
+
isInstance = isInstance && "columns" in value;
|
|
61
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
62
|
+
return isInstance;
|
|
63
|
+
}
|
|
64
|
+
export function TransactionsReportScheduleEntityFromJSON(json) {
|
|
65
|
+
return TransactionsReportScheduleEntityFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function TransactionsReportScheduleEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
|
+
if ((json === undefined) || (json === null)) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
const typed = {
|
|
72
|
+
'reportScheduleId': json['reportScheduleId'],
|
|
73
|
+
'name': json['name'],
|
|
74
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
75
|
+
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
76
|
+
'createdBy': ReportCreatorEntityFromJSON(json['createdBy']),
|
|
77
|
+
'deletedBy': !exists(json, 'deletedBy') ? undefined : ReportCreatorEntityFromJSON(json['deletedBy']),
|
|
78
|
+
'merchantId': json['merchantId'],
|
|
79
|
+
'interval': json['interval'],
|
|
80
|
+
'dateRange': json['dateRange'],
|
|
81
|
+
'startTime': json['startTime'],
|
|
82
|
+
'endTime': json['endTime'],
|
|
83
|
+
'recipients': json['recipients'],
|
|
84
|
+
'lastRun': !exists(json, 'lastRun') ? undefined : (new Date(json['lastRun'])),
|
|
85
|
+
'nextRun': (new Date(json['nextRun'])),
|
|
86
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
87
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
88
|
+
'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
|
|
89
|
+
'deletedAt': !exists(json, 'deletedAt') ? undefined : (new Date(json['deletedAt'])),
|
|
90
|
+
'columns': json['columns'],
|
|
91
|
+
'transactionsFilters': TransactionsReportsFiltersEntityFromJSON(json['transactionsFilters']),
|
|
92
|
+
};
|
|
93
|
+
return removeNullUndefined(typed);
|
|
94
|
+
}
|
|
95
|
+
export function TransactionsReportScheduleEntityToJSON(value) {
|
|
96
|
+
if (value === undefined) {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
if (value === null) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'reportScheduleId': value.reportScheduleId,
|
|
104
|
+
'name': value.name,
|
|
105
|
+
'description': value.description,
|
|
106
|
+
'order': value.order,
|
|
107
|
+
'createdBy': ReportCreatorEntityToJSON(value.createdBy),
|
|
108
|
+
'deletedBy': ReportCreatorEntityToJSON(value.deletedBy),
|
|
109
|
+
'merchantId': value.merchantId,
|
|
110
|
+
'interval': value.interval,
|
|
111
|
+
'dateRange': value.dateRange,
|
|
112
|
+
'startTime': value.startTime,
|
|
113
|
+
'endTime': value.endTime,
|
|
114
|
+
'recipients': value.recipients,
|
|
115
|
+
'lastRun': value.lastRun === undefined ? undefined : (value.lastRun.toISOString()),
|
|
116
|
+
'nextRun': (value.nextRun.toISOString()),
|
|
117
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
118
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
119
|
+
'deleted': value.deleted,
|
|
120
|
+
'deletedAt': value.deletedAt === undefined ? undefined : (value.deletedAt.toISOString()),
|
|
121
|
+
'columns': value.columns,
|
|
122
|
+
'transactionsFilters': TransactionsReportsFiltersEntityToJSON(value.transactionsFilters),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { TransactionsReportScheduleEntity } from './TransactionsReportScheduleEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface TransactionsReportSchedulesSearchQueryResponseEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface TransactionsReportSchedulesSearchQueryResponseEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The number of records returned.
|
|
16
|
+
* @type {number}
|
|
17
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
18
|
+
*/
|
|
19
|
+
limit: number;
|
|
20
|
+
/**
|
|
21
|
+
* The page number.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
24
|
+
*/
|
|
25
|
+
page: number;
|
|
26
|
+
/**
|
|
27
|
+
* The number of pages.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
30
|
+
*/
|
|
31
|
+
pageCount: number;
|
|
32
|
+
/**
|
|
33
|
+
* The total number of records.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
36
|
+
*/
|
|
37
|
+
totalCount: number;
|
|
38
|
+
/**
|
|
39
|
+
* The total number of records returned.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
42
|
+
*/
|
|
43
|
+
filteredCount: number;
|
|
44
|
+
/**
|
|
45
|
+
* The next cursor.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
48
|
+
*/
|
|
49
|
+
nextCursor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The previous cursor
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
54
|
+
*/
|
|
55
|
+
prevCursor?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<TransactionsReportScheduleEntity>}
|
|
59
|
+
* @memberof TransactionsReportSchedulesSearchQueryResponseEntity
|
|
60
|
+
*/
|
|
61
|
+
items: Array<TransactionsReportScheduleEntity>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the TransactionsReportSchedulesSearchQueryResponseEntity interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfTransactionsReportSchedulesSearchQueryResponseEntity(value: object): boolean;
|
|
67
|
+
export declare function TransactionsReportSchedulesSearchQueryResponseEntityFromJSON(json: any): TransactionsReportSchedulesSearchQueryResponseEntity;
|
|
68
|
+
export declare function TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportSchedulesSearchQueryResponseEntity;
|
|
69
|
+
export declare function TransactionsReportSchedulesSearchQueryResponseEntityToJSON(value?: TransactionsReportSchedulesSearchQueryResponseEntity | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { TransactionsReportScheduleEntityFromJSON, TransactionsReportScheduleEntityToJSON, } from './TransactionsReportScheduleEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the TransactionsReportSchedulesSearchQueryResponseEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfTransactionsReportSchedulesSearchQueryResponseEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "limit" in value;
|
|
17
|
+
isInstance = isInstance && "page" in value;
|
|
18
|
+
isInstance = isInstance && "pageCount" in value;
|
|
19
|
+
isInstance = isInstance && "totalCount" in value;
|
|
20
|
+
isInstance = isInstance && "filteredCount" in value;
|
|
21
|
+
isInstance = isInstance && "items" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function TransactionsReportSchedulesSearchQueryResponseEntityFromJSON(json) {
|
|
25
|
+
return TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'limit': json['limit'],
|
|
33
|
+
'page': json['page'],
|
|
34
|
+
'pageCount': json['pageCount'],
|
|
35
|
+
'totalCount': json['totalCount'],
|
|
36
|
+
'filteredCount': json['filteredCount'],
|
|
37
|
+
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
38
|
+
'prevCursor': !exists(json, 'prevCursor') ? undefined : json['prevCursor'],
|
|
39
|
+
'items': (json['items'].map(TransactionsReportScheduleEntityFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function TransactionsReportSchedulesSearchQueryResponseEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'limit': value.limit,
|
|
52
|
+
'page': value.page,
|
|
53
|
+
'pageCount': value.pageCount,
|
|
54
|
+
'totalCount': value.totalCount,
|
|
55
|
+
'filteredCount': value.filteredCount,
|
|
56
|
+
'nextCursor': value.nextCursor,
|
|
57
|
+
'prevCursor': value.prevCursor,
|
|
58
|
+
'items': (value.items.map(TransactionsReportScheduleEntityToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|