@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
|
@@ -29,6 +29,24 @@ export interface MerchantSettingsEntity {
|
|
|
29
29
|
* @memberof MerchantSettingsEntity
|
|
30
30
|
*/
|
|
31
31
|
isSplitCFeeEnabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether debt repayment is enabled.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof MerchantSettingsEntity
|
|
36
|
+
*/
|
|
37
|
+
isDebtRepaymentEnabled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether partial authorization is enabled.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof MerchantSettingsEntity
|
|
42
|
+
*/
|
|
43
|
+
isPartialAuthEnabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether bill payment is enabled for this merchant.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof MerchantSettingsEntity
|
|
48
|
+
*/
|
|
49
|
+
isBillPaymentEnabled: boolean;
|
|
32
50
|
}
|
|
33
51
|
/**
|
|
34
52
|
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
@@ -21,6 +21,9 @@ function instanceOfMerchantSettingsEntity(value) {
|
|
|
21
21
|
let isInstance = true;
|
|
22
22
|
isInstance = isInstance && "merchantId" in value;
|
|
23
23
|
isInstance = isInstance && "isSplitCFeeEnabled" in value;
|
|
24
|
+
isInstance = isInstance && "isDebtRepaymentEnabled" in value;
|
|
25
|
+
isInstance = isInstance && "isPartialAuthEnabled" in value;
|
|
26
|
+
isInstance = isInstance && "isBillPaymentEnabled" in value;
|
|
24
27
|
return isInstance;
|
|
25
28
|
}
|
|
26
29
|
function MerchantSettingsEntityFromJSON(json) {
|
|
@@ -34,6 +37,9 @@ function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
37
|
'merchantId': json['merchantId'],
|
|
35
38
|
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeEntity_1.MerchantThemeEntityFromJSON)(json['checkoutTheme']),
|
|
36
39
|
'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
|
|
40
|
+
'isDebtRepaymentEnabled': json['isDebtRepaymentEnabled'],
|
|
41
|
+
'isPartialAuthEnabled': json['isPartialAuthEnabled'],
|
|
42
|
+
'isBillPaymentEnabled': json['isBillPaymentEnabled'],
|
|
37
43
|
};
|
|
38
44
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
39
45
|
}
|
|
@@ -48,5 +54,8 @@ function MerchantSettingsEntityToJSON(value) {
|
|
|
48
54
|
'merchantId': value.merchantId,
|
|
49
55
|
'checkoutTheme': (0, MerchantThemeEntity_1.MerchantThemeEntityToJSON)(value.checkoutTheme),
|
|
50
56
|
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
57
|
+
'isDebtRepaymentEnabled': value.isDebtRepaymentEnabled,
|
|
58
|
+
'isPartialAuthEnabled': value.isPartialAuthEnabled,
|
|
59
|
+
'isBillPaymentEnabled': value.isBillPaymentEnabled,
|
|
51
60
|
};
|
|
52
61
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ReportCreatorEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface ReportCreatorEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The user creator ID.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof ReportCreatorEntity
|
|
17
|
+
*/
|
|
18
|
+
userId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The user creator full name.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ReportCreatorEntity
|
|
23
|
+
*/
|
|
24
|
+
fullName: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ReportCreatorEntity interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfReportCreatorEntity(value: object): boolean;
|
|
30
|
+
export declare function ReportCreatorEntityFromJSON(json: any): ReportCreatorEntity;
|
|
31
|
+
export declare function ReportCreatorEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCreatorEntity;
|
|
32
|
+
export declare function ReportCreatorEntityToJSON(value?: ReportCreatorEntity | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfReportCreatorEntity = instanceOfReportCreatorEntity;
|
|
12
|
+
exports.ReportCreatorEntityFromJSON = ReportCreatorEntityFromJSON;
|
|
13
|
+
exports.ReportCreatorEntityFromJSONTyped = ReportCreatorEntityFromJSONTyped;
|
|
14
|
+
exports.ReportCreatorEntityToJSON = ReportCreatorEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ReportCreatorEntity interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfReportCreatorEntity(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "userId" in value;
|
|
22
|
+
isInstance = isInstance && "fullName" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function ReportCreatorEntityFromJSON(json) {
|
|
26
|
+
return ReportCreatorEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function ReportCreatorEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'userId': json['userId'],
|
|
34
|
+
'fullName': json['fullName'],
|
|
35
|
+
};
|
|
36
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
37
|
+
}
|
|
38
|
+
function ReportCreatorEntityToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'userId': value.userId,
|
|
47
|
+
'fullName': value.fullName,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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,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
|
+
}
|