@channelpayments/node-sdk 1.41.5 → 1.42.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 +5 -29
- package/dist/cjs/models/PaymentMethodEntity1.js +8 -16
- package/dist/cjs/models/PaymentMethodEntity2.d.ts +113 -0
- package/dist/cjs/models/PaymentMethodEntity2.js +82 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +50 -0
- package/dist/cjs/models/PaymentServiceDetailsEntity.js +54 -0
- package/dist/cjs/models/TransactionEntity.d.ts +26 -69
- package/dist/cjs/models/TransactionEntity.js +29 -54
- package/dist/cjs/models/TransactionEntity1.d.ts +241 -0
- package/dist/cjs/models/TransactionEntity1.js +150 -0
- package/dist/cjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/cjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/cjs/models/index.d.ts +3 -0
- package/dist/cjs/models/index.js +3 -0
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +5 -5
- package/dist/mjs/apis/ChannelPaymentsApi.js +5 -5
- package/dist/mjs/models/PaymentMethodEntity1.d.ts +5 -29
- package/dist/mjs/models/PaymentMethodEntity1.js +8 -16
- package/dist/mjs/models/PaymentMethodEntity2.d.ts +113 -0
- package/dist/mjs/models/PaymentMethodEntity2.js +75 -0
- package/dist/mjs/models/PaymentServiceDetailsEntity.d.ts +50 -0
- package/dist/mjs/models/PaymentServiceDetailsEntity.js +47 -0
- package/dist/mjs/models/TransactionEntity.d.ts +26 -69
- package/dist/mjs/models/TransactionEntity.js +29 -54
- package/dist/mjs/models/TransactionEntity1.d.ts +241 -0
- package/dist/mjs/models/TransactionEntity1.js +143 -0
- package/dist/mjs/models/TransactionsSearchEntity.d.ts +3 -3
- package/dist/mjs/models/TransactionsSearchEntity.js +3 -3
- package/dist/mjs/models/index.d.ts +3 -0
- package/dist/mjs/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { PaymentMethodEntity2FromJSON, PaymentMethodEntity2ToJSON, } from './PaymentMethodEntity2';
|
|
11
|
+
import { PaymentsBuyerEntityFromJSON, PaymentsBuyerEntityToJSON, } from './PaymentsBuyerEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const TransactionEntity1StatusEnum = {
|
|
16
|
+
Processing: 'processing',
|
|
17
|
+
BuyerApprovalPending: 'buyerApprovalPending',
|
|
18
|
+
Authorized: 'authorized',
|
|
19
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
20
|
+
Declined: 'declined',
|
|
21
|
+
CapturePending: 'capturePending',
|
|
22
|
+
Captured: 'captured',
|
|
23
|
+
VoidPending: 'voidPending',
|
|
24
|
+
Voided: 'voided',
|
|
25
|
+
Held: 'held',
|
|
26
|
+
Submitted: 'submitted',
|
|
27
|
+
Transmitted: 'transmitted',
|
|
28
|
+
Settled: 'settled',
|
|
29
|
+
Returned: 'returned'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const TransactionEntity1IntentEnum = {
|
|
35
|
+
Capture: 'capture',
|
|
36
|
+
Authorize: 'authorize',
|
|
37
|
+
Debit: 'debit',
|
|
38
|
+
Credit: 'credit'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const TransactionEntity1CurrencyEnum = {
|
|
44
|
+
Usd: 'USD',
|
|
45
|
+
Cad: 'CAD',
|
|
46
|
+
Aud: 'AUD'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the TransactionEntity1 interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfTransactionEntity1(value) {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "transactionIntegrationId" in value;
|
|
54
|
+
isInstance = isInstance && "transactionId" in value;
|
|
55
|
+
isInstance = isInstance && "merchantId" in value;
|
|
56
|
+
isInstance = isInstance && "status" in value;
|
|
57
|
+
isInstance = isInstance && "intent" in value;
|
|
58
|
+
isInstance = isInstance && "amount" in value;
|
|
59
|
+
isInstance = isInstance && "netAmount" in value;
|
|
60
|
+
isInstance = isInstance && "fee" in value;
|
|
61
|
+
return isInstance;
|
|
62
|
+
}
|
|
63
|
+
export function TransactionEntity1FromJSON(json) {
|
|
64
|
+
return TransactionEntity1FromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function TransactionEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
67
|
+
if ((json === undefined) || (json === null)) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
const typed = {
|
|
71
|
+
'transactionIntegrationId': json['transactionIntegrationId'],
|
|
72
|
+
'transactionId': json['transactionId'],
|
|
73
|
+
'merchantId': json['merchantId'],
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'intent': json['intent'],
|
|
76
|
+
'amount': json['amount'],
|
|
77
|
+
'netAmount': json['netAmount'],
|
|
78
|
+
'fee': json['fee'],
|
|
79
|
+
'feeDetails': !exists(json, 'feeDetails') ? undefined : json['feeDetails'],
|
|
80
|
+
'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
81
|
+
'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
82
|
+
'currency': !exists(json, 'currency') ? undefined : json['currency'],
|
|
83
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
84
|
+
'paymentMethod': !exists(json, 'paymentMethod') ? undefined : PaymentMethodEntity2FromJSON(json['paymentMethod']),
|
|
85
|
+
'buyer': !exists(json, 'buyer') ? undefined : PaymentsBuyerEntityFromJSON(json['buyer']),
|
|
86
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
87
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
88
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
89
|
+
'merchantInitiated': !exists(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
90
|
+
'schemeTransactionId': !exists(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
91
|
+
'rawResponseCode': !exists(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
92
|
+
'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
93
|
+
'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
94
|
+
'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
95
|
+
'capturedAt': !exists(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
96
|
+
'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
97
|
+
'voidedAt': !exists(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
98
|
+
'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
99
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
100
|
+
'sECCode': !exists(json, 'SECCode') ? undefined : json['SECCode'],
|
|
101
|
+
};
|
|
102
|
+
return removeNullUndefined(typed);
|
|
103
|
+
}
|
|
104
|
+
export function TransactionEntity1ToJSON(value) {
|
|
105
|
+
if (value === undefined) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
if (value === null) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
'transactionIntegrationId': value.transactionIntegrationId,
|
|
113
|
+
'transactionId': value.transactionId,
|
|
114
|
+
'merchantId': value.merchantId,
|
|
115
|
+
'status': value.status,
|
|
116
|
+
'intent': value.intent,
|
|
117
|
+
'amount': value.amount,
|
|
118
|
+
'netAmount': value.netAmount,
|
|
119
|
+
'fee': value.fee,
|
|
120
|
+
'feeDetails': value.feeDetails,
|
|
121
|
+
'capturedAmount': value.capturedAmount,
|
|
122
|
+
'refundedAmount': value.refundedAmount,
|
|
123
|
+
'currency': value.currency,
|
|
124
|
+
'country': value.country,
|
|
125
|
+
'paymentMethod': PaymentMethodEntity2ToJSON(value.paymentMethod),
|
|
126
|
+
'buyer': PaymentsBuyerEntityToJSON(value.buyer),
|
|
127
|
+
'externalBuyerId': value.externalBuyerId,
|
|
128
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
129
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
130
|
+
'merchantInitiated': value.merchantInitiated,
|
|
131
|
+
'schemeTransactionId': value.schemeTransactionId,
|
|
132
|
+
'rawResponseCode': value.rawResponseCode,
|
|
133
|
+
'rawResponseDescription': value.rawResponseDescription,
|
|
134
|
+
'avsResponseCode': value.avsResponseCode,
|
|
135
|
+
'cvvResponseCode': value.cvvResponseCode,
|
|
136
|
+
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
137
|
+
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
138
|
+
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
139
|
+
'externalTransactionId': value.externalTransactionId,
|
|
140
|
+
'buyerId': value.buyerId,
|
|
141
|
+
'SECCode': value.sECCode,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { TransactionEntity1 } from './TransactionEntity1';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -19,10 +19,10 @@ export interface TransactionsSearchEntity {
|
|
|
19
19
|
prevCursor: string;
|
|
20
20
|
/**
|
|
21
21
|
* The list of queried transactions
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<TransactionEntity1>}
|
|
23
23
|
* @memberof TransactionsSearchEntity
|
|
24
24
|
*/
|
|
25
|
-
transactions: Array<
|
|
25
|
+
transactions: Array<TransactionEntity1>;
|
|
26
26
|
/**
|
|
27
27
|
* The number of records returned
|
|
28
28
|
* @type {number}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
-
import {
|
|
10
|
+
import { TransactionEntity1FromJSON, TransactionEntity1ToJSON, } from './TransactionEntity1';
|
|
11
11
|
/**
|
|
12
12
|
* Check if a given object implements the TransactionsSearchEntity interface.
|
|
13
13
|
*/
|
|
@@ -27,7 +27,7 @@ export function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator)
|
|
|
27
27
|
}
|
|
28
28
|
const typed = {
|
|
29
29
|
'prevCursor': json['prevCursor'],
|
|
30
|
-
'transactions': (json['transactions'].map(
|
|
30
|
+
'transactions': (json['transactions'].map(TransactionEntity1FromJSON)),
|
|
31
31
|
'limit': json['limit'],
|
|
32
32
|
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
33
33
|
'page': !exists(json, 'page') ? undefined : json['page'],
|
|
@@ -43,7 +43,7 @@ export function TransactionsSearchEntityToJSON(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'prevCursor': value.prevCursor,
|
|
46
|
-
'transactions': (value.transactions.map(
|
|
46
|
+
'transactions': (value.transactions.map(TransactionEntity1ToJSON)),
|
|
47
47
|
'limit': value.limit,
|
|
48
48
|
'nextCursor': value.nextCursor,
|
|
49
49
|
'page': value.page,
|
|
@@ -55,9 +55,11 @@ export * from './MetadataRuleConditionEntity';
|
|
|
55
55
|
export * from './PaymentMethodDto';
|
|
56
56
|
export * from './PaymentMethodEntity';
|
|
57
57
|
export * from './PaymentMethodEntity1';
|
|
58
|
+
export * from './PaymentMethodEntity2';
|
|
58
59
|
export * from './PaymentMethodEntityBuyer';
|
|
59
60
|
export * from './PaymentMethodEntityCardDetails';
|
|
60
61
|
export * from './PaymentMethodsSearchEntity';
|
|
62
|
+
export * from './PaymentServiceDetailsEntity';
|
|
61
63
|
export * from './PaymentsBuyerEntity';
|
|
62
64
|
export * from './RefundTransactionDto';
|
|
63
65
|
export * from './RuleConditionsEntity';
|
|
@@ -65,6 +67,7 @@ export * from './RuleConditionsEntityAmount';
|
|
|
65
67
|
export * from './RuleConditionsEntityCfee';
|
|
66
68
|
export * from './RuleConnectorsEntity';
|
|
67
69
|
export * from './TransactionEntity';
|
|
70
|
+
export * from './TransactionEntity1';
|
|
68
71
|
export * from './TransactionRefundEntity';
|
|
69
72
|
export * from './TransactionRefundsSearchEntity';
|
|
70
73
|
export * from './TransactionsSearchEntity';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -57,9 +57,11 @@ export * from './MetadataRuleConditionEntity';
|
|
|
57
57
|
export * from './PaymentMethodDto';
|
|
58
58
|
export * from './PaymentMethodEntity';
|
|
59
59
|
export * from './PaymentMethodEntity1';
|
|
60
|
+
export * from './PaymentMethodEntity2';
|
|
60
61
|
export * from './PaymentMethodEntityBuyer';
|
|
61
62
|
export * from './PaymentMethodEntityCardDetails';
|
|
62
63
|
export * from './PaymentMethodsSearchEntity';
|
|
64
|
+
export * from './PaymentServiceDetailsEntity';
|
|
63
65
|
export * from './PaymentsBuyerEntity';
|
|
64
66
|
export * from './RefundTransactionDto';
|
|
65
67
|
export * from './RuleConditionsEntity';
|
|
@@ -67,6 +69,7 @@ export * from './RuleConditionsEntityAmount';
|
|
|
67
69
|
export * from './RuleConditionsEntityCfee';
|
|
68
70
|
export * from './RuleConnectorsEntity';
|
|
69
71
|
export * from './TransactionEntity';
|
|
72
|
+
export * from './TransactionEntity1';
|
|
70
73
|
export * from './TransactionRefundEntity';
|
|
71
74
|
export * from './TransactionRefundsSearchEntity';
|
|
72
75
|
export * from './TransactionsSearchEntity';
|