@channelpayments/node-sdk 1.184.0 → 1.186.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
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BillingDetailsDtoFromJSON, BillingDetailsDtoToJSON, } from './BillingDetailsDto';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const CreateServicePaymentMethodDtoMethodEnum = {
|
|
15
|
+
Card: 'CARD',
|
|
16
|
+
Bank: 'BANK'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const CreateServicePaymentMethodDtoAccountTypeEnum = {
|
|
22
|
+
Checking: 'CHECKING',
|
|
23
|
+
Savings: 'SAVINGS'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateServicePaymentMethodDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfCreateServicePaymentMethodDto(value) {
|
|
29
|
+
let isInstance = true;
|
|
30
|
+
isInstance = isInstance && "method" in value;
|
|
31
|
+
return isInstance;
|
|
32
|
+
}
|
|
33
|
+
export function CreateServicePaymentMethodDtoFromJSON(json) {
|
|
34
|
+
return CreateServicePaymentMethodDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CreateServicePaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if ((json === undefined) || (json === null)) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
const typed = {
|
|
41
|
+
'method': json['method'],
|
|
42
|
+
'number': !exists(json, 'number') ? undefined : json['number'],
|
|
43
|
+
'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
44
|
+
'abaNumber': !exists(json, 'abaNumber') ? undefined : json['abaNumber'],
|
|
45
|
+
'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
|
|
46
|
+
'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
|
|
47
|
+
'accountHolderName': !exists(json, 'accountHolderName') ? undefined : json['accountHolderName'],
|
|
48
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
49
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
50
|
+
'externalPaymentMethodId': !exists(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
51
|
+
'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDtoFromJSON(json['billingDetails']),
|
|
52
|
+
'isCustomerStored': !exists(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
53
|
+
};
|
|
54
|
+
return removeNullUndefined(typed);
|
|
55
|
+
}
|
|
56
|
+
export function CreateServicePaymentMethodDtoToJSON(value) {
|
|
57
|
+
if (value === undefined) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
if (value === null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'method': value.method,
|
|
65
|
+
'number': value.number,
|
|
66
|
+
'expirationDate': value.expirationDate,
|
|
67
|
+
'abaNumber': value.abaNumber,
|
|
68
|
+
'accountNumber': value.accountNumber,
|
|
69
|
+
'accountType': value.accountType,
|
|
70
|
+
'accountHolderName': value.accountHolderName,
|
|
71
|
+
'externalBuyerId': value.externalBuyerId,
|
|
72
|
+
'buyerId': value.buyerId,
|
|
73
|
+
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
74
|
+
'billingDetails': BillingDetailsDtoToJSON(value.billingDetails),
|
|
75
|
+
'isCustomerStored': value.isCustomerStored,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CreateStoredCardPaymentMethodDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateStoredCardPaymentMethodDto {
|
|
14
|
+
/**
|
|
15
|
+
* The payment method id.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
18
|
+
*/
|
|
19
|
+
paymentMethodIntegrationId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The integration id.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
24
|
+
*/
|
|
25
|
+
integrationId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The merchant id.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
30
|
+
*/
|
|
31
|
+
merchantId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The buyer id.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
36
|
+
*/
|
|
37
|
+
buyerId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The external buyer id.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
42
|
+
*/
|
|
43
|
+
externalBuyerId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the account holder.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
48
|
+
*/
|
|
49
|
+
accountHolderName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The billing details of the account holder.
|
|
52
|
+
* @type {BillingDetailsDto}
|
|
53
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
54
|
+
*/
|
|
55
|
+
billingDetails?: BillingDetailsDto;
|
|
56
|
+
/**
|
|
57
|
+
* If the customer initiated the payment method creation or not.
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof CreateStoredCardPaymentMethodDto
|
|
60
|
+
*/
|
|
61
|
+
isCustomerStored?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the CreateStoredCardPaymentMethodDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfCreateStoredCardPaymentMethodDto(value: object): boolean;
|
|
67
|
+
export declare function CreateStoredCardPaymentMethodDtoFromJSON(json: any): CreateStoredCardPaymentMethodDto;
|
|
68
|
+
export declare function CreateStoredCardPaymentMethodDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStoredCardPaymentMethodDto;
|
|
69
|
+
export declare function CreateStoredCardPaymentMethodDtoToJSON(value?: CreateStoredCardPaymentMethodDto | null): any;
|
package/dist/mjs/models/{CreateStoredCardPaymentMethod.js → CreateStoredCardPaymentMethodDto.js}
RENAMED
|
@@ -7,20 +7,21 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BillingDetailsDtoFromJSON, BillingDetailsDtoToJSON, } from './BillingDetailsDto';
|
|
10
11
|
/**
|
|
11
|
-
* Check if a given object implements the
|
|
12
|
+
* Check if a given object implements the CreateStoredCardPaymentMethodDto interface.
|
|
12
13
|
*/
|
|
13
|
-
export function
|
|
14
|
+
export function instanceOfCreateStoredCardPaymentMethodDto(value) {
|
|
14
15
|
let isInstance = true;
|
|
15
16
|
isInstance = isInstance && "paymentMethodIntegrationId" in value;
|
|
16
17
|
isInstance = isInstance && "integrationId" in value;
|
|
17
18
|
isInstance = isInstance && "merchantId" in value;
|
|
18
19
|
return isInstance;
|
|
19
20
|
}
|
|
20
|
-
export function
|
|
21
|
-
return
|
|
21
|
+
export function CreateStoredCardPaymentMethodDtoFromJSON(json) {
|
|
22
|
+
return CreateStoredCardPaymentMethodDtoFromJSONTyped(json, false);
|
|
22
23
|
}
|
|
23
|
-
export function
|
|
24
|
+
export function CreateStoredCardPaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
25
|
if ((json === undefined) || (json === null)) {
|
|
25
26
|
return json;
|
|
26
27
|
}
|
|
@@ -31,10 +32,12 @@ export function CreateStoredCardPaymentMethodFromJSONTyped(json, ignoreDiscrimin
|
|
|
31
32
|
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
32
33
|
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
33
34
|
'accountHolderName': !exists(json, 'accountHolderName') ? undefined : json['accountHolderName'],
|
|
35
|
+
'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDtoFromJSON(json['billingDetails']),
|
|
36
|
+
'isCustomerStored': !exists(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
34
37
|
};
|
|
35
38
|
return removeNullUndefined(typed);
|
|
36
39
|
}
|
|
37
|
-
export function
|
|
40
|
+
export function CreateStoredCardPaymentMethodDtoToJSON(value) {
|
|
38
41
|
if (value === undefined) {
|
|
39
42
|
return undefined;
|
|
40
43
|
}
|
|
@@ -48,5 +51,7 @@ export function CreateStoredCardPaymentMethodToJSON(value) {
|
|
|
48
51
|
'buyerId': value.buyerId,
|
|
49
52
|
'externalBuyerId': value.externalBuyerId,
|
|
50
53
|
'accountHolderName': value.accountHolderName,
|
|
54
|
+
'billingDetails': BillingDetailsDtoToJSON(value.billingDetails),
|
|
55
|
+
'isCustomerStored': value.isCustomerStored,
|
|
51
56
|
};
|
|
52
57
|
}
|
|
@@ -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
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { BankDetailsServiceEntityFromJSON, BankDetailsServiceEntityToJSON, } from './BankDetailsServiceEntity';
|
|
11
|
+
import { BillingDetailsEntityFromJSON, BillingDetailsEntityToJSON, } from './BillingDetailsEntity';
|
|
11
12
|
import { BuyerEntityFromJSON, BuyerEntityToJSON, } from './BuyerEntity';
|
|
12
13
|
import { CardDetailsServiceEntityFromJSON, CardDetailsServiceEntityToJSON, } from './CardDetailsServiceEntity';
|
|
13
14
|
import { ConnectorServiceTokenEntityFromJSON, ConnectorServiceTokenEntityToJSON, } from './ConnectorServiceTokenEntity';
|
|
@@ -75,6 +76,8 @@ export function PaymentMethodEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
76
|
'paymentMethodCreatedAt': !exists(json, 'paymentMethodCreatedAt') ? undefined : (new Date(json['paymentMethodCreatedAt'])),
|
|
76
77
|
'paymentMethodUpdatedAt': !exists(json, 'paymentMethodUpdatedAt') ? undefined : (new Date(json['paymentMethodUpdatedAt'])),
|
|
77
78
|
'paymentMethodIntegrationId': !exists(json, 'paymentMethodIntegrationId') ? undefined : json['paymentMethodIntegrationId'],
|
|
79
|
+
'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsEntityFromJSON(json['billingDetails']),
|
|
80
|
+
'isCustomerStored': !exists(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
78
81
|
};
|
|
79
82
|
return removeNullUndefined(typed);
|
|
80
83
|
}
|
|
@@ -105,5 +108,7 @@ export function PaymentMethodEntityToJSON(value) {
|
|
|
105
108
|
'paymentMethodCreatedAt': value.paymentMethodCreatedAt === undefined ? undefined : (value.paymentMethodCreatedAt.toISOString()),
|
|
106
109
|
'paymentMethodUpdatedAt': value.paymentMethodUpdatedAt === undefined ? undefined : (value.paymentMethodUpdatedAt.toISOString()),
|
|
107
110
|
'paymentMethodIntegrationId': value.paymentMethodIntegrationId,
|
|
111
|
+
'billingDetails': BillingDetailsEntityToJSON(value.billingDetails),
|
|
112
|
+
'isCustomerStored': value.isCustomerStored,
|
|
108
113
|
};
|
|
109
114
|
}
|
|
@@ -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
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { BankDetailsServiceEntityFromJSON, BankDetailsServiceEntityToJSON, } from './BankDetailsServiceEntity';
|
|
11
|
+
import { BillingDetailsEntityFromJSON, BillingDetailsEntityToJSON, } from './BillingDetailsEntity';
|
|
11
12
|
import { BuyerEntityFromJSON, BuyerEntityToJSON, } from './BuyerEntity';
|
|
12
13
|
import { CardDetailsServiceEntityFromJSON, CardDetailsServiceEntityToJSON, } from './CardDetailsServiceEntity';
|
|
13
14
|
import { ConnectorServiceTokenEntityFromJSON, ConnectorServiceTokenEntityToJSON, } from './ConnectorServiceTokenEntity';
|
|
@@ -75,6 +76,8 @@ export function PaymentMethodServiceEntityFromJSONTyped(json, ignoreDiscriminato
|
|
|
75
76
|
'paymentMethodCreatedAt': !exists(json, 'paymentMethodCreatedAt') ? undefined : (new Date(json['paymentMethodCreatedAt'])),
|
|
76
77
|
'paymentMethodUpdatedAt': !exists(json, 'paymentMethodUpdatedAt') ? undefined : (new Date(json['paymentMethodUpdatedAt'])),
|
|
77
78
|
'paymentMethodIntegrationId': !exists(json, 'paymentMethodIntegrationId') ? undefined : json['paymentMethodIntegrationId'],
|
|
79
|
+
'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsEntityFromJSON(json['billingDetails']),
|
|
80
|
+
'isCustomerStored': !exists(json, 'isCustomerStored') ? undefined : json['isCustomerStored'],
|
|
78
81
|
};
|
|
79
82
|
return removeNullUndefined(typed);
|
|
80
83
|
}
|
|
@@ -105,5 +108,7 @@ export function PaymentMethodServiceEntityToJSON(value) {
|
|
|
105
108
|
'paymentMethodCreatedAt': value.paymentMethodCreatedAt === undefined ? undefined : (value.paymentMethodCreatedAt.toISOString()),
|
|
106
109
|
'paymentMethodUpdatedAt': value.paymentMethodUpdatedAt === undefined ? undefined : (value.paymentMethodUpdatedAt.toISOString()),
|
|
107
110
|
'paymentMethodIntegrationId': value.paymentMethodIntegrationId,
|
|
111
|
+
'billingDetails': BillingDetailsEntityToJSON(value.billingDetails),
|
|
112
|
+
'isCustomerStored': value.isCustomerStored,
|
|
108
113
|
};
|
|
109
114
|
}
|
|
@@ -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/mjs/models/index.js
CHANGED
|
@@ -6,6 +6,9 @@ export * from './AdminVoidTransactionDto';
|
|
|
6
6
|
export * from './AvailablePaymentMethodEntity';
|
|
7
7
|
export * from './BankDetailsServiceEntity';
|
|
8
8
|
export * from './BillingAddressDto';
|
|
9
|
+
export * from './BillingAddressEntity';
|
|
10
|
+
export * from './BillingDetailsDto';
|
|
11
|
+
export * from './BillingDetailsEntity';
|
|
9
12
|
export * from './BuyerEntity';
|
|
10
13
|
export * from './BuyersAddressEntity';
|
|
11
14
|
export * from './BuyersEntity';
|
|
@@ -43,7 +46,8 @@ export * from './CreateMerchantDto';
|
|
|
43
46
|
export * from './CreatePaymentMethodDto';
|
|
44
47
|
export * from './CreateProvisionedCardTokenByMerchantDto';
|
|
45
48
|
export * from './CreateProvisionedCardTokenDto';
|
|
46
|
-
export * from './
|
|
49
|
+
export * from './CreateServicePaymentMethodDto';
|
|
50
|
+
export * from './CreateStoredCardPaymentMethodDto';
|
|
47
51
|
export * from './CreateTransactionRefundDto';
|
|
48
52
|
export * from './CreateTransactionRequestDto';
|
|
49
53
|
export * from './CreateUserDto';
|
package/dist/mjs/runtime.js
CHANGED
|
@@ -64,7 +64,7 @@ export class BaseAPI {
|
|
|
64
64
|
}
|
|
65
65
|
async createFetchParams(context) {
|
|
66
66
|
Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
|
|
67
|
-
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.
|
|
67
|
+
context.headers['user-agent'] = "@channelpayments/node-sdk/v1.186.0";
|
|
68
68
|
const token = this.generateAuthToken();
|
|
69
69
|
context.headers['Authorization'] = `Bearer ${token}`;
|
|
70
70
|
let url = this.url + context.path;
|
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateStoredCardPaymentMethod
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateStoredCardPaymentMethod {
|
|
13
|
-
/**
|
|
14
|
-
* The payment method id.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
17
|
-
*/
|
|
18
|
-
paymentMethodIntegrationId: string;
|
|
19
|
-
/**
|
|
20
|
-
* The integration id.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
23
|
-
*/
|
|
24
|
-
integrationId: string;
|
|
25
|
-
/**
|
|
26
|
-
* The merchant id.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
29
|
-
*/
|
|
30
|
-
merchantId: string;
|
|
31
|
-
/**
|
|
32
|
-
* The buyer id.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
35
|
-
*/
|
|
36
|
-
buyerId?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The external buyer id.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
41
|
-
*/
|
|
42
|
-
externalBuyerId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The name of the account holder.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
47
|
-
*/
|
|
48
|
-
accountHolderName?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the CreateStoredCardPaymentMethod interface.
|
|
52
|
-
*/
|
|
53
|
-
export declare function instanceOfCreateStoredCardPaymentMethod(value: object): boolean;
|
|
54
|
-
export declare function CreateStoredCardPaymentMethodFromJSON(json: any): CreateStoredCardPaymentMethod;
|
|
55
|
-
export declare function CreateStoredCardPaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStoredCardPaymentMethod;
|
|
56
|
-
export declare function CreateStoredCardPaymentMethodToJSON(value?: CreateStoredCardPaymentMethod | null): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateStoredCardPaymentMethod
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateStoredCardPaymentMethod {
|
|
13
|
-
/**
|
|
14
|
-
* The payment method id.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
17
|
-
*/
|
|
18
|
-
paymentMethodIntegrationId: string;
|
|
19
|
-
/**
|
|
20
|
-
* The integration id.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
23
|
-
*/
|
|
24
|
-
integrationId: string;
|
|
25
|
-
/**
|
|
26
|
-
* The merchant id.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
29
|
-
*/
|
|
30
|
-
merchantId: string;
|
|
31
|
-
/**
|
|
32
|
-
* The buyer id.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
35
|
-
*/
|
|
36
|
-
buyerId?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The external buyer id.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
41
|
-
*/
|
|
42
|
-
externalBuyerId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The name of the account holder.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateStoredCardPaymentMethod
|
|
47
|
-
*/
|
|
48
|
-
accountHolderName?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the CreateStoredCardPaymentMethod interface.
|
|
52
|
-
*/
|
|
53
|
-
export declare function instanceOfCreateStoredCardPaymentMethod(value: object): boolean;
|
|
54
|
-
export declare function CreateStoredCardPaymentMethodFromJSON(json: any): CreateStoredCardPaymentMethod;
|
|
55
|
-
export declare function CreateStoredCardPaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStoredCardPaymentMethod;
|
|
56
|
-
export declare function CreateStoredCardPaymentMethodToJSON(value?: CreateStoredCardPaymentMethod | null): any;
|