@channelpayments/node-sdk 1.193.0 → 1.195.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/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantDto.js +3 -3
- 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/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
- package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/cjs/models/MerchantSettingsDto.js +2 -2
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +9 -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/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
- package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
- 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 +16 -2
- package/dist/cjs/models/index.js +16 -2
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
- package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
- package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
- package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantDto.js +3 -3
- 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/MerchantAccountServiceEntity.d.ts +20 -0
- package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
- package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
- package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
- package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
- package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
- package/dist/mjs/models/MerchantSettingsDto.js +2 -2
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +9 -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/UpdateMerchantAccountDto.d.ts +14 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
- package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
- package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
- 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 +16 -2
- package/dist/mjs/models/index.js +16 -2
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
- package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/cjs/models/MerchantAccountEntity.js +0 -143
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
- package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
- package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
- package/dist/mjs/models/MerchantAccountEntity.js +0 -136
|
@@ -48,6 +48,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
|
|
|
48
48
|
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
49
49
|
*/
|
|
50
50
|
cardSchemes?: Array<CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum>;
|
|
51
|
+
/**
|
|
52
|
+
* Source of card data for this merchant account
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CreateMerchantAccountWithoutMerchantIdDto
|
|
55
|
+
*/
|
|
56
|
+
dataSource?: CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum;
|
|
51
57
|
/**
|
|
52
58
|
* The accepted currencies
|
|
53
59
|
* @type {Array<string>}
|
|
@@ -137,6 +143,14 @@ export declare const CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum: {
|
|
|
137
143
|
readonly Maestro: "MAESTRO";
|
|
138
144
|
};
|
|
139
145
|
export type CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum];
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export declare const CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum: {
|
|
150
|
+
readonly Moto: "MOTO";
|
|
151
|
+
readonly Internet: "INTERNET";
|
|
152
|
+
};
|
|
153
|
+
export type CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum];
|
|
140
154
|
/**
|
|
141
155
|
* @export
|
|
142
156
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
|
|
11
|
+
exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
|
|
12
12
|
exports.instanceOfCreateMerchantAccountWithoutMerchantIdDto = instanceOfCreateMerchantAccountWithoutMerchantIdDto;
|
|
13
13
|
exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSON = CreateMerchantAccountWithoutMerchantIdDtoFromJSON;
|
|
14
14
|
exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped = CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped;
|
|
@@ -52,6 +52,13 @@ exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = {
|
|
|
52
52
|
DinersClub: 'DINERS_CLUB',
|
|
53
53
|
Maestro: 'MAESTRO'
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
exports.CreateMerchantAccountWithoutMerchantIdDtoDataSourceEnum = {
|
|
59
|
+
Moto: 'MOTO',
|
|
60
|
+
Internet: 'INTERNET'
|
|
61
|
+
};
|
|
55
62
|
/**
|
|
56
63
|
* @export
|
|
57
64
|
*/
|
|
@@ -86,6 +93,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDisc
|
|
|
86
93
|
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
|
|
87
94
|
'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
88
95
|
'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
96
|
+
'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
|
|
89
97
|
'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
|
|
90
98
|
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
91
99
|
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
@@ -111,6 +119,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
|
|
|
111
119
|
'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
|
|
112
120
|
'cardTypes': value.cardTypes,
|
|
113
121
|
'cardSchemes': value.cardSchemes,
|
|
122
|
+
'dataSource': value.dataSource,
|
|
114
123
|
'currencies': value.currencies,
|
|
115
124
|
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
116
125
|
'mcc': value.mcc,
|
|
@@ -47,9 +47,9 @@ export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum: {
|
|
49
49
|
readonly Epay: "EPAY";
|
|
50
|
-
readonly Nmi: "NMI";
|
|
51
50
|
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
52
51
|
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
52
|
+
readonly Tsys: "TSYS";
|
|
53
53
|
};
|
|
54
54
|
export type CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum[keyof typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum];
|
|
55
55
|
/**
|
|
@@ -20,9 +20,9 @@ const CreateMerchantConnectorCredentialsDto_1 = require("./CreateMerchantConnect
|
|
|
20
20
|
*/
|
|
21
21
|
exports.CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = {
|
|
22
22
|
Epay: 'EPAY',
|
|
23
|
-
Nmi: 'NMI',
|
|
24
23
|
AuthorizeNet: 'AUTHORIZE_NET',
|
|
25
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
24
|
+
ChannelPayments: 'CHANNEL_PAYMENTS',
|
|
25
|
+
Tsys: 'TSYS'
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @export
|
|
@@ -10,12 +10,6 @@
|
|
|
10
10
|
* @interface CreateMerchantCredentialsDto
|
|
11
11
|
*/
|
|
12
12
|
export interface CreateMerchantCredentialsDto {
|
|
13
|
-
/**
|
|
14
|
-
* The ID of the merchant.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantCredentialsDto
|
|
17
|
-
*/
|
|
18
|
-
merchantId: string;
|
|
19
13
|
/**
|
|
20
14
|
* The given reference name.
|
|
21
15
|
* @type {string}
|
|
@@ -18,7 +18,6 @@ const runtime_1 = require("../runtime");
|
|
|
18
18
|
*/
|
|
19
19
|
function instanceOfCreateMerchantCredentialsDto(value) {
|
|
20
20
|
let isInstance = true;
|
|
21
|
-
isInstance = isInstance && "merchantId" in value;
|
|
22
21
|
isInstance = isInstance && "credentialsName" in value;
|
|
23
22
|
return isInstance;
|
|
24
23
|
}
|
|
@@ -30,7 +29,6 @@ function CreateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
29
|
return json;
|
|
31
30
|
}
|
|
32
31
|
const typed = {
|
|
33
|
-
'merchantId': json['merchantId'],
|
|
34
32
|
'credentialsName': json['credentialsName'],
|
|
35
33
|
};
|
|
36
34
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
@@ -43,7 +41,6 @@ function CreateMerchantCredentialsDtoToJSON(value) {
|
|
|
43
41
|
return null;
|
|
44
42
|
}
|
|
45
43
|
return {
|
|
46
|
-
'merchantId': value.merchantId,
|
|
47
44
|
'credentialsName': value.credentialsName,
|
|
48
45
|
};
|
|
49
46
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
8
8
|
import type { CreateMerchantAddressDto } from './CreateMerchantAddressDto';
|
|
9
|
-
import type {
|
|
9
|
+
import type { MerchantSettingsBaseDto } from './MerchantSettingsBaseDto';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
* @export
|
|
@@ -57,10 +57,10 @@ export interface CreateMerchantDto {
|
|
|
57
57
|
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
58
58
|
/**
|
|
59
59
|
* The merchant settings.
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {MerchantSettingsBaseDto}
|
|
61
61
|
* @memberof CreateMerchantDto
|
|
62
62
|
*/
|
|
63
|
-
merchantSettings?:
|
|
63
|
+
merchantSettings?: MerchantSettingsBaseDto;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
@@ -15,7 +15,7 @@ exports.CreateMerchantDtoToJSON = CreateMerchantDtoToJSON;
|
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
16
|
const CreateMerchantAccountWithoutMerchantIdDto_1 = require("./CreateMerchantAccountWithoutMerchantIdDto");
|
|
17
17
|
const CreateMerchantAddressDto_1 = require("./CreateMerchantAddressDto");
|
|
18
|
-
const
|
|
18
|
+
const MerchantSettingsBaseDto_1 = require("./MerchantSettingsBaseDto");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
21
21
|
*/
|
|
@@ -42,7 +42,7 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
|
|
43
43
|
'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
44
44
|
'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
45
|
-
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0,
|
|
45
|
+
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoFromJSON)(json['merchantSettings']),
|
|
46
46
|
};
|
|
47
47
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
48
48
|
}
|
|
@@ -61,6 +61,6 @@ function CreateMerchantDtoToJSON(value) {
|
|
|
61
61
|
'website': value.website,
|
|
62
62
|
'parentMerchantId': value.parentMerchantId,
|
|
63
63
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
64
|
-
'merchantSettings': (0,
|
|
64
|
+
'merchantSettings': (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoToJSON)(value.merchantSettings),
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 CreateTransactionsReportDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateTransactionsReportDto {
|
|
14
|
+
/**
|
|
15
|
+
* The name of the report.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateTransactionsReportDto
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The description of the report.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateTransactionsReportDto
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The start date for the date filter.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateTransactionsReportDto
|
|
30
|
+
*/
|
|
31
|
+
startDate: string;
|
|
32
|
+
/**
|
|
33
|
+
* The end date for the date filter.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateTransactionsReportDto
|
|
36
|
+
*/
|
|
37
|
+
endDate: string;
|
|
38
|
+
/**
|
|
39
|
+
* The date range applied for this report.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateTransactionsReportDto
|
|
42
|
+
*/
|
|
43
|
+
dateRange: CreateTransactionsReportDtoDateRangeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* The start time for this report.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateTransactionsReportDto
|
|
48
|
+
*/
|
|
49
|
+
startTime: string;
|
|
50
|
+
/**
|
|
51
|
+
* The end time for this report.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateTransactionsReportDto
|
|
54
|
+
*/
|
|
55
|
+
endTime: string;
|
|
56
|
+
/**
|
|
57
|
+
* The list of email addresses recipients of this report.
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof CreateTransactionsReportDto
|
|
60
|
+
*/
|
|
61
|
+
recipients: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The order in which the report records are returned.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CreateTransactionsReportDto
|
|
66
|
+
*/
|
|
67
|
+
order?: CreateTransactionsReportDtoOrderEnum;
|
|
68
|
+
/**
|
|
69
|
+
* The columns associated to this report template.
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof CreateTransactionsReportDto
|
|
72
|
+
*/
|
|
73
|
+
columns: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The filters associated to this report template.
|
|
76
|
+
* @type {CreateTransactionsReportsFiltersDto}
|
|
77
|
+
* @memberof CreateTransactionsReportDto
|
|
78
|
+
*/
|
|
79
|
+
transactionsFilters: CreateTransactionsReportsFiltersDto;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const CreateTransactionsReportDtoDateRangeEnum: {
|
|
85
|
+
readonly Today: "TODAY";
|
|
86
|
+
readonly Yesterday: "YESTERDAY";
|
|
87
|
+
readonly Last7Days: "LAST_7_DAYS";
|
|
88
|
+
readonly Last30Days: "LAST_30_DAYS";
|
|
89
|
+
readonly Last60Days: "LAST_60_DAYS";
|
|
90
|
+
readonly Last90Days: "LAST_90_DAYS";
|
|
91
|
+
readonly LastWeek: "LAST_WEEK";
|
|
92
|
+
readonly LastMonth: "LAST_MONTH";
|
|
93
|
+
readonly LastQuarter: "LAST_QUARTER";
|
|
94
|
+
readonly LastYear: "LAST_YEAR";
|
|
95
|
+
readonly Custom: "CUSTOM";
|
|
96
|
+
};
|
|
97
|
+
export type CreateTransactionsReportDtoDateRangeEnum = typeof CreateTransactionsReportDtoDateRangeEnum[keyof typeof CreateTransactionsReportDtoDateRangeEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const CreateTransactionsReportDtoOrderEnum: {
|
|
102
|
+
readonly Asc: "asc";
|
|
103
|
+
readonly Desc: "desc";
|
|
104
|
+
};
|
|
105
|
+
export type CreateTransactionsReportDtoOrderEnum = typeof CreateTransactionsReportDtoOrderEnum[keyof typeof CreateTransactionsReportDtoOrderEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the CreateTransactionsReportDto interface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function instanceOfCreateTransactionsReportDto(value: object): boolean;
|
|
110
|
+
export declare function CreateTransactionsReportDtoFromJSON(json: any): CreateTransactionsReportDto;
|
|
111
|
+
export declare function CreateTransactionsReportDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionsReportDto;
|
|
112
|
+
export declare function CreateTransactionsReportDtoToJSON(value?: CreateTransactionsReportDto | null): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.CreateTransactionsReportDtoOrderEnum = exports.CreateTransactionsReportDtoDateRangeEnum = void 0;
|
|
12
|
+
exports.instanceOfCreateTransactionsReportDto = instanceOfCreateTransactionsReportDto;
|
|
13
|
+
exports.CreateTransactionsReportDtoFromJSON = CreateTransactionsReportDtoFromJSON;
|
|
14
|
+
exports.CreateTransactionsReportDtoFromJSONTyped = CreateTransactionsReportDtoFromJSONTyped;
|
|
15
|
+
exports.CreateTransactionsReportDtoToJSON = CreateTransactionsReportDtoToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const CreateTransactionsReportsFiltersDto_1 = require("./CreateTransactionsReportsFiltersDto");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CreateTransactionsReportDtoDateRangeEnum = {
|
|
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
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.CreateTransactionsReportDtoOrderEnum = {
|
|
38
|
+
Asc: 'asc',
|
|
39
|
+
Desc: 'desc'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the CreateTransactionsReportDto interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfCreateTransactionsReportDto(value) {
|
|
45
|
+
let isInstance = true;
|
|
46
|
+
isInstance = isInstance && "name" in value;
|
|
47
|
+
isInstance = isInstance && "startDate" in value;
|
|
48
|
+
isInstance = isInstance && "endDate" in value;
|
|
49
|
+
isInstance = isInstance && "dateRange" in value;
|
|
50
|
+
isInstance = isInstance && "startTime" in value;
|
|
51
|
+
isInstance = isInstance && "endTime" in value;
|
|
52
|
+
isInstance = isInstance && "recipients" in value;
|
|
53
|
+
isInstance = isInstance && "columns" in value;
|
|
54
|
+
isInstance = isInstance && "transactionsFilters" in value;
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
function CreateTransactionsReportDtoFromJSON(json) {
|
|
58
|
+
return CreateTransactionsReportDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function CreateTransactionsReportDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if ((json === undefined) || (json === null)) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
const typed = {
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
67
|
+
'startDate': json['startDate'],
|
|
68
|
+
'endDate': json['endDate'],
|
|
69
|
+
'dateRange': json['dateRange'],
|
|
70
|
+
'startTime': json['startTime'],
|
|
71
|
+
'endTime': json['endTime'],
|
|
72
|
+
'recipients': json['recipients'],
|
|
73
|
+
'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
|
|
74
|
+
'columns': json['columns'],
|
|
75
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoFromJSON)(json['transactionsFilters']),
|
|
76
|
+
};
|
|
77
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
78
|
+
}
|
|
79
|
+
function CreateTransactionsReportDtoToJSON(value) {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'name': value.name,
|
|
88
|
+
'description': value.description,
|
|
89
|
+
'startDate': value.startDate,
|
|
90
|
+
'endDate': value.endDate,
|
|
91
|
+
'dateRange': value.dateRange,
|
|
92
|
+
'startTime': value.startTime,
|
|
93
|
+
'endTime': value.endTime,
|
|
94
|
+
'recipients': value.recipients,
|
|
95
|
+
'order': value.order,
|
|
96
|
+
'columns': value.columns,
|
|
97
|
+
'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoToJSON)(value.transactionsFilters),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface CreateTransactionsReportsFiltersDto
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTransactionsReportsFiltersDto {
|
|
13
|
+
/**
|
|
14
|
+
* The payment method used to filter this report.
|
|
15
|
+
* @type {Array<string>}
|
|
16
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
17
|
+
*/
|
|
18
|
+
paymentMethods: Array<CreateTransactionsReportsFiltersDtoPaymentMethodsEnum>;
|
|
19
|
+
/**
|
|
20
|
+
* The account types used to filter this report. Applicable for BANK/ACH transactions.
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
23
|
+
*/
|
|
24
|
+
accountTypes?: Array<CreateTransactionsReportsFiltersDtoAccountTypesEnum>;
|
|
25
|
+
/**
|
|
26
|
+
* The card types used to filter this report. Applicable for CARD transactions.
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
29
|
+
*/
|
|
30
|
+
cardTypes?: Array<CreateTransactionsReportsFiltersDtoCardTypesEnum>;
|
|
31
|
+
/**
|
|
32
|
+
* The card schemes used to filter this report. Applicable for CARD transactions.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
35
|
+
*/
|
|
36
|
+
cardSchemes?: Array<CreateTransactionsReportsFiltersDtoCardSchemesEnum>;
|
|
37
|
+
/**
|
|
38
|
+
* The transaction intents used to filter this report.
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
41
|
+
*/
|
|
42
|
+
transactionIntents?: Array<CreateTransactionsReportsFiltersDtoTransactionIntentsEnum>;
|
|
43
|
+
/**
|
|
44
|
+
* The transaction statuses used to filter this report.
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
47
|
+
*/
|
|
48
|
+
transactionStatuses?: Array<CreateTransactionsReportsFiltersDtoTransactionStatusesEnum>;
|
|
49
|
+
/**
|
|
50
|
+
* The amount of the transaction for this report.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
53
|
+
*/
|
|
54
|
+
amount?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Amount greater than a specified threshold for this report.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
59
|
+
*/
|
|
60
|
+
amountGreaterThan?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Amount less than a specified threshold for this report.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
65
|
+
*/
|
|
66
|
+
amountLessThan?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The min amount for a specified range in this report.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
71
|
+
*/
|
|
72
|
+
amountMin?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The max amount for a specified range in this report.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof CreateTransactionsReportsFiltersDto
|
|
77
|
+
*/
|
|
78
|
+
amountMax?: number;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const CreateTransactionsReportsFiltersDtoPaymentMethodsEnum: {
|
|
84
|
+
readonly Card: "CARD";
|
|
85
|
+
readonly Bank: "BANK";
|
|
86
|
+
};
|
|
87
|
+
export type CreateTransactionsReportsFiltersDtoPaymentMethodsEnum = typeof CreateTransactionsReportsFiltersDtoPaymentMethodsEnum[keyof typeof CreateTransactionsReportsFiltersDtoPaymentMethodsEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const CreateTransactionsReportsFiltersDtoAccountTypesEnum: {
|
|
92
|
+
readonly Checking: "CHECKING";
|
|
93
|
+
readonly Savings: "SAVINGS";
|
|
94
|
+
};
|
|
95
|
+
export type CreateTransactionsReportsFiltersDtoAccountTypesEnum = typeof CreateTransactionsReportsFiltersDtoAccountTypesEnum[keyof typeof CreateTransactionsReportsFiltersDtoAccountTypesEnum];
|
|
96
|
+
/**
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export declare const CreateTransactionsReportsFiltersDtoCardTypesEnum: {
|
|
100
|
+
readonly Credit: "CREDIT";
|
|
101
|
+
readonly Debit: "DEBIT";
|
|
102
|
+
readonly Prepaid: "PREPAID";
|
|
103
|
+
};
|
|
104
|
+
export type CreateTransactionsReportsFiltersDtoCardTypesEnum = typeof CreateTransactionsReportsFiltersDtoCardTypesEnum[keyof typeof CreateTransactionsReportsFiltersDtoCardTypesEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const CreateTransactionsReportsFiltersDtoCardSchemesEnum: {
|
|
109
|
+
readonly Visa: "visa";
|
|
110
|
+
readonly Mastercard: "mastercard";
|
|
111
|
+
readonly Amex: "amex";
|
|
112
|
+
readonly Discover: "discover";
|
|
113
|
+
readonly Jcb: "jcb";
|
|
114
|
+
readonly DinersClub: "diners_club";
|
|
115
|
+
readonly Maestro: "maestro";
|
|
116
|
+
};
|
|
117
|
+
export type CreateTransactionsReportsFiltersDtoCardSchemesEnum = typeof CreateTransactionsReportsFiltersDtoCardSchemesEnum[keyof typeof CreateTransactionsReportsFiltersDtoCardSchemesEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const CreateTransactionsReportsFiltersDtoTransactionIntentsEnum: {
|
|
122
|
+
readonly Capture: "capture";
|
|
123
|
+
readonly Authorize: "authorize";
|
|
124
|
+
readonly Debit: "debit";
|
|
125
|
+
readonly Credit: "credit";
|
|
126
|
+
};
|
|
127
|
+
export type CreateTransactionsReportsFiltersDtoTransactionIntentsEnum = typeof CreateTransactionsReportsFiltersDtoTransactionIntentsEnum[keyof typeof CreateTransactionsReportsFiltersDtoTransactionIntentsEnum];
|
|
128
|
+
/**
|
|
129
|
+
* @export
|
|
130
|
+
*/
|
|
131
|
+
export declare const CreateTransactionsReportsFiltersDtoTransactionStatusesEnum: {
|
|
132
|
+
readonly Authorized: "authorized";
|
|
133
|
+
readonly AuthorizationFailed: "authorizationFailed";
|
|
134
|
+
readonly Declined: "declined";
|
|
135
|
+
readonly Captured: "captured";
|
|
136
|
+
readonly Voided: "voided";
|
|
137
|
+
readonly Hold: "hold";
|
|
138
|
+
readonly Submitted: "submitted";
|
|
139
|
+
readonly Transmitted: "transmitted";
|
|
140
|
+
readonly Settled: "settled";
|
|
141
|
+
readonly Returned: "returned";
|
|
142
|
+
readonly Rejected: "rejected";
|
|
143
|
+
};
|
|
144
|
+
export type CreateTransactionsReportsFiltersDtoTransactionStatusesEnum = typeof CreateTransactionsReportsFiltersDtoTransactionStatusesEnum[keyof typeof CreateTransactionsReportsFiltersDtoTransactionStatusesEnum];
|
|
145
|
+
/**
|
|
146
|
+
* Check if a given object implements the CreateTransactionsReportsFiltersDto interface.
|
|
147
|
+
*/
|
|
148
|
+
export declare function instanceOfCreateTransactionsReportsFiltersDto(value: object): boolean;
|
|
149
|
+
export declare function CreateTransactionsReportsFiltersDtoFromJSON(json: any): CreateTransactionsReportsFiltersDto;
|
|
150
|
+
export declare function CreateTransactionsReportsFiltersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionsReportsFiltersDto;
|
|
151
|
+
export declare function CreateTransactionsReportsFiltersDtoToJSON(value?: CreateTransactionsReportsFiltersDto | null): any;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateTransactionsReportsFiltersDtoTransactionStatusesEnum = exports.CreateTransactionsReportsFiltersDtoTransactionIntentsEnum = exports.CreateTransactionsReportsFiltersDtoCardSchemesEnum = exports.CreateTransactionsReportsFiltersDtoCardTypesEnum = exports.CreateTransactionsReportsFiltersDtoAccountTypesEnum = exports.CreateTransactionsReportsFiltersDtoPaymentMethodsEnum = void 0;
|
|
12
|
+
exports.instanceOfCreateTransactionsReportsFiltersDto = instanceOfCreateTransactionsReportsFiltersDto;
|
|
13
|
+
exports.CreateTransactionsReportsFiltersDtoFromJSON = CreateTransactionsReportsFiltersDtoFromJSON;
|
|
14
|
+
exports.CreateTransactionsReportsFiltersDtoFromJSONTyped = CreateTransactionsReportsFiltersDtoFromJSONTyped;
|
|
15
|
+
exports.CreateTransactionsReportsFiltersDtoToJSON = CreateTransactionsReportsFiltersDtoToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.CreateTransactionsReportsFiltersDtoPaymentMethodsEnum = {
|
|
21
|
+
Card: 'CARD',
|
|
22
|
+
Bank: 'BANK'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.CreateTransactionsReportsFiltersDtoAccountTypesEnum = {
|
|
28
|
+
Checking: 'CHECKING',
|
|
29
|
+
Savings: 'SAVINGS'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.CreateTransactionsReportsFiltersDtoCardTypesEnum = {
|
|
35
|
+
Credit: 'CREDIT',
|
|
36
|
+
Debit: 'DEBIT',
|
|
37
|
+
Prepaid: 'PREPAID'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.CreateTransactionsReportsFiltersDtoCardSchemesEnum = {
|
|
43
|
+
Visa: 'visa',
|
|
44
|
+
Mastercard: 'mastercard',
|
|
45
|
+
Amex: 'amex',
|
|
46
|
+
Discover: 'discover',
|
|
47
|
+
Jcb: 'jcb',
|
|
48
|
+
DinersClub: 'diners_club',
|
|
49
|
+
Maestro: 'maestro'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
exports.CreateTransactionsReportsFiltersDtoTransactionIntentsEnum = {
|
|
55
|
+
Capture: 'capture',
|
|
56
|
+
Authorize: 'authorize',
|
|
57
|
+
Debit: 'debit',
|
|
58
|
+
Credit: 'credit'
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
exports.CreateTransactionsReportsFiltersDtoTransactionStatusesEnum = {
|
|
64
|
+
Authorized: 'authorized',
|
|
65
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
66
|
+
Declined: 'declined',
|
|
67
|
+
Captured: 'captured',
|
|
68
|
+
Voided: 'voided',
|
|
69
|
+
Hold: 'hold',
|
|
70
|
+
Submitted: 'submitted',
|
|
71
|
+
Transmitted: 'transmitted',
|
|
72
|
+
Settled: 'settled',
|
|
73
|
+
Returned: 'returned',
|
|
74
|
+
Rejected: 'rejected'
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the CreateTransactionsReportsFiltersDto interface.
|
|
78
|
+
*/
|
|
79
|
+
function instanceOfCreateTransactionsReportsFiltersDto(value) {
|
|
80
|
+
let isInstance = true;
|
|
81
|
+
isInstance = isInstance && "paymentMethods" in value;
|
|
82
|
+
return isInstance;
|
|
83
|
+
}
|
|
84
|
+
function CreateTransactionsReportsFiltersDtoFromJSON(json) {
|
|
85
|
+
return CreateTransactionsReportsFiltersDtoFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function CreateTransactionsReportsFiltersDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
88
|
+
if ((json === undefined) || (json === null)) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
const typed = {
|
|
92
|
+
'paymentMethods': json['paymentMethods'],
|
|
93
|
+
'accountTypes': !(0, runtime_1.exists)(json, 'accountTypes') ? undefined : json['accountTypes'],
|
|
94
|
+
'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
95
|
+
'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
96
|
+
'transactionIntents': !(0, runtime_1.exists)(json, 'transactionIntents') ? undefined : json['transactionIntents'],
|
|
97
|
+
'transactionStatuses': !(0, runtime_1.exists)(json, 'transactionStatuses') ? undefined : json['transactionStatuses'],
|
|
98
|
+
'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
|
|
99
|
+
'amountGreaterThan': !(0, runtime_1.exists)(json, 'amountGreaterThan') ? undefined : json['amountGreaterThan'],
|
|
100
|
+
'amountLessThan': !(0, runtime_1.exists)(json, 'amountLessThan') ? undefined : json['amountLessThan'],
|
|
101
|
+
'amountMin': !(0, runtime_1.exists)(json, 'amountMin') ? undefined : json['amountMin'],
|
|
102
|
+
'amountMax': !(0, runtime_1.exists)(json, 'amountMax') ? undefined : json['amountMax'],
|
|
103
|
+
};
|
|
104
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
105
|
+
}
|
|
106
|
+
function CreateTransactionsReportsFiltersDtoToJSON(value) {
|
|
107
|
+
if (value === undefined) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
if (value === null) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
'paymentMethods': value.paymentMethods,
|
|
115
|
+
'accountTypes': value.accountTypes,
|
|
116
|
+
'cardTypes': value.cardTypes,
|
|
117
|
+
'cardSchemes': value.cardSchemes,
|
|
118
|
+
'transactionIntents': value.transactionIntents,
|
|
119
|
+
'transactionStatuses': value.transactionStatuses,
|
|
120
|
+
'amount': value.amount,
|
|
121
|
+
'amountGreaterThan': value.amountGreaterThan,
|
|
122
|
+
'amountLessThan': value.amountLessThan,
|
|
123
|
+
'amountMin': value.amountMin,
|
|
124
|
+
'amountMax': value.amountMax,
|
|
125
|
+
};
|
|
126
|
+
}
|