@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.
- 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/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,188 @@
|
|
|
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.TransactionsRecordEntityCardTypeEnum = exports.TransactionsRecordEntityCurrencyEnum = exports.TransactionsRecordEntityIntentEnum = exports.TransactionsRecordEntityAccountTypeEnum = exports.TransactionsRecordEntityPaymentMethodEnum = exports.TransactionsRecordEntityStatusEnum = void 0;
|
|
12
|
+
exports.instanceOfTransactionsRecordEntity = instanceOfTransactionsRecordEntity;
|
|
13
|
+
exports.TransactionsRecordEntityFromJSON = TransactionsRecordEntityFromJSON;
|
|
14
|
+
exports.TransactionsRecordEntityFromJSONTyped = TransactionsRecordEntityFromJSONTyped;
|
|
15
|
+
exports.TransactionsRecordEntityToJSON = TransactionsRecordEntityToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.TransactionsRecordEntityStatusEnum = {
|
|
21
|
+
Processing: 'processing',
|
|
22
|
+
BuyerApprovalPending: 'buyerApprovalPending',
|
|
23
|
+
Authorized: 'authorized',
|
|
24
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
25
|
+
CaptureFailed: 'captureFailed',
|
|
26
|
+
Declined: 'declined',
|
|
27
|
+
CapturePending: 'capturePending',
|
|
28
|
+
Captured: 'captured',
|
|
29
|
+
VoidPending: 'voidPending',
|
|
30
|
+
Voided: 'voided',
|
|
31
|
+
Hold: 'hold',
|
|
32
|
+
Submitted: 'submitted',
|
|
33
|
+
Transmitted: 'transmitted',
|
|
34
|
+
Settled: 'settled',
|
|
35
|
+
Returned: 'returned',
|
|
36
|
+
Rejected: 'rejected'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.TransactionsRecordEntityPaymentMethodEnum = {
|
|
42
|
+
Ach: 'ACH',
|
|
43
|
+
Bank: 'BANK',
|
|
44
|
+
Card: 'CARD'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
exports.TransactionsRecordEntityAccountTypeEnum = {
|
|
50
|
+
Checking: 'CHECKING',
|
|
51
|
+
Savings: 'SAVINGS'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
exports.TransactionsRecordEntityIntentEnum = {
|
|
57
|
+
Capture: 'capture',
|
|
58
|
+
Authorize: 'authorize',
|
|
59
|
+
Debit: 'debit',
|
|
60
|
+
Credit: 'credit'
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
exports.TransactionsRecordEntityCurrencyEnum = {
|
|
66
|
+
Usd: 'USD',
|
|
67
|
+
Cad: 'CAD',
|
|
68
|
+
Aud: 'AUD'
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
exports.TransactionsRecordEntityCardTypeEnum = {
|
|
74
|
+
Credit: 'CREDIT',
|
|
75
|
+
Debit: 'DEBIT',
|
|
76
|
+
Prepaid: 'PREPAID'
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the TransactionsRecordEntity interface.
|
|
80
|
+
*/
|
|
81
|
+
function instanceOfTransactionsRecordEntity(value) {
|
|
82
|
+
let isInstance = true;
|
|
83
|
+
isInstance = isInstance && "merchantId" in value;
|
|
84
|
+
isInstance = isInstance && "createdAt" in value;
|
|
85
|
+
isInstance = isInstance && "transactionId" in value;
|
|
86
|
+
isInstance = isInstance && "status" in value;
|
|
87
|
+
isInstance = isInstance && "amount" in value;
|
|
88
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
89
|
+
isInstance = isInstance && "netAmount" in value;
|
|
90
|
+
isInstance = isInstance && "fee" in value;
|
|
91
|
+
isInstance = isInstance && "intent" in value;
|
|
92
|
+
isInstance = isInstance && "currency" in value;
|
|
93
|
+
isInstance = isInstance && "country" in value;
|
|
94
|
+
return isInstance;
|
|
95
|
+
}
|
|
96
|
+
function TransactionsRecordEntityFromJSON(json) {
|
|
97
|
+
return TransactionsRecordEntityFromJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
function TransactionsRecordEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
100
|
+
if ((json === undefined) || (json === null)) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
const typed = {
|
|
104
|
+
'merchantId': json['merchantId'],
|
|
105
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
106
|
+
'transactionId': json['transactionId'],
|
|
107
|
+
'status': json['status'],
|
|
108
|
+
'amount': json['amount'],
|
|
109
|
+
'paymentMethod': json['paymentMethod'],
|
|
110
|
+
'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
|
|
111
|
+
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
112
|
+
'netAmount': json['netAmount'],
|
|
113
|
+
'fee': json['fee'],
|
|
114
|
+
'intent': json['intent'],
|
|
115
|
+
'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
116
|
+
'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
117
|
+
'rejectedAt': !(0, runtime_1.exists)(json, 'rejectedAt') ? undefined : (new Date(json['rejectedAt'])),
|
|
118
|
+
'returnedAt': !(0, runtime_1.exists)(json, 'returnedAt') ? undefined : (new Date(json['returnedAt'])),
|
|
119
|
+
'settledAt': !(0, runtime_1.exists)(json, 'settledAt') ? undefined : (new Date(json['settledAt'])),
|
|
120
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
121
|
+
'voidedAt': !(0, runtime_1.exists)(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
122
|
+
'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
123
|
+
'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
124
|
+
'currency': json['currency'],
|
|
125
|
+
'country': json['country'],
|
|
126
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
127
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
128
|
+
'cardType': !(0, runtime_1.exists)(json, 'cardType') ? undefined : json['cardType'],
|
|
129
|
+
'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
|
|
130
|
+
'scheme': !(0, runtime_1.exists)(json, 'scheme') ? undefined : json['scheme'],
|
|
131
|
+
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
132
|
+
'accountHolderName': !(0, runtime_1.exists)(json, 'accountHolderName') ? undefined : json['accountHolderName'],
|
|
133
|
+
'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
134
|
+
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
135
|
+
'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
136
|
+
'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
137
|
+
'sessionId': !(0, runtime_1.exists)(json, 'sessionId') ? undefined : json['sessionId'],
|
|
138
|
+
'accountEnding': !(0, runtime_1.exists)(json, 'accountEnding') ? undefined : json['accountEnding'],
|
|
139
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
140
|
+
};
|
|
141
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
142
|
+
}
|
|
143
|
+
function TransactionsRecordEntityToJSON(value) {
|
|
144
|
+
if (value === undefined) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
if (value === null) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
'merchantId': value.merchantId,
|
|
152
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
153
|
+
'transactionId': value.transactionId,
|
|
154
|
+
'status': value.status,
|
|
155
|
+
'amount': value.amount,
|
|
156
|
+
'paymentMethod': value.paymentMethod,
|
|
157
|
+
'accountType': value.accountType,
|
|
158
|
+
'externalTransactionId': value.externalTransactionId,
|
|
159
|
+
'netAmount': value.netAmount,
|
|
160
|
+
'fee': value.fee,
|
|
161
|
+
'intent': value.intent,
|
|
162
|
+
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
163
|
+
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
164
|
+
'rejectedAt': value.rejectedAt === undefined ? undefined : (value.rejectedAt.toISOString()),
|
|
165
|
+
'returnedAt': value.returnedAt === undefined ? undefined : (value.returnedAt.toISOString()),
|
|
166
|
+
'settledAt': value.settledAt === undefined ? undefined : (value.settledAt.toISOString()),
|
|
167
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
168
|
+
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
169
|
+
'capturedAmount': value.capturedAmount,
|
|
170
|
+
'refundedAmount': value.refundedAmount,
|
|
171
|
+
'currency': value.currency,
|
|
172
|
+
'country': value.country,
|
|
173
|
+
'buyerId': value.buyerId,
|
|
174
|
+
'externalBuyerId': value.externalBuyerId,
|
|
175
|
+
'cardType': value.cardType,
|
|
176
|
+
'label': value.label,
|
|
177
|
+
'scheme': value.scheme,
|
|
178
|
+
'expirationDate': value.expirationDate,
|
|
179
|
+
'accountHolderName': value.accountHolderName,
|
|
180
|
+
'rawResponseCode': value.rawResponseCode,
|
|
181
|
+
'rawResponseDescription': value.rawResponseDescription,
|
|
182
|
+
'avsResponseCode': value.avsResponseCode,
|
|
183
|
+
'cvvResponseCode': value.cvvResponseCode,
|
|
184
|
+
'sessionId': value.sessionId,
|
|
185
|
+
'accountEnding': value.accountEnding,
|
|
186
|
+
'tags': value.tags,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { ReportCreatorEntity } from './ReportCreatorEntity';
|
|
8
|
+
import type { TransactionsReportsFiltersEntity } from './TransactionsReportsFiltersEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface TransactionsReportEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface TransactionsReportEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The report ID.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof TransactionsReportEntity
|
|
19
|
+
*/
|
|
20
|
+
reportId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the report.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof TransactionsReportEntity
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* The description of the report.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TransactionsReportEntity
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The merchant ID that stores this report template.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof TransactionsReportEntity
|
|
37
|
+
*/
|
|
38
|
+
merchantId: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the user who created the report.
|
|
41
|
+
* @type {ReportCreatorEntity}
|
|
42
|
+
* @memberof TransactionsReportEntity
|
|
43
|
+
*/
|
|
44
|
+
createdBy: ReportCreatorEntity;
|
|
45
|
+
/**
|
|
46
|
+
* The report created date.
|
|
47
|
+
* @type {Date}
|
|
48
|
+
* @memberof TransactionsReportEntity
|
|
49
|
+
*/
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
/**
|
|
52
|
+
* The report last updated date.
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof TransactionsReportEntity
|
|
55
|
+
*/
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* The report deleted date.
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof TransactionsReportEntity
|
|
61
|
+
*/
|
|
62
|
+
deletedAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the report record is deleted or not.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof TransactionsReportEntity
|
|
67
|
+
*/
|
|
68
|
+
deleted?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The start date for the date filter.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof TransactionsReportEntity
|
|
73
|
+
*/
|
|
74
|
+
startDate: string;
|
|
75
|
+
/**
|
|
76
|
+
* The end date for the date filter.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof TransactionsReportEntity
|
|
79
|
+
*/
|
|
80
|
+
endDate: string;
|
|
81
|
+
/**
|
|
82
|
+
* The status of the report.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof TransactionsReportEntity
|
|
85
|
+
*/
|
|
86
|
+
status: TransactionsReportEntityStatusEnum;
|
|
87
|
+
/**
|
|
88
|
+
* The sorting order of the report.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof TransactionsReportEntity
|
|
91
|
+
*/
|
|
92
|
+
order: TransactionsReportEntityOrderEnum;
|
|
93
|
+
/**
|
|
94
|
+
* The recipients of this report.
|
|
95
|
+
* @type {Array<string>}
|
|
96
|
+
* @memberof TransactionsReportEntity
|
|
97
|
+
*/
|
|
98
|
+
recipients: Array<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The date range applied for this report.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof TransactionsReportEntity
|
|
103
|
+
*/
|
|
104
|
+
dateRange: TransactionsReportEntityDateRangeEnum;
|
|
105
|
+
/**
|
|
106
|
+
* The start time for this report.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof TransactionsReportEntity
|
|
109
|
+
*/
|
|
110
|
+
startTime: string;
|
|
111
|
+
/**
|
|
112
|
+
* The end time for this report.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof TransactionsReportEntity
|
|
115
|
+
*/
|
|
116
|
+
endTime: string;
|
|
117
|
+
/**
|
|
118
|
+
* The columns associated to this report.
|
|
119
|
+
* @type {Array<string>}
|
|
120
|
+
* @memberof TransactionsReportEntity
|
|
121
|
+
*/
|
|
122
|
+
columns: Array<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The filters associated to this report.
|
|
125
|
+
* @type {TransactionsReportsFiltersEntity}
|
|
126
|
+
* @memberof TransactionsReportEntity
|
|
127
|
+
*/
|
|
128
|
+
transactionsFilters: TransactionsReportsFiltersEntity;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @export
|
|
132
|
+
*/
|
|
133
|
+
export declare const TransactionsReportEntityStatusEnum: {
|
|
134
|
+
readonly Pending: "PENDING";
|
|
135
|
+
readonly Processing: "PROCESSING";
|
|
136
|
+
readonly Generated: "GENERATED";
|
|
137
|
+
readonly Failed: "FAILED";
|
|
138
|
+
};
|
|
139
|
+
export type TransactionsReportEntityStatusEnum = typeof TransactionsReportEntityStatusEnum[keyof typeof TransactionsReportEntityStatusEnum];
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export declare const TransactionsReportEntityOrderEnum: {
|
|
144
|
+
readonly Asc: "asc";
|
|
145
|
+
readonly Desc: "desc";
|
|
146
|
+
};
|
|
147
|
+
export type TransactionsReportEntityOrderEnum = typeof TransactionsReportEntityOrderEnum[keyof typeof TransactionsReportEntityOrderEnum];
|
|
148
|
+
/**
|
|
149
|
+
* @export
|
|
150
|
+
*/
|
|
151
|
+
export declare const TransactionsReportEntityDateRangeEnum: {
|
|
152
|
+
readonly Today: "TODAY";
|
|
153
|
+
readonly Yesterday: "YESTERDAY";
|
|
154
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
155
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
156
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
157
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
158
|
+
readonly LastWeek: "LAST_WEEK";
|
|
159
|
+
readonly LastMonth: "LAST_MONTH";
|
|
160
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
161
|
+
readonly LastYear: "LAST_YEAR";
|
|
162
|
+
readonly Custom: "CUSTOM";
|
|
163
|
+
};
|
|
164
|
+
export type TransactionsReportEntityDateRangeEnum = typeof TransactionsReportEntityDateRangeEnum[keyof typeof TransactionsReportEntityDateRangeEnum];
|
|
165
|
+
/**
|
|
166
|
+
* Check if a given object implements the TransactionsReportEntity interface.
|
|
167
|
+
*/
|
|
168
|
+
export declare function instanceOfTransactionsReportEntity(value: object): boolean;
|
|
169
|
+
export declare function TransactionsReportEntityFromJSON(json: any): TransactionsReportEntity;
|
|
170
|
+
export declare function TransactionsReportEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportEntity;
|
|
171
|
+
export declare function TransactionsReportEntityToJSON(value?: TransactionsReportEntity | null): any;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.TransactionsReportEntityDateRangeEnum = exports.TransactionsReportEntityOrderEnum = exports.TransactionsReportEntityStatusEnum = void 0;
|
|
12
|
+
exports.instanceOfTransactionsReportEntity = instanceOfTransactionsReportEntity;
|
|
13
|
+
exports.TransactionsReportEntityFromJSON = TransactionsReportEntityFromJSON;
|
|
14
|
+
exports.TransactionsReportEntityFromJSONTyped = TransactionsReportEntityFromJSONTyped;
|
|
15
|
+
exports.TransactionsReportEntityToJSON = TransactionsReportEntityToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const ReportCreatorEntity_1 = require("./ReportCreatorEntity");
|
|
18
|
+
const TransactionsReportsFiltersEntity_1 = require("./TransactionsReportsFiltersEntity");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.TransactionsReportEntityStatusEnum = {
|
|
23
|
+
Pending: 'PENDING',
|
|
24
|
+
Processing: 'PROCESSING',
|
|
25
|
+
Generated: 'GENERATED',
|
|
26
|
+
Failed: 'FAILED'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.TransactionsReportEntityOrderEnum = {
|
|
32
|
+
Asc: 'asc',
|
|
33
|
+
Desc: 'desc'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.TransactionsReportEntityDateRangeEnum = {
|
|
39
|
+
Today: 'TODAY',
|
|
40
|
+
Yesterday: 'YESTERDAY',
|
|
41
|
+
Last7Days: 'LAST_7_DAYS',
|
|
42
|
+
Last30Days: 'LAST_30_DAYS',
|
|
43
|
+
Last60Days: 'LAST_60_DAYS',
|
|
44
|
+
Last90Days: 'LAST_90_DAYS',
|
|
45
|
+
LastWeek: 'LAST_WEEK',
|
|
46
|
+
LastMonth: 'LAST_MONTH',
|
|
47
|
+
LastQuarter: 'LAST_QUARTER',
|
|
48
|
+
LastYear: 'LAST_YEAR',
|
|
49
|
+
Custom: 'CUSTOM'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the TransactionsReportEntity interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfTransactionsReportEntity(value) {
|
|
55
|
+
let isInstance = true;
|
|
56
|
+
isInstance = isInstance && "reportId" in value;
|
|
57
|
+
isInstance = isInstance && "name" in value;
|
|
58
|
+
isInstance = isInstance && "merchantId" in value;
|
|
59
|
+
isInstance = isInstance && "createdBy" in value;
|
|
60
|
+
isInstance = isInstance && "createdAt" in value;
|
|
61
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
62
|
+
isInstance = isInstance && "deletedAt" in value;
|
|
63
|
+
isInstance = isInstance && "startDate" in value;
|
|
64
|
+
isInstance = isInstance && "endDate" in value;
|
|
65
|
+
isInstance = isInstance && "status" in value;
|
|
66
|
+
isInstance = isInstance && "order" in value;
|
|
67
|
+
isInstance = isInstance && "recipients" in value;
|
|
68
|
+
isInstance = isInstance && "dateRange" in value;
|
|
69
|
+
isInstance = isInstance && "startTime" in value;
|
|
70
|
+
isInstance = isInstance && "endTime" in value;
|
|
71
|
+
isInstance = isInstance && "columns" in value;
|
|
72
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
73
|
+
return isInstance;
|
|
74
|
+
}
|
|
75
|
+
function TransactionsReportEntityFromJSON(json) {
|
|
76
|
+
return TransactionsReportEntityFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function TransactionsReportEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
79
|
+
if ((json === undefined) || (json === null)) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
const typed = {
|
|
83
|
+
'reportId': json['reportId'],
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
86
|
+
'merchantId': json['merchantId'],
|
|
87
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityFromJSON)(json['createdBy']),
|
|
88
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
90
|
+
'deletedAt': (new Date(json['deletedAt'])),
|
|
91
|
+
'deleted': !(0, runtime_1.exists)(json, 'deleted') ? undefined : json['deleted'],
|
|
92
|
+
'startDate': json['startDate'],
|
|
93
|
+
'endDate': json['endDate'],
|
|
94
|
+
'status': json['status'],
|
|
95
|
+
'order': json['order'],
|
|
96
|
+
'recipients': json['recipients'],
|
|
97
|
+
'dateRange': json['dateRange'],
|
|
98
|
+
'startTime': json['startTime'],
|
|
99
|
+
'endTime': json['endTime'],
|
|
100
|
+
'columns': json['columns'],
|
|
101
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityFromJSON)(json['transactionsFilters']),
|
|
102
|
+
};
|
|
103
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
104
|
+
}
|
|
105
|
+
function TransactionsReportEntityToJSON(value) {
|
|
106
|
+
if (value === undefined) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
if (value === null) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
'reportId': value.reportId,
|
|
114
|
+
'name': value.name,
|
|
115
|
+
'description': value.description,
|
|
116
|
+
'merchantId': value.merchantId,
|
|
117
|
+
'createdBy': (0, ReportCreatorEntity_1.ReportCreatorEntityToJSON)(value.createdBy),
|
|
118
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
119
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
120
|
+
'deletedAt': (value.deletedAt.toISOString()),
|
|
121
|
+
'deleted': value.deleted,
|
|
122
|
+
'startDate': value.startDate,
|
|
123
|
+
'endDate': value.endDate,
|
|
124
|
+
'status': value.status,
|
|
125
|
+
'order': value.order,
|
|
126
|
+
'recipients': value.recipients,
|
|
127
|
+
'dateRange': value.dateRange,
|
|
128
|
+
'startTime': value.startTime,
|
|
129
|
+
'endTime': value.endTime,
|
|
130
|
+
'columns': value.columns,
|
|
131
|
+
'transactionsFilters': (0, TransactionsReportsFiltersEntity_1.TransactionsReportsFiltersEntityToJSON)(value.transactionsFilters),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { ReportCreatorEntity } from './ReportCreatorEntity';
|
|
8
|
+
import type { TransactionsReportsFiltersEntity } from './TransactionsReportsFiltersEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface TransactionsReportScheduleEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface TransactionsReportScheduleEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The report schedule ID.
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof TransactionsReportScheduleEntity
|
|
19
|
+
*/
|
|
20
|
+
reportScheduleId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The report schedule name.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof TransactionsReportScheduleEntity
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* The report schedule description.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TransactionsReportScheduleEntity
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The sorting type.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof TransactionsReportScheduleEntity
|
|
37
|
+
*/
|
|
38
|
+
order?: TransactionsReportScheduleEntityOrderEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The user that created this report schedule.
|
|
41
|
+
* @type {ReportCreatorEntity}
|
|
42
|
+
* @memberof TransactionsReportScheduleEntity
|
|
43
|
+
*/
|
|
44
|
+
createdBy: ReportCreatorEntity;
|
|
45
|
+
/**
|
|
46
|
+
* The user that deleted this report schedule.
|
|
47
|
+
* @type {ReportCreatorEntity}
|
|
48
|
+
* @memberof TransactionsReportScheduleEntity
|
|
49
|
+
*/
|
|
50
|
+
deletedBy?: ReportCreatorEntity;
|
|
51
|
+
/**
|
|
52
|
+
* The merchant created this report schedule.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof TransactionsReportScheduleEntity
|
|
55
|
+
*/
|
|
56
|
+
merchantId: string;
|
|
57
|
+
/**
|
|
58
|
+
* The interval of this report schedule.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof TransactionsReportScheduleEntity
|
|
61
|
+
*/
|
|
62
|
+
interval: TransactionsReportScheduleEntityIntervalEnum;
|
|
63
|
+
/**
|
|
64
|
+
* The date range applied for this report schedule.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof TransactionsReportScheduleEntity
|
|
67
|
+
*/
|
|
68
|
+
dateRange: TransactionsReportScheduleEntityDateRangeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The start time for this report schedule.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof TransactionsReportScheduleEntity
|
|
73
|
+
*/
|
|
74
|
+
startTime: string;
|
|
75
|
+
/**
|
|
76
|
+
* The end time for this report schedule.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof TransactionsReportScheduleEntity
|
|
79
|
+
*/
|
|
80
|
+
endTime: string;
|
|
81
|
+
/**
|
|
82
|
+
* The recipients of this report schedule.
|
|
83
|
+
* @type {Array<string>}
|
|
84
|
+
* @memberof TransactionsReportScheduleEntity
|
|
85
|
+
*/
|
|
86
|
+
recipients: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The report schedule last run.
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof TransactionsReportScheduleEntity
|
|
91
|
+
*/
|
|
92
|
+
lastRun?: Date;
|
|
93
|
+
/**
|
|
94
|
+
* The report schedule next run.
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof TransactionsReportScheduleEntity
|
|
97
|
+
*/
|
|
98
|
+
nextRun: Date;
|
|
99
|
+
/**
|
|
100
|
+
* The report schedule creation date.
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof TransactionsReportScheduleEntity
|
|
103
|
+
*/
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* The report schedule last update date.
|
|
107
|
+
* @type {Date}
|
|
108
|
+
* @memberof TransactionsReportScheduleEntity
|
|
109
|
+
*/
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the report schedule record is deleted or not.
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof TransactionsReportScheduleEntity
|
|
115
|
+
*/
|
|
116
|
+
deleted?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The report schedule deletion date.
|
|
119
|
+
* @type {Date}
|
|
120
|
+
* @memberof TransactionsReportScheduleEntity
|
|
121
|
+
*/
|
|
122
|
+
deletedAt?: Date;
|
|
123
|
+
/**
|
|
124
|
+
* The columns associated to this report schedule.
|
|
125
|
+
* @type {Array<string>}
|
|
126
|
+
* @memberof TransactionsReportScheduleEntity
|
|
127
|
+
*/
|
|
128
|
+
columns: Array<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The filters associated to this report schedule.
|
|
131
|
+
* @type {TransactionsReportsFiltersEntity}
|
|
132
|
+
* @memberof TransactionsReportScheduleEntity
|
|
133
|
+
*/
|
|
134
|
+
transactionsFilters: TransactionsReportsFiltersEntity;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const TransactionsReportScheduleEntityOrderEnum: {
|
|
140
|
+
readonly Asc: "asc";
|
|
141
|
+
readonly Desc: "desc";
|
|
142
|
+
};
|
|
143
|
+
export type TransactionsReportScheduleEntityOrderEnum = typeof TransactionsReportScheduleEntityOrderEnum[keyof typeof TransactionsReportScheduleEntityOrderEnum];
|
|
144
|
+
/**
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export declare const TransactionsReportScheduleEntityIntervalEnum: {
|
|
148
|
+
readonly Daily: "DAILY";
|
|
149
|
+
readonly Weekly: "WEEKLY";
|
|
150
|
+
readonly Monthly: "MONTHLY";
|
|
151
|
+
};
|
|
152
|
+
export type TransactionsReportScheduleEntityIntervalEnum = typeof TransactionsReportScheduleEntityIntervalEnum[keyof typeof TransactionsReportScheduleEntityIntervalEnum];
|
|
153
|
+
/**
|
|
154
|
+
* @export
|
|
155
|
+
*/
|
|
156
|
+
export declare const TransactionsReportScheduleEntityDateRangeEnum: {
|
|
157
|
+
readonly Today: "TODAY";
|
|
158
|
+
readonly Yesterday: "YESTERDAY";
|
|
159
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
160
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
161
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
162
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
163
|
+
readonly LastWeek: "LAST_WEEK";
|
|
164
|
+
readonly LastMonth: "LAST_MONTH";
|
|
165
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
166
|
+
readonly LastYear: "LAST_YEAR";
|
|
167
|
+
readonly Custom: "CUSTOM";
|
|
168
|
+
};
|
|
169
|
+
export type TransactionsReportScheduleEntityDateRangeEnum = typeof TransactionsReportScheduleEntityDateRangeEnum[keyof typeof TransactionsReportScheduleEntityDateRangeEnum];
|
|
170
|
+
/**
|
|
171
|
+
* Check if a given object implements the TransactionsReportScheduleEntity interface.
|
|
172
|
+
*/
|
|
173
|
+
export declare function instanceOfTransactionsReportScheduleEntity(value: object): boolean;
|
|
174
|
+
export declare function TransactionsReportScheduleEntityFromJSON(json: any): TransactionsReportScheduleEntity;
|
|
175
|
+
export declare function TransactionsReportScheduleEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportScheduleEntity;
|
|
176
|
+
export declare function TransactionsReportScheduleEntityToJSON(value?: TransactionsReportScheduleEntity | null): any;
|