@channelpayments/node-sdk 1.41.6 → 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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
|
-
import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto,
|
|
8
|
+
import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto, TransactionEntity1, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
9
9
|
export interface DeleteBuyerRequest {
|
|
10
10
|
buyerId: string;
|
|
11
11
|
}
|
|
@@ -90,7 +90,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
90
90
|
* Attempts to capture an authorized transaction
|
|
91
91
|
* Capture transaction
|
|
92
92
|
*/
|
|
93
|
-
captureTransaction(requestParameters: CaptureTransactionDto): Promise<
|
|
93
|
+
captureTransaction(requestParameters: CaptureTransactionDto): Promise<TransactionEntity1>;
|
|
94
94
|
/**
|
|
95
95
|
* Creates a new buyer.
|
|
96
96
|
* Create buyer.
|
|
@@ -100,7 +100,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
100
100
|
* Attempts to create a new transaction by specified intent for a given payment method
|
|
101
101
|
* Create transaction
|
|
102
102
|
*/
|
|
103
|
-
createTransaction(requestParameters: CreateTransactionDto): Promise<
|
|
103
|
+
createTransaction(requestParameters: CreateTransactionDto): Promise<TransactionEntity1>;
|
|
104
104
|
/**
|
|
105
105
|
* Removes a buyer ID.
|
|
106
106
|
* Remove buyer.
|
|
@@ -140,7 +140,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
140
140
|
* Attempts to find a transaction by ID
|
|
141
141
|
* Find transaction
|
|
142
142
|
*/
|
|
143
|
-
getTransaction(requestParameters: GetTransactionRequest): Promise<
|
|
143
|
+
getTransaction(requestParameters: GetTransactionRequest): Promise<TransactionEntity1>;
|
|
144
144
|
/**
|
|
145
145
|
* Attempts to refund a captured transaction
|
|
146
146
|
* Refund a transaction
|
|
@@ -180,7 +180,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
180
180
|
* Attempts to void an authorized transaction
|
|
181
181
|
* Void a transaction
|
|
182
182
|
*/
|
|
183
|
-
voidTransaction(requestParameters: VoidTransactionRequest): Promise<
|
|
183
|
+
voidTransaction(requestParameters: VoidTransactionRequest): Promise<TransactionEntity1>;
|
|
184
184
|
}
|
|
185
185
|
/**
|
|
186
186
|
* @export
|
|
@@ -71,7 +71,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
71
71
|
});
|
|
72
72
|
let response;
|
|
73
73
|
if (rawResponse.status === 201) {
|
|
74
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.
|
|
74
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
|
|
75
75
|
}
|
|
76
76
|
if (rawResponse.status === 400) {
|
|
77
77
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
@@ -184,7 +184,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
184
184
|
});
|
|
185
185
|
let response;
|
|
186
186
|
if (rawResponse.status === 201) {
|
|
187
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.
|
|
187
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
|
|
188
188
|
}
|
|
189
189
|
if (rawResponse.status === 400) {
|
|
190
190
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
@@ -539,7 +539,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
539
539
|
});
|
|
540
540
|
let response;
|
|
541
541
|
if (rawResponse.status === 200) {
|
|
542
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.
|
|
542
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
|
|
543
543
|
}
|
|
544
544
|
if (rawResponse.status === 400) {
|
|
545
545
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
@@ -1063,7 +1063,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
let response;
|
|
1065
1065
|
if (rawResponse.status === 201) {
|
|
1066
|
-
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.
|
|
1066
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
|
|
1067
1067
|
}
|
|
1068
1068
|
if (rawResponse.status === 400) {
|
|
1069
1069
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
@@ -21,13 +21,13 @@ export interface PaymentMethodEntity1 {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof PaymentMethodEntity1
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
paymentMethod: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof PaymentMethodEntity1
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
issuedPaymentMethodId?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
@@ -70,38 +70,14 @@ export interface PaymentMethodEntity1 {
|
|
|
70
70
|
* @memberof PaymentMethodEntity1
|
|
71
71
|
*/
|
|
72
72
|
cardType?: PaymentMethodEntity1CardTypeEnum;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof PaymentMethodEntity1
|
|
77
|
-
*/
|
|
78
|
-
accountName?: string;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof PaymentMethodEntity1
|
|
83
|
-
*/
|
|
84
|
-
accountNumber?: string;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof PaymentMethodEntity1
|
|
89
|
-
*/
|
|
90
|
-
accountType?: string;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof PaymentMethodEntity1
|
|
95
|
-
*/
|
|
96
|
-
aBANumber?: string;
|
|
97
73
|
}
|
|
98
74
|
/**
|
|
99
75
|
* @export
|
|
100
76
|
*/
|
|
101
77
|
export declare const PaymentMethodEntity1CardTypeEnum: {
|
|
102
|
-
readonly Credit: "
|
|
103
|
-
readonly Debit: "
|
|
104
|
-
readonly Prepaid: "
|
|
78
|
+
readonly Credit: "credit";
|
|
79
|
+
readonly Debit: "debit";
|
|
80
|
+
readonly Prepaid: "prepaid";
|
|
105
81
|
};
|
|
106
82
|
export type PaymentMethodEntity1CardTypeEnum = typeof PaymentMethodEntity1CardTypeEnum[keyof typeof PaymentMethodEntity1CardTypeEnum];
|
|
107
83
|
/**
|
|
@@ -14,9 +14,9 @@ const runtime_1 = require("../runtime");
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
exports.PaymentMethodEntity1CardTypeEnum = {
|
|
17
|
-
Credit: '
|
|
18
|
-
Debit: '
|
|
19
|
-
Prepaid: '
|
|
17
|
+
Credit: 'credit',
|
|
18
|
+
Debit: 'debit',
|
|
19
|
+
Prepaid: 'prepaid'
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Check if a given object implements the PaymentMethodEntity1 interface.
|
|
@@ -24,7 +24,7 @@ exports.PaymentMethodEntity1CardTypeEnum = {
|
|
|
24
24
|
function instanceOfPaymentMethodEntity1(value) {
|
|
25
25
|
let isInstance = true;
|
|
26
26
|
isInstance = isInstance && "paymentMethodId" in value;
|
|
27
|
-
isInstance = isInstance && "
|
|
27
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
28
28
|
return isInstance;
|
|
29
29
|
}
|
|
30
30
|
exports.instanceOfPaymentMethodEntity1 = instanceOfPaymentMethodEntity1;
|
|
@@ -38,8 +38,8 @@ function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
const typed = {
|
|
40
40
|
'paymentMethodId': json['paymentMethodId'],
|
|
41
|
-
'
|
|
42
|
-
'
|
|
41
|
+
'paymentMethod': json['paymentMethod'],
|
|
42
|
+
'issuedPaymentMethodId': !(0, runtime_1.exists)(json, 'issuedPaymentMethodId') ? undefined : json['issuedPaymentMethodId'],
|
|
43
43
|
'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
|
|
44
44
|
'scheme': !(0, runtime_1.exists)(json, 'scheme') ? undefined : json['scheme'],
|
|
45
45
|
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
@@ -47,10 +47,6 @@ function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
48
48
|
'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
49
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
50
|
};
|
|
55
51
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
56
52
|
}
|
|
@@ -64,8 +60,8 @@ function PaymentMethodEntity1ToJSON(value) {
|
|
|
64
60
|
}
|
|
65
61
|
return {
|
|
66
62
|
'paymentMethodId': value.paymentMethodId,
|
|
67
|
-
'
|
|
68
|
-
'
|
|
63
|
+
'paymentMethod': value.paymentMethod,
|
|
64
|
+
'issuedPaymentMethodId': value.issuedPaymentMethodId,
|
|
69
65
|
'label': value.label,
|
|
70
66
|
'scheme': value.scheme,
|
|
71
67
|
'expirationDate': value.expirationDate,
|
|
@@ -73,10 +69,6 @@ function PaymentMethodEntity1ToJSON(value) {
|
|
|
73
69
|
'country': value.country,
|
|
74
70
|
'bin': value.bin,
|
|
75
71
|
'cardType': value.cardType,
|
|
76
|
-
'accountName': value.accountName,
|
|
77
|
-
'accountNumber': value.accountNumber,
|
|
78
|
-
'accountType': value.accountType,
|
|
79
|
-
'ABANumber': value.aBANumber,
|
|
80
72
|
};
|
|
81
73
|
}
|
|
82
74
|
exports.PaymentMethodEntity1ToJSON = PaymentMethodEntity1ToJSON;
|
|
@@ -0,0 +1,113 @@
|
|
|
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;
|
|
@@ -0,0 +1,82 @@
|
|
|
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;
|
|
@@ -0,0 +1,50 @@
|
|
|
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;
|
|
@@ -0,0 +1,54 @@
|
|
|
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;
|