@channelpayments/node-sdk 1.193.0 → 1.195.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  2. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
  3. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  5. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  6. package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
  7. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  8. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  9. package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
  10. package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
  11. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  12. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
  13. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  14. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
  15. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  16. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
  17. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  18. package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
  19. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  20. package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
  21. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  22. package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
  23. package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
  24. package/dist/cjs/models/MerchantSettingsDto.js +2 -2
  25. package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
  26. package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
  27. package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
  28. package/dist/cjs/models/ReportCreatorEntity.js +49 -0
  29. package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
  30. package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
  31. package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
  32. package/dist/cjs/models/TransactionsReportEntity.js +133 -0
  33. package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  34. package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
  35. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  36. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
  37. package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  38. package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
  39. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  40. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
  41. package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  42. package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
  43. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  44. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
  45. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  46. package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
  47. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  48. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
  49. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  50. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
  51. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  52. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
  53. package/dist/cjs/models/index.d.ts +16 -2
  54. package/dist/cjs/models/index.js +16 -2
  55. package/dist/cjs/runtime.js +1 -1
  56. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  57. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
  58. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  59. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  60. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  61. package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
  62. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  63. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  64. package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
  65. package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
  66. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  67. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
  68. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  69. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
  70. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  71. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
  72. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  73. package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
  74. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  75. package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
  76. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  77. package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
  78. package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
  79. package/dist/mjs/models/MerchantSettingsDto.js +2 -2
  80. package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
  81. package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
  82. package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
  83. package/dist/mjs/models/ReportCreatorEntity.js +43 -0
  84. package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
  85. package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
  86. package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
  87. package/dist/mjs/models/TransactionsReportEntity.js +126 -0
  88. package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  89. package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
  90. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  91. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
  92. package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  93. package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
  94. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  95. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
  96. package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  97. package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
  98. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  99. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
  100. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  101. package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
  102. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  103. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
  104. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  105. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
  106. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  107. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
  108. package/dist/mjs/models/index.d.ts +16 -2
  109. package/dist/mjs/models/index.js +16 -2
  110. package/dist/mjs/runtime.js +1 -1
  111. package/package.json +1 -1
  112. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
  113. package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
  114. package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
  115. package/dist/cjs/models/MerchantAccountEntity.js +0 -143
  116. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
  117. package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
  118. package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
  119. package/dist/mjs/models/MerchantAccountEntity.js +0 -136
@@ -0,0 +1,171 @@
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 TransactionsReportEntity
13
+ */
14
+ export interface TransactionsReportEntity {
15
+ /**
16
+ * The report ID.
17
+ * @type {string}
18
+ * @memberof TransactionsReportEntity
19
+ */
20
+ reportId: string;
21
+ /**
22
+ * The name of the report.
23
+ * @type {string}
24
+ * @memberof TransactionsReportEntity
25
+ */
26
+ name: string;
27
+ /**
28
+ * The description of the report.
29
+ * @type {string}
30
+ * @memberof TransactionsReportEntity
31
+ */
32
+ description?: string;
33
+ /**
34
+ * The merchant ID that stores this report template.
35
+ * @type {string}
36
+ * @memberof TransactionsReportEntity
37
+ */
38
+ merchantId: string;
39
+ /**
40
+ * The ID of the user who created the report.
41
+ * @type {ReportCreatorEntity}
42
+ * @memberof TransactionsReportEntity
43
+ */
44
+ createdBy: ReportCreatorEntity;
45
+ /**
46
+ * The report created date.
47
+ * @type {Date}
48
+ * @memberof TransactionsReportEntity
49
+ */
50
+ createdAt: Date;
51
+ /**
52
+ * The report last updated date.
53
+ * @type {Date}
54
+ * @memberof TransactionsReportEntity
55
+ */
56
+ updatedAt: Date;
57
+ /**
58
+ * The report deleted date.
59
+ * @type {Date}
60
+ * @memberof TransactionsReportEntity
61
+ */
62
+ deletedAt: Date;
63
+ /**
64
+ * Whether the report record is deleted or not.
65
+ * @type {boolean}
66
+ * @memberof TransactionsReportEntity
67
+ */
68
+ deleted?: boolean;
69
+ /**
70
+ * The start date for the date filter.
71
+ * @type {string}
72
+ * @memberof TransactionsReportEntity
73
+ */
74
+ startDate: string;
75
+ /**
76
+ * The end date for the date filter.
77
+ * @type {string}
78
+ * @memberof TransactionsReportEntity
79
+ */
80
+ endDate: string;
81
+ /**
82
+ * The status of the report.
83
+ * @type {string}
84
+ * @memberof TransactionsReportEntity
85
+ */
86
+ status: TransactionsReportEntityStatusEnum;
87
+ /**
88
+ * The sorting order of the report.
89
+ * @type {string}
90
+ * @memberof TransactionsReportEntity
91
+ */
92
+ order: TransactionsReportEntityOrderEnum;
93
+ /**
94
+ * The recipients of this report.
95
+ * @type {Array<string>}
96
+ * @memberof TransactionsReportEntity
97
+ */
98
+ recipients: Array<string>;
99
+ /**
100
+ * The date range applied for this report.
101
+ * @type {string}
102
+ * @memberof TransactionsReportEntity
103
+ */
104
+ dateRange: TransactionsReportEntityDateRangeEnum;
105
+ /**
106
+ * The start time for this report.
107
+ * @type {string}
108
+ * @memberof TransactionsReportEntity
109
+ */
110
+ startTime: string;
111
+ /**
112
+ * The end time for this report.
113
+ * @type {string}
114
+ * @memberof TransactionsReportEntity
115
+ */
116
+ endTime: string;
117
+ /**
118
+ * The columns associated to this report.
119
+ * @type {Array<string>}
120
+ * @memberof TransactionsReportEntity
121
+ */
122
+ columns: Array<string>;
123
+ /**
124
+ * The filters associated to this report.
125
+ * @type {TransactionsReportsFiltersEntity}
126
+ * @memberof TransactionsReportEntity
127
+ */
128
+ transactionsFilters: TransactionsReportsFiltersEntity;
129
+ }
130
+ /**
131
+ * @export
132
+ */
133
+ export declare const TransactionsReportEntityStatusEnum: {
134
+ readonly Pending: "PENDING";
135
+ readonly Processing: "PROCESSING";
136
+ readonly Generated: "GENERATED";
137
+ readonly Failed: "FAILED";
138
+ };
139
+ export type TransactionsReportEntityStatusEnum = typeof TransactionsReportEntityStatusEnum[keyof typeof TransactionsReportEntityStatusEnum];
140
+ /**
141
+ * @export
142
+ */
143
+ export declare const TransactionsReportEntityOrderEnum: {
144
+ readonly Asc: "asc";
145
+ readonly Desc: "desc";
146
+ };
147
+ export type TransactionsReportEntityOrderEnum = typeof TransactionsReportEntityOrderEnum[keyof typeof TransactionsReportEntityOrderEnum];
148
+ /**
149
+ * @export
150
+ */
151
+ export declare const TransactionsReportEntityDateRangeEnum: {
152
+ readonly Today: "TODAY";
153
+ readonly Yesterday: "YESTERDAY";
154
+ readonly Last7Days: "LAST_7_DAYS";
155
+ readonly Last30Days: "LAST_30_DAYS";
156
+ readonly Last60Days: "LAST_60_DAYS";
157
+ readonly Last90Days: "LAST_90_DAYS";
158
+ readonly LastWeek: "LAST_WEEK";
159
+ readonly LastMonth: "LAST_MONTH";
160
+ readonly LastQuarter: "LAST_QUARTER";
161
+ readonly LastYear: "LAST_YEAR";
162
+ readonly Custom: "CUSTOM";
163
+ };
164
+ export type TransactionsReportEntityDateRangeEnum = typeof TransactionsReportEntityDateRangeEnum[keyof typeof TransactionsReportEntityDateRangeEnum];
165
+ /**
166
+ * Check if a given object implements the TransactionsReportEntity interface.
167
+ */
168
+ export declare function instanceOfTransactionsReportEntity(value: object): boolean;
169
+ export declare function TransactionsReportEntityFromJSON(json: any): TransactionsReportEntity;
170
+ export declare function TransactionsReportEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportEntity;
171
+ export declare function TransactionsReportEntityToJSON(value?: TransactionsReportEntity | null): any;
@@ -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;