@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,151 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface TransactionsReportsFiltersEntity
11
+ */
12
+ export interface TransactionsReportsFiltersEntity {
13
+ /**
14
+ * Indicate the resource used for this report template.
15
+ * @type {Array<string>}
16
+ * @memberof TransactionsReportsFiltersEntity
17
+ */
18
+ paymentMethods: Array<TransactionsReportsFiltersEntityPaymentMethodsEnum>;
19
+ /**
20
+ * Indicate the resource used for this report template.
21
+ * @type {Array<string>}
22
+ * @memberof TransactionsReportsFiltersEntity
23
+ */
24
+ accountTypes?: Array<TransactionsReportsFiltersEntityAccountTypesEnum>;
25
+ /**
26
+ * Indicate the resource used for this report template.
27
+ * @type {Array<string>}
28
+ * @memberof TransactionsReportsFiltersEntity
29
+ */
30
+ cardTypes?: Array<TransactionsReportsFiltersEntityCardTypesEnum>;
31
+ /**
32
+ * Indicate the resource used for this report template.
33
+ * @type {Array<string>}
34
+ * @memberof TransactionsReportsFiltersEntity
35
+ */
36
+ cardSchemes?: Array<TransactionsReportsFiltersEntityCardSchemesEnum>;
37
+ /**
38
+ * Indicate the resource used for this report template.
39
+ * @type {Array<string>}
40
+ * @memberof TransactionsReportsFiltersEntity
41
+ */
42
+ transactionIntents?: Array<TransactionsReportsFiltersEntityTransactionIntentsEnum>;
43
+ /**
44
+ * Indicate the resource used for this report template.
45
+ * @type {Array<string>}
46
+ * @memberof TransactionsReportsFiltersEntity
47
+ */
48
+ transactionStatuses?: Array<TransactionsReportsFiltersEntityTransactionStatusesEnum>;
49
+ /**
50
+ * The amount of the transaction for this report.
51
+ * @type {number}
52
+ * @memberof TransactionsReportsFiltersEntity
53
+ */
54
+ amount?: number;
55
+ /**
56
+ * Amount greater than a specified threshold for this report.
57
+ * @type {number}
58
+ * @memberof TransactionsReportsFiltersEntity
59
+ */
60
+ amountGreaterThan?: number;
61
+ /**
62
+ * Amount less than a specified threshold for this report.
63
+ * @type {number}
64
+ * @memberof TransactionsReportsFiltersEntity
65
+ */
66
+ amountLessThan?: number;
67
+ /**
68
+ * The min amount for a specified range in this report.
69
+ * @type {number}
70
+ * @memberof TransactionsReportsFiltersEntity
71
+ */
72
+ amountMin?: number;
73
+ /**
74
+ * The max amount for a specified range in this report.
75
+ * @type {number}
76
+ * @memberof TransactionsReportsFiltersEntity
77
+ */
78
+ amountMax?: number;
79
+ }
80
+ /**
81
+ * @export
82
+ */
83
+ export declare const TransactionsReportsFiltersEntityPaymentMethodsEnum: {
84
+ readonly Card: "CARD";
85
+ readonly Bank: "BANK";
86
+ };
87
+ export type TransactionsReportsFiltersEntityPaymentMethodsEnum = typeof TransactionsReportsFiltersEntityPaymentMethodsEnum[keyof typeof TransactionsReportsFiltersEntityPaymentMethodsEnum];
88
+ /**
89
+ * @export
90
+ */
91
+ export declare const TransactionsReportsFiltersEntityAccountTypesEnum: {
92
+ readonly Checking: "CHECKING";
93
+ readonly Savings: "SAVINGS";
94
+ };
95
+ export type TransactionsReportsFiltersEntityAccountTypesEnum = typeof TransactionsReportsFiltersEntityAccountTypesEnum[keyof typeof TransactionsReportsFiltersEntityAccountTypesEnum];
96
+ /**
97
+ * @export
98
+ */
99
+ export declare const TransactionsReportsFiltersEntityCardTypesEnum: {
100
+ readonly Credit: "CREDIT";
101
+ readonly Debit: "DEBIT";
102
+ readonly Prepaid: "PREPAID";
103
+ };
104
+ export type TransactionsReportsFiltersEntityCardTypesEnum = typeof TransactionsReportsFiltersEntityCardTypesEnum[keyof typeof TransactionsReportsFiltersEntityCardTypesEnum];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const TransactionsReportsFiltersEntityCardSchemesEnum: {
109
+ readonly Visa: "visa";
110
+ readonly Mastercard: "mastercard";
111
+ readonly Amex: "amex";
112
+ readonly Discover: "discover";
113
+ readonly Jcb: "jcb";
114
+ readonly DinersClub: "diners_club";
115
+ readonly Maestro: "maestro";
116
+ };
117
+ export type TransactionsReportsFiltersEntityCardSchemesEnum = typeof TransactionsReportsFiltersEntityCardSchemesEnum[keyof typeof TransactionsReportsFiltersEntityCardSchemesEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const TransactionsReportsFiltersEntityTransactionIntentsEnum: {
122
+ readonly Capture: "capture";
123
+ readonly Authorize: "authorize";
124
+ readonly Debit: "debit";
125
+ readonly Credit: "credit";
126
+ };
127
+ export type TransactionsReportsFiltersEntityTransactionIntentsEnum = typeof TransactionsReportsFiltersEntityTransactionIntentsEnum[keyof typeof TransactionsReportsFiltersEntityTransactionIntentsEnum];
128
+ /**
129
+ * @export
130
+ */
131
+ export declare const TransactionsReportsFiltersEntityTransactionStatusesEnum: {
132
+ readonly Authorized: "authorized";
133
+ readonly AuthorizationFailed: "authorizationFailed";
134
+ readonly Declined: "declined";
135
+ readonly Captured: "captured";
136
+ readonly Voided: "voided";
137
+ readonly Hold: "hold";
138
+ readonly Submitted: "submitted";
139
+ readonly Transmitted: "transmitted";
140
+ readonly Settled: "settled";
141
+ readonly Returned: "returned";
142
+ readonly Rejected: "rejected";
143
+ };
144
+ export type TransactionsReportsFiltersEntityTransactionStatusesEnum = typeof TransactionsReportsFiltersEntityTransactionStatusesEnum[keyof typeof TransactionsReportsFiltersEntityTransactionStatusesEnum];
145
+ /**
146
+ * Check if a given object implements the TransactionsReportsFiltersEntity interface.
147
+ */
148
+ export declare function instanceOfTransactionsReportsFiltersEntity(value: object): boolean;
149
+ export declare function TransactionsReportsFiltersEntityFromJSON(json: any): TransactionsReportsFiltersEntity;
150
+ export declare function TransactionsReportsFiltersEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportsFiltersEntity;
151
+ export declare function TransactionsReportsFiltersEntityToJSON(value?: TransactionsReportsFiltersEntity | null): any;
@@ -0,0 +1,126 @@
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.TransactionsReportsFiltersEntityTransactionStatusesEnum = exports.TransactionsReportsFiltersEntityTransactionIntentsEnum = exports.TransactionsReportsFiltersEntityCardSchemesEnum = exports.TransactionsReportsFiltersEntityCardTypesEnum = exports.TransactionsReportsFiltersEntityAccountTypesEnum = exports.TransactionsReportsFiltersEntityPaymentMethodsEnum = void 0;
12
+ exports.instanceOfTransactionsReportsFiltersEntity = instanceOfTransactionsReportsFiltersEntity;
13
+ exports.TransactionsReportsFiltersEntityFromJSON = TransactionsReportsFiltersEntityFromJSON;
14
+ exports.TransactionsReportsFiltersEntityFromJSONTyped = TransactionsReportsFiltersEntityFromJSONTyped;
15
+ exports.TransactionsReportsFiltersEntityToJSON = TransactionsReportsFiltersEntityToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ /**
18
+ * @export
19
+ */
20
+ exports.TransactionsReportsFiltersEntityPaymentMethodsEnum = {
21
+ Card: 'CARD',
22
+ Bank: 'BANK'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ exports.TransactionsReportsFiltersEntityAccountTypesEnum = {
28
+ Checking: 'CHECKING',
29
+ Savings: 'SAVINGS'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.TransactionsReportsFiltersEntityCardTypesEnum = {
35
+ Credit: 'CREDIT',
36
+ Debit: 'DEBIT',
37
+ Prepaid: 'PREPAID'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.TransactionsReportsFiltersEntityCardSchemesEnum = {
43
+ Visa: 'visa',
44
+ Mastercard: 'mastercard',
45
+ Amex: 'amex',
46
+ Discover: 'discover',
47
+ Jcb: 'jcb',
48
+ DinersClub: 'diners_club',
49
+ Maestro: 'maestro'
50
+ };
51
+ /**
52
+ * @export
53
+ */
54
+ exports.TransactionsReportsFiltersEntityTransactionIntentsEnum = {
55
+ Capture: 'capture',
56
+ Authorize: 'authorize',
57
+ Debit: 'debit',
58
+ Credit: 'credit'
59
+ };
60
+ /**
61
+ * @export
62
+ */
63
+ exports.TransactionsReportsFiltersEntityTransactionStatusesEnum = {
64
+ Authorized: 'authorized',
65
+ AuthorizationFailed: 'authorizationFailed',
66
+ Declined: 'declined',
67
+ Captured: 'captured',
68
+ Voided: 'voided',
69
+ Hold: 'hold',
70
+ Submitted: 'submitted',
71
+ Transmitted: 'transmitted',
72
+ Settled: 'settled',
73
+ Returned: 'returned',
74
+ Rejected: 'rejected'
75
+ };
76
+ /**
77
+ * Check if a given object implements the TransactionsReportsFiltersEntity interface.
78
+ */
79
+ function instanceOfTransactionsReportsFiltersEntity(value) {
80
+ let isInstance = true;
81
+ isInstance = isInstance && "paymentMethods" in value;
82
+ return isInstance;
83
+ }
84
+ function TransactionsReportsFiltersEntityFromJSON(json) {
85
+ return TransactionsReportsFiltersEntityFromJSONTyped(json, false);
86
+ }
87
+ function TransactionsReportsFiltersEntityFromJSONTyped(json, ignoreDiscriminator) {
88
+ if ((json === undefined) || (json === null)) {
89
+ return json;
90
+ }
91
+ const typed = {
92
+ 'paymentMethods': json['paymentMethods'],
93
+ 'accountTypes': !(0, runtime_1.exists)(json, 'accountTypes') ? undefined : json['accountTypes'],
94
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
95
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
96
+ 'transactionIntents': !(0, runtime_1.exists)(json, 'transactionIntents') ? undefined : json['transactionIntents'],
97
+ 'transactionStatuses': !(0, runtime_1.exists)(json, 'transactionStatuses') ? undefined : json['transactionStatuses'],
98
+ 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
99
+ 'amountGreaterThan': !(0, runtime_1.exists)(json, 'amountGreaterThan') ? undefined : json['amountGreaterThan'],
100
+ 'amountLessThan': !(0, runtime_1.exists)(json, 'amountLessThan') ? undefined : json['amountLessThan'],
101
+ 'amountMin': !(0, runtime_1.exists)(json, 'amountMin') ? undefined : json['amountMin'],
102
+ 'amountMax': !(0, runtime_1.exists)(json, 'amountMax') ? undefined : json['amountMax'],
103
+ };
104
+ return (0, runtime_1.removeNullUndefined)(typed);
105
+ }
106
+ function TransactionsReportsFiltersEntityToJSON(value) {
107
+ if (value === undefined) {
108
+ return undefined;
109
+ }
110
+ if (value === null) {
111
+ return null;
112
+ }
113
+ return {
114
+ 'paymentMethods': value.paymentMethods,
115
+ 'accountTypes': value.accountTypes,
116
+ 'cardTypes': value.cardTypes,
117
+ 'cardSchemes': value.cardSchemes,
118
+ 'transactionIntents': value.transactionIntents,
119
+ 'transactionStatuses': value.transactionStatuses,
120
+ 'amount': value.amount,
121
+ 'amountGreaterThan': value.amountGreaterThan,
122
+ 'amountLessThan': value.amountLessThan,
123
+ 'amountMin': value.amountMin,
124
+ 'amountMax': value.amountMax,
125
+ };
126
+ }
@@ -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 { TransactionsReportEntity } from './TransactionsReportEntity';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface TransactionsReportsSearchQueryResponseEntity
12
+ */
13
+ export interface TransactionsReportsSearchQueryResponseEntity {
14
+ /**
15
+ * The number of records returned.
16
+ * @type {number}
17
+ * @memberof TransactionsReportsSearchQueryResponseEntity
18
+ */
19
+ limit: number;
20
+ /**
21
+ * The page number.
22
+ * @type {number}
23
+ * @memberof TransactionsReportsSearchQueryResponseEntity
24
+ */
25
+ page: number;
26
+ /**
27
+ * The number of pages.
28
+ * @type {number}
29
+ * @memberof TransactionsReportsSearchQueryResponseEntity
30
+ */
31
+ pageCount: number;
32
+ /**
33
+ * The total number of records.
34
+ * @type {number}
35
+ * @memberof TransactionsReportsSearchQueryResponseEntity
36
+ */
37
+ totalCount: number;
38
+ /**
39
+ * The total number of records returned.
40
+ * @type {number}
41
+ * @memberof TransactionsReportsSearchQueryResponseEntity
42
+ */
43
+ filteredCount: number;
44
+ /**
45
+ * The next cursor.
46
+ * @type {string}
47
+ * @memberof TransactionsReportsSearchQueryResponseEntity
48
+ */
49
+ nextCursor?: string;
50
+ /**
51
+ * The previous cursor
52
+ * @type {string}
53
+ * @memberof TransactionsReportsSearchQueryResponseEntity
54
+ */
55
+ prevCursor?: string;
56
+ /**
57
+ *
58
+ * @type {Array<TransactionsReportEntity>}
59
+ * @memberof TransactionsReportsSearchQueryResponseEntity
60
+ */
61
+ items: Array<TransactionsReportEntity>;
62
+ }
63
+ /**
64
+ * Check if a given object implements the TransactionsReportsSearchQueryResponseEntity interface.
65
+ */
66
+ export declare function instanceOfTransactionsReportsSearchQueryResponseEntity(value: object): boolean;
67
+ export declare function TransactionsReportsSearchQueryResponseEntityFromJSON(json: any): TransactionsReportsSearchQueryResponseEntity;
68
+ export declare function TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportsSearchQueryResponseEntity;
69
+ export declare function TransactionsReportsSearchQueryResponseEntityToJSON(value?: TransactionsReportsSearchQueryResponseEntity | 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.instanceOfTransactionsReportsSearchQueryResponseEntity = instanceOfTransactionsReportsSearchQueryResponseEntity;
12
+ exports.TransactionsReportsSearchQueryResponseEntityFromJSON = TransactionsReportsSearchQueryResponseEntityFromJSON;
13
+ exports.TransactionsReportsSearchQueryResponseEntityFromJSONTyped = TransactionsReportsSearchQueryResponseEntityFromJSONTyped;
14
+ exports.TransactionsReportsSearchQueryResponseEntityToJSON = TransactionsReportsSearchQueryResponseEntityToJSON;
15
+ const runtime_1 = require("../runtime");
16
+ const TransactionsReportEntity_1 = require("./TransactionsReportEntity");
17
+ /**
18
+ * Check if a given object implements the TransactionsReportsSearchQueryResponseEntity interface.
19
+ */
20
+ function instanceOfTransactionsReportsSearchQueryResponseEntity(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 TransactionsReportsSearchQueryResponseEntityFromJSON(json) {
31
+ return TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json, false);
32
+ }
33
+ function TransactionsReportsSearchQueryResponseEntityFromJSONTyped(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(TransactionsReportEntity_1.TransactionsReportEntityFromJSON)),
46
+ };
47
+ return (0, runtime_1.removeNullUndefined)(typed);
48
+ }
49
+ function TransactionsReportsSearchQueryResponseEntityToJSON(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(TransactionsReportEntity_1.TransactionsReportEntityToJSON)),
65
+ };
66
+ }
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateTransactionsReportsFiltersDto } from './CreateTransactionsReportsFiltersDto';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface UpdateTransactionsReportsScheduleDto
12
+ */
13
+ export interface UpdateTransactionsReportsScheduleDto {
14
+ /**
15
+ * The report schedule name.
16
+ * @type {string}
17
+ * @memberof UpdateTransactionsReportsScheduleDto
18
+ */
19
+ name?: string;
20
+ /**
21
+ * The report schedule description.
22
+ * @type {string}
23
+ * @memberof UpdateTransactionsReportsScheduleDto
24
+ */
25
+ description?: string;
26
+ /**
27
+ * The interval of this report schedule.
28
+ * @type {string}
29
+ * @memberof UpdateTransactionsReportsScheduleDto
30
+ */
31
+ interval?: UpdateTransactionsReportsScheduleDtoIntervalEnum;
32
+ /**
33
+ * The date range applied for this report schedule.
34
+ * @type {string}
35
+ * @memberof UpdateTransactionsReportsScheduleDto
36
+ */
37
+ dateRange?: UpdateTransactionsReportsScheduleDtoDateRangeEnum;
38
+ /**
39
+ * The list of email addresses recipients of this report schedule.
40
+ * @type {Array<string>}
41
+ * @memberof UpdateTransactionsReportsScheduleDto
42
+ */
43
+ recipients?: Array<string>;
44
+ /**
45
+ * The order in which the report records are returned.
46
+ * @type {string}
47
+ * @memberof UpdateTransactionsReportsScheduleDto
48
+ */
49
+ order?: UpdateTransactionsReportsScheduleDtoOrderEnum;
50
+ /**
51
+ * The start time for this report schedule.
52
+ * @type {string}
53
+ * @memberof UpdateTransactionsReportsScheduleDto
54
+ */
55
+ startTime?: string;
56
+ /**
57
+ * The end time for this report schedule.
58
+ * @type {string}
59
+ * @memberof UpdateTransactionsReportsScheduleDto
60
+ */
61
+ endTime?: string;
62
+ /**
63
+ * The next run date for this report schedule.
64
+ * @type {string}
65
+ * @memberof UpdateTransactionsReportsScheduleDto
66
+ */
67
+ nextRun?: string;
68
+ /**
69
+ * The columns associated to this report schedule.
70
+ * @type {Array<string>}
71
+ * @memberof UpdateTransactionsReportsScheduleDto
72
+ */
73
+ columns?: Array<string>;
74
+ /**
75
+ * The filters associated to this report schedule.
76
+ * @type {CreateTransactionsReportsFiltersDto}
77
+ * @memberof UpdateTransactionsReportsScheduleDto
78
+ */
79
+ transactionsFilters?: CreateTransactionsReportsFiltersDto;
80
+ /**
81
+ * The report schedule ID.
82
+ * @type {string}
83
+ * @memberof UpdateTransactionsReportsScheduleDto
84
+ */
85
+ reportScheduleId: string;
86
+ }
87
+ /**
88
+ * @export
89
+ */
90
+ export declare const UpdateTransactionsReportsScheduleDtoIntervalEnum: {
91
+ readonly Daily: "DAILY";
92
+ readonly Weekly: "WEEKLY";
93
+ readonly Monthly: "MONTHLY";
94
+ };
95
+ export type UpdateTransactionsReportsScheduleDtoIntervalEnum = typeof UpdateTransactionsReportsScheduleDtoIntervalEnum[keyof typeof UpdateTransactionsReportsScheduleDtoIntervalEnum];
96
+ /**
97
+ * @export
98
+ */
99
+ export declare const UpdateTransactionsReportsScheduleDtoDateRangeEnum: {
100
+ readonly Today: "TODAY";
101
+ readonly Yesterday: "YESTERDAY";
102
+ readonly Last7Days: "LAST_7_DAYS";
103
+ readonly Last30Days: "LAST_30_DAYS";
104
+ readonly Last60Days: "LAST_60_DAYS";
105
+ readonly Last90Days: "LAST_90_DAYS";
106
+ readonly LastWeek: "LAST_WEEK";
107
+ readonly LastMonth: "LAST_MONTH";
108
+ readonly LastQuarter: "LAST_QUARTER";
109
+ readonly LastYear: "LAST_YEAR";
110
+ readonly Custom: "CUSTOM";
111
+ };
112
+ export type UpdateTransactionsReportsScheduleDtoDateRangeEnum = typeof UpdateTransactionsReportsScheduleDtoDateRangeEnum[keyof typeof UpdateTransactionsReportsScheduleDtoDateRangeEnum];
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const UpdateTransactionsReportsScheduleDtoOrderEnum: {
117
+ readonly Asc: "asc";
118
+ readonly Desc: "desc";
119
+ };
120
+ export type UpdateTransactionsReportsScheduleDtoOrderEnum = typeof UpdateTransactionsReportsScheduleDtoOrderEnum[keyof typeof UpdateTransactionsReportsScheduleDtoOrderEnum];
121
+ /**
122
+ * Check if a given object implements the UpdateTransactionsReportsScheduleDto interface.
123
+ */
124
+ export declare function instanceOfUpdateTransactionsReportsScheduleDto(value: object): boolean;
125
+ export declare function UpdateTransactionsReportsScheduleDtoFromJSON(json: any): UpdateTransactionsReportsScheduleDto;
126
+ export declare function UpdateTransactionsReportsScheduleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionsReportsScheduleDto;
127
+ export declare function UpdateTransactionsReportsScheduleDtoToJSON(value?: UpdateTransactionsReportsScheduleDto | null): any;
@@ -0,0 +1,101 @@
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.UpdateTransactionsReportsScheduleDtoOrderEnum = exports.UpdateTransactionsReportsScheduleDtoDateRangeEnum = exports.UpdateTransactionsReportsScheduleDtoIntervalEnum = void 0;
12
+ exports.instanceOfUpdateTransactionsReportsScheduleDto = instanceOfUpdateTransactionsReportsScheduleDto;
13
+ exports.UpdateTransactionsReportsScheduleDtoFromJSON = UpdateTransactionsReportsScheduleDtoFromJSON;
14
+ exports.UpdateTransactionsReportsScheduleDtoFromJSONTyped = UpdateTransactionsReportsScheduleDtoFromJSONTyped;
15
+ exports.UpdateTransactionsReportsScheduleDtoToJSON = UpdateTransactionsReportsScheduleDtoToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ const CreateTransactionsReportsFiltersDto_1 = require("./CreateTransactionsReportsFiltersDto");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.UpdateTransactionsReportsScheduleDtoIntervalEnum = {
22
+ Daily: 'DAILY',
23
+ Weekly: 'WEEKLY',
24
+ Monthly: 'MONTHLY'
25
+ };
26
+ /**
27
+ * @export
28
+ */
29
+ exports.UpdateTransactionsReportsScheduleDtoDateRangeEnum = {
30
+ Today: 'TODAY',
31
+ Yesterday: 'YESTERDAY',
32
+ Last7Days: 'LAST_7_DAYS',
33
+ Last30Days: 'LAST_30_DAYS',
34
+ Last60Days: 'LAST_60_DAYS',
35
+ Last90Days: 'LAST_90_DAYS',
36
+ LastWeek: 'LAST_WEEK',
37
+ LastMonth: 'LAST_MONTH',
38
+ LastQuarter: 'LAST_QUARTER',
39
+ LastYear: 'LAST_YEAR',
40
+ Custom: 'CUSTOM'
41
+ };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.UpdateTransactionsReportsScheduleDtoOrderEnum = {
46
+ Asc: 'asc',
47
+ Desc: 'desc'
48
+ };
49
+ /**
50
+ * Check if a given object implements the UpdateTransactionsReportsScheduleDto interface.
51
+ */
52
+ function instanceOfUpdateTransactionsReportsScheduleDto(value) {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "reportScheduleId" in value;
55
+ return isInstance;
56
+ }
57
+ function UpdateTransactionsReportsScheduleDtoFromJSON(json) {
58
+ return UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, false);
59
+ }
60
+ function UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, ignoreDiscriminator) {
61
+ if ((json === undefined) || (json === null)) {
62
+ return json;
63
+ }
64
+ const typed = {
65
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
66
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
67
+ 'interval': !(0, runtime_1.exists)(json, 'interval') ? undefined : json['interval'],
68
+ 'dateRange': !(0, runtime_1.exists)(json, 'dateRange') ? undefined : json['dateRange'],
69
+ 'recipients': !(0, runtime_1.exists)(json, 'recipients') ? undefined : json['recipients'],
70
+ 'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
71
+ 'startTime': !(0, runtime_1.exists)(json, 'startTime') ? undefined : json['startTime'],
72
+ 'endTime': !(0, runtime_1.exists)(json, 'endTime') ? undefined : json['endTime'],
73
+ 'nextRun': !(0, runtime_1.exists)(json, 'nextRun') ? undefined : json['nextRun'],
74
+ 'columns': !(0, runtime_1.exists)(json, 'columns') ? undefined : json['columns'],
75
+ 'transactionsFilters': !(0, runtime_1.exists)(json, 'transactionsFilters') ? undefined : (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoFromJSON)(json['transactionsFilters']),
76
+ 'reportScheduleId': json['reportScheduleId'],
77
+ };
78
+ return (0, runtime_1.removeNullUndefined)(typed);
79
+ }
80
+ function UpdateTransactionsReportsScheduleDtoToJSON(value) {
81
+ if (value === undefined) {
82
+ return undefined;
83
+ }
84
+ if (value === null) {
85
+ return null;
86
+ }
87
+ return {
88
+ 'name': value.name,
89
+ 'description': value.description,
90
+ 'interval': value.interval,
91
+ 'dateRange': value.dateRange,
92
+ 'recipients': value.recipients,
93
+ 'order': value.order,
94
+ 'startTime': value.startTime,
95
+ 'endTime': value.endTime,
96
+ 'nextRun': value.nextRun,
97
+ 'columns': value.columns,
98
+ 'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoToJSON)(value.transactionsFilters),
99
+ 'reportScheduleId': value.reportScheduleId,
100
+ };
101
+ }