@channelpayments/node-sdk 1.192.0 → 1.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/models/CheckoutSessionBaseEntity.d.ts +15 -0
- package/dist/cjs/models/CheckoutSessionBaseEntity.js +11 -1
- package/dist/cjs/models/CheckoutSessionEntity.d.ts +15 -0
- package/dist/cjs/models/CheckoutSessionEntity.js +11 -1
- package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
- package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
- package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
- package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
- package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
- package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
- package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
- package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
- package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
- package/dist/cjs/models/ReportCreatorEntity.js +49 -0
- package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
- package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
- package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
- package/dist/cjs/models/TransactionsReportEntity.js +133 -0
- package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
- package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
- package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
- package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
- package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
- package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
- package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
- package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
- package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
- package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
- package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
- package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
- package/dist/cjs/models/index.d.ts +15 -0
- package/dist/cjs/models/index.js +15 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CheckoutSessionBaseEntity.d.ts +15 -0
- package/dist/mjs/models/CheckoutSessionBaseEntity.js +10 -0
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +15 -0
- package/dist/mjs/models/CheckoutSessionEntity.js +10 -0
- package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
- package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
- package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
- package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
- package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
- package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
- package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
- package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
- package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
- package/dist/mjs/models/ReportCreatorEntity.js +43 -0
- package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
- package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
- package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
- package/dist/mjs/models/TransactionsReportEntity.js +126 -0
- package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
- package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
- package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
- package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
- package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
- package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
- package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
- package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
- package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
- package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
- package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
- package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
- package/dist/mjs/models/index.d.ts +15 -0
- package/dist/mjs/models/index.js +15 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,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,114 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { ReportCreatorEntityFromJSON, ReportCreatorEntityToJSON, } from './ReportCreatorEntity';
|
|
11
|
+
import { TransactionsReportsFiltersEntityFromJSON, TransactionsReportsFiltersEntityToJSON, } from './TransactionsReportsFiltersEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const TransactionsReportTemplateEntityReportDomainEnum = {
|
|
16
|
+
Transactions: 'TRANSACTIONS'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const TransactionsReportTemplateEntityOrderEnum = {
|
|
22
|
+
Asc: 'asc',
|
|
23
|
+
Desc: 'desc'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const TransactionsReportTemplateEntityDateRangeEnum = {
|
|
29
|
+
Today: 'TODAY',
|
|
30
|
+
Yesterday: 'YESTERDAY',
|
|
31
|
+
Last7Days: 'LAST_7_DAYS',
|
|
32
|
+
Last30Days: 'LAST_30_DAYS',
|
|
33
|
+
Last60Days: 'LAST_60_DAYS',
|
|
34
|
+
Last90Days: 'LAST_90_DAYS',
|
|
35
|
+
LastWeek: 'LAST_WEEK',
|
|
36
|
+
LastMonth: 'LAST_MONTH',
|
|
37
|
+
LastQuarter: 'LAST_QUARTER',
|
|
38
|
+
LastYear: 'LAST_YEAR',
|
|
39
|
+
Custom: 'CUSTOM'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the TransactionsReportTemplateEntity interface.
|
|
43
|
+
*/
|
|
44
|
+
export function instanceOfTransactionsReportTemplateEntity(value) {
|
|
45
|
+
let isInstance = true;
|
|
46
|
+
isInstance = isInstance && "reportTemplateId" in value;
|
|
47
|
+
isInstance = isInstance && "createdBy" in value;
|
|
48
|
+
isInstance = isInstance && "reportDomain" in value;
|
|
49
|
+
isInstance = isInstance && "isFavorite" in value;
|
|
50
|
+
isInstance = isInstance && "name" in value;
|
|
51
|
+
isInstance = isInstance && "createdAt" in value;
|
|
52
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
53
|
+
isInstance = isInstance && "dateRange" in value;
|
|
54
|
+
isInstance = isInstance && "startTime" in value;
|
|
55
|
+
isInstance = isInstance && "endTime" in value;
|
|
56
|
+
isInstance = isInstance && "columns" in value;
|
|
57
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
export function TransactionsReportTemplateEntityFromJSON(json) {
|
|
61
|
+
return TransactionsReportTemplateEntityFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function TransactionsReportTemplateEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
const typed = {
|
|
68
|
+
'reportTemplateId': json['reportTemplateId'],
|
|
69
|
+
'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
|
|
70
|
+
'createdBy': ReportCreatorEntityFromJSON(json['createdBy']),
|
|
71
|
+
'reportDomain': json['reportDomain'],
|
|
72
|
+
'isFavorite': json['isFavorite'],
|
|
73
|
+
'name': json['name'],
|
|
74
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
75
|
+
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
76
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
77
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
78
|
+
'deleted': !exists(json, 'deleted') ? undefined : json['deleted'],
|
|
79
|
+
'deletedAt': !exists(json, 'deletedAt') ? undefined : (new Date(json['deletedAt'])),
|
|
80
|
+
'dateRange': json['dateRange'],
|
|
81
|
+
'startTime': json['startTime'],
|
|
82
|
+
'endTime': json['endTime'],
|
|
83
|
+
'columns': json['columns'],
|
|
84
|
+
'transactionsFilters': TransactionsReportsFiltersEntityFromJSON(json['transactionsFilters']),
|
|
85
|
+
};
|
|
86
|
+
return removeNullUndefined(typed);
|
|
87
|
+
}
|
|
88
|
+
export function TransactionsReportTemplateEntityToJSON(value) {
|
|
89
|
+
if (value === undefined) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
if (value === null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'reportTemplateId': value.reportTemplateId,
|
|
97
|
+
'merchantId': value.merchantId,
|
|
98
|
+
'createdBy': ReportCreatorEntityToJSON(value.createdBy),
|
|
99
|
+
'reportDomain': value.reportDomain,
|
|
100
|
+
'isFavorite': value.isFavorite,
|
|
101
|
+
'name': value.name,
|
|
102
|
+
'description': value.description,
|
|
103
|
+
'order': value.order,
|
|
104
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
105
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
106
|
+
'deleted': value.deleted,
|
|
107
|
+
'deletedAt': value.deletedAt === undefined ? undefined : (value.deletedAt.toISOString()),
|
|
108
|
+
'dateRange': value.dateRange,
|
|
109
|
+
'startTime': value.startTime,
|
|
110
|
+
'endTime': value.endTime,
|
|
111
|
+
'columns': value.columns,
|
|
112
|
+
'transactionsFilters': TransactionsReportsFiltersEntityToJSON(value.transactionsFilters),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -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,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { TransactionsReportTemplateEntityFromJSON, TransactionsReportTemplateEntityToJSON, } from './TransactionsReportTemplateEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the TransactionsReportTemplatesSearchQueryResponseEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfTransactionsReportTemplatesSearchQueryResponseEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "limit" in value;
|
|
17
|
+
isInstance = isInstance && "page" in value;
|
|
18
|
+
isInstance = isInstance && "pageCount" in value;
|
|
19
|
+
isInstance = isInstance && "totalCount" in value;
|
|
20
|
+
isInstance = isInstance && "filteredCount" in value;
|
|
21
|
+
isInstance = isInstance && "items" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function TransactionsReportTemplatesSearchQueryResponseEntityFromJSON(json) {
|
|
25
|
+
return TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function TransactionsReportTemplatesSearchQueryResponseEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'limit': json['limit'],
|
|
33
|
+
'page': json['page'],
|
|
34
|
+
'pageCount': json['pageCount'],
|
|
35
|
+
'totalCount': json['totalCount'],
|
|
36
|
+
'filteredCount': json['filteredCount'],
|
|
37
|
+
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
38
|
+
'prevCursor': !exists(json, 'prevCursor') ? undefined : json['prevCursor'],
|
|
39
|
+
'items': (json['items'].map(TransactionsReportTemplateEntityFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function TransactionsReportTemplatesSearchQueryResponseEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'limit': value.limit,
|
|
52
|
+
'page': value.page,
|
|
53
|
+
'pageCount': value.pageCount,
|
|
54
|
+
'totalCount': value.totalCount,
|
|
55
|
+
'filteredCount': value.filteredCount,
|
|
56
|
+
'nextCursor': value.nextCursor,
|
|
57
|
+
'prevCursor': value.prevCursor,
|
|
58
|
+
'items': (value.items.map(TransactionsReportTemplateEntityToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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,119 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const TransactionsReportsFiltersEntityPaymentMethodsEnum = {
|
|
14
|
+
Card: 'CARD',
|
|
15
|
+
Bank: 'BANK'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TransactionsReportsFiltersEntityAccountTypesEnum = {
|
|
21
|
+
Checking: 'CHECKING',
|
|
22
|
+
Savings: 'SAVINGS'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const TransactionsReportsFiltersEntityCardTypesEnum = {
|
|
28
|
+
Credit: 'CREDIT',
|
|
29
|
+
Debit: 'DEBIT',
|
|
30
|
+
Prepaid: 'PREPAID'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const TransactionsReportsFiltersEntityCardSchemesEnum = {
|
|
36
|
+
Visa: 'visa',
|
|
37
|
+
Mastercard: 'mastercard',
|
|
38
|
+
Amex: 'amex',
|
|
39
|
+
Discover: 'discover',
|
|
40
|
+
Jcb: 'jcb',
|
|
41
|
+
DinersClub: 'diners_club',
|
|
42
|
+
Maestro: 'maestro'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export const TransactionsReportsFiltersEntityTransactionIntentsEnum = {
|
|
48
|
+
Capture: 'capture',
|
|
49
|
+
Authorize: 'authorize',
|
|
50
|
+
Debit: 'debit',
|
|
51
|
+
Credit: 'credit'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export const TransactionsReportsFiltersEntityTransactionStatusesEnum = {
|
|
57
|
+
Authorized: 'authorized',
|
|
58
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
59
|
+
Declined: 'declined',
|
|
60
|
+
Captured: 'captured',
|
|
61
|
+
Voided: 'voided',
|
|
62
|
+
Hold: 'hold',
|
|
63
|
+
Submitted: 'submitted',
|
|
64
|
+
Transmitted: 'transmitted',
|
|
65
|
+
Settled: 'settled',
|
|
66
|
+
Returned: 'returned',
|
|
67
|
+
Rejected: 'rejected'
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the TransactionsReportsFiltersEntity interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfTransactionsReportsFiltersEntity(value) {
|
|
73
|
+
let isInstance = true;
|
|
74
|
+
isInstance = isInstance && "paymentMethods" in value;
|
|
75
|
+
return isInstance;
|
|
76
|
+
}
|
|
77
|
+
export function TransactionsReportsFiltersEntityFromJSON(json) {
|
|
78
|
+
return TransactionsReportsFiltersEntityFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
export function TransactionsReportsFiltersEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
81
|
+
if ((json === undefined) || (json === null)) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
const typed = {
|
|
85
|
+
'paymentMethods': json['paymentMethods'],
|
|
86
|
+
'accountTypes': !exists(json, 'accountTypes') ? undefined : json['accountTypes'],
|
|
87
|
+
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
88
|
+
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
89
|
+
'transactionIntents': !exists(json, 'transactionIntents') ? undefined : json['transactionIntents'],
|
|
90
|
+
'transactionStatuses': !exists(json, 'transactionStatuses') ? undefined : json['transactionStatuses'],
|
|
91
|
+
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
92
|
+
'amountGreaterThan': !exists(json, 'amountGreaterThan') ? undefined : json['amountGreaterThan'],
|
|
93
|
+
'amountLessThan': !exists(json, 'amountLessThan') ? undefined : json['amountLessThan'],
|
|
94
|
+
'amountMin': !exists(json, 'amountMin') ? undefined : json['amountMin'],
|
|
95
|
+
'amountMax': !exists(json, 'amountMax') ? undefined : json['amountMax'],
|
|
96
|
+
};
|
|
97
|
+
return removeNullUndefined(typed);
|
|
98
|
+
}
|
|
99
|
+
export function TransactionsReportsFiltersEntityToJSON(value) {
|
|
100
|
+
if (value === undefined) {
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
if (value === null) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
'paymentMethods': value.paymentMethods,
|
|
108
|
+
'accountTypes': value.accountTypes,
|
|
109
|
+
'cardTypes': value.cardTypes,
|
|
110
|
+
'cardSchemes': value.cardSchemes,
|
|
111
|
+
'transactionIntents': value.transactionIntents,
|
|
112
|
+
'transactionStatuses': value.transactionStatuses,
|
|
113
|
+
'amount': value.amount,
|
|
114
|
+
'amountGreaterThan': value.amountGreaterThan,
|
|
115
|
+
'amountLessThan': value.amountLessThan,
|
|
116
|
+
'amountMin': value.amountMin,
|
|
117
|
+
'amountMax': value.amountMax,
|
|
118
|
+
};
|
|
119
|
+
}
|