@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,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,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 { TransactionsReportEntityFromJSON, TransactionsReportEntityToJSON, } from './TransactionsReportEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the TransactionsReportsSearchQueryResponseEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfTransactionsReportsSearchQueryResponseEntity(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 TransactionsReportsSearchQueryResponseEntityFromJSON(json) {
|
|
25
|
+
return TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function TransactionsReportsSearchQueryResponseEntityFromJSONTyped(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(TransactionsReportEntityFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function TransactionsReportsSearchQueryResponseEntityToJSON(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(TransactionsReportEntityToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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,94 @@
|
|
|
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 { CreateTransactionsReportsFiltersDtoFromJSON, CreateTransactionsReportsFiltersDtoToJSON, } from './CreateTransactionsReportsFiltersDto';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const UpdateTransactionsReportsScheduleDtoIntervalEnum = {
|
|
15
|
+
Daily: 'DAILY',
|
|
16
|
+
Weekly: 'WEEKLY',
|
|
17
|
+
Monthly: 'MONTHLY'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const UpdateTransactionsReportsScheduleDtoDateRangeEnum = {
|
|
23
|
+
Today: 'TODAY',
|
|
24
|
+
Yesterday: 'YESTERDAY',
|
|
25
|
+
Last7Days: 'LAST_7_DAYS',
|
|
26
|
+
Last30Days: 'LAST_30_DAYS',
|
|
27
|
+
Last60Days: 'LAST_60_DAYS',
|
|
28
|
+
Last90Days: 'LAST_90_DAYS',
|
|
29
|
+
LastWeek: 'LAST_WEEK',
|
|
30
|
+
LastMonth: 'LAST_MONTH',
|
|
31
|
+
LastQuarter: 'LAST_QUARTER',
|
|
32
|
+
LastYear: 'LAST_YEAR',
|
|
33
|
+
Custom: 'CUSTOM'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
export const UpdateTransactionsReportsScheduleDtoOrderEnum = {
|
|
39
|
+
Asc: 'asc',
|
|
40
|
+
Desc: 'desc'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateTransactionsReportsScheduleDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateTransactionsReportsScheduleDto(value) {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "reportScheduleId" in value;
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
export function UpdateTransactionsReportsScheduleDtoFromJSON(json) {
|
|
51
|
+
return UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
const typed = {
|
|
58
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
59
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
60
|
+
'interval': !exists(json, 'interval') ? undefined : json['interval'],
|
|
61
|
+
'dateRange': !exists(json, 'dateRange') ? undefined : json['dateRange'],
|
|
62
|
+
'recipients': !exists(json, 'recipients') ? undefined : json['recipients'],
|
|
63
|
+
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
64
|
+
'startTime': !exists(json, 'startTime') ? undefined : json['startTime'],
|
|
65
|
+
'endTime': !exists(json, 'endTime') ? undefined : json['endTime'],
|
|
66
|
+
'nextRun': !exists(json, 'nextRun') ? undefined : json['nextRun'],
|
|
67
|
+
'columns': !exists(json, 'columns') ? undefined : json['columns'],
|
|
68
|
+
'transactionsFilters': !exists(json, 'transactionsFilters') ? undefined : CreateTransactionsReportsFiltersDtoFromJSON(json['transactionsFilters']),
|
|
69
|
+
'reportScheduleId': json['reportScheduleId'],
|
|
70
|
+
};
|
|
71
|
+
return removeNullUndefined(typed);
|
|
72
|
+
}
|
|
73
|
+
export function UpdateTransactionsReportsScheduleDtoToJSON(value) {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'name': value.name,
|
|
82
|
+
'description': value.description,
|
|
83
|
+
'interval': value.interval,
|
|
84
|
+
'dateRange': value.dateRange,
|
|
85
|
+
'recipients': value.recipients,
|
|
86
|
+
'order': value.order,
|
|
87
|
+
'startTime': value.startTime,
|
|
88
|
+
'endTime': value.endTime,
|
|
89
|
+
'nextRun': value.nextRun,
|
|
90
|
+
'columns': value.columns,
|
|
91
|
+
'transactionsFilters': CreateTransactionsReportsFiltersDtoToJSON(value.transactionsFilters),
|
|
92
|
+
'reportScheduleId': value.reportScheduleId,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 UpdateTransactionsReportsTemplateDto
|
|
12
|
+
*/
|
|
13
|
+
export interface UpdateTransactionsReportsTemplateDto {
|
|
14
|
+
/**
|
|
15
|
+
* The report template name.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The report template description.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The order in which the report records are returned.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
30
|
+
*/
|
|
31
|
+
order?: UpdateTransactionsReportsTemplateDtoOrderEnum;
|
|
32
|
+
/**
|
|
33
|
+
* The date range applied for this report template.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
36
|
+
*/
|
|
37
|
+
dateRange?: UpdateTransactionsReportsTemplateDtoDateRangeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* The start time for this report template.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
42
|
+
*/
|
|
43
|
+
startTime?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The end time for this report template.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
48
|
+
*/
|
|
49
|
+
endTime?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The columns associated to this report template.
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
54
|
+
*/
|
|
55
|
+
columns?: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The filters associated to this report template.
|
|
58
|
+
* @type {CreateTransactionsReportsFiltersDto}
|
|
59
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
60
|
+
*/
|
|
61
|
+
transactionsFilters?: CreateTransactionsReportsFiltersDto;
|
|
62
|
+
/**
|
|
63
|
+
* The report template ID.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
66
|
+
*/
|
|
67
|
+
reportTemplateId: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the report template is marked as favorite or not.
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof UpdateTransactionsReportsTemplateDto
|
|
72
|
+
*/
|
|
73
|
+
isFavorite?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const UpdateTransactionsReportsTemplateDtoOrderEnum: {
|
|
79
|
+
readonly Asc: "asc";
|
|
80
|
+
readonly Desc: "desc";
|
|
81
|
+
};
|
|
82
|
+
export type UpdateTransactionsReportsTemplateDtoOrderEnum = typeof UpdateTransactionsReportsTemplateDtoOrderEnum[keyof typeof UpdateTransactionsReportsTemplateDtoOrderEnum];
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const UpdateTransactionsReportsTemplateDtoDateRangeEnum: {
|
|
87
|
+
readonly Today: "TODAY";
|
|
88
|
+
readonly Yesterday: "YESTERDAY";
|
|
89
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
90
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
91
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
92
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
93
|
+
readonly LastWeek: "LAST_WEEK";
|
|
94
|
+
readonly LastMonth: "LAST_MONTH";
|
|
95
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
96
|
+
readonly LastYear: "LAST_YEAR";
|
|
97
|
+
readonly Custom: "CUSTOM";
|
|
98
|
+
};
|
|
99
|
+
export type UpdateTransactionsReportsTemplateDtoDateRangeEnum = typeof UpdateTransactionsReportsTemplateDtoDateRangeEnum[keyof typeof UpdateTransactionsReportsTemplateDtoDateRangeEnum];
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the UpdateTransactionsReportsTemplateDto interface.
|
|
102
|
+
*/
|
|
103
|
+
export declare function instanceOfUpdateTransactionsReportsTemplateDto(value: object): boolean;
|
|
104
|
+
export declare function UpdateTransactionsReportsTemplateDtoFromJSON(json: any): UpdateTransactionsReportsTemplateDto;
|
|
105
|
+
export declare function UpdateTransactionsReportsTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionsReportsTemplateDto;
|
|
106
|
+
export declare function UpdateTransactionsReportsTemplateDtoToJSON(value?: UpdateTransactionsReportsTemplateDto | null): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { CreateTransactionsReportsFiltersDtoFromJSON, CreateTransactionsReportsFiltersDtoToJSON, } from './CreateTransactionsReportsFiltersDto';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const UpdateTransactionsReportsTemplateDtoOrderEnum = {
|
|
15
|
+
Asc: 'asc',
|
|
16
|
+
Desc: 'desc'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const UpdateTransactionsReportsTemplateDtoDateRangeEnum = {
|
|
22
|
+
Today: 'TODAY',
|
|
23
|
+
Yesterday: 'YESTERDAY',
|
|
24
|
+
Last7Days: 'LAST_7_DAYS',
|
|
25
|
+
Last30Days: 'LAST_30_DAYS',
|
|
26
|
+
Last60Days: 'LAST_60_DAYS',
|
|
27
|
+
Last90Days: 'LAST_90_DAYS',
|
|
28
|
+
LastWeek: 'LAST_WEEK',
|
|
29
|
+
LastMonth: 'LAST_MONTH',
|
|
30
|
+
LastQuarter: 'LAST_QUARTER',
|
|
31
|
+
LastYear: 'LAST_YEAR',
|
|
32
|
+
Custom: 'CUSTOM'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the UpdateTransactionsReportsTemplateDto interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfUpdateTransactionsReportsTemplateDto(value) {
|
|
38
|
+
let isInstance = true;
|
|
39
|
+
isInstance = isInstance && "reportTemplateId" in value;
|
|
40
|
+
return isInstance;
|
|
41
|
+
}
|
|
42
|
+
export function UpdateTransactionsReportsTemplateDtoFromJSON(json) {
|
|
43
|
+
return UpdateTransactionsReportsTemplateDtoFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function UpdateTransactionsReportsTemplateDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if ((json === undefined) || (json === null)) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
const typed = {
|
|
50
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
51
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
52
|
+
'order': !exists(json, 'order') ? undefined : json['order'],
|
|
53
|
+
'dateRange': !exists(json, 'dateRange') ? undefined : json['dateRange'],
|
|
54
|
+
'startTime': !exists(json, 'startTime') ? undefined : json['startTime'],
|
|
55
|
+
'endTime': !exists(json, 'endTime') ? undefined : json['endTime'],
|
|
56
|
+
'columns': !exists(json, 'columns') ? undefined : json['columns'],
|
|
57
|
+
'transactionsFilters': !exists(json, 'transactionsFilters') ? undefined : CreateTransactionsReportsFiltersDtoFromJSON(json['transactionsFilters']),
|
|
58
|
+
'reportTemplateId': json['reportTemplateId'],
|
|
59
|
+
'isFavorite': !exists(json, 'isFavorite') ? undefined : json['isFavorite'],
|
|
60
|
+
};
|
|
61
|
+
return removeNullUndefined(typed);
|
|
62
|
+
}
|
|
63
|
+
export function UpdateTransactionsReportsTemplateDtoToJSON(value) {
|
|
64
|
+
if (value === undefined) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
if (value === null) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'name': value.name,
|
|
72
|
+
'description': value.description,
|
|
73
|
+
'order': value.order,
|
|
74
|
+
'dateRange': value.dateRange,
|
|
75
|
+
'startTime': value.startTime,
|
|
76
|
+
'endTime': value.endTime,
|
|
77
|
+
'columns': value.columns,
|
|
78
|
+
'transactionsFilters': CreateTransactionsReportsFiltersDtoToJSON(value.transactionsFilters),
|
|
79
|
+
'reportTemplateId': value.reportTemplateId,
|
|
80
|
+
'isFavorite': value.isFavorite,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -50,6 +50,10 @@ export * from './CreateServicePaymentMethodDto';
|
|
|
50
50
|
export * from './CreateStoredCardPaymentMethodDto';
|
|
51
51
|
export * from './CreateTransactionRefundDto';
|
|
52
52
|
export * from './CreateTransactionRequestDto';
|
|
53
|
+
export * from './CreateTransactionsReportDto';
|
|
54
|
+
export * from './CreateTransactionsReportsFiltersDto';
|
|
55
|
+
export * from './CreateTransactionsReportsScheduleDto';
|
|
56
|
+
export * from './CreateTransactionsReportsTemplateDto';
|
|
53
57
|
export * from './CreateUserDto';
|
|
54
58
|
export * from './CreateWebhookDto';
|
|
55
59
|
export * from './ErrorEntity';
|
|
@@ -84,6 +88,7 @@ export * from './PaymentMethodSessionAttemptEntity';
|
|
|
84
88
|
export * from './PaymentMethodSessionBaseEntity';
|
|
85
89
|
export * from './PaymentMethodSessionEntity';
|
|
86
90
|
export * from './PaymentMethodsSearchEntity';
|
|
91
|
+
export * from './ReportCreatorEntity';
|
|
87
92
|
export * from './ReturnNotificationEntity';
|
|
88
93
|
export * from './ReturnNotificationsSearchEntity';
|
|
89
94
|
export * from './SessionPaymentMethodEntity';
|
|
@@ -97,6 +102,14 @@ export * from './TransactionPaymentInstrumentBaseEntity';
|
|
|
97
102
|
export * from './TransactionRefundBaseEntity';
|
|
98
103
|
export * from './TransactionRefundEntity';
|
|
99
104
|
export * from './TransactionRefundsSearchEntity';
|
|
105
|
+
export * from './TransactionsRecordEntity';
|
|
106
|
+
export * from './TransactionsReportEntity';
|
|
107
|
+
export * from './TransactionsReportScheduleEntity';
|
|
108
|
+
export * from './TransactionsReportSchedulesSearchQueryResponseEntity';
|
|
109
|
+
export * from './TransactionsReportTemplateEntity';
|
|
110
|
+
export * from './TransactionsReportTemplatesSearchQueryResponseEntity';
|
|
111
|
+
export * from './TransactionsReportsFiltersEntity';
|
|
112
|
+
export * from './TransactionsReportsSearchQueryResponseEntity';
|
|
100
113
|
export * from './TransactionsSearchEntity';
|
|
101
114
|
export * from './UpdateBuyerDto';
|
|
102
115
|
export * from './UpdateFeatureDto';
|
|
@@ -106,6 +119,8 @@ export * from './UpdateMerchantCredentialsDto';
|
|
|
106
119
|
export * from './UpdateMerchantDto';
|
|
107
120
|
export * from './UpdatePaymentMethodStatusDto';
|
|
108
121
|
export * from './UpdateSelfDto';
|
|
122
|
+
export * from './UpdateTransactionsReportsScheduleDto';
|
|
123
|
+
export * from './UpdateTransactionsReportsTemplateDto';
|
|
109
124
|
export * from './UpdateUserDto';
|
|
110
125
|
export * from './UpdateWebhookDto';
|
|
111
126
|
export * from './UserEntity';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -52,6 +52,10 @@ export * from './CreateServicePaymentMethodDto';
|
|
|
52
52
|
export * from './CreateStoredCardPaymentMethodDto';
|
|
53
53
|
export * from './CreateTransactionRefundDto';
|
|
54
54
|
export * from './CreateTransactionRequestDto';
|
|
55
|
+
export * from './CreateTransactionsReportDto';
|
|
56
|
+
export * from './CreateTransactionsReportsFiltersDto';
|
|
57
|
+
export * from './CreateTransactionsReportsScheduleDto';
|
|
58
|
+
export * from './CreateTransactionsReportsTemplateDto';
|
|
55
59
|
export * from './CreateUserDto';
|
|
56
60
|
export * from './CreateWebhookDto';
|
|
57
61
|
export * from './ErrorEntity';
|
|
@@ -86,6 +90,7 @@ export * from './PaymentMethodSessionAttemptEntity';
|
|
|
86
90
|
export * from './PaymentMethodSessionBaseEntity';
|
|
87
91
|
export * from './PaymentMethodSessionEntity';
|
|
88
92
|
export * from './PaymentMethodsSearchEntity';
|
|
93
|
+
export * from './ReportCreatorEntity';
|
|
89
94
|
export * from './ReturnNotificationEntity';
|
|
90
95
|
export * from './ReturnNotificationsSearchEntity';
|
|
91
96
|
export * from './SessionPaymentMethodEntity';
|
|
@@ -99,6 +104,14 @@ export * from './TransactionPaymentInstrumentBaseEntity';
|
|
|
99
104
|
export * from './TransactionRefundBaseEntity';
|
|
100
105
|
export * from './TransactionRefundEntity';
|
|
101
106
|
export * from './TransactionRefundsSearchEntity';
|
|
107
|
+
export * from './TransactionsRecordEntity';
|
|
108
|
+
export * from './TransactionsReportEntity';
|
|
109
|
+
export * from './TransactionsReportScheduleEntity';
|
|
110
|
+
export * from './TransactionsReportSchedulesSearchQueryResponseEntity';
|
|
111
|
+
export * from './TransactionsReportTemplateEntity';
|
|
112
|
+
export * from './TransactionsReportTemplatesSearchQueryResponseEntity';
|
|
113
|
+
export * from './TransactionsReportsFiltersEntity';
|
|
114
|
+
export * from './TransactionsReportsSearchQueryResponseEntity';
|
|
102
115
|
export * from './TransactionsSearchEntity';
|
|
103
116
|
export * from './UpdateBuyerDto';
|
|
104
117
|
export * from './UpdateFeatureDto';
|
|
@@ -108,6 +121,8 @@ export * from './UpdateMerchantCredentialsDto';
|
|
|
108
121
|
export * from './UpdateMerchantDto';
|
|
109
122
|
export * from './UpdatePaymentMethodStatusDto';
|
|
110
123
|
export * from './UpdateSelfDto';
|
|
124
|
+
export * from './UpdateTransactionsReportsScheduleDto';
|
|
125
|
+
export * from './UpdateTransactionsReportsTemplateDto';
|
|
111
126
|
export * from './UpdateUserDto';
|
|
112
127
|
export * from './UpdateWebhookDto';
|
|
113
128
|
export * from './UserEntity';
|
package/dist/mjs/runtime.js
CHANGED
|
@@ -64,7 +64,7 @@ export class BaseAPI {
|
|
|
64
64
|
}
|
|
65
65
|
async createFetchParams(context) {
|
|
66
66
|
Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
|
|
67
|
-
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.
|
|
67
|
+
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.194.0";
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|