@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,133 @@
|
|
|
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.TransactionsReportEntityDateRangeEnum = exports.TransactionsReportEntityOrderEnum = exports.TransactionsReportEntityStatusEnum = void 0;
|
|
12
|
+
exports.instanceOfTransactionsReportEntity = instanceOfTransactionsReportEntity;
|
|
13
|
+
exports.TransactionsReportEntityFromJSON = TransactionsReportEntityFromJSON;
|
|
14
|
+
exports.TransactionsReportEntityFromJSONTyped = TransactionsReportEntityFromJSONTyped;
|
|
15
|
+
exports.TransactionsReportEntityToJSON = TransactionsReportEntityToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const ReportCreatorEntity_1 = require("./ReportCreatorEntity");
|
|
18
|
+
const TransactionsReportsFiltersEntity_1 = require("./TransactionsReportsFiltersEntity");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.TransactionsReportEntityStatusEnum = {
|
|
23
|
+
Pending: 'PENDING',
|
|
24
|
+
Processing: 'PROCESSING',
|
|
25
|
+
Generated: 'GENERATED',
|
|
26
|
+
Failed: 'FAILED'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.TransactionsReportEntityOrderEnum = {
|
|
32
|
+
Asc: 'asc',
|
|
33
|
+
Desc: 'desc'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.TransactionsReportEntityDateRangeEnum = {
|
|
39
|
+
Today: 'TODAY',
|
|
40
|
+
Yesterday: 'YESTERDAY',
|
|
41
|
+
Last7Days: 'LAST_7_DAYS',
|
|
42
|
+
Last30Days: 'LAST_30_DAYS',
|
|
43
|
+
Last60Days: 'LAST_60_DAYS',
|
|
44
|
+
Last90Days: 'LAST_90_DAYS',
|
|
45
|
+
LastWeek: 'LAST_WEEK',
|
|
46
|
+
LastMonth: 'LAST_MONTH',
|
|
47
|
+
LastQuarter: 'LAST_QUARTER',
|
|
48
|
+
LastYear: 'LAST_YEAR',
|
|
49
|
+
Custom: 'CUSTOM'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the TransactionsReportEntity interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfTransactionsReportEntity(value) {
|
|
55
|
+
let isInstance = true;
|
|
56
|
+
isInstance = isInstance && "reportId" in value;
|
|
57
|
+
isInstance = isInstance && "name" in value;
|
|
58
|
+
isInstance = isInstance && "merchantId" in value;
|
|
59
|
+
isInstance = isInstance && "createdBy" in value;
|
|
60
|
+
isInstance = isInstance && "createdAt" in value;
|
|
61
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
62
|
+
isInstance = isInstance && "deletedAt" in value;
|
|
63
|
+
isInstance = isInstance && "startDate" in value;
|
|
64
|
+
isInstance = isInstance && "endDate" in value;
|
|
65
|
+
isInstance = isInstance && "status" in value;
|
|
66
|
+
isInstance = isInstance && "order" in value;
|
|
67
|
+
isInstance = isInstance && "recipients" in value;
|
|
68
|
+
isInstance = isInstance && "dateRange" in value;
|
|
69
|
+
isInstance = isInstance && "startTime" in value;
|
|
70
|
+
isInstance = isInstance && "endTime" in value;
|
|
71
|
+
isInstance = isInstance && "columns" in value;
|
|
72
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
73
|
+
return isInstance;
|
|
74
|
+
}
|
|
75
|
+
function TransactionsReportEntityFromJSON(json) {
|
|
76
|
+
return TransactionsReportEntityFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function TransactionsReportEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
79
|
+
if ((json === undefined) || (json === null)) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
const typed = {
|
|
83
|
+
'reportId': json['reportId'],
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
86
|
+
'merchantId': json['merchantId'],
|
|
87
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityFromJSON)(json['createdBy']),
|
|
88
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
90
|
+
'deletedAt': (new Date(json['deletedAt'])),
|
|
91
|
+
'deleted': !(0, runtime_1.exists)(json, 'deleted') ? undefined : json['deleted'],
|
|
92
|
+
'startDate': json['startDate'],
|
|
93
|
+
'endDate': json['endDate'],
|
|
94
|
+
'status': json['status'],
|
|
95
|
+
'order': json['order'],
|
|
96
|
+
'recipients': json['recipients'],
|
|
97
|
+
'dateRange': json['dateRange'],
|
|
98
|
+
'startTime': json['startTime'],
|
|
99
|
+
'endTime': json['endTime'],
|
|
100
|
+
'columns': json['columns'],
|
|
101
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityFromJSON)(json['transactionsFilters']),
|
|
102
|
+
};
|
|
103
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
104
|
+
}
|
|
105
|
+
function TransactionsReportEntityToJSON(value) {
|
|
106
|
+
if (value === undefined) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
if (value === null) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
'reportId': value.reportId,
|
|
114
|
+
'name': value.name,
|
|
115
|
+
'description': value.description,
|
|
116
|
+
'merchantId': value.merchantId,
|
|
117
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityToJSON)(value.createdBy),
|
|
118
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
119
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
120
|
+
'deletedAt': (value.deletedAt.toISOString()),
|
|
121
|
+
'deleted': value.deleted,
|
|
122
|
+
'startDate': value.startDate,
|
|
123
|
+
'endDate': value.endDate,
|
|
124
|
+
'status': value.status,
|
|
125
|
+
'order': value.order,
|
|
126
|
+
'recipients': value.recipients,
|
|
127
|
+
'dateRange': value.dateRange,
|
|
128
|
+
'startTime': value.startTime,
|
|
129
|
+
'endTime': value.endTime,
|
|
130
|
+
'columns': value.columns,
|
|
131
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityToJSON)(value.transactionsFilters),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -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,131 @@
|
|
|
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.TransactionsReportScheduleEntityDateRangeEnum = exports.TransactionsReportScheduleEntityIntervalEnum = exports.TransactionsReportScheduleEntityOrderEnum = void 0;
|
|
12
|
+
exports.instanceOfTransactionsReportScheduleEntity = instanceOfTransactionsReportScheduleEntity;
|
|
13
|
+
exports.TransactionsReportScheduleEntityFromJSON = TransactionsReportScheduleEntityFromJSON;
|
|
14
|
+
exports.TransactionsReportScheduleEntityFromJSONTyped = TransactionsReportScheduleEntityFromJSONTyped;
|
|
15
|
+
exports.TransactionsReportScheduleEntityToJSON = TransactionsReportScheduleEntityToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const ReportCreatorEntity_1 = require("./ReportCreatorEntity");
|
|
18
|
+
const TransactionsReportsFiltersEntity_1 = require("./TransactionsReportsFiltersEntity");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.TransactionsReportScheduleEntityOrderEnum = {
|
|
23
|
+
Asc: 'asc',
|
|
24
|
+
Desc: 'desc'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.TransactionsReportScheduleEntityIntervalEnum = {
|
|
30
|
+
Daily: 'DAILY',
|
|
31
|
+
Weekly: 'WEEKLY',
|
|
32
|
+
Monthly: 'MONTHLY'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.TransactionsReportScheduleEntityDateRangeEnum = {
|
|
38
|
+
Today: 'TODAY',
|
|
39
|
+
Yesterday: 'YESTERDAY',
|
|
40
|
+
Last7Days: 'LAST_7_DAYS',
|
|
41
|
+
Last30Days: 'LAST_30_DAYS',
|
|
42
|
+
Last60Days: 'LAST_60_DAYS',
|
|
43
|
+
Last90Days: 'LAST_90_DAYS',
|
|
44
|
+
LastWeek: 'LAST_WEEK',
|
|
45
|
+
LastMonth: 'LAST_MONTH',
|
|
46
|
+
LastQuarter: 'LAST_QUARTER',
|
|
47
|
+
LastYear: 'LAST_YEAR',
|
|
48
|
+
Custom: 'CUSTOM'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the TransactionsReportScheduleEntity interface.
|
|
52
|
+
*/
|
|
53
|
+
function instanceOfTransactionsReportScheduleEntity(value) {
|
|
54
|
+
let isInstance = true;
|
|
55
|
+
isInstance = isInstance && "reportScheduleId" in value;
|
|
56
|
+
isInstance = isInstance && "name" in value;
|
|
57
|
+
isInstance = isInstance && "createdBy" in value;
|
|
58
|
+
isInstance = isInstance && "merchantId" in value;
|
|
59
|
+
isInstance = isInstance && "interval" in value;
|
|
60
|
+
isInstance = isInstance && "dateRange" in value;
|
|
61
|
+
isInstance = isInstance && "startTime" in value;
|
|
62
|
+
isInstance = isInstance && "endTime" in value;
|
|
63
|
+
isInstance = isInstance && "recipients" in value;
|
|
64
|
+
isInstance = isInstance && "nextRun" in value;
|
|
65
|
+
isInstance = isInstance && "createdAt" in value;
|
|
66
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
67
|
+
isInstance = isInstance && "columns" in value;
|
|
68
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
69
|
+
return isInstance;
|
|
70
|
+
}
|
|
71
|
+
function TransactionsReportScheduleEntityFromJSON(json) {
|
|
72
|
+
return TransactionsReportScheduleEntityFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function TransactionsReportScheduleEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
75
|
+
if ((json === undefined) || (json === null)) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
const typed = {
|
|
79
|
+
'reportScheduleId': json['reportScheduleId'],
|
|
80
|
+
'name': json['name'],
|
|
81
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
82
|
+
'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
|
|
83
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityFromJSON)(json['createdBy']),
|
|
84
|
+
'deletedBy': !(0, runtime_1.exists)(json, 'deletedBy') ? undefined : (0, ReportCreatorEntity_1.ReportCreatorEntityFromJSON)(json['deletedBy']),
|
|
85
|
+
'merchantId': json['merchantId'],
|
|
86
|
+
'interval': json['interval'],
|
|
87
|
+
'dateRange': json['dateRange'],
|
|
88
|
+
'startTime': json['startTime'],
|
|
89
|
+
'endTime': json['endTime'],
|
|
90
|
+
'recipients': json['recipients'],
|
|
91
|
+
'lastRun': !(0, runtime_1.exists)(json, 'lastRun') ? undefined : (new Date(json['lastRun'])),
|
|
92
|
+
'nextRun': (new Date(json['nextRun'])),
|
|
93
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
94
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
95
|
+
'deleted': !(0, runtime_1.exists)(json, 'deleted') ? undefined : json['deleted'],
|
|
96
|
+
'deletedAt': !(0, runtime_1.exists)(json, 'deletedAt') ? undefined : (new Date(json['deletedAt'])),
|
|
97
|
+
'columns': json['columns'],
|
|
98
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityFromJSON)(json['transactionsFilters']),
|
|
99
|
+
};
|
|
100
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
101
|
+
}
|
|
102
|
+
function TransactionsReportScheduleEntityToJSON(value) {
|
|
103
|
+
if (value === undefined) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
if (value === null) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
'reportScheduleId': value.reportScheduleId,
|
|
111
|
+
'name': value.name,
|
|
112
|
+
'description': value.description,
|
|
113
|
+
'order': value.order,
|
|
114
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityToJSON)(value.createdBy),
|
|
115
|
+
'deletedBy': (0, ReportCreatorEntity_1.ReportCreatorEntityToJSON)(value.deletedBy),
|
|
116
|
+
'merchantId': value.merchantId,
|
|
117
|
+
'interval': value.interval,
|
|
118
|
+
'dateRange': value.dateRange,
|
|
119
|
+
'startTime': value.startTime,
|
|
120
|
+
'endTime': value.endTime,
|
|
121
|
+
'recipients': value.recipients,
|
|
122
|
+
'lastRun': value.lastRun === undefined ? undefined : (value.lastRun.toISOString()),
|
|
123
|
+
'nextRun': (value.nextRun.toISOString()),
|
|
124
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
125
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
126
|
+
'deleted': value.deleted,
|
|
127
|
+
'deletedAt': value.deletedAt === undefined ? undefined : (value.deletedAt.toISOString()),
|
|
128
|
+
'columns': value.columns,
|
|
129
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityToJSON)(value.transactionsFilters),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -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,66 @@
|
|
|
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.instanceOfTransactionsReportSchedulesSearchQueryResponseEntity = instanceOfTransactionsReportSchedulesSearchQueryResponseEntity;
|
|
12
|
+
exports.TransactionsReportSchedulesSearchQueryResponseEntityFromJSON = TransactionsReportSchedulesSearchQueryResponseEntityFromJSON;
|
|
13
|
+
exports.TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped = TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped;
|
|
14
|
+
exports.TransactionsReportSchedulesSearchQueryResponseEntityToJSON = TransactionsReportSchedulesSearchQueryResponseEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const TransactionsReportScheduleEntity_1 = require("./TransactionsReportScheduleEntity");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the TransactionsReportSchedulesSearchQueryResponseEntity interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfTransactionsReportSchedulesSearchQueryResponseEntity(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "limit" in value;
|
|
23
|
+
isInstance = isInstance && "page" in value;
|
|
24
|
+
isInstance = isInstance && "pageCount" in value;
|
|
25
|
+
isInstance = isInstance && "totalCount" in value;
|
|
26
|
+
isInstance = isInstance && "filteredCount" in value;
|
|
27
|
+
isInstance = isInstance && "items" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
function TransactionsReportSchedulesSearchQueryResponseEntityFromJSON(json) {
|
|
31
|
+
return TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function TransactionsReportSchedulesSearchQueryResponseEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
const typed = {
|
|
38
|
+
'limit': json['limit'],
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageCount': json['pageCount'],
|
|
41
|
+
'totalCount': json['totalCount'],
|
|
42
|
+
'filteredCount': json['filteredCount'],
|
|
43
|
+
'nextCursor': !(0, runtime_1.exists)(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
44
|
+
'prevCursor': !(0, runtime_1.exists)(json, 'prevCursor') ? undefined : json['prevCursor'],
|
|
45
|
+
'items': (json['items'].map(TransactionsReportScheduleEntity_1.TransactionsReportScheduleEntityFromJSON)),
|
|
46
|
+
};
|
|
47
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
48
|
+
}
|
|
49
|
+
function TransactionsReportSchedulesSearchQueryResponseEntityToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'limit': value.limit,
|
|
58
|
+
'page': value.page,
|
|
59
|
+
'pageCount': value.pageCount,
|
|
60
|
+
'totalCount': value.totalCount,
|
|
61
|
+
'filteredCount': value.filteredCount,
|
|
62
|
+
'nextCursor': value.nextCursor,
|
|
63
|
+
'prevCursor': value.prevCursor,
|
|
64
|
+
'items': (value.items.map(TransactionsReportScheduleEntity_1.TransactionsReportScheduleEntityToJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|