@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.
Files changed (75) hide show
  1. package/dist/cjs/models/CheckoutSessionBaseEntity.d.ts +15 -0
  2. package/dist/cjs/models/CheckoutSessionBaseEntity.js +11 -1
  3. package/dist/cjs/models/CheckoutSessionEntity.d.ts +15 -0
  4. package/dist/cjs/models/CheckoutSessionEntity.js +11 -1
  5. package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
  6. package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
  7. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  8. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
  9. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  10. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
  11. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  12. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
  13. package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
  14. package/dist/cjs/models/ReportCreatorEntity.js +49 -0
  15. package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
  16. package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
  17. package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
  18. package/dist/cjs/models/TransactionsReportEntity.js +133 -0
  19. package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  20. package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
  21. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  22. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
  23. package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  24. package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
  25. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  26. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
  27. package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  28. package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
  29. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  30. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
  31. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  32. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
  33. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  34. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
  35. package/dist/cjs/models/index.d.ts +15 -0
  36. package/dist/cjs/models/index.js +15 -0
  37. package/dist/cjs/runtime.js +1 -1
  38. package/dist/mjs/models/CheckoutSessionBaseEntity.d.ts +15 -0
  39. package/dist/mjs/models/CheckoutSessionBaseEntity.js +10 -0
  40. package/dist/mjs/models/CheckoutSessionEntity.d.ts +15 -0
  41. package/dist/mjs/models/CheckoutSessionEntity.js +10 -0
  42. package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
  43. package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
  44. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  45. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
  46. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  47. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
  48. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  49. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
  50. package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
  51. package/dist/mjs/models/ReportCreatorEntity.js +43 -0
  52. package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
  53. package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
  54. package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
  55. package/dist/mjs/models/TransactionsReportEntity.js +126 -0
  56. package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  57. package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
  58. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  59. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
  60. package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  61. package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
  62. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  63. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
  64. package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  65. package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
  66. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  67. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
  68. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  69. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
  70. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  71. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
  72. package/dist/mjs/models/index.d.ts +15 -0
  73. package/dist/mjs/models/index.js +15 -0
  74. package/dist/mjs/runtime.js +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,303 @@
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 TransactionsRecordEntity
11
+ */
12
+ export interface TransactionsRecordEntity {
13
+ /**
14
+ * The merchant ID for this transaction.
15
+ * @type {string}
16
+ * @memberof TransactionsRecordEntity
17
+ */
18
+ merchantId: string;
19
+ /**
20
+ * The transaction creation date.
21
+ * @type {Date}
22
+ * @memberof TransactionsRecordEntity
23
+ */
24
+ createdAt: Date;
25
+ /**
26
+ * The transaction ID.
27
+ * @type {string}
28
+ * @memberof TransactionsRecordEntity
29
+ */
30
+ transactionId: string;
31
+ /**
32
+ * Indicate the current status for this transaction.
33
+ * @type {string}
34
+ * @memberof TransactionsRecordEntity
35
+ */
36
+ status: TransactionsRecordEntityStatusEnum;
37
+ /**
38
+ * The transaction amount in cents.
39
+ * @type {number}
40
+ * @memberof TransactionsRecordEntity
41
+ */
42
+ amount: number;
43
+ /**
44
+ * Indicate the payment method used for this transaction.
45
+ * @type {string}
46
+ * @memberof TransactionsRecordEntity
47
+ */
48
+ paymentMethod: TransactionsRecordEntityPaymentMethodEnum;
49
+ /**
50
+ * Indicate the account type used for this transaction.
51
+ * @type {string}
52
+ * @memberof TransactionsRecordEntity
53
+ */
54
+ accountType?: TransactionsRecordEntityAccountTypeEnum;
55
+ /**
56
+ * The external transaction ID of the transaction.
57
+ * @type {string}
58
+ * @memberof TransactionsRecordEntity
59
+ */
60
+ externalTransactionId?: string;
61
+ /**
62
+ * The net amount of the transaction.
63
+ * @type {number}
64
+ * @memberof TransactionsRecordEntity
65
+ */
66
+ netAmount: number;
67
+ /**
68
+ * The fee of the transaction.
69
+ * @type {number}
70
+ * @memberof TransactionsRecordEntity
71
+ */
72
+ fee: number;
73
+ /**
74
+ * The intent of the transaction.
75
+ * @type {string}
76
+ * @memberof TransactionsRecordEntity
77
+ */
78
+ intent: TransactionsRecordEntityIntentEnum;
79
+ /**
80
+ * The captured date of the transaction.
81
+ * @type {Date}
82
+ * @memberof TransactionsRecordEntity
83
+ */
84
+ capturedAt?: Date;
85
+ /**
86
+ * The authorized date of the card transaction.
87
+ * @type {Date}
88
+ * @memberof TransactionsRecordEntity
89
+ */
90
+ authorizedAt?: Date;
91
+ /**
92
+ * The rejected date of the ACH transaction.
93
+ * @type {Date}
94
+ * @memberof TransactionsRecordEntity
95
+ */
96
+ rejectedAt?: Date;
97
+ /**
98
+ * The returned date of the ACH transaction.
99
+ * @type {Date}
100
+ * @memberof TransactionsRecordEntity
101
+ */
102
+ returnedAt?: Date;
103
+ /**
104
+ * The settled date of the ACH transaction.
105
+ * @type {Date}
106
+ * @memberof TransactionsRecordEntity
107
+ */
108
+ settledAt?: Date;
109
+ /**
110
+ * The updated date of the transaction.
111
+ * @type {Date}
112
+ * @memberof TransactionsRecordEntity
113
+ */
114
+ updatedAt?: Date;
115
+ /**
116
+ * The voided date of the card or ACH transaction.
117
+ * @type {Date}
118
+ * @memberof TransactionsRecordEntity
119
+ */
120
+ voidedAt?: Date;
121
+ /**
122
+ * The captured amount of the transaction.
123
+ * @type {number}
124
+ * @memberof TransactionsRecordEntity
125
+ */
126
+ capturedAmount?: number;
127
+ /**
128
+ * The refunded amount of the transaction.
129
+ * @type {number}
130
+ * @memberof TransactionsRecordEntity
131
+ */
132
+ refundedAmount?: number;
133
+ /**
134
+ * The currency of the transaction.
135
+ * @type {string}
136
+ * @memberof TransactionsRecordEntity
137
+ */
138
+ currency: TransactionsRecordEntityCurrencyEnum;
139
+ /**
140
+ * The country of the transaction.
141
+ * @type {string}
142
+ * @memberof TransactionsRecordEntity
143
+ */
144
+ country: string;
145
+ /**
146
+ * The buyer ID of the transaction.
147
+ * @type {string}
148
+ * @memberof TransactionsRecordEntity
149
+ */
150
+ buyerId?: string;
151
+ /**
152
+ * The external buyer ID of the transaction.
153
+ * @type {string}
154
+ * @memberof TransactionsRecordEntity
155
+ */
156
+ externalBuyerId?: string;
157
+ /**
158
+ * The card type.
159
+ * @type {string}
160
+ * @memberof TransactionsRecordEntity
161
+ */
162
+ cardType?: TransactionsRecordEntityCardTypeEnum;
163
+ /**
164
+ * The last 4 of the card number.
165
+ * @type {string}
166
+ * @memberof TransactionsRecordEntity
167
+ */
168
+ label?: string;
169
+ /**
170
+ * The scheme of the payment method.
171
+ * @type {string}
172
+ * @memberof TransactionsRecordEntity
173
+ */
174
+ scheme?: string;
175
+ /**
176
+ * The expiration date of the payment method.
177
+ * @type {string}
178
+ * @memberof TransactionsRecordEntity
179
+ */
180
+ expirationDate?: string;
181
+ /**
182
+ * The account holder name of the payment method.
183
+ * @type {string}
184
+ * @memberof TransactionsRecordEntity
185
+ */
186
+ accountHolderName?: string;
187
+ /**
188
+ * The raw response code of the transaction.
189
+ * @type {string}
190
+ * @memberof TransactionsRecordEntity
191
+ */
192
+ rawResponseCode?: string;
193
+ /**
194
+ * The raw response description of the transaction.
195
+ * @type {string}
196
+ * @memberof TransactionsRecordEntity
197
+ */
198
+ rawResponseDescription?: string;
199
+ /**
200
+ * The AVS response code of the transaction.
201
+ * @type {string}
202
+ * @memberof TransactionsRecordEntity
203
+ */
204
+ avsResponseCode?: string;
205
+ /**
206
+ * The CVV response code of the transaction.
207
+ * @type {string}
208
+ * @memberof TransactionsRecordEntity
209
+ */
210
+ cvvResponseCode?: string;
211
+ /**
212
+ * The session ID.
213
+ * @type {string}
214
+ * @memberof TransactionsRecordEntity
215
+ */
216
+ sessionId?: string;
217
+ /**
218
+ * The account number last digits.
219
+ * @type {string}
220
+ * @memberof TransactionsRecordEntity
221
+ */
222
+ accountEnding?: string;
223
+ /**
224
+ * Descriptive labels or keywords that can be assigned to the transaction.
225
+ * @type {string}
226
+ * @memberof TransactionsRecordEntity
227
+ */
228
+ tags?: string;
229
+ }
230
+ /**
231
+ * @export
232
+ */
233
+ export declare const TransactionsRecordEntityStatusEnum: {
234
+ readonly Processing: "processing";
235
+ readonly BuyerApprovalPending: "buyerApprovalPending";
236
+ readonly Authorized: "authorized";
237
+ readonly AuthorizationFailed: "authorizationFailed";
238
+ readonly CaptureFailed: "captureFailed";
239
+ readonly Declined: "declined";
240
+ readonly CapturePending: "capturePending";
241
+ readonly Captured: "captured";
242
+ readonly VoidPending: "voidPending";
243
+ readonly Voided: "voided";
244
+ readonly Hold: "hold";
245
+ readonly Submitted: "submitted";
246
+ readonly Transmitted: "transmitted";
247
+ readonly Settled: "settled";
248
+ readonly Returned: "returned";
249
+ readonly Rejected: "rejected";
250
+ };
251
+ export type TransactionsRecordEntityStatusEnum = typeof TransactionsRecordEntityStatusEnum[keyof typeof TransactionsRecordEntityStatusEnum];
252
+ /**
253
+ * @export
254
+ */
255
+ export declare const TransactionsRecordEntityPaymentMethodEnum: {
256
+ readonly Ach: "ACH";
257
+ readonly Bank: "BANK";
258
+ readonly Card: "CARD";
259
+ };
260
+ export type TransactionsRecordEntityPaymentMethodEnum = typeof TransactionsRecordEntityPaymentMethodEnum[keyof typeof TransactionsRecordEntityPaymentMethodEnum];
261
+ /**
262
+ * @export
263
+ */
264
+ export declare const TransactionsRecordEntityAccountTypeEnum: {
265
+ readonly Checking: "CHECKING";
266
+ readonly Savings: "SAVINGS";
267
+ };
268
+ export type TransactionsRecordEntityAccountTypeEnum = typeof TransactionsRecordEntityAccountTypeEnum[keyof typeof TransactionsRecordEntityAccountTypeEnum];
269
+ /**
270
+ * @export
271
+ */
272
+ export declare const TransactionsRecordEntityIntentEnum: {
273
+ readonly Capture: "capture";
274
+ readonly Authorize: "authorize";
275
+ readonly Debit: "debit";
276
+ readonly Credit: "credit";
277
+ };
278
+ export type TransactionsRecordEntityIntentEnum = typeof TransactionsRecordEntityIntentEnum[keyof typeof TransactionsRecordEntityIntentEnum];
279
+ /**
280
+ * @export
281
+ */
282
+ export declare const TransactionsRecordEntityCurrencyEnum: {
283
+ readonly Usd: "USD";
284
+ readonly Cad: "CAD";
285
+ readonly Aud: "AUD";
286
+ };
287
+ export type TransactionsRecordEntityCurrencyEnum = typeof TransactionsRecordEntityCurrencyEnum[keyof typeof TransactionsRecordEntityCurrencyEnum];
288
+ /**
289
+ * @export
290
+ */
291
+ export declare const TransactionsRecordEntityCardTypeEnum: {
292
+ readonly Credit: "CREDIT";
293
+ readonly Debit: "DEBIT";
294
+ readonly Prepaid: "PREPAID";
295
+ };
296
+ export type TransactionsRecordEntityCardTypeEnum = typeof TransactionsRecordEntityCardTypeEnum[keyof typeof TransactionsRecordEntityCardTypeEnum];
297
+ /**
298
+ * Check if a given object implements the TransactionsRecordEntity interface.
299
+ */
300
+ export declare function instanceOfTransactionsRecordEntity(value: object): boolean;
301
+ export declare function TransactionsRecordEntityFromJSON(json: any): TransactionsRecordEntity;
302
+ export declare function TransactionsRecordEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsRecordEntity;
303
+ export declare function TransactionsRecordEntityToJSON(value?: TransactionsRecordEntity | null): any;
@@ -0,0 +1,181 @@
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 TransactionsRecordEntityStatusEnum = {
14
+ Processing: 'processing',
15
+ BuyerApprovalPending: 'buyerApprovalPending',
16
+ Authorized: 'authorized',
17
+ AuthorizationFailed: 'authorizationFailed',
18
+ CaptureFailed: 'captureFailed',
19
+ Declined: 'declined',
20
+ CapturePending: 'capturePending',
21
+ Captured: 'captured',
22
+ VoidPending: 'voidPending',
23
+ Voided: 'voided',
24
+ Hold: 'hold',
25
+ Submitted: 'submitted',
26
+ Transmitted: 'transmitted',
27
+ Settled: 'settled',
28
+ Returned: 'returned',
29
+ Rejected: 'rejected'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ export const TransactionsRecordEntityPaymentMethodEnum = {
35
+ Ach: 'ACH',
36
+ Bank: 'BANK',
37
+ Card: 'CARD'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ export const TransactionsRecordEntityAccountTypeEnum = {
43
+ Checking: 'CHECKING',
44
+ Savings: 'SAVINGS'
45
+ };
46
+ /**
47
+ * @export
48
+ */
49
+ export const TransactionsRecordEntityIntentEnum = {
50
+ Capture: 'capture',
51
+ Authorize: 'authorize',
52
+ Debit: 'debit',
53
+ Credit: 'credit'
54
+ };
55
+ /**
56
+ * @export
57
+ */
58
+ export const TransactionsRecordEntityCurrencyEnum = {
59
+ Usd: 'USD',
60
+ Cad: 'CAD',
61
+ Aud: 'AUD'
62
+ };
63
+ /**
64
+ * @export
65
+ */
66
+ export const TransactionsRecordEntityCardTypeEnum = {
67
+ Credit: 'CREDIT',
68
+ Debit: 'DEBIT',
69
+ Prepaid: 'PREPAID'
70
+ };
71
+ /**
72
+ * Check if a given object implements the TransactionsRecordEntity interface.
73
+ */
74
+ export function instanceOfTransactionsRecordEntity(value) {
75
+ let isInstance = true;
76
+ isInstance = isInstance && "merchantId" in value;
77
+ isInstance = isInstance && "createdAt" in value;
78
+ isInstance = isInstance && "transactionId" in value;
79
+ isInstance = isInstance && "status" in value;
80
+ isInstance = isInstance && "amount" in value;
81
+ isInstance = isInstance && "paymentMethod" in value;
82
+ isInstance = isInstance && "netAmount" in value;
83
+ isInstance = isInstance && "fee" in value;
84
+ isInstance = isInstance && "intent" in value;
85
+ isInstance = isInstance && "currency" in value;
86
+ isInstance = isInstance && "country" in value;
87
+ return isInstance;
88
+ }
89
+ export function TransactionsRecordEntityFromJSON(json) {
90
+ return TransactionsRecordEntityFromJSONTyped(json, false);
91
+ }
92
+ export function TransactionsRecordEntityFromJSONTyped(json, ignoreDiscriminator) {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ const typed = {
97
+ 'merchantId': json['merchantId'],
98
+ 'createdAt': (new Date(json['createdAt'])),
99
+ 'transactionId': json['transactionId'],
100
+ 'status': json['status'],
101
+ 'amount': json['amount'],
102
+ 'paymentMethod': json['paymentMethod'],
103
+ 'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
104
+ 'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
105
+ 'netAmount': json['netAmount'],
106
+ 'fee': json['fee'],
107
+ 'intent': json['intent'],
108
+ 'capturedAt': !exists(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
109
+ 'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
110
+ 'rejectedAt': !exists(json, 'rejectedAt') ? undefined : (new Date(json['rejectedAt'])),
111
+ 'returnedAt': !exists(json, 'returnedAt') ? undefined : (new Date(json['returnedAt'])),
112
+ 'settledAt': !exists(json, 'settledAt') ? undefined : (new Date(json['settledAt'])),
113
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
114
+ 'voidedAt': !exists(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
115
+ 'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
116
+ 'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
117
+ 'currency': json['currency'],
118
+ 'country': json['country'],
119
+ 'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
120
+ 'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
121
+ 'cardType': !exists(json, 'cardType') ? undefined : json['cardType'],
122
+ 'label': !exists(json, 'label') ? undefined : json['label'],
123
+ 'scheme': !exists(json, 'scheme') ? undefined : json['scheme'],
124
+ 'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
125
+ 'accountHolderName': !exists(json, 'accountHolderName') ? undefined : json['accountHolderName'],
126
+ 'rawResponseCode': !exists(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
127
+ 'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
128
+ 'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
129
+ 'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
130
+ 'sessionId': !exists(json, 'sessionId') ? undefined : json['sessionId'],
131
+ 'accountEnding': !exists(json, 'accountEnding') ? undefined : json['accountEnding'],
132
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
133
+ };
134
+ return removeNullUndefined(typed);
135
+ }
136
+ export function TransactionsRecordEntityToJSON(value) {
137
+ if (value === undefined) {
138
+ return undefined;
139
+ }
140
+ if (value === null) {
141
+ return null;
142
+ }
143
+ return {
144
+ 'merchantId': value.merchantId,
145
+ 'createdAt': (value.createdAt.toISOString()),
146
+ 'transactionId': value.transactionId,
147
+ 'status': value.status,
148
+ 'amount': value.amount,
149
+ 'paymentMethod': value.paymentMethod,
150
+ 'accountType': value.accountType,
151
+ 'externalTransactionId': value.externalTransactionId,
152
+ 'netAmount': value.netAmount,
153
+ 'fee': value.fee,
154
+ 'intent': value.intent,
155
+ 'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
156
+ 'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
157
+ 'rejectedAt': value.rejectedAt === undefined ? undefined : (value.rejectedAt.toISOString()),
158
+ 'returnedAt': value.returnedAt === undefined ? undefined : (value.returnedAt.toISOString()),
159
+ 'settledAt': value.settledAt === undefined ? undefined : (value.settledAt.toISOString()),
160
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
161
+ 'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
162
+ 'capturedAmount': value.capturedAmount,
163
+ 'refundedAmount': value.refundedAmount,
164
+ 'currency': value.currency,
165
+ 'country': value.country,
166
+ 'buyerId': value.buyerId,
167
+ 'externalBuyerId': value.externalBuyerId,
168
+ 'cardType': value.cardType,
169
+ 'label': value.label,
170
+ 'scheme': value.scheme,
171
+ 'expirationDate': value.expirationDate,
172
+ 'accountHolderName': value.accountHolderName,
173
+ 'rawResponseCode': value.rawResponseCode,
174
+ 'rawResponseDescription': value.rawResponseDescription,
175
+ 'avsResponseCode': value.avsResponseCode,
176
+ 'cvvResponseCode': value.cvvResponseCode,
177
+ 'sessionId': value.sessionId,
178
+ 'accountEnding': value.accountEnding,
179
+ 'tags': value.tags,
180
+ };
181
+ }
@@ -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;