@channelpayments/node-sdk 1.190.0 → 1.192.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 +14 -6
- package/dist/cjs/apis/ChannelPaymentsApi.js +142 -8
- package/dist/cjs/models/AuthorizedPaymentInstrumentsEntity.d.ts +32 -0
- package/dist/cjs/models/AuthorizedPaymentInstrumentsEntity.js +49 -0
- package/dist/cjs/models/ConnectorServiceTokenEntity.d.ts +1 -2
- package/dist/cjs/models/ConnectorServiceTokenEntity.js +2 -3
- package/dist/cjs/models/CreatePaymentMethodSessionDto.d.ts +38 -0
- package/dist/cjs/models/CreatePaymentMethodSessionDto.js +50 -0
- package/dist/cjs/models/CreateProvisionedCardTokenByMerchantDto.d.ts +7 -2
- package/dist/cjs/models/CreateProvisionedCardTokenByMerchantDto.js +3 -2
- package/dist/cjs/models/CreateProvisionedCardTokenDto.d.ts +0 -2
- package/dist/cjs/models/CreateProvisionedCardTokenDto.js +1 -3
- package/dist/cjs/models/CreateServicePaymentMethodDto.d.ts +6 -0
- package/dist/cjs/models/CreateServicePaymentMethodDto.js +2 -0
- package/dist/cjs/models/PaymentMethodEntity.d.ts +0 -2
- package/dist/cjs/models/PaymentMethodEntity.js +1 -3
- package/dist/cjs/models/PaymentMethodServiceEntity.d.ts +0 -2
- package/dist/cjs/models/PaymentMethodServiceEntity.js +1 -3
- package/dist/cjs/models/PaymentMethodSessionAttemptEntity.d.ts +60 -0
- package/dist/cjs/models/PaymentMethodSessionAttemptEntity.js +69 -0
- package/dist/cjs/models/PaymentMethodSessionBaseEntity.d.ts +148 -0
- package/dist/cjs/models/PaymentMethodSessionBaseEntity.js +107 -0
- package/dist/cjs/models/PaymentMethodSessionEntity.d.ts +154 -0
- package/dist/cjs/models/PaymentMethodSessionEntity.js +110 -0
- package/dist/cjs/models/SessionPaymentMethodEntity.d.ts +177 -0
- package/dist/cjs/models/SessionPaymentMethodEntity.js +119 -0
- package/dist/cjs/models/index.d.ts +6 -0
- package/dist/cjs/models/index.js +6 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +14 -6
- package/dist/mjs/apis/ChannelPaymentsApi.js +139 -9
- package/dist/mjs/models/AuthorizedPaymentInstrumentsEntity.d.ts +32 -0
- package/dist/mjs/models/AuthorizedPaymentInstrumentsEntity.js +43 -0
- package/dist/mjs/models/ConnectorServiceTokenEntity.d.ts +1 -2
- package/dist/mjs/models/ConnectorServiceTokenEntity.js +2 -3
- package/dist/mjs/models/CreatePaymentMethodSessionDto.d.ts +38 -0
- package/dist/mjs/models/CreatePaymentMethodSessionDto.js +44 -0
- package/dist/mjs/models/CreateProvisionedCardTokenByMerchantDto.d.ts +7 -2
- package/dist/mjs/models/CreateProvisionedCardTokenByMerchantDto.js +3 -2
- package/dist/mjs/models/CreateProvisionedCardTokenDto.d.ts +0 -2
- package/dist/mjs/models/CreateProvisionedCardTokenDto.js +1 -3
- package/dist/mjs/models/CreateServicePaymentMethodDto.d.ts +6 -0
- package/dist/mjs/models/CreateServicePaymentMethodDto.js +2 -0
- package/dist/mjs/models/PaymentMethodEntity.d.ts +0 -2
- package/dist/mjs/models/PaymentMethodEntity.js +1 -3
- package/dist/mjs/models/PaymentMethodServiceEntity.d.ts +0 -2
- package/dist/mjs/models/PaymentMethodServiceEntity.js +1 -3
- package/dist/mjs/models/PaymentMethodSessionAttemptEntity.d.ts +60 -0
- package/dist/mjs/models/PaymentMethodSessionAttemptEntity.js +62 -0
- package/dist/mjs/models/PaymentMethodSessionBaseEntity.d.ts +148 -0
- package/dist/mjs/models/PaymentMethodSessionBaseEntity.js +100 -0
- package/dist/mjs/models/PaymentMethodSessionEntity.d.ts +154 -0
- package/dist/mjs/models/PaymentMethodSessionEntity.js +103 -0
- package/dist/mjs/models/SessionPaymentMethodEntity.d.ts +177 -0
- package/dist/mjs/models/SessionPaymentMethodEntity.js +112 -0
- package/dist/mjs/models/index.d.ts +6 -0
- package/dist/mjs/models/index.js +6 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BankDetailsServiceEntity } from './BankDetailsServiceEntity';
|
|
8
|
+
import type { BillingDetailsEntity } from './BillingDetailsEntity';
|
|
9
|
+
import type { BuyerEntity } from './BuyerEntity';
|
|
10
|
+
import type { CardDetailsServiceEntity } from './CardDetailsServiceEntity';
|
|
11
|
+
import type { ConnectorServiceTokenEntity } from './ConnectorServiceTokenEntity';
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SessionPaymentMethodEntity
|
|
16
|
+
*/
|
|
17
|
+
export interface SessionPaymentMethodEntity {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the record.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SessionPaymentMethodEntity
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the payment method.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SessionPaymentMethodEntity
|
|
28
|
+
*/
|
|
29
|
+
paymentMethodId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the merchant.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SessionPaymentMethodEntity
|
|
34
|
+
*/
|
|
35
|
+
merchantId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status of the payment method.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SessionPaymentMethodEntity
|
|
40
|
+
*/
|
|
41
|
+
status: SessionPaymentMethodEntityStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
* The payment method type.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SessionPaymentMethodEntity
|
|
46
|
+
*/
|
|
47
|
+
method: SessionPaymentMethodEntityMethodEnum;
|
|
48
|
+
/**
|
|
49
|
+
* The external payment method ID to associate with your records.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SessionPaymentMethodEntity
|
|
52
|
+
*/
|
|
53
|
+
externalPaymentMethodId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The connector service tokens.
|
|
56
|
+
* @type {ConnectorServiceTokenEntity}
|
|
57
|
+
* @memberof SessionPaymentMethodEntity
|
|
58
|
+
*/
|
|
59
|
+
connectorServiceTokens?: ConnectorServiceTokenEntity;
|
|
60
|
+
/**
|
|
61
|
+
* The currency to use with this payment method.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SessionPaymentMethodEntity
|
|
64
|
+
*/
|
|
65
|
+
currency?: SessionPaymentMethodEntityCurrencyEnum;
|
|
66
|
+
/**
|
|
67
|
+
* The 2-letter ISO country code to use with this payment method.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SessionPaymentMethodEntity
|
|
70
|
+
*/
|
|
71
|
+
countryCode?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The card details.
|
|
74
|
+
* @type {CardDetailsServiceEntity}
|
|
75
|
+
* @memberof SessionPaymentMethodEntity
|
|
76
|
+
*/
|
|
77
|
+
cardDetails?: CardDetailsServiceEntity;
|
|
78
|
+
/**
|
|
79
|
+
* The bank details.
|
|
80
|
+
* @type {BankDetailsServiceEntity}
|
|
81
|
+
* @memberof SessionPaymentMethodEntity
|
|
82
|
+
*/
|
|
83
|
+
accountDetails?: BankDetailsServiceEntity;
|
|
84
|
+
/**
|
|
85
|
+
* The buyer entity.
|
|
86
|
+
* @type {BuyerEntity}
|
|
87
|
+
* @memberof SessionPaymentMethodEntity
|
|
88
|
+
*/
|
|
89
|
+
buyer?: BuyerEntity;
|
|
90
|
+
/**
|
|
91
|
+
* The buyer ID.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof SessionPaymentMethodEntity
|
|
94
|
+
*/
|
|
95
|
+
buyerId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The external buyer ID.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof SessionPaymentMethodEntity
|
|
100
|
+
*/
|
|
101
|
+
externalBuyerId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* When the payment method was created.
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof SessionPaymentMethodEntity
|
|
106
|
+
*/
|
|
107
|
+
createdAt?: Date;
|
|
108
|
+
/**
|
|
109
|
+
* The payment method update date.
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof SessionPaymentMethodEntity
|
|
112
|
+
*/
|
|
113
|
+
updatedAt?: Date;
|
|
114
|
+
/**
|
|
115
|
+
* The payment method creation service date.
|
|
116
|
+
* @type {Date}
|
|
117
|
+
* @memberof SessionPaymentMethodEntity
|
|
118
|
+
*/
|
|
119
|
+
paymentMethodCreatedAt?: Date;
|
|
120
|
+
/**
|
|
121
|
+
* The payment method update service date.
|
|
122
|
+
* @type {Date}
|
|
123
|
+
* @memberof SessionPaymentMethodEntity
|
|
124
|
+
*/
|
|
125
|
+
paymentMethodUpdatedAt?: Date;
|
|
126
|
+
/**
|
|
127
|
+
* The payment method integration ID.
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof SessionPaymentMethodEntity
|
|
130
|
+
*/
|
|
131
|
+
paymentMethodIntegrationId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The billing details of the account holder.
|
|
134
|
+
* @type {BillingDetailsEntity}
|
|
135
|
+
* @memberof SessionPaymentMethodEntity
|
|
136
|
+
*/
|
|
137
|
+
billingDetails?: BillingDetailsEntity;
|
|
138
|
+
/**
|
|
139
|
+
* If the customer initiated the payment method creation or not.
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof SessionPaymentMethodEntity
|
|
142
|
+
*/
|
|
143
|
+
isCustomerStored?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @export
|
|
147
|
+
*/
|
|
148
|
+
export declare const SessionPaymentMethodEntityStatusEnum: {
|
|
149
|
+
readonly Processing: "processing";
|
|
150
|
+
readonly ApprovalRequired: "approvalRequired";
|
|
151
|
+
readonly Succeeded: "succeeded";
|
|
152
|
+
readonly Failed: "failed";
|
|
153
|
+
readonly Expired: "expired";
|
|
154
|
+
};
|
|
155
|
+
export type SessionPaymentMethodEntityStatusEnum = typeof SessionPaymentMethodEntityStatusEnum[keyof typeof SessionPaymentMethodEntityStatusEnum];
|
|
156
|
+
/**
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
export declare const SessionPaymentMethodEntityMethodEnum: {
|
|
160
|
+
readonly Card: "CARD";
|
|
161
|
+
readonly Bank: "BANK";
|
|
162
|
+
};
|
|
163
|
+
export type SessionPaymentMethodEntityMethodEnum = typeof SessionPaymentMethodEntityMethodEnum[keyof typeof SessionPaymentMethodEntityMethodEnum];
|
|
164
|
+
/**
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export declare const SessionPaymentMethodEntityCurrencyEnum: {
|
|
168
|
+
readonly Usd: "USD";
|
|
169
|
+
};
|
|
170
|
+
export type SessionPaymentMethodEntityCurrencyEnum = typeof SessionPaymentMethodEntityCurrencyEnum[keyof typeof SessionPaymentMethodEntityCurrencyEnum];
|
|
171
|
+
/**
|
|
172
|
+
* Check if a given object implements the SessionPaymentMethodEntity interface.
|
|
173
|
+
*/
|
|
174
|
+
export declare function instanceOfSessionPaymentMethodEntity(value: object): boolean;
|
|
175
|
+
export declare function SessionPaymentMethodEntityFromJSON(json: any): SessionPaymentMethodEntity;
|
|
176
|
+
export declare function SessionPaymentMethodEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionPaymentMethodEntity;
|
|
177
|
+
export declare function SessionPaymentMethodEntityToJSON(value?: SessionPaymentMethodEntity | null): any;
|
|
@@ -0,0 +1,119 @@
|
|
|
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.SessionPaymentMethodEntityCurrencyEnum = exports.SessionPaymentMethodEntityMethodEnum = exports.SessionPaymentMethodEntityStatusEnum = void 0;
|
|
12
|
+
exports.instanceOfSessionPaymentMethodEntity = instanceOfSessionPaymentMethodEntity;
|
|
13
|
+
exports.SessionPaymentMethodEntityFromJSON = SessionPaymentMethodEntityFromJSON;
|
|
14
|
+
exports.SessionPaymentMethodEntityFromJSONTyped = SessionPaymentMethodEntityFromJSONTyped;
|
|
15
|
+
exports.SessionPaymentMethodEntityToJSON = SessionPaymentMethodEntityToJSON;
|
|
16
|
+
const runtime_1 = require("../runtime");
|
|
17
|
+
const BankDetailsServiceEntity_1 = require("./BankDetailsServiceEntity");
|
|
18
|
+
const BillingDetailsEntity_1 = require("./BillingDetailsEntity");
|
|
19
|
+
const BuyerEntity_1 = require("./BuyerEntity");
|
|
20
|
+
const CardDetailsServiceEntity_1 = require("./CardDetailsServiceEntity");
|
|
21
|
+
const ConnectorServiceTokenEntity_1 = require("./ConnectorServiceTokenEntity");
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SessionPaymentMethodEntityStatusEnum = {
|
|
26
|
+
Processing: 'processing',
|
|
27
|
+
ApprovalRequired: 'approvalRequired',
|
|
28
|
+
Succeeded: 'succeeded',
|
|
29
|
+
Failed: 'failed',
|
|
30
|
+
Expired: 'expired'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.SessionPaymentMethodEntityMethodEnum = {
|
|
36
|
+
Card: 'CARD',
|
|
37
|
+
Bank: 'BANK'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.SessionPaymentMethodEntityCurrencyEnum = {
|
|
43
|
+
Usd: 'USD'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SessionPaymentMethodEntity interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfSessionPaymentMethodEntity(value) {
|
|
49
|
+
let isInstance = true;
|
|
50
|
+
isInstance = isInstance && "id" in value;
|
|
51
|
+
isInstance = isInstance && "paymentMethodId" in value;
|
|
52
|
+
isInstance = isInstance && "merchantId" in value;
|
|
53
|
+
isInstance = isInstance && "status" in value;
|
|
54
|
+
isInstance = isInstance && "method" in value;
|
|
55
|
+
return isInstance;
|
|
56
|
+
}
|
|
57
|
+
function SessionPaymentMethodEntityFromJSON(json) {
|
|
58
|
+
return SessionPaymentMethodEntityFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SessionPaymentMethodEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if ((json === undefined) || (json === null)) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
const typed = {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'paymentMethodId': json['paymentMethodId'],
|
|
67
|
+
'merchantId': json['merchantId'],
|
|
68
|
+
'status': json['status'],
|
|
69
|
+
'method': json['method'],
|
|
70
|
+
'externalPaymentMethodId': !(0, runtime_1.exists)(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
71
|
+
'connectorServiceTokens': !(0, runtime_1.exists)(json, 'connectorServiceTokens') ? undefined : (0, ConnectorServiceTokenEntity_1.ConnectorServiceTokenEntityFromJSON)(json['connectorServiceTokens']),
|
|
72
|
+
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
73
|
+
'countryCode': !(0, runtime_1.exists)(json, 'countryCode') ? undefined : json['countryCode'],
|
|
74
|
+
'cardDetails': !(0, runtime_1.exists)(json, 'cardDetails') ? undefined : (0, CardDetailsServiceEntity_1.CardDetailsServiceEntityFromJSON)(json['cardDetails']),
|
|
75
|
+
'accountDetails': !(0, runtime_1.exists)(json, 'accountDetails') ? undefined : (0, BankDetailsServiceEntity_1.BankDetailsServiceEntityFromJSON)(json['accountDetails']),
|
|
76
|
+
'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, BuyerEntity_1.BuyerEntityFromJSON)(json['buyer']),
|
|
77
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
78
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
79
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
80
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
81
|
+
'paymentMethodCreatedAt': !(0, runtime_1.exists)(json, 'paymentMethodCreatedAt') ? undefined : (new Date(json['paymentMethodCreatedAt'])),
|
|
82
|
+
'paymentMethodUpdatedAt': !(0, runtime_1.exists)(json, 'paymentMethodUpdatedAt') ? undefined : (new Date(json['paymentMethodUpdatedAt'])),
|
|
83
|
+
'paymentMethodIntegrationId': !(0, runtime_1.exists)(json, 'paymentMethodIntegrationId') ? undefined : json['paymentMethodIntegrationId'],
|
|
84
|
+
'billingDetails': !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsEntity_1.BillingDetailsEntityFromJSON)(json['billingDetails']),
|
|
85
|
+
'isCustomerStored': !(0, runtime_1.exists)(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
86
|
+
};
|
|
87
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
88
|
+
}
|
|
89
|
+
function SessionPaymentMethodEntityToJSON(value) {
|
|
90
|
+
if (value === undefined) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
if (value === null) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
'id': value.id,
|
|
98
|
+
'paymentMethodId': value.paymentMethodId,
|
|
99
|
+
'merchantId': value.merchantId,
|
|
100
|
+
'status': value.status,
|
|
101
|
+
'method': value.method,
|
|
102
|
+
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
103
|
+
'connectorServiceTokens': (0, ConnectorServiceTokenEntity_1.ConnectorServiceTokenEntityToJSON)(value.connectorServiceTokens),
|
|
104
|
+
'currency': value.currency,
|
|
105
|
+
'countryCode': value.countryCode,
|
|
106
|
+
'cardDetails': (0, CardDetailsServiceEntity_1.CardDetailsServiceEntityToJSON)(value.cardDetails),
|
|
107
|
+
'accountDetails': (0, BankDetailsServiceEntity_1.BankDetailsServiceEntityToJSON)(value.accountDetails),
|
|
108
|
+
'buyer': (0, BuyerEntity_1.BuyerEntityToJSON)(value.buyer),
|
|
109
|
+
'buyerId': value.buyerId,
|
|
110
|
+
'externalBuyerId': value.externalBuyerId,
|
|
111
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
112
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
113
|
+
'paymentMethodCreatedAt': value.paymentMethodCreatedAt === undefined ? undefined : (value.paymentMethodCreatedAt.toISOString()),
|
|
114
|
+
'paymentMethodUpdatedAt': value.paymentMethodUpdatedAt === undefined ? undefined : (value.paymentMethodUpdatedAt.toISOString()),
|
|
115
|
+
'paymentMethodIntegrationId': value.paymentMethodIntegrationId,
|
|
116
|
+
'billingDetails': (0, BillingDetailsEntity_1.BillingDetailsEntityToJSON)(value.billingDetails),
|
|
117
|
+
'isCustomerStored': value.isCustomerStored,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AddressEntity';
|
|
2
2
|
export * from './AdminCreateTransactionRefundDto';
|
|
3
3
|
export * from './AdminVoidTransactionDto';
|
|
4
|
+
export * from './AuthorizedPaymentInstrumentsEntity';
|
|
4
5
|
export * from './AvailablePaymentMethodEntity';
|
|
5
6
|
export * from './BankDetailsServiceEntity';
|
|
6
7
|
export * from './BillingAddressDto';
|
|
@@ -42,6 +43,7 @@ export * from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
|
42
43
|
export * from './CreateMerchantCredentialsDto';
|
|
43
44
|
export * from './CreateMerchantDto';
|
|
44
45
|
export * from './CreatePaymentMethodDto';
|
|
46
|
+
export * from './CreatePaymentMethodSessionDto';
|
|
45
47
|
export * from './CreateProvisionedCardTokenByMerchantDto';
|
|
46
48
|
export * from './CreateProvisionedCardTokenDto';
|
|
47
49
|
export * from './CreateServicePaymentMethodDto';
|
|
@@ -78,9 +80,13 @@ export * from './PaymentMethodDto';
|
|
|
78
80
|
export * from './PaymentMethodEntity';
|
|
79
81
|
export * from './PaymentMethodFeeDetailsEntity';
|
|
80
82
|
export * from './PaymentMethodServiceEntity';
|
|
83
|
+
export * from './PaymentMethodSessionAttemptEntity';
|
|
84
|
+
export * from './PaymentMethodSessionBaseEntity';
|
|
85
|
+
export * from './PaymentMethodSessionEntity';
|
|
81
86
|
export * from './PaymentMethodsSearchEntity';
|
|
82
87
|
export * from './ReturnNotificationEntity';
|
|
83
88
|
export * from './ReturnNotificationsSearchEntity';
|
|
89
|
+
export * from './SessionPaymentMethodEntity';
|
|
84
90
|
export * from './TagDto';
|
|
85
91
|
export * from './TagEntity';
|
|
86
92
|
export * from './TransactionEntity';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AddressEntity"), exports);
|
|
20
20
|
__exportStar(require("./AdminCreateTransactionRefundDto"), exports);
|
|
21
21
|
__exportStar(require("./AdminVoidTransactionDto"), exports);
|
|
22
|
+
__exportStar(require("./AuthorizedPaymentInstrumentsEntity"), exports);
|
|
22
23
|
__exportStar(require("./AvailablePaymentMethodEntity"), exports);
|
|
23
24
|
__exportStar(require("./BankDetailsServiceEntity"), exports);
|
|
24
25
|
__exportStar(require("./BillingAddressDto"), exports);
|
|
@@ -60,6 +61,7 @@ __exportStar(require("./CreateMerchantConnectorWithoutMerchantAccountIdDto"), ex
|
|
|
60
61
|
__exportStar(require("./CreateMerchantCredentialsDto"), exports);
|
|
61
62
|
__exportStar(require("./CreateMerchantDto"), exports);
|
|
62
63
|
__exportStar(require("./CreatePaymentMethodDto"), exports);
|
|
64
|
+
__exportStar(require("./CreatePaymentMethodSessionDto"), exports);
|
|
63
65
|
__exportStar(require("./CreateProvisionedCardTokenByMerchantDto"), exports);
|
|
64
66
|
__exportStar(require("./CreateProvisionedCardTokenDto"), exports);
|
|
65
67
|
__exportStar(require("./CreateServicePaymentMethodDto"), exports);
|
|
@@ -96,9 +98,13 @@ __exportStar(require("./PaymentMethodDto"), exports);
|
|
|
96
98
|
__exportStar(require("./PaymentMethodEntity"), exports);
|
|
97
99
|
__exportStar(require("./PaymentMethodFeeDetailsEntity"), exports);
|
|
98
100
|
__exportStar(require("./PaymentMethodServiceEntity"), exports);
|
|
101
|
+
__exportStar(require("./PaymentMethodSessionAttemptEntity"), exports);
|
|
102
|
+
__exportStar(require("./PaymentMethodSessionBaseEntity"), exports);
|
|
103
|
+
__exportStar(require("./PaymentMethodSessionEntity"), exports);
|
|
99
104
|
__exportStar(require("./PaymentMethodsSearchEntity"), exports);
|
|
100
105
|
__exportStar(require("./ReturnNotificationEntity"), exports);
|
|
101
106
|
__exportStar(require("./ReturnNotificationsSearchEntity"), exports);
|
|
107
|
+
__exportStar(require("./SessionPaymentMethodEntity"), exports);
|
|
102
108
|
__exportStar(require("./TagDto"), exports);
|
|
103
109
|
__exportStar(require("./TagEntity"), exports);
|
|
104
110
|
__exportStar(require("./TransactionEntity"), exports);
|
package/dist/cjs/runtime.js
CHANGED
|
@@ -114,7 +114,7 @@ class BaseAPI {
|
|
|
114
114
|
createFetchParams(context) {
|
|
115
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
116
|
Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
|
|
117
|
-
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.
|
|
117
|
+
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.192.0";
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import * as runtime from '../runtime';
|
|
8
|
-
import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, MerchantFeeDetailsEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
8
|
+
import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreatePaymentMethodSessionDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, MerchantFeeDetailsEntity, PaymentMethodEntity, PaymentMethodSessionEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
|
|
9
9
|
export interface GetFeeDetailsRequest {
|
|
10
10
|
amount: string;
|
|
11
11
|
}
|
|
12
12
|
export interface SearchBuyersRequest {
|
|
13
|
-
merchantId
|
|
13
|
+
merchantId?: string;
|
|
14
14
|
buyerId?: string;
|
|
15
15
|
externalBuyerId?: string;
|
|
16
16
|
startDate?: string;
|
|
@@ -126,14 +126,19 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
126
126
|
* Create checkout session
|
|
127
127
|
*/
|
|
128
128
|
createCheckoutSession(createCheckoutSessionDto: CreateCheckoutSessionDto): Promise<CheckoutSessionEntity>;
|
|
129
|
+
/**
|
|
130
|
+
* Create a new payment method session.
|
|
131
|
+
* Create payment method session.
|
|
132
|
+
*/
|
|
133
|
+
createPaymentMethodSession(createPaymentMethodSessionDto: CreatePaymentMethodSessionDto): Promise<PaymentMethodSessionEntity>;
|
|
129
134
|
/**
|
|
130
135
|
* Attempts to create a new transaction by specified intent for a given payment method
|
|
131
136
|
* Create transaction
|
|
132
137
|
*/
|
|
133
138
|
createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, idempotencyKey?: string): Promise<TransactionEntity>;
|
|
134
139
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
140
|
+
* Deletes a buyer by buyer ID.
|
|
141
|
+
* Delete buyer.
|
|
137
142
|
*/
|
|
138
143
|
deleteBuyer(buyerId: string): Promise<BuyersEntity>;
|
|
139
144
|
/**
|
|
@@ -186,6 +191,11 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
186
191
|
* Find by payment method.
|
|
187
192
|
*/
|
|
188
193
|
getPaymentMethod(paymentMethodId: string): Promise<PaymentMethodEntity>;
|
|
194
|
+
/**
|
|
195
|
+
* Find a payment method session by session ID.
|
|
196
|
+
* Find payment method session.
|
|
197
|
+
*/
|
|
198
|
+
getPaymentMethodSession(sessionId: string): Promise<PaymentMethodSessionEntity>;
|
|
189
199
|
/**
|
|
190
200
|
* Attempts to find refund by transaction ID and refund ID
|
|
191
201
|
* Find refund
|
|
@@ -281,8 +291,6 @@ export type SearchPaymentMethodsMethodEnum = typeof SearchPaymentMethodsMethodEn
|
|
|
281
291
|
*/
|
|
282
292
|
export declare const SearchPaymentMethodsCurrencyEnum: {
|
|
283
293
|
readonly Usd: "USD";
|
|
284
|
-
readonly Aud: "AUD";
|
|
285
|
-
readonly Cad: "CAD";
|
|
286
294
|
};
|
|
287
295
|
export type SearchPaymentMethodsCurrencyEnum = typeof SearchPaymentMethodsCurrencyEnum[keyof typeof SearchPaymentMethodsCurrencyEnum];
|
|
288
296
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import * as runtime from '../runtime';
|
|
10
|
-
import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, ChangeNotificationEntityFromJSON, ChangeNotificationsSearchEntityFromJSON, CheckoutSessionEntityFromJSON, ConnectorServiceTokenEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreateProvisionedCardTokenDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, MerchantFeeDetailsEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, ReturnNotificationEntityFromJSON, ReturnNotificationsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
|
|
10
|
+
import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, ChangeNotificationEntityFromJSON, ChangeNotificationsSearchEntityFromJSON, CheckoutSessionEntityFromJSON, ConnectorServiceTokenEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreatePaymentMethodSessionDtoToJSON, CreateProvisionedCardTokenDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, MerchantFeeDetailsEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodSessionEntityFromJSON, PaymentMethodsSearchEntityFromJSON, ReturnNotificationEntityFromJSON, ReturnNotificationsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
@@ -373,6 +373,76 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
373
373
|
}
|
|
374
374
|
return await response.value();
|
|
375
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Create a new payment method session.
|
|
378
|
+
* Create payment method session.
|
|
379
|
+
*/
|
|
380
|
+
async createPaymentMethodSession(createPaymentMethodSessionDto) {
|
|
381
|
+
if (createPaymentMethodSessionDto === null || createPaymentMethodSessionDto === undefined) {
|
|
382
|
+
throw new runtime.RequiredError('createPaymentMethodSessionDto', 'Required parameter \'createPaymentMethodSessionDto\' was null or undefined when calling createPaymentMethodSession.');
|
|
383
|
+
}
|
|
384
|
+
if (createPaymentMethodSessionDto.origin === null || createPaymentMethodSessionDto.origin === undefined) {
|
|
385
|
+
throw new runtime.RequiredError('createPaymentMethodSessionDto.origin', 'Required parameter \'createPaymentMethodSessionDto.origin\' was null or undefined when calling createPaymentMethodSession.');
|
|
386
|
+
}
|
|
387
|
+
const queryParameters = {};
|
|
388
|
+
const headerParameters = {};
|
|
389
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
390
|
+
const rawResponse = await this.request({
|
|
391
|
+
path: `/payment-method-sessions`,
|
|
392
|
+
method: 'POST',
|
|
393
|
+
headers: headerParameters,
|
|
394
|
+
query: queryParameters,
|
|
395
|
+
body: CreatePaymentMethodSessionDtoToJSON(createPaymentMethodSessionDto),
|
|
396
|
+
});
|
|
397
|
+
let response;
|
|
398
|
+
if (rawResponse.status === 201) {
|
|
399
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => PaymentMethodSessionEntityFromJSON(jsonValue));
|
|
400
|
+
}
|
|
401
|
+
if (rawResponse.status === 400) {
|
|
402
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
403
|
+
const error = await errorResponse.value();
|
|
404
|
+
throw error;
|
|
405
|
+
}
|
|
406
|
+
if (rawResponse.status === 401) {
|
|
407
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
408
|
+
const error = await errorResponse.value();
|
|
409
|
+
throw error;
|
|
410
|
+
}
|
|
411
|
+
if (rawResponse.status === 403) {
|
|
412
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
413
|
+
const error = await errorResponse.value();
|
|
414
|
+
throw error;
|
|
415
|
+
}
|
|
416
|
+
if (rawResponse.status === 404) {
|
|
417
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
418
|
+
const error = await errorResponse.value();
|
|
419
|
+
throw error;
|
|
420
|
+
}
|
|
421
|
+
if (rawResponse.status === 500) {
|
|
422
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
423
|
+
const error = await errorResponse.value();
|
|
424
|
+
throw error;
|
|
425
|
+
}
|
|
426
|
+
if (rawResponse.status === 502) {
|
|
427
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
428
|
+
const error = await errorResponse.value();
|
|
429
|
+
throw error;
|
|
430
|
+
}
|
|
431
|
+
if (rawResponse.status === 503) {
|
|
432
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
433
|
+
const error = await errorResponse.value();
|
|
434
|
+
throw error;
|
|
435
|
+
}
|
|
436
|
+
if (rawResponse.status === 504) {
|
|
437
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
438
|
+
const error = await errorResponse.value();
|
|
439
|
+
throw error;
|
|
440
|
+
}
|
|
441
|
+
if (!response) {
|
|
442
|
+
response = new runtime.TextApiResponse(rawResponse);
|
|
443
|
+
}
|
|
444
|
+
return await response.value();
|
|
445
|
+
}
|
|
376
446
|
/**
|
|
377
447
|
* Attempts to create a new transaction by specified intent for a given payment method
|
|
378
448
|
* Create transaction
|
|
@@ -456,8 +526,8 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
456
526
|
return await response.value();
|
|
457
527
|
}
|
|
458
528
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
529
|
+
* Deletes a buyer by buyer ID.
|
|
530
|
+
* Delete buyer.
|
|
461
531
|
*/
|
|
462
532
|
async deleteBuyer(buyerId) {
|
|
463
533
|
if (buyerId === null || buyerId === undefined) {
|
|
@@ -1167,6 +1237,71 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1167
1237
|
}
|
|
1168
1238
|
return await response.value();
|
|
1169
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Find a payment method session by session ID.
|
|
1242
|
+
* Find payment method session.
|
|
1243
|
+
*/
|
|
1244
|
+
async getPaymentMethodSession(sessionId) {
|
|
1245
|
+
if (sessionId === null || sessionId === undefined) {
|
|
1246
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter \'sessionId\' was null or undefined when calling getPaymentMethodSession.');
|
|
1247
|
+
}
|
|
1248
|
+
const queryParameters = {};
|
|
1249
|
+
const headerParameters = {};
|
|
1250
|
+
const rawResponse = await this.request({
|
|
1251
|
+
path: `/payment-method-sessions/{sessionId}`.replace(`{${"sessionId"}}`, encodeURIComponent(sessionId)),
|
|
1252
|
+
method: 'GET',
|
|
1253
|
+
headers: headerParameters,
|
|
1254
|
+
query: queryParameters,
|
|
1255
|
+
});
|
|
1256
|
+
let response;
|
|
1257
|
+
if (rawResponse.status === 200) {
|
|
1258
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => PaymentMethodSessionEntityFromJSON(jsonValue));
|
|
1259
|
+
}
|
|
1260
|
+
if (rawResponse.status === 400) {
|
|
1261
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1262
|
+
const error = await errorResponse.value();
|
|
1263
|
+
throw error;
|
|
1264
|
+
}
|
|
1265
|
+
if (rawResponse.status === 401) {
|
|
1266
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1267
|
+
const error = await errorResponse.value();
|
|
1268
|
+
throw error;
|
|
1269
|
+
}
|
|
1270
|
+
if (rawResponse.status === 403) {
|
|
1271
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1272
|
+
const error = await errorResponse.value();
|
|
1273
|
+
throw error;
|
|
1274
|
+
}
|
|
1275
|
+
if (rawResponse.status === 404) {
|
|
1276
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1277
|
+
const error = await errorResponse.value();
|
|
1278
|
+
throw error;
|
|
1279
|
+
}
|
|
1280
|
+
if (rawResponse.status === 500) {
|
|
1281
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1282
|
+
const error = await errorResponse.value();
|
|
1283
|
+
throw error;
|
|
1284
|
+
}
|
|
1285
|
+
if (rawResponse.status === 502) {
|
|
1286
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1287
|
+
const error = await errorResponse.value();
|
|
1288
|
+
throw error;
|
|
1289
|
+
}
|
|
1290
|
+
if (rawResponse.status === 503) {
|
|
1291
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1292
|
+
const error = await errorResponse.value();
|
|
1293
|
+
throw error;
|
|
1294
|
+
}
|
|
1295
|
+
if (rawResponse.status === 504) {
|
|
1296
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
|
|
1297
|
+
const error = await errorResponse.value();
|
|
1298
|
+
throw error;
|
|
1299
|
+
}
|
|
1300
|
+
if (!response) {
|
|
1301
|
+
response = new runtime.TextApiResponse(rawResponse);
|
|
1302
|
+
}
|
|
1303
|
+
return await response.value();
|
|
1304
|
+
}
|
|
1170
1305
|
/**
|
|
1171
1306
|
* Attempts to find refund by transaction ID and refund ID
|
|
1172
1307
|
* Find refund
|
|
@@ -1451,9 +1586,6 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1451
1586
|
* Search a buyer
|
|
1452
1587
|
*/
|
|
1453
1588
|
async searchBuyers(requestParameters) {
|
|
1454
|
-
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
1455
|
-
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchBuyers.');
|
|
1456
|
-
}
|
|
1457
1589
|
const queryParameters = {};
|
|
1458
1590
|
if (requestParameters.merchantId !== undefined) {
|
|
1459
1591
|
queryParameters['merchantId'] = requestParameters.merchantId;
|
|
@@ -2289,9 +2421,7 @@ export const SearchPaymentMethodsMethodEnum = {
|
|
|
2289
2421
|
* @export
|
|
2290
2422
|
*/
|
|
2291
2423
|
export const SearchPaymentMethodsCurrencyEnum = {
|
|
2292
|
-
Usd: 'USD'
|
|
2293
|
-
Aud: 'AUD',
|
|
2294
|
-
Cad: 'CAD'
|
|
2424
|
+
Usd: 'USD'
|
|
2295
2425
|
};
|
|
2296
2426
|
/**
|
|
2297
2427
|
* @export
|
|
@@ -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 AuthorizedPaymentInstrumentsEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface AuthorizedPaymentInstrumentsEntity {
|
|
13
|
+
/**
|
|
14
|
+
* Indicates if card payment methods are authorized.
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
* @memberof AuthorizedPaymentInstrumentsEntity
|
|
17
|
+
*/
|
|
18
|
+
card: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates if ACH payment methods are authorized.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AuthorizedPaymentInstrumentsEntity
|
|
23
|
+
*/
|
|
24
|
+
ach: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AuthorizedPaymentInstrumentsEntity interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAuthorizedPaymentInstrumentsEntity(value: object): boolean;
|
|
30
|
+
export declare function AuthorizedPaymentInstrumentsEntityFromJSON(json: any): AuthorizedPaymentInstrumentsEntity;
|
|
31
|
+
export declare function AuthorizedPaymentInstrumentsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizedPaymentInstrumentsEntity;
|
|
32
|
+
export declare function AuthorizedPaymentInstrumentsEntityToJSON(value?: AuthorizedPaymentInstrumentsEntity | null): any;
|