@channelpayments/node-sdk 1.193.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.
Files changed (67) hide show
  1. package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
  2. package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
  3. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  4. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
  5. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  6. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
  7. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  8. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
  9. package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
  10. package/dist/cjs/models/ReportCreatorEntity.js +49 -0
  11. package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
  12. package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
  13. package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
  14. package/dist/cjs/models/TransactionsReportEntity.js +133 -0
  15. package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  16. package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
  17. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  18. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
  19. package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  20. package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
  21. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  22. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
  23. package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  24. package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
  25. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  26. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
  27. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  28. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
  29. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  30. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
  31. package/dist/cjs/models/index.d.ts +15 -0
  32. package/dist/cjs/models/index.js +15 -0
  33. package/dist/cjs/runtime.js +1 -1
  34. package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
  35. package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
  36. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  37. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
  38. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  39. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
  40. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  41. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
  42. package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
  43. package/dist/mjs/models/ReportCreatorEntity.js +43 -0
  44. package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
  45. package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
  46. package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
  47. package/dist/mjs/models/TransactionsReportEntity.js +126 -0
  48. package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  49. package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
  50. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  51. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
  52. package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  53. package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
  54. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  55. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
  56. package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  57. package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
  58. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  59. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
  60. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  61. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
  62. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  63. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
  64. package/dist/mjs/models/index.d.ts +15 -0
  65. package/dist/mjs/models/index.js +15 -0
  66. package/dist/mjs/runtime.js +1 -1
  67. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,156 @@
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 TransactionsReportTemplateEntity
13
+ */
14
+ export interface TransactionsReportTemplateEntity {
15
+ /**
16
+ * The report template ID.
17
+ * @type {string}
18
+ * @memberof TransactionsReportTemplateEntity
19
+ */
20
+ reportTemplateId: string;
21
+ /**
22
+ * The merchant ID that stores this report template.
23
+ * @type {string}
24
+ * @memberof TransactionsReportTemplateEntity
25
+ */
26
+ merchantId?: string;
27
+ /**
28
+ * The user creator of this report template.
29
+ * @type {ReportCreatorEntity}
30
+ * @memberof TransactionsReportTemplateEntity
31
+ */
32
+ createdBy: ReportCreatorEntity;
33
+ /**
34
+ * Indicate the resource used for this report template.
35
+ * @type {string}
36
+ * @memberof TransactionsReportTemplateEntity
37
+ */
38
+ reportDomain: TransactionsReportTemplateEntityReportDomainEnum;
39
+ /**
40
+ * Whether the report template is marked as favorite or not.
41
+ * @type {boolean}
42
+ * @memberof TransactionsReportTemplateEntity
43
+ */
44
+ isFavorite: boolean;
45
+ /**
46
+ * The report template name.
47
+ * @type {string}
48
+ * @memberof TransactionsReportTemplateEntity
49
+ */
50
+ name: string;
51
+ /**
52
+ * The report template description.
53
+ * @type {string}
54
+ * @memberof TransactionsReportTemplateEntity
55
+ */
56
+ description?: string;
57
+ /**
58
+ * The sorting type.
59
+ * @type {string}
60
+ * @memberof TransactionsReportTemplateEntity
61
+ */
62
+ order?: TransactionsReportTemplateEntityOrderEnum;
63
+ /**
64
+ * The report template creation date.
65
+ * @type {Date}
66
+ * @memberof TransactionsReportTemplateEntity
67
+ */
68
+ createdAt: Date;
69
+ /**
70
+ * The report template last update date.
71
+ * @type {Date}
72
+ * @memberof TransactionsReportTemplateEntity
73
+ */
74
+ updatedAt: Date;
75
+ /**
76
+ * Whether the report template record is deleted or not.
77
+ * @type {boolean}
78
+ * @memberof TransactionsReportTemplateEntity
79
+ */
80
+ deleted?: boolean;
81
+ /**
82
+ * The report template deletion date.
83
+ * @type {Date}
84
+ * @memberof TransactionsReportTemplateEntity
85
+ */
86
+ deletedAt?: Date;
87
+ /**
88
+ * The date range applied for this report template.
89
+ * @type {string}
90
+ * @memberof TransactionsReportTemplateEntity
91
+ */
92
+ dateRange: TransactionsReportTemplateEntityDateRangeEnum;
93
+ /**
94
+ * The start time for this report template.
95
+ * @type {string}
96
+ * @memberof TransactionsReportTemplateEntity
97
+ */
98
+ startTime: string;
99
+ /**
100
+ * The end time for this report template.
101
+ * @type {string}
102
+ * @memberof TransactionsReportTemplateEntity
103
+ */
104
+ endTime: string;
105
+ /**
106
+ * The columns associated to this report template.
107
+ * @type {Array<string>}
108
+ * @memberof TransactionsReportTemplateEntity
109
+ */
110
+ columns: Array<string>;
111
+ /**
112
+ * The filters associated to this report template.
113
+ * @type {TransactionsReportsFiltersEntity}
114
+ * @memberof TransactionsReportTemplateEntity
115
+ */
116
+ transactionsFilters: TransactionsReportsFiltersEntity;
117
+ }
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const TransactionsReportTemplateEntityReportDomainEnum: {
122
+ readonly Transactions: "TRANSACTIONS";
123
+ };
124
+ export type TransactionsReportTemplateEntityReportDomainEnum = typeof TransactionsReportTemplateEntityReportDomainEnum[keyof typeof TransactionsReportTemplateEntityReportDomainEnum];
125
+ /**
126
+ * @export
127
+ */
128
+ export declare const TransactionsReportTemplateEntityOrderEnum: {
129
+ readonly Asc: "asc";
130
+ readonly Desc: "desc";
131
+ };
132
+ export type TransactionsReportTemplateEntityOrderEnum = typeof TransactionsReportTemplateEntityOrderEnum[keyof typeof TransactionsReportTemplateEntityOrderEnum];
133
+ /**
134
+ * @export
135
+ */
136
+ export declare const TransactionsReportTemplateEntityDateRangeEnum: {
137
+ readonly Today: "TODAY";
138
+ readonly Yesterday: "YESTERDAY";
139
+ readonly Last7Days: "LAST_7_DAYS";
140
+ readonly Last30Days: "LAST_30_DAYS";
141
+ readonly Last60Days: "LAST_60_DAYS";
142
+ readonly Last90Days: "LAST_90_DAYS";
143
+ readonly LastWeek: "LAST_WEEK";
144
+ readonly LastMonth: "LAST_MONTH";
145
+ readonly LastQuarter: "LAST_QUARTER";
146
+ readonly LastYear: "LAST_YEAR";
147
+ readonly Custom: "CUSTOM";
148
+ };
149
+ export type TransactionsReportTemplateEntityDateRangeEnum = typeof TransactionsReportTemplateEntityDateRangeEnum[keyof typeof TransactionsReportTemplateEntityDateRangeEnum];
150
+ /**
151
+ * Check if a given object implements the TransactionsReportTemplateEntity interface.
152
+ */
153
+ export declare function instanceOfTransactionsReportTemplateEntity(value: object): boolean;
154
+ export declare function TransactionsReportTemplateEntityFromJSON(json: any): TransactionsReportTemplateEntity;
155
+ export declare function TransactionsReportTemplateEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportTemplateEntity;
156
+ export declare function TransactionsReportTemplateEntityToJSON(value?: TransactionsReportTemplateEntity | null): any;
@@ -0,0 +1,121 @@
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.TransactionsReportTemplateEntityDateRangeEnum = exports.TransactionsReportTemplateEntityOrderEnum = exports.TransactionsReportTemplateEntityReportDomainEnum = void 0;
12
+ exports.instanceOfTransactionsReportTemplateEntity = instanceOfTransactionsReportTemplateEntity;
13
+ exports.TransactionsReportTemplateEntityFromJSON = TransactionsReportTemplateEntityFromJSON;
14
+ exports.TransactionsReportTemplateEntityFromJSONTyped = TransactionsReportTemplateEntityFromJSONTyped;
15
+ exports.TransactionsReportTemplateEntityToJSON = TransactionsReportTemplateEntityToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ const ReportCreatorEntity_1 = require("./ReportCreatorEntity");
18
+ const TransactionsReportsFiltersEntity_1 = require("./TransactionsReportsFiltersEntity");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.TransactionsReportTemplateEntityReportDomainEnum = {
23
+ Transactions: 'TRANSACTIONS'
24
+ };
25
+ /**
26
+ * @export
27
+ */
28
+ exports.TransactionsReportTemplateEntityOrderEnum = {
29
+ Asc: 'asc',
30
+ Desc: 'desc'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.TransactionsReportTemplateEntityDateRangeEnum = {
36
+ Today: 'TODAY',
37
+ Yesterday: 'YESTERDAY',
38
+ Last7Days: 'LAST_7_DAYS',
39
+ Last30Days: 'LAST_30_DAYS',
40
+ Last60Days: 'LAST_60_DAYS',
41
+ Last90Days: 'LAST_90_DAYS',
42
+ LastWeek: 'LAST_WEEK',
43
+ LastMonth: 'LAST_MONTH',
44
+ LastQuarter: 'LAST_QUARTER',
45
+ LastYear: 'LAST_YEAR',
46
+ Custom: 'CUSTOM'
47
+ };
48
+ /**
49
+ * Check if a given object implements the TransactionsReportTemplateEntity interface.
50
+ */
51
+ function instanceOfTransactionsReportTemplateEntity(value) {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "reportTemplateId" in value;
54
+ isInstance = isInstance && "createdBy" in value;
55
+ isInstance = isInstance && "reportDomain" in value;
56
+ isInstance = isInstance && "isFavorite" in value;
57
+ isInstance = isInstance && "name" in value;
58
+ isInstance = isInstance && "createdAt" in value;
59
+ isInstance = isInstance && "updatedAt" in value;
60
+ isInstance = isInstance && "dateRange" in value;
61
+ isInstance = isInstance && "startTime" in value;
62
+ isInstance = isInstance && "endTime" in value;
63
+ isInstance = isInstance && "columns" in value;
64
+ isInstance = isInstance && "transactionsFilters" in value;
65
+ return isInstance;
66
+ }
67
+ function TransactionsReportTemplateEntityFromJSON(json) {
68
+ return TransactionsReportTemplateEntityFromJSONTyped(json, false);
69
+ }
70
+ function TransactionsReportTemplateEntityFromJSONTyped(json, ignoreDiscriminator) {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ const typed = {
75
+ 'reportTemplateId': json['reportTemplateId'],
76
+ 'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
77
+ 'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityFromJSON)(json['createdBy']),
78
+ 'reportDomain': json['reportDomain'],
79
+ 'isFavorite': json['isFavorite'],
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
+ 'createdAt': (new Date(json['createdAt'])),
84
+ 'updatedAt': (new Date(json['updatedAt'])),
85
+ 'deleted': !(0, runtime_1.exists)(json, 'deleted') ? undefined : json['deleted'],
86
+ 'deletedAt': !(0, runtime_1.exists)(json, 'deletedAt') ? undefined : (new Date(json['deletedAt'])),
87
+ 'dateRange': json['dateRange'],
88
+ 'startTime': json['startTime'],
89
+ 'endTime': json['endTime'],
90
+ 'columns': json['columns'],
91
+ 'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityFromJSON)(json['transactionsFilters']),
92
+ };
93
+ return (0, runtime_1.removeNullUndefined)(typed);
94
+ }
95
+ function TransactionsReportTemplateEntityToJSON(value) {
96
+ if (value === undefined) {
97
+ return undefined;
98
+ }
99
+ if (value === null) {
100
+ return null;
101
+ }
102
+ return {
103
+ 'reportTemplateId': value.reportTemplateId,
104
+ 'merchantId': value.merchantId,
105
+ 'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityToJSON)(value.createdBy),
106
+ 'reportDomain': value.reportDomain,
107
+ 'isFavorite': value.isFavorite,
108
+ 'name': value.name,
109
+ 'description': value.description,
110
+ 'order': value.order,
111
+ 'createdAt': (value.createdAt.toISOString()),
112
+ 'updatedAt': (value.updatedAt.toISOString()),
113
+ 'deleted': value.deleted,
114
+ 'deletedAt': value.deletedAt === undefined ? undefined : (value.deletedAt.toISOString()),
115
+ 'dateRange': value.dateRange,
116
+ 'startTime': value.startTime,
117
+ 'endTime': value.endTime,
118
+ 'columns': value.columns,
119
+ 'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityToJSON)(value.transactionsFilters),
120
+ };
121
+ }
@@ -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 { TransactionsReportTemplateEntity } from './TransactionsReportTemplateEntity';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface TransactionsReportTemplatesSearchQueryResponseEntity
12
+ */
13
+ export interface TransactionsReportTemplatesSearchQueryResponseEntity {
14
+ /**
15
+ * The number of records returned.
16
+ * @type {number}
17
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
18
+ */
19
+ limit: number;
20
+ /**
21
+ * The page number.
22
+ * @type {number}
23
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
24
+ */
25
+ page: number;
26
+ /**
27
+ * The number of pages.
28
+ * @type {number}
29
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
30
+ */
31
+ pageCount: number;
32
+ /**
33
+ * The total number of records.
34
+ * @type {number}
35
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
36
+ */
37
+ totalCount: number;
38
+ /**
39
+ * The total number of records returned.
40
+ * @type {number}
41
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
42
+ */
43
+ filteredCount: number;
44
+ /**
45
+ * The next cursor.
46
+ * @type {string}
47
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
48
+ */
49
+ nextCursor?: string;
50
+ /**
51
+ * The previous cursor
52
+ * @type {string}
53
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
54
+ */
55
+ prevCursor?: string;
56
+ /**
57
+ *
58
+ * @type {Array<TransactionsReportTemplateEntity>}
59
+ * @memberof TransactionsReportTemplatesSearchQueryResponseEntity
60
+ */
61
+ items: Array<TransactionsReportTemplateEntity>;
62
+ }
63
+ /**
64
+ * Check if a given object implements the TransactionsReportTemplatesSearchQueryResponseEntity interface.
65
+ */
66
+ export declare function instanceOfTransactionsReportTemplatesSearchQueryResponseEntity(value: object): boolean;
67
+ export declare function TransactionsReportTemplatesSearchQueryResponseEntityFromJSON(json: any): TransactionsReportTemplatesSearchQueryResponseEntity;
68
+ export declare function TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportTemplatesSearchQueryResponseEntity;
69
+ export declare function TransactionsReportTemplatesSearchQueryResponseEntityToJSON(value?: TransactionsReportTemplatesSearchQueryResponseEntity | 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.instanceOfTransactionsReportTemplatesSearchQueryResponseEntity = instanceOfTransactionsReportTemplatesSearchQueryResponseEntity;
12
+ exports.TransactionsReportTemplatesSearchQueryResponseEntityFromJSON = TransactionsReportTemplatesSearchQueryResponseEntityFromJSON;
13
+ exports.TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped = TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped;
14
+ exports.TransactionsReportTemplatesSearchQueryResponseEntityToJSON = TransactionsReportTemplatesSearchQueryResponseEntityToJSON;
15
+ const runtime_1 = require("../runtime");
16
+ const TransactionsReportTemplateEntity_1 = require("./TransactionsReportTemplateEntity");
17
+ /**
18
+ * Check if a given object implements the TransactionsReportTemplatesSearchQueryResponseEntity interface.
19
+ */
20
+ function instanceOfTransactionsReportTemplatesSearchQueryResponseEntity(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 TransactionsReportTemplatesSearchQueryResponseEntityFromJSON(json) {
31
+ return TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped(json, false);
32
+ }
33
+ function TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped(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(TransactionsReportTemplateEntity_1.TransactionsReportTemplateEntityFromJSON)),
46
+ };
47
+ return (0, runtime_1.removeNullUndefined)(typed);
48
+ }
49
+ function TransactionsReportTemplatesSearchQueryResponseEntityToJSON(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(TransactionsReportTemplateEntity_1.TransactionsReportTemplateEntityToJSON)),
65
+ };
66
+ }