@channelpayments/node-sdk 1.49.0 → 1.50.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/apis/ChannelPaymentsApi.d.ts +5 -5
- package/dist/cjs/apis/ChannelPaymentsApi.js +4 -4
- package/dist/cjs/models/PaymentMethodEntity1.d.ts +29 -5
- package/dist/cjs/models/PaymentMethodEntity1.js +16 -8
- package/dist/cjs/models/TransactionEntity.d.ts +69 -26
- package/dist/cjs/models/TransactionEntity.js +54 -29
- package/dist/cjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/cjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/cjs/models/index.d.ts +0 -3
- package/dist/cjs/models/index.js +0 -3
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +5 -5
- package/dist/mjs/apis/ChannelPaymentsApi.js +5 -5
- package/dist/mjs/models/PaymentMethodEntity1.d.ts +29 -5
- package/dist/mjs/models/PaymentMethodEntity1.js +16 -8
- package/dist/mjs/models/TransactionEntity.d.ts +69 -26
- package/dist/mjs/models/TransactionEntity.js +54 -29
- package/dist/mjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/mjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/mjs/models/index.d.ts +0 -3
- package/dist/mjs/models/index.js +0 -3
- package/package.json +1 -1
- package/dist/cjs/models/PaymentMethodEntity2.d.ts +0 -113
- package/dist/cjs/models/PaymentMethodEntity2.js +0 -82
- package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
- package/dist/cjs/models/PaymentServiceDetailsEntity.js +0 -54
- package/dist/cjs/models/TransactionEntity1.d.ts +0 -241
- package/dist/cjs/models/TransactionEntity1.js +0 -150
- package/dist/mjs/models/PaymentMethodEntity2.d.ts +0 -113
- package/dist/mjs/models/PaymentMethodEntity2.js +0 -75
- package/dist/mjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
- package/dist/mjs/models/PaymentServiceDetailsEntity.js +0 -47
- package/dist/mjs/models/TransactionEntity1.d.ts +0 -241
- package/dist/mjs/models/TransactionEntity1.js +0 -143
|
@@ -1,113 +0,0 @@
|
|
|
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 PaymentMethodEntity2
|
|
11
|
-
*/
|
|
12
|
-
export interface PaymentMethodEntity2 {
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof PaymentMethodEntity2
|
|
17
|
-
*/
|
|
18
|
-
paymentMethodId: string;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PaymentMethodEntity2
|
|
23
|
-
*/
|
|
24
|
-
method: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PaymentMethodEntity2
|
|
29
|
-
*/
|
|
30
|
-
externalPaymentMethodId?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof PaymentMethodEntity2
|
|
35
|
-
*/
|
|
36
|
-
label?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof PaymentMethodEntity2
|
|
41
|
-
*/
|
|
42
|
-
scheme?: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof PaymentMethodEntity2
|
|
47
|
-
*/
|
|
48
|
-
expirationDate?: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof PaymentMethodEntity2
|
|
53
|
-
*/
|
|
54
|
-
currency?: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof PaymentMethodEntity2
|
|
59
|
-
*/
|
|
60
|
-
country?: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof PaymentMethodEntity2
|
|
65
|
-
*/
|
|
66
|
-
bin?: string;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof PaymentMethodEntity2
|
|
71
|
-
*/
|
|
72
|
-
cardType?: PaymentMethodEntity2CardTypeEnum;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof PaymentMethodEntity2
|
|
77
|
-
*/
|
|
78
|
-
accountName?: string;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof PaymentMethodEntity2
|
|
83
|
-
*/
|
|
84
|
-
accountNumber?: string;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof PaymentMethodEntity2
|
|
89
|
-
*/
|
|
90
|
-
accountType?: string;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof PaymentMethodEntity2
|
|
95
|
-
*/
|
|
96
|
-
aBANumber?: string;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
export declare const PaymentMethodEntity2CardTypeEnum: {
|
|
102
|
-
readonly Credit: "CREDIT";
|
|
103
|
-
readonly Debit: "DEBIT";
|
|
104
|
-
readonly Prepaid: "PREPAID";
|
|
105
|
-
};
|
|
106
|
-
export type PaymentMethodEntity2CardTypeEnum = typeof PaymentMethodEntity2CardTypeEnum[keyof typeof PaymentMethodEntity2CardTypeEnum];
|
|
107
|
-
/**
|
|
108
|
-
* Check if a given object implements the PaymentMethodEntity2 interface.
|
|
109
|
-
*/
|
|
110
|
-
export declare function instanceOfPaymentMethodEntity2(value: object): boolean;
|
|
111
|
-
export declare function PaymentMethodEntity2FromJSON(json: any): PaymentMethodEntity2;
|
|
112
|
-
export declare function PaymentMethodEntity2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodEntity2;
|
|
113
|
-
export declare function PaymentMethodEntity2ToJSON(value?: PaymentMethodEntity2 | null): any;
|
|
@@ -1,82 +0,0 @@
|
|
|
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.PaymentMethodEntity2ToJSON = exports.PaymentMethodEntity2FromJSONTyped = exports.PaymentMethodEntity2FromJSON = exports.instanceOfPaymentMethodEntity2 = exports.PaymentMethodEntity2CardTypeEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
exports.PaymentMethodEntity2CardTypeEnum = {
|
|
17
|
-
Credit: 'CREDIT',
|
|
18
|
-
Debit: 'DEBIT',
|
|
19
|
-
Prepaid: 'PREPAID'
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the PaymentMethodEntity2 interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfPaymentMethodEntity2(value) {
|
|
25
|
-
let isInstance = true;
|
|
26
|
-
isInstance = isInstance && "paymentMethodId" in value;
|
|
27
|
-
isInstance = isInstance && "method" in value;
|
|
28
|
-
return isInstance;
|
|
29
|
-
}
|
|
30
|
-
exports.instanceOfPaymentMethodEntity2 = instanceOfPaymentMethodEntity2;
|
|
31
|
-
function PaymentMethodEntity2FromJSON(json) {
|
|
32
|
-
return PaymentMethodEntity2FromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
exports.PaymentMethodEntity2FromJSON = PaymentMethodEntity2FromJSON;
|
|
35
|
-
function PaymentMethodEntity2FromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if ((json === undefined) || (json === null)) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
const typed = {
|
|
40
|
-
'paymentMethodId': json['paymentMethodId'],
|
|
41
|
-
'method': json['method'],
|
|
42
|
-
'externalPaymentMethodId': !(0, runtime_1.exists)(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
43
|
-
'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
|
|
44
|
-
'scheme': !(0, runtime_1.exists)(json, 'scheme') ? undefined : json['scheme'],
|
|
45
|
-
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
46
|
-
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
47
|
-
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
48
|
-
'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
49
|
-
'cardType': !(0, runtime_1.exists)(json, 'cardType') ? undefined : json['cardType'],
|
|
50
|
-
'accountName': !(0, runtime_1.exists)(json, 'accountName') ? undefined : json['accountName'],
|
|
51
|
-
'accountNumber': !(0, runtime_1.exists)(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
52
|
-
'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
|
|
53
|
-
'aBANumber': !(0, runtime_1.exists)(json, 'ABANumber') ? undefined : json['ABANumber'],
|
|
54
|
-
};
|
|
55
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
56
|
-
}
|
|
57
|
-
exports.PaymentMethodEntity2FromJSONTyped = PaymentMethodEntity2FromJSONTyped;
|
|
58
|
-
function PaymentMethodEntity2ToJSON(value) {
|
|
59
|
-
if (value === undefined) {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
if (value === null) {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
'paymentMethodId': value.paymentMethodId,
|
|
67
|
-
'method': value.method,
|
|
68
|
-
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
69
|
-
'label': value.label,
|
|
70
|
-
'scheme': value.scheme,
|
|
71
|
-
'expirationDate': value.expirationDate,
|
|
72
|
-
'currency': value.currency,
|
|
73
|
-
'country': value.country,
|
|
74
|
-
'bin': value.bin,
|
|
75
|
-
'cardType': value.cardType,
|
|
76
|
-
'accountName': value.accountName,
|
|
77
|
-
'accountNumber': value.accountNumber,
|
|
78
|
-
'accountType': value.accountType,
|
|
79
|
-
'ABANumber': value.aBANumber,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
exports.PaymentMethodEntity2ToJSON = PaymentMethodEntity2ToJSON;
|
|
@@ -1,50 +0,0 @@
|
|
|
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 PaymentServiceDetailsEntity
|
|
11
|
-
*/
|
|
12
|
-
export interface PaymentServiceDetailsEntity {
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof PaymentServiceDetailsEntity
|
|
17
|
-
*/
|
|
18
|
-
id?: string;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PaymentServiceDetailsEntity
|
|
23
|
-
*/
|
|
24
|
-
connectorServiceId?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PaymentServiceDetailsEntity
|
|
29
|
-
*/
|
|
30
|
-
method?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof PaymentServiceDetailsEntity
|
|
35
|
-
*/
|
|
36
|
-
serviceConnectorName?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof PaymentServiceDetailsEntity
|
|
41
|
-
*/
|
|
42
|
-
paymentServiceTransactionId?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
46
|
-
*/
|
|
47
|
-
export declare function instanceOfPaymentServiceDetailsEntity(value: object): boolean;
|
|
48
|
-
export declare function PaymentServiceDetailsEntityFromJSON(json: any): PaymentServiceDetailsEntity;
|
|
49
|
-
export declare function PaymentServiceDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentServiceDetailsEntity;
|
|
50
|
-
export declare function PaymentServiceDetailsEntityToJSON(value?: PaymentServiceDetailsEntity | null): any;
|
|
@@ -1,54 +0,0 @@
|
|
|
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.PaymentServiceDetailsEntityToJSON = exports.PaymentServiceDetailsEntityFromJSONTyped = exports.PaymentServiceDetailsEntityFromJSON = exports.instanceOfPaymentServiceDetailsEntity = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* Check if a given object implements the PaymentServiceDetailsEntity interface.
|
|
15
|
-
*/
|
|
16
|
-
function instanceOfPaymentServiceDetailsEntity(value) {
|
|
17
|
-
let isInstance = true;
|
|
18
|
-
return isInstance;
|
|
19
|
-
}
|
|
20
|
-
exports.instanceOfPaymentServiceDetailsEntity = instanceOfPaymentServiceDetailsEntity;
|
|
21
|
-
function PaymentServiceDetailsEntityFromJSON(json) {
|
|
22
|
-
return PaymentServiceDetailsEntityFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
exports.PaymentServiceDetailsEntityFromJSON = PaymentServiceDetailsEntityFromJSON;
|
|
25
|
-
function PaymentServiceDetailsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if ((json === undefined) || (json === null)) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
const typed = {
|
|
30
|
-
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
31
|
-
'connectorServiceId': !(0, runtime_1.exists)(json, 'connectorServiceId') ? undefined : json['connectorServiceId'],
|
|
32
|
-
'method': !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
|
|
33
|
-
'serviceConnectorName': !(0, runtime_1.exists)(json, 'serviceConnectorName') ? undefined : json['serviceConnectorName'],
|
|
34
|
-
'paymentServiceTransactionId': !(0, runtime_1.exists)(json, 'paymentServiceTransactionId') ? undefined : json['paymentServiceTransactionId'],
|
|
35
|
-
};
|
|
36
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
37
|
-
}
|
|
38
|
-
exports.PaymentServiceDetailsEntityFromJSONTyped = PaymentServiceDetailsEntityFromJSONTyped;
|
|
39
|
-
function PaymentServiceDetailsEntityToJSON(value) {
|
|
40
|
-
if (value === undefined) {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'id': value.id,
|
|
48
|
-
'connectorServiceId': value.connectorServiceId,
|
|
49
|
-
'method': value.method,
|
|
50
|
-
'serviceConnectorName': value.serviceConnectorName,
|
|
51
|
-
'paymentServiceTransactionId': value.paymentServiceTransactionId,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
exports.PaymentServiceDetailsEntityToJSON = PaymentServiceDetailsEntityToJSON;
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
import type { PaymentMethodEntity2 } from './PaymentMethodEntity2';
|
|
8
|
-
import type { PaymentsBuyerEntity } from './PaymentsBuyerEntity';
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @interface TransactionEntity1
|
|
13
|
-
*/
|
|
14
|
-
export interface TransactionEntity1 {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof TransactionEntity1
|
|
19
|
-
*/
|
|
20
|
-
transactionIntegrationId: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof TransactionEntity1
|
|
25
|
-
*/
|
|
26
|
-
transactionId: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof TransactionEntity1
|
|
31
|
-
*/
|
|
32
|
-
merchantId: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof TransactionEntity1
|
|
37
|
-
*/
|
|
38
|
-
status: TransactionEntity1StatusEnum;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof TransactionEntity1
|
|
43
|
-
*/
|
|
44
|
-
intent: TransactionEntity1IntentEnum;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof TransactionEntity1
|
|
49
|
-
*/
|
|
50
|
-
amount: number;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof TransactionEntity1
|
|
55
|
-
*/
|
|
56
|
-
netAmount: number;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof TransactionEntity1
|
|
61
|
-
*/
|
|
62
|
-
fee: number;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Array<string>}
|
|
66
|
-
* @memberof TransactionEntity1
|
|
67
|
-
*/
|
|
68
|
-
feeDetails?: Array<string>;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof TransactionEntity1
|
|
73
|
-
*/
|
|
74
|
-
capturedAmount?: number;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {number}
|
|
78
|
-
* @memberof TransactionEntity1
|
|
79
|
-
*/
|
|
80
|
-
refundedAmount?: number;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {string}
|
|
84
|
-
* @memberof TransactionEntity1
|
|
85
|
-
*/
|
|
86
|
-
currency?: TransactionEntity1CurrencyEnum;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {string}
|
|
90
|
-
* @memberof TransactionEntity1
|
|
91
|
-
*/
|
|
92
|
-
country?: string;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {PaymentMethodEntity2}
|
|
96
|
-
* @memberof TransactionEntity1
|
|
97
|
-
*/
|
|
98
|
-
paymentMethod?: PaymentMethodEntity2;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {PaymentsBuyerEntity}
|
|
102
|
-
* @memberof TransactionEntity1
|
|
103
|
-
*/
|
|
104
|
-
buyer?: PaymentsBuyerEntity;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof TransactionEntity1
|
|
109
|
-
*/
|
|
110
|
-
externalBuyerId?: string;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {Date}
|
|
114
|
-
* @memberof TransactionEntity1
|
|
115
|
-
*/
|
|
116
|
-
createdAt?: Date;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {Date}
|
|
120
|
-
* @memberof TransactionEntity1
|
|
121
|
-
*/
|
|
122
|
-
updatedAt?: Date;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {boolean}
|
|
126
|
-
* @memberof TransactionEntity1
|
|
127
|
-
*/
|
|
128
|
-
merchantInitiated?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @memberof TransactionEntity1
|
|
133
|
-
*/
|
|
134
|
-
schemeTransactionId?: string;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {string}
|
|
138
|
-
* @memberof TransactionEntity1
|
|
139
|
-
*/
|
|
140
|
-
rawResponseCode?: string;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {string}
|
|
144
|
-
* @memberof TransactionEntity1
|
|
145
|
-
*/
|
|
146
|
-
rawResponseDescription?: string;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {string}
|
|
150
|
-
* @memberof TransactionEntity1
|
|
151
|
-
*/
|
|
152
|
-
avsResponseCode?: string;
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof TransactionEntity1
|
|
157
|
-
*/
|
|
158
|
-
cvvResponseCode?: string;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {Date}
|
|
162
|
-
* @memberof TransactionEntity1
|
|
163
|
-
*/
|
|
164
|
-
capturedAt?: Date;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @type {Date}
|
|
168
|
-
* @memberof TransactionEntity1
|
|
169
|
-
*/
|
|
170
|
-
authorizedAt?: Date;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @type {Date}
|
|
174
|
-
* @memberof TransactionEntity1
|
|
175
|
-
*/
|
|
176
|
-
voidedAt?: Date;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {string}
|
|
180
|
-
* @memberof TransactionEntity1
|
|
181
|
-
*/
|
|
182
|
-
externalTransactionId?: string;
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @type {string}
|
|
186
|
-
* @memberof TransactionEntity1
|
|
187
|
-
*/
|
|
188
|
-
buyerId?: string;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof TransactionEntity1
|
|
193
|
-
*/
|
|
194
|
-
sECCode?: string;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* @export
|
|
198
|
-
*/
|
|
199
|
-
export declare const TransactionEntity1StatusEnum: {
|
|
200
|
-
readonly Processing: "processing";
|
|
201
|
-
readonly BuyerApprovalPending: "buyerApprovalPending";
|
|
202
|
-
readonly Authorized: "authorized";
|
|
203
|
-
readonly AuthorizationFailed: "authorizationFailed";
|
|
204
|
-
readonly Declined: "declined";
|
|
205
|
-
readonly CapturePending: "capturePending";
|
|
206
|
-
readonly Captured: "captured";
|
|
207
|
-
readonly VoidPending: "voidPending";
|
|
208
|
-
readonly Voided: "voided";
|
|
209
|
-
readonly Held: "held";
|
|
210
|
-
readonly Submitted: "submitted";
|
|
211
|
-
readonly Transmitted: "transmitted";
|
|
212
|
-
readonly Settled: "settled";
|
|
213
|
-
readonly Returned: "returned";
|
|
214
|
-
};
|
|
215
|
-
export type TransactionEntity1StatusEnum = typeof TransactionEntity1StatusEnum[keyof typeof TransactionEntity1StatusEnum];
|
|
216
|
-
/**
|
|
217
|
-
* @export
|
|
218
|
-
*/
|
|
219
|
-
export declare const TransactionEntity1IntentEnum: {
|
|
220
|
-
readonly Capture: "capture";
|
|
221
|
-
readonly Authorize: "authorize";
|
|
222
|
-
readonly Debit: "debit";
|
|
223
|
-
readonly Credit: "credit";
|
|
224
|
-
};
|
|
225
|
-
export type TransactionEntity1IntentEnum = typeof TransactionEntity1IntentEnum[keyof typeof TransactionEntity1IntentEnum];
|
|
226
|
-
/**
|
|
227
|
-
* @export
|
|
228
|
-
*/
|
|
229
|
-
export declare const TransactionEntity1CurrencyEnum: {
|
|
230
|
-
readonly Usd: "USD";
|
|
231
|
-
readonly Cad: "CAD";
|
|
232
|
-
readonly Aud: "AUD";
|
|
233
|
-
};
|
|
234
|
-
export type TransactionEntity1CurrencyEnum = typeof TransactionEntity1CurrencyEnum[keyof typeof TransactionEntity1CurrencyEnum];
|
|
235
|
-
/**
|
|
236
|
-
* Check if a given object implements the TransactionEntity1 interface.
|
|
237
|
-
*/
|
|
238
|
-
export declare function instanceOfTransactionEntity1(value: object): boolean;
|
|
239
|
-
export declare function TransactionEntity1FromJSON(json: any): TransactionEntity1;
|
|
240
|
-
export declare function TransactionEntity1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionEntity1;
|
|
241
|
-
export declare function TransactionEntity1ToJSON(value?: TransactionEntity1 | null): any;
|
|
@@ -1,150 +0,0 @@
|
|
|
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.TransactionEntity1ToJSON = exports.TransactionEntity1FromJSONTyped = exports.TransactionEntity1FromJSON = exports.instanceOfTransactionEntity1 = exports.TransactionEntity1CurrencyEnum = exports.TransactionEntity1IntentEnum = exports.TransactionEntity1StatusEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
const PaymentMethodEntity2_1 = require("./PaymentMethodEntity2");
|
|
14
|
-
const PaymentsBuyerEntity_1 = require("./PaymentsBuyerEntity");
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
exports.TransactionEntity1StatusEnum = {
|
|
19
|
-
Processing: 'processing',
|
|
20
|
-
BuyerApprovalPending: 'buyerApprovalPending',
|
|
21
|
-
Authorized: 'authorized',
|
|
22
|
-
AuthorizationFailed: 'authorizationFailed',
|
|
23
|
-
Declined: 'declined',
|
|
24
|
-
CapturePending: 'capturePending',
|
|
25
|
-
Captured: 'captured',
|
|
26
|
-
VoidPending: 'voidPending',
|
|
27
|
-
Voided: 'voided',
|
|
28
|
-
Held: 'held',
|
|
29
|
-
Submitted: 'submitted',
|
|
30
|
-
Transmitted: 'transmitted',
|
|
31
|
-
Settled: 'settled',
|
|
32
|
-
Returned: 'returned'
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
exports.TransactionEntity1IntentEnum = {
|
|
38
|
-
Capture: 'capture',
|
|
39
|
-
Authorize: 'authorize',
|
|
40
|
-
Debit: 'debit',
|
|
41
|
-
Credit: 'credit'
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
exports.TransactionEntity1CurrencyEnum = {
|
|
47
|
-
Usd: 'USD',
|
|
48
|
-
Cad: 'CAD',
|
|
49
|
-
Aud: 'AUD'
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the TransactionEntity1 interface.
|
|
53
|
-
*/
|
|
54
|
-
function instanceOfTransactionEntity1(value) {
|
|
55
|
-
let isInstance = true;
|
|
56
|
-
isInstance = isInstance && "transactionIntegrationId" in value;
|
|
57
|
-
isInstance = isInstance && "transactionId" in value;
|
|
58
|
-
isInstance = isInstance && "merchantId" in value;
|
|
59
|
-
isInstance = isInstance && "status" in value;
|
|
60
|
-
isInstance = isInstance && "intent" in value;
|
|
61
|
-
isInstance = isInstance && "amount" in value;
|
|
62
|
-
isInstance = isInstance && "netAmount" in value;
|
|
63
|
-
isInstance = isInstance && "fee" in value;
|
|
64
|
-
return isInstance;
|
|
65
|
-
}
|
|
66
|
-
exports.instanceOfTransactionEntity1 = instanceOfTransactionEntity1;
|
|
67
|
-
function TransactionEntity1FromJSON(json) {
|
|
68
|
-
return TransactionEntity1FromJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
exports.TransactionEntity1FromJSON = TransactionEntity1FromJSON;
|
|
71
|
-
function TransactionEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
-
if ((json === undefined) || (json === null)) {
|
|
73
|
-
return json;
|
|
74
|
-
}
|
|
75
|
-
const typed = {
|
|
76
|
-
'transactionIntegrationId': json['transactionIntegrationId'],
|
|
77
|
-
'transactionId': json['transactionId'],
|
|
78
|
-
'merchantId': json['merchantId'],
|
|
79
|
-
'status': json['status'],
|
|
80
|
-
'intent': json['intent'],
|
|
81
|
-
'amount': json['amount'],
|
|
82
|
-
'netAmount': json['netAmount'],
|
|
83
|
-
'fee': json['fee'],
|
|
84
|
-
'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : json['feeDetails'],
|
|
85
|
-
'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
86
|
-
'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
87
|
-
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
88
|
-
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
89
|
-
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity2_1.PaymentMethodEntity2FromJSON)(json['paymentMethod']),
|
|
90
|
-
'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityFromJSON)(json['buyer']),
|
|
91
|
-
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
92
|
-
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
93
|
-
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
94
|
-
'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
95
|
-
'schemeTransactionId': !(0, runtime_1.exists)(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
96
|
-
'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
97
|
-
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
98
|
-
'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
99
|
-
'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
100
|
-
'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
101
|
-
'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
102
|
-
'voidedAt': !(0, runtime_1.exists)(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
103
|
-
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
104
|
-
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
105
|
-
'sECCode': !(0, runtime_1.exists)(json, 'SECCode') ? undefined : json['SECCode'],
|
|
106
|
-
};
|
|
107
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
108
|
-
}
|
|
109
|
-
exports.TransactionEntity1FromJSONTyped = TransactionEntity1FromJSONTyped;
|
|
110
|
-
function TransactionEntity1ToJSON(value) {
|
|
111
|
-
if (value === undefined) {
|
|
112
|
-
return undefined;
|
|
113
|
-
}
|
|
114
|
-
if (value === null) {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
'transactionIntegrationId': value.transactionIntegrationId,
|
|
119
|
-
'transactionId': value.transactionId,
|
|
120
|
-
'merchantId': value.merchantId,
|
|
121
|
-
'status': value.status,
|
|
122
|
-
'intent': value.intent,
|
|
123
|
-
'amount': value.amount,
|
|
124
|
-
'netAmount': value.netAmount,
|
|
125
|
-
'fee': value.fee,
|
|
126
|
-
'feeDetails': value.feeDetails,
|
|
127
|
-
'capturedAmount': value.capturedAmount,
|
|
128
|
-
'refundedAmount': value.refundedAmount,
|
|
129
|
-
'currency': value.currency,
|
|
130
|
-
'country': value.country,
|
|
131
|
-
'paymentMethod': (0, PaymentMethodEntity2_1.PaymentMethodEntity2ToJSON)(value.paymentMethod),
|
|
132
|
-
'buyer': (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityToJSON)(value.buyer),
|
|
133
|
-
'externalBuyerId': value.externalBuyerId,
|
|
134
|
-
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
135
|
-
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
136
|
-
'merchantInitiated': value.merchantInitiated,
|
|
137
|
-
'schemeTransactionId': value.schemeTransactionId,
|
|
138
|
-
'rawResponseCode': value.rawResponseCode,
|
|
139
|
-
'rawResponseDescription': value.rawResponseDescription,
|
|
140
|
-
'avsResponseCode': value.avsResponseCode,
|
|
141
|
-
'cvvResponseCode': value.cvvResponseCode,
|
|
142
|
-
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
143
|
-
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
144
|
-
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
145
|
-
'externalTransactionId': value.externalTransactionId,
|
|
146
|
-
'buyerId': value.buyerId,
|
|
147
|
-
'SECCode': value.sECCode,
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
exports.TransactionEntity1ToJSON = TransactionEntity1ToJSON;
|