@channelpayments/node-sdk 1.185.0 → 1.187.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 +1 -1
- package/dist/cjs/apis/ChannelPaymentsApi.js +0 -3
- package/dist/cjs/models/BillingAddressEntity.d.ts +68 -0
- package/dist/cjs/models/BillingAddressEntity.js +66 -0
- package/dist/cjs/models/BillingDetailsDto.d.ts +45 -0
- package/dist/cjs/models/BillingDetailsDto.js +56 -0
- package/dist/cjs/models/BillingDetailsEntity.d.ts +45 -0
- package/dist/cjs/models/BillingDetailsEntity.js +56 -0
- package/dist/cjs/models/CreateServicePaymentMethodDto.d.ts +109 -0
- package/dist/cjs/models/CreateServicePaymentMethodDto.js +84 -0
- package/dist/cjs/models/CreateStoredCardPaymentMethodDto.d.ts +69 -0
- package/dist/cjs/models/{CreateStoredCardPaymentMethod.js → CreateStoredCardPaymentMethodDto.js} +15 -10
- package/dist/cjs/models/PaymentMethodEntity.d.ts +13 -0
- package/dist/cjs/models/PaymentMethodEntity.js +5 -0
- package/dist/cjs/models/PaymentMethodServiceEntity.d.ts +13 -0
- package/dist/cjs/models/PaymentMethodServiceEntity.js +5 -0
- package/dist/cjs/models/index.d.ts +5 -1
- package/dist/cjs/models/index.js +5 -1
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +1 -1
- package/dist/mjs/apis/ChannelPaymentsApi.js +0 -3
- package/dist/mjs/models/BillingAddressEntity.d.ts +68 -0
- package/dist/mjs/models/BillingAddressEntity.js +60 -0
- package/dist/mjs/models/BillingDetailsDto.d.ts +45 -0
- package/dist/mjs/models/BillingDetailsDto.js +50 -0
- package/dist/mjs/models/BillingDetailsEntity.d.ts +45 -0
- package/dist/mjs/models/BillingDetailsEntity.js +50 -0
- package/dist/mjs/models/CreateServicePaymentMethodDto.d.ts +109 -0
- package/dist/mjs/models/CreateServicePaymentMethodDto.js +77 -0
- package/dist/mjs/models/CreateStoredCardPaymentMethodDto.d.ts +69 -0
- package/dist/mjs/models/{CreateStoredCardPaymentMethod.js → CreateStoredCardPaymentMethodDto.js} +11 -6
- package/dist/mjs/models/PaymentMethodEntity.d.ts +13 -0
- package/dist/mjs/models/PaymentMethodEntity.js +5 -0
- package/dist/mjs/models/PaymentMethodServiceEntity.d.ts +13 -0
- package/dist/mjs/models/PaymentMethodServiceEntity.js +5 -0
- package/dist/mjs/models/index.d.ts +5 -1
- package/dist/mjs/models/index.js +5 -1
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/CreateStoredCardPaymentMethod.d.ts +0 -56
- package/dist/mjs/models/CreateStoredCardPaymentMethod.d.ts +0 -56
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import type { BankDetailsServiceEntity } from './BankDetailsServiceEntity';
|
|
8
|
+
import type { BillingDetailsEntity } from './BillingDetailsEntity';
|
|
8
9
|
import type { BuyerEntity } from './BuyerEntity';
|
|
9
10
|
import type { CardDetailsServiceEntity } from './CardDetailsServiceEntity';
|
|
10
11
|
import type { ConnectorServiceTokenEntity } from './ConnectorServiceTokenEntity';
|
|
@@ -128,6 +129,18 @@ export interface PaymentMethodEntity {
|
|
|
128
129
|
* @memberof PaymentMethodEntity
|
|
129
130
|
*/
|
|
130
131
|
paymentMethodIntegrationId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The billing details of the account holder.
|
|
134
|
+
* @type {BillingDetailsEntity}
|
|
135
|
+
* @memberof PaymentMethodEntity
|
|
136
|
+
*/
|
|
137
|
+
billingDetails?: BillingDetailsEntity;
|
|
138
|
+
/**
|
|
139
|
+
* If the customer initiated the payment method creation or not.
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof PaymentMethodEntity
|
|
142
|
+
*/
|
|
143
|
+
isCustomerStored?: boolean;
|
|
131
144
|
}
|
|
132
145
|
/**
|
|
133
146
|
* @export
|
|
@@ -15,6 +15,7 @@ exports.PaymentMethodEntityFromJSONTyped = PaymentMethodEntityFromJSONTyped;
|
|
|
15
15
|
exports.PaymentMethodEntityToJSON = PaymentMethodEntityToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
17
|
const BankDetailsServiceEntity_1 = require("./BankDetailsServiceEntity");
|
|
18
|
+
const BillingDetailsEntity_1 = require("./BillingDetailsEntity");
|
|
18
19
|
const BuyerEntity_1 = require("./BuyerEntity");
|
|
19
20
|
const CardDetailsServiceEntity_1 = require("./CardDetailsServiceEntity");
|
|
20
21
|
const ConnectorServiceTokenEntity_1 = require("./ConnectorServiceTokenEntity");
|
|
@@ -82,6 +83,8 @@ function PaymentMethodEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
83
|
'paymentMethodCreatedAt': !(0, runtime_1.exists)(json, 'paymentMethodCreatedAt') ? undefined : (new Date(json['paymentMethodCreatedAt'])),
|
|
83
84
|
'paymentMethodUpdatedAt': !(0, runtime_1.exists)(json, 'paymentMethodUpdatedAt') ? undefined : (new Date(json['paymentMethodUpdatedAt'])),
|
|
84
85
|
'paymentMethodIntegrationId': !(0, runtime_1.exists)(json, 'paymentMethodIntegrationId') ? undefined : json['paymentMethodIntegrationId'],
|
|
86
|
+
'billingDetails': !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsEntity_1.BillingDetailsEntityFromJSON)(json['billingDetails']),
|
|
87
|
+
'isCustomerStored': !(0, runtime_1.exists)(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
85
88
|
};
|
|
86
89
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
87
90
|
}
|
|
@@ -112,5 +115,7 @@ function PaymentMethodEntityToJSON(value) {
|
|
|
112
115
|
'paymentMethodCreatedAt': value.paymentMethodCreatedAt === undefined ? undefined : (value.paymentMethodCreatedAt.toISOString()),
|
|
113
116
|
'paymentMethodUpdatedAt': value.paymentMethodUpdatedAt === undefined ? undefined : (value.paymentMethodUpdatedAt.toISOString()),
|
|
114
117
|
'paymentMethodIntegrationId': value.paymentMethodIntegrationId,
|
|
118
|
+
'billingDetails': (0, BillingDetailsEntity_1.BillingDetailsEntityToJSON)(value.billingDetails),
|
|
119
|
+
'isCustomerStored': value.isCustomerStored,
|
|
115
120
|
};
|
|
116
121
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
import type { BankDetailsServiceEntity } from './BankDetailsServiceEntity';
|
|
8
|
+
import type { BillingDetailsEntity } from './BillingDetailsEntity';
|
|
8
9
|
import type { BuyerEntity } from './BuyerEntity';
|
|
9
10
|
import type { CardDetailsServiceEntity } from './CardDetailsServiceEntity';
|
|
10
11
|
import type { ConnectorServiceTokenEntity } from './ConnectorServiceTokenEntity';
|
|
@@ -128,6 +129,18 @@ export interface PaymentMethodServiceEntity {
|
|
|
128
129
|
* @memberof PaymentMethodServiceEntity
|
|
129
130
|
*/
|
|
130
131
|
paymentMethodIntegrationId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The billing details of the account holder.
|
|
134
|
+
* @type {BillingDetailsEntity}
|
|
135
|
+
* @memberof PaymentMethodServiceEntity
|
|
136
|
+
*/
|
|
137
|
+
billingDetails?: BillingDetailsEntity;
|
|
138
|
+
/**
|
|
139
|
+
* If the customer initiated the payment method creation or not.
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof PaymentMethodServiceEntity
|
|
142
|
+
*/
|
|
143
|
+
isCustomerStored?: boolean;
|
|
131
144
|
}
|
|
132
145
|
/**
|
|
133
146
|
* @export
|
|
@@ -15,6 +15,7 @@ exports.PaymentMethodServiceEntityFromJSONTyped = PaymentMethodServiceEntityFrom
|
|
|
15
15
|
exports.PaymentMethodServiceEntityToJSON = PaymentMethodServiceEntityToJSON;
|
|
16
16
|
const runtime_1 = require("../runtime");
|
|
17
17
|
const BankDetailsServiceEntity_1 = require("./BankDetailsServiceEntity");
|
|
18
|
+
const BillingDetailsEntity_1 = require("./BillingDetailsEntity");
|
|
18
19
|
const BuyerEntity_1 = require("./BuyerEntity");
|
|
19
20
|
const CardDetailsServiceEntity_1 = require("./CardDetailsServiceEntity");
|
|
20
21
|
const ConnectorServiceTokenEntity_1 = require("./ConnectorServiceTokenEntity");
|
|
@@ -82,6 +83,8 @@ function PaymentMethodServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
83
|
'paymentMethodCreatedAt': !(0, runtime_1.exists)(json, 'paymentMethodCreatedAt') ? undefined : (new Date(json['paymentMethodCreatedAt'])),
|
|
83
84
|
'paymentMethodUpdatedAt': !(0, runtime_1.exists)(json, 'paymentMethodUpdatedAt') ? undefined : (new Date(json['paymentMethodUpdatedAt'])),
|
|
84
85
|
'paymentMethodIntegrationId': !(0, runtime_1.exists)(json, 'paymentMethodIntegrationId') ? undefined : json['paymentMethodIntegrationId'],
|
|
86
|
+
'billingDetails': !(0, runtime_1.exists)(json, 'billingDetails') ? undefined : (0, BillingDetailsEntity_1.BillingDetailsEntityFromJSON)(json['billingDetails']),
|
|
87
|
+
'isCustomerStored': !(0, runtime_1.exists)(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
85
88
|
};
|
|
86
89
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
87
90
|
}
|
|
@@ -112,5 +115,7 @@ function PaymentMethodServiceEntityToJSON(value) {
|
|
|
112
115
|
'paymentMethodCreatedAt': value.paymentMethodCreatedAt === undefined ? undefined : (value.paymentMethodCreatedAt.toISOString()),
|
|
113
116
|
'paymentMethodUpdatedAt': value.paymentMethodUpdatedAt === undefined ? undefined : (value.paymentMethodUpdatedAt.toISOString()),
|
|
114
117
|
'paymentMethodIntegrationId': value.paymentMethodIntegrationId,
|
|
118
|
+
'billingDetails': (0, BillingDetailsEntity_1.BillingDetailsEntityToJSON)(value.billingDetails),
|
|
119
|
+
'isCustomerStored': value.isCustomerStored,
|
|
115
120
|
};
|
|
116
121
|
}
|
|
@@ -4,6 +4,9 @@ export * from './AdminVoidTransactionDto';
|
|
|
4
4
|
export * from './AvailablePaymentMethodEntity';
|
|
5
5
|
export * from './BankDetailsServiceEntity';
|
|
6
6
|
export * from './BillingAddressDto';
|
|
7
|
+
export * from './BillingAddressEntity';
|
|
8
|
+
export * from './BillingDetailsDto';
|
|
9
|
+
export * from './BillingDetailsEntity';
|
|
7
10
|
export * from './BuyerEntity';
|
|
8
11
|
export * from './BuyersAddressEntity';
|
|
9
12
|
export * from './BuyersEntity';
|
|
@@ -41,7 +44,8 @@ export * from './CreateMerchantDto';
|
|
|
41
44
|
export * from './CreatePaymentMethodDto';
|
|
42
45
|
export * from './CreateProvisionedCardTokenByMerchantDto';
|
|
43
46
|
export * from './CreateProvisionedCardTokenDto';
|
|
44
|
-
export * from './
|
|
47
|
+
export * from './CreateServicePaymentMethodDto';
|
|
48
|
+
export * from './CreateStoredCardPaymentMethodDto';
|
|
45
49
|
export * from './CreateTransactionRefundDto';
|
|
46
50
|
export * from './CreateTransactionRequestDto';
|
|
47
51
|
export * from './CreateUserDto';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -22,6 +22,9 @@ __exportStar(require("./AdminVoidTransactionDto"), exports);
|
|
|
22
22
|
__exportStar(require("./AvailablePaymentMethodEntity"), exports);
|
|
23
23
|
__exportStar(require("./BankDetailsServiceEntity"), exports);
|
|
24
24
|
__exportStar(require("./BillingAddressDto"), exports);
|
|
25
|
+
__exportStar(require("./BillingAddressEntity"), exports);
|
|
26
|
+
__exportStar(require("./BillingDetailsDto"), exports);
|
|
27
|
+
__exportStar(require("./BillingDetailsEntity"), exports);
|
|
25
28
|
__exportStar(require("./BuyerEntity"), exports);
|
|
26
29
|
__exportStar(require("./BuyersAddressEntity"), exports);
|
|
27
30
|
__exportStar(require("./BuyersEntity"), exports);
|
|
@@ -59,7 +62,8 @@ __exportStar(require("./CreateMerchantDto"), exports);
|
|
|
59
62
|
__exportStar(require("./CreatePaymentMethodDto"), exports);
|
|
60
63
|
__exportStar(require("./CreateProvisionedCardTokenByMerchantDto"), exports);
|
|
61
64
|
__exportStar(require("./CreateProvisionedCardTokenDto"), exports);
|
|
62
|
-
__exportStar(require("./
|
|
65
|
+
__exportStar(require("./CreateServicePaymentMethodDto"), exports);
|
|
66
|
+
__exportStar(require("./CreateStoredCardPaymentMethodDto"), exports);
|
|
63
67
|
__exportStar(require("./CreateTransactionRefundDto"), exports);
|
|
64
68
|
__exportStar(require("./CreateTransactionRequestDto"), exports);
|
|
65
69
|
__exportStar(require("./CreateUserDto"), 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.187.0";
|
|
118
118
|
const token = this.generateAuthToken();
|
|
119
119
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
120
120
|
let url = this.url + context.path;
|
|
@@ -31,7 +31,7 @@ export interface SearchChangeNotificationsRequest {
|
|
|
31
31
|
cursor?: string;
|
|
32
32
|
}
|
|
33
33
|
export interface SearchPaymentMethodsRequest {
|
|
34
|
-
merchantId
|
|
34
|
+
merchantId?: string;
|
|
35
35
|
paymentMethodId?: string;
|
|
36
36
|
externalPaymentMethodId?: string;
|
|
37
37
|
accountHolderName?: string;
|
|
@@ -1632,9 +1632,6 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1632
1632
|
* Search payment methods.
|
|
1633
1633
|
*/
|
|
1634
1634
|
async searchPaymentMethods(requestParameters) {
|
|
1635
|
-
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
1636
|
-
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchPaymentMethods.');
|
|
1637
|
-
}
|
|
1638
1635
|
const queryParameters = {};
|
|
1639
1636
|
if (requestParameters.merchantId !== undefined) {
|
|
1640
1637
|
queryParameters['merchantId'] = requestParameters.merchantId;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 BillingAddressEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface BillingAddressEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The country of the account holder address.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof BillingAddressEntity
|
|
17
|
+
*/
|
|
18
|
+
country: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code of the account holder address.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BillingAddressEntity
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The subdivision of the account holder address.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BillingAddressEntity
|
|
29
|
+
*/
|
|
30
|
+
subdivision: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision code of the account holder address.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BillingAddressEntity
|
|
35
|
+
*/
|
|
36
|
+
subdivisionCode: string;
|
|
37
|
+
/**
|
|
38
|
+
* The city of the account holder address.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BillingAddressEntity
|
|
41
|
+
*/
|
|
42
|
+
city: string;
|
|
43
|
+
/**
|
|
44
|
+
* The street address of the account holder.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BillingAddressEntity
|
|
47
|
+
*/
|
|
48
|
+
streetAddress: string;
|
|
49
|
+
/**
|
|
50
|
+
* The postal code of the account holder address.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BillingAddressEntity
|
|
53
|
+
*/
|
|
54
|
+
postalCode: string;
|
|
55
|
+
/**
|
|
56
|
+
* The second line of the street address of the account holder.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof BillingAddressEntity
|
|
59
|
+
*/
|
|
60
|
+
streetAddress2?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the BillingAddressEntity interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfBillingAddressEntity(value: object): boolean;
|
|
66
|
+
export declare function BillingAddressEntityFromJSON(json: any): BillingAddressEntity;
|
|
67
|
+
export declare function BillingAddressEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAddressEntity;
|
|
68
|
+
export declare function BillingAddressEntityToJSON(value?: BillingAddressEntity | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
/**
|
|
11
|
+
* Check if a given object implements the BillingAddressEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfBillingAddressEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "country" in value;
|
|
16
|
+
isInstance = isInstance && "countryCode" in value;
|
|
17
|
+
isInstance = isInstance && "subdivision" in value;
|
|
18
|
+
isInstance = isInstance && "subdivisionCode" in value;
|
|
19
|
+
isInstance = isInstance && "city" in value;
|
|
20
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
21
|
+
isInstance = isInstance && "postalCode" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function BillingAddressEntityFromJSON(json) {
|
|
25
|
+
return BillingAddressEntityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function BillingAddressEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'country': json['country'],
|
|
33
|
+
'countryCode': json['countryCode'],
|
|
34
|
+
'subdivision': json['subdivision'],
|
|
35
|
+
'subdivisionCode': json['subdivisionCode'],
|
|
36
|
+
'city': json['city'],
|
|
37
|
+
'streetAddress': json['streetAddress'],
|
|
38
|
+
'postalCode': json['postalCode'],
|
|
39
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function BillingAddressEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'country': value.country,
|
|
52
|
+
'countryCode': value.countryCode,
|
|
53
|
+
'subdivision': value.subdivision,
|
|
54
|
+
'subdivisionCode': value.subdivisionCode,
|
|
55
|
+
'city': value.city,
|
|
56
|
+
'streetAddress': value.streetAddress,
|
|
57
|
+
'postalCode': value.postalCode,
|
|
58
|
+
'streetAddress2': value.streetAddress2,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BillingAddressDto } from './BillingAddressDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BillingDetailsDto
|
|
12
|
+
*/
|
|
13
|
+
export interface BillingDetailsDto {
|
|
14
|
+
/**
|
|
15
|
+
* The first name of the account holder.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BillingDetailsDto
|
|
18
|
+
*/
|
|
19
|
+
givenName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The last name of the account holder.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BillingDetailsDto
|
|
24
|
+
*/
|
|
25
|
+
familyName: string;
|
|
26
|
+
/**
|
|
27
|
+
* The email address of the account holder.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BillingDetailsDto
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
/**
|
|
33
|
+
* The address of the account holder.
|
|
34
|
+
* @type {BillingAddressDto}
|
|
35
|
+
* @memberof BillingDetailsDto
|
|
36
|
+
*/
|
|
37
|
+
billingAddress: BillingAddressDto;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the BillingDetailsDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfBillingDetailsDto(value: object): boolean;
|
|
43
|
+
export declare function BillingDetailsDtoFromJSON(json: any): BillingDetailsDto;
|
|
44
|
+
export declare function BillingDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetailsDto;
|
|
45
|
+
export declare function BillingDetailsDtoToJSON(value?: BillingDetailsDto | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BillingAddressDtoFromJSON, BillingAddressDtoToJSON, } from './BillingAddressDto';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the BillingDetailsDto interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfBillingDetailsDto(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "givenName" in value;
|
|
17
|
+
isInstance = isInstance && "familyName" in value;
|
|
18
|
+
isInstance = isInstance && "email" in value;
|
|
19
|
+
isInstance = isInstance && "billingAddress" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function BillingDetailsDtoFromJSON(json) {
|
|
23
|
+
return BillingDetailsDtoFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function BillingDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'givenName': json['givenName'],
|
|
31
|
+
'familyName': json['familyName'],
|
|
32
|
+
'email': json['email'],
|
|
33
|
+
'billingAddress': BillingAddressDtoFromJSON(json['billingAddress']),
|
|
34
|
+
};
|
|
35
|
+
return removeNullUndefined(typed);
|
|
36
|
+
}
|
|
37
|
+
export function BillingDetailsDtoToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'givenName': value.givenName,
|
|
46
|
+
'familyName': value.familyName,
|
|
47
|
+
'email': value.email,
|
|
48
|
+
'billingAddress': BillingAddressDtoToJSON(value.billingAddress),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BillingAddressEntity } from './BillingAddressEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BillingDetailsEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface BillingDetailsEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The first name of the account holder.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BillingDetailsEntity
|
|
18
|
+
*/
|
|
19
|
+
givenName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The last name of the account holder.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BillingDetailsEntity
|
|
24
|
+
*/
|
|
25
|
+
familyName: string;
|
|
26
|
+
/**
|
|
27
|
+
* The email address of the account holder.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BillingDetailsEntity
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
/**
|
|
33
|
+
* The address of the account holder.
|
|
34
|
+
* @type {BillingAddressEntity}
|
|
35
|
+
* @memberof BillingDetailsEntity
|
|
36
|
+
*/
|
|
37
|
+
billingAddress: BillingAddressEntity;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the BillingDetailsEntity interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfBillingDetailsEntity(value: object): boolean;
|
|
43
|
+
export declare function BillingDetailsEntityFromJSON(json: any): BillingDetailsEntity;
|
|
44
|
+
export declare function BillingDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetailsEntity;
|
|
45
|
+
export declare function BillingDetailsEntityToJSON(value?: BillingDetailsEntity | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BillingAddressEntityFromJSON, BillingAddressEntityToJSON, } from './BillingAddressEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the BillingDetailsEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfBillingDetailsEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "givenName" in value;
|
|
17
|
+
isInstance = isInstance && "familyName" in value;
|
|
18
|
+
isInstance = isInstance && "email" in value;
|
|
19
|
+
isInstance = isInstance && "billingAddress" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function BillingDetailsEntityFromJSON(json) {
|
|
23
|
+
return BillingDetailsEntityFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function BillingDetailsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'givenName': json['givenName'],
|
|
31
|
+
'familyName': json['familyName'],
|
|
32
|
+
'email': json['email'],
|
|
33
|
+
'billingAddress': BillingAddressEntityFromJSON(json['billingAddress']),
|
|
34
|
+
};
|
|
35
|
+
return removeNullUndefined(typed);
|
|
36
|
+
}
|
|
37
|
+
export function BillingDetailsEntityToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'givenName': value.givenName,
|
|
46
|
+
'familyName': value.familyName,
|
|
47
|
+
'email': value.email,
|
|
48
|
+
'billingAddress': BillingAddressEntityToJSON(value.billingAddress),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BillingDetailsDto } from './BillingDetailsDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateServicePaymentMethodDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateServicePaymentMethodDto {
|
|
14
|
+
/**
|
|
15
|
+
* The payment method
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateServicePaymentMethodDto
|
|
18
|
+
*/
|
|
19
|
+
method: CreateServicePaymentMethodDtoMethodEnum;
|
|
20
|
+
/**
|
|
21
|
+
* The 13 - 19 digit card number. Must be unset if method is not CARD.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateServicePaymentMethodDto
|
|
24
|
+
*/
|
|
25
|
+
number?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The expiration date of the card, formatted MM/YY, Must be unset if method is not CARD.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateServicePaymentMethodDto
|
|
30
|
+
*/
|
|
31
|
+
expirationDate?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The routing number of the bank account. Must be unset if method is not BANK_ACCOUNT.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateServicePaymentMethodDto
|
|
36
|
+
*/
|
|
37
|
+
abaNumber?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The account number of the bank account. Must be unset if method is not BANK_ACCOUNT.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateServicePaymentMethodDto
|
|
42
|
+
*/
|
|
43
|
+
accountNumber?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The account type of the bank account. Must be unset if method is not BANK_ACCOUNT.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateServicePaymentMethodDto
|
|
48
|
+
*/
|
|
49
|
+
accountType?: CreateServicePaymentMethodDtoAccountTypeEnum;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the account holder of the bank account. Must be unset if method is not BANK_ACCOUNT.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateServicePaymentMethodDto
|
|
54
|
+
*/
|
|
55
|
+
accountHolderName?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The external ID of the buyer to associate the payment to
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CreateServicePaymentMethodDto
|
|
60
|
+
*/
|
|
61
|
+
externalBuyerId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The Channel Payments ID of the buyer to associate the payment to
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CreateServicePaymentMethodDto
|
|
66
|
+
*/
|
|
67
|
+
buyerId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* An external ID to match the card against your own records
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CreateServicePaymentMethodDto
|
|
72
|
+
*/
|
|
73
|
+
externalPaymentMethodId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The billing details of the account holder.
|
|
76
|
+
* @type {BillingDetailsDto}
|
|
77
|
+
* @memberof CreateServicePaymentMethodDto
|
|
78
|
+
*/
|
|
79
|
+
billingDetails?: BillingDetailsDto;
|
|
80
|
+
/**
|
|
81
|
+
* If the customer initiated the payment method creation or not.
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof CreateServicePaymentMethodDto
|
|
84
|
+
*/
|
|
85
|
+
isCustomerStored?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const CreateServicePaymentMethodDtoMethodEnum: {
|
|
91
|
+
readonly Card: "CARD";
|
|
92
|
+
readonly Bank: "BANK";
|
|
93
|
+
};
|
|
94
|
+
export type CreateServicePaymentMethodDtoMethodEnum = typeof CreateServicePaymentMethodDtoMethodEnum[keyof typeof CreateServicePaymentMethodDtoMethodEnum];
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const CreateServicePaymentMethodDtoAccountTypeEnum: {
|
|
99
|
+
readonly Checking: "CHECKING";
|
|
100
|
+
readonly Savings: "SAVINGS";
|
|
101
|
+
};
|
|
102
|
+
export type CreateServicePaymentMethodDtoAccountTypeEnum = typeof CreateServicePaymentMethodDtoAccountTypeEnum[keyof typeof CreateServicePaymentMethodDtoAccountTypeEnum];
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the CreateServicePaymentMethodDto interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfCreateServicePaymentMethodDto(value: object): boolean;
|
|
107
|
+
export declare function CreateServicePaymentMethodDtoFromJSON(json: any): CreateServicePaymentMethodDto;
|
|
108
|
+
export declare function CreateServicePaymentMethodDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServicePaymentMethodDto;
|
|
109
|
+
export declare function CreateServicePaymentMethodDtoToJSON(value?: CreateServicePaymentMethodDto | null): any;
|