@channelpayments/node-sdk 1.131.0 → 1.135.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/models/CreateMerchantAccountDto.d.ts +155 -0
- package/dist/cjs/models/CreateMerchantAccountDto.js +124 -0
- package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/cjs/models/CreateMerchantAccountDtoCFee.js +57 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
- package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/CreateMerchantDto.js +3 -3
- package/dist/cjs/models/MerchantAccountEntity.d.ts +166 -0
- package/dist/cjs/models/MerchantAccountEntity.js +139 -0
- package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/cjs/models/MerchantAccountEntityCFee.js +57 -0
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +3 -3
- package/dist/cjs/models/MerchantAccountServiceEntity.js +3 -3
- package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +136 -0
- package/dist/cjs/models/UpdateMerchantAccountDto.js +111 -0
- package/dist/cjs/models/UpdateMerchantDto.d.ts +3 -3
- package/dist/cjs/models/UpdateMerchantDto.js +3 -3
- package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
- package/dist/cjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +11 -11
- package/dist/cjs/models/index.d.ts +6 -3
- package/dist/cjs/models/index.js +6 -3
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CreateMerchantAccountDto.d.ts +155 -0
- package/dist/mjs/models/CreateMerchantAccountDto.js +117 -0
- package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js} +7 -7
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
- package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/CreateMerchantDto.js +3 -3
- package/dist/mjs/models/MerchantAccountEntity.d.ts +166 -0
- package/dist/mjs/models/MerchantAccountEntity.js +132 -0
- package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/mjs/models/{CreateMerchantAccountWithoutMerchantIdDtoCFee.js → MerchantAccountEntityCFee.js} +7 -7
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +3 -3
- package/dist/mjs/models/MerchantAccountServiceEntity.js +3 -3
- package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +136 -0
- package/dist/mjs/models/UpdateMerchantAccountDto.js +104 -0
- package/dist/mjs/models/UpdateMerchantDto.d.ts +3 -3
- package/dist/mjs/models/UpdateMerchantDto.js +3 -3
- package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
- package/dist/mjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +6 -6
- package/dist/mjs/models/index.d.ts +6 -3
- package/dist/mjs/models/index.js +6 -3
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +0 -57
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +0 -57
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
- package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
-
import {
|
|
10
|
+
import { UpdateMerchantDtoAddressFromJSON, UpdateMerchantDtoAddressToJSON, } from './UpdateMerchantDtoAddress';
|
|
11
11
|
/**
|
|
12
12
|
* Check if a given object implements the UpdateMerchantDto interface.
|
|
13
13
|
*/
|
|
@@ -27,7 +27,7 @@ export function UpdateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
28
28
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
29
29
|
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
30
|
-
'address': !exists(json, 'address') ? undefined :
|
|
30
|
+
'address': !exists(json, 'address') ? undefined : UpdateMerchantDtoAddressFromJSON(json['address']),
|
|
31
31
|
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
32
32
|
'merchantId': json['merchantId'],
|
|
33
33
|
'cancelRedirectUrl': !exists(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
@@ -47,7 +47,7 @@ export function UpdateMerchantDtoToJSON(value) {
|
|
|
47
47
|
'name': value.name,
|
|
48
48
|
'email': value.email,
|
|
49
49
|
'phoneNumber': value.phoneNumber,
|
|
50
|
-
'address':
|
|
50
|
+
'address': UpdateMerchantDtoAddressToJSON(value.address),
|
|
51
51
|
'website': value.website,
|
|
52
52
|
'merchantId': value.merchantId,
|
|
53
53
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts}
RENAMED
|
@@ -7,62 +7,62 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* The address of the merchant.
|
|
9
9
|
* @export
|
|
10
|
-
* @interface
|
|
10
|
+
* @interface UpdateMerchantDtoAddress
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
12
|
+
export interface UpdateMerchantDtoAddress {
|
|
13
13
|
/**
|
|
14
14
|
* The city of the merchant address.
|
|
15
15
|
* @type {string}
|
|
16
|
-
* @memberof
|
|
16
|
+
* @memberof UpdateMerchantDtoAddress
|
|
17
17
|
*/
|
|
18
18
|
city: string;
|
|
19
19
|
/**
|
|
20
20
|
* The country of the merchant address.
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof UpdateMerchantDtoAddress
|
|
23
23
|
*/
|
|
24
24
|
country: string;
|
|
25
25
|
/**
|
|
26
26
|
* The subdivision (state, province, or region) of the merchant address.
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof UpdateMerchantDtoAddress
|
|
29
29
|
*/
|
|
30
30
|
subdivision: string;
|
|
31
31
|
/**
|
|
32
32
|
* The street address of the merchant.
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof UpdateMerchantDtoAddress
|
|
35
35
|
*/
|
|
36
36
|
streetAddress: string;
|
|
37
37
|
/**
|
|
38
38
|
* The postal code of the merchant address.
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof UpdateMerchantDtoAddress
|
|
41
41
|
*/
|
|
42
42
|
postalCode: string;
|
|
43
43
|
/**
|
|
44
44
|
* The country code of the merchant address.
|
|
45
45
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof UpdateMerchantDtoAddress
|
|
47
47
|
*/
|
|
48
48
|
countryCode?: string;
|
|
49
49
|
/**
|
|
50
50
|
* The second line of the street address of the merchant.
|
|
51
51
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof UpdateMerchantDtoAddress
|
|
53
53
|
*/
|
|
54
54
|
streetAddress2?: string;
|
|
55
55
|
/**
|
|
56
56
|
* The optional subdivision code.
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof UpdateMerchantDtoAddress
|
|
59
59
|
*/
|
|
60
60
|
subdivisionCode?: string;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Check if a given object implements the
|
|
63
|
+
* Check if a given object implements the UpdateMerchantDtoAddress interface.
|
|
64
64
|
*/
|
|
65
|
-
export declare function
|
|
66
|
-
export declare function
|
|
67
|
-
export declare function
|
|
68
|
-
export declare function
|
|
65
|
+
export declare function instanceOfUpdateMerchantDtoAddress(value: object): boolean;
|
|
66
|
+
export declare function UpdateMerchantDtoAddressFromJSON(json: any): UpdateMerchantDtoAddress;
|
|
67
|
+
export declare function UpdateMerchantDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantDtoAddress;
|
|
68
|
+
export declare function UpdateMerchantDtoAddressToJSON(value?: UpdateMerchantDtoAddress | null): any;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
/**
|
|
11
|
-
* Check if a given object implements the
|
|
11
|
+
* Check if a given object implements the UpdateMerchantDtoAddress interface.
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
13
|
+
export function instanceOfUpdateMerchantDtoAddress(value) {
|
|
14
14
|
let isInstance = true;
|
|
15
15
|
isInstance = isInstance && "city" in value;
|
|
16
16
|
isInstance = isInstance && "country" in value;
|
|
@@ -19,10 +19,10 @@ export function instanceOfCreateMerchantDtoAddress(value) {
|
|
|
19
19
|
isInstance = isInstance && "postalCode" in value;
|
|
20
20
|
return isInstance;
|
|
21
21
|
}
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
22
|
+
export function UpdateMerchantDtoAddressFromJSON(json) {
|
|
23
|
+
return UpdateMerchantDtoAddressFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
25
|
+
export function UpdateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
26
|
if ((json === undefined) || (json === null)) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
@@ -38,7 +38,7 @@ export function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
};
|
|
39
39
|
return removeNullUndefined(typed);
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
41
|
+
export function UpdateMerchantDtoAddressToJSON(value) {
|
|
42
42
|
if (value === undefined) {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
@@ -34,15 +34,15 @@ export * from './CreateEventDomainDtoTransactions';
|
|
|
34
34
|
export * from './CreateEventDomainDtoUsers';
|
|
35
35
|
export * from './CreateFeatureDto';
|
|
36
36
|
export * from './CreateInitialUserDto';
|
|
37
|
+
export * from './CreateMerchantAccountDto';
|
|
38
|
+
export * from './CreateMerchantAccountDtoCFee';
|
|
37
39
|
export * from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
38
|
-
export * from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
|
|
39
40
|
export * from './CreateMerchantAddressDto';
|
|
40
41
|
export * from './CreateMerchantConnectorCredentialsDto';
|
|
41
42
|
export * from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
42
43
|
export * from './CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials';
|
|
43
44
|
export * from './CreateMerchantCredentialsDto';
|
|
44
45
|
export * from './CreateMerchantDto';
|
|
45
|
-
export * from './CreateMerchantDtoAddress';
|
|
46
46
|
export * from './CreatePaymentMethodDto';
|
|
47
47
|
export * from './CreateProvisionedCardTokenDto';
|
|
48
48
|
export * from './CreateStoredCardPaymentMethod';
|
|
@@ -56,8 +56,9 @@ export * from './CreateWebhookDtoEventDomains';
|
|
|
56
56
|
export * from './ErrorEntity';
|
|
57
57
|
export * from './FeatureEntity';
|
|
58
58
|
export * from './FeaturesEntity';
|
|
59
|
+
export * from './MerchantAccountEntity';
|
|
60
|
+
export * from './MerchantAccountEntityCFee';
|
|
59
61
|
export * from './MerchantAccountServiceEntity';
|
|
60
|
-
export * from './MerchantAccountServiceEntityCFee';
|
|
61
62
|
export * from './MerchantAddressEntity';
|
|
62
63
|
export * from './MerchantConnectorCredentialsServiceEntity';
|
|
63
64
|
export * from './MerchantConnectorServiceEntity';
|
|
@@ -89,8 +90,10 @@ export * from './TransactionReturnsSearchEntity';
|
|
|
89
90
|
export * from './TransactionsSearchEntity';
|
|
90
91
|
export * from './UpdateBuyerDto';
|
|
91
92
|
export * from './UpdateFeatureDto';
|
|
93
|
+
export * from './UpdateMerchantAccountDto';
|
|
92
94
|
export * from './UpdateMerchantCredentialsDto';
|
|
93
95
|
export * from './UpdateMerchantDto';
|
|
96
|
+
export * from './UpdateMerchantDtoAddress';
|
|
94
97
|
export * from './UpdatePaymentMethodStatusDto';
|
|
95
98
|
export * from './UpdateSelfDto';
|
|
96
99
|
export * from './UpdateTransactionNoteDto';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -36,15 +36,15 @@ export * from './CreateEventDomainDtoTransactions';
|
|
|
36
36
|
export * from './CreateEventDomainDtoUsers';
|
|
37
37
|
export * from './CreateFeatureDto';
|
|
38
38
|
export * from './CreateInitialUserDto';
|
|
39
|
+
export * from './CreateMerchantAccountDto';
|
|
40
|
+
export * from './CreateMerchantAccountDtoCFee';
|
|
39
41
|
export * from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
40
|
-
export * from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
|
|
41
42
|
export * from './CreateMerchantAddressDto';
|
|
42
43
|
export * from './CreateMerchantConnectorCredentialsDto';
|
|
43
44
|
export * from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
44
45
|
export * from './CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials';
|
|
45
46
|
export * from './CreateMerchantCredentialsDto';
|
|
46
47
|
export * from './CreateMerchantDto';
|
|
47
|
-
export * from './CreateMerchantDtoAddress';
|
|
48
48
|
export * from './CreatePaymentMethodDto';
|
|
49
49
|
export * from './CreateProvisionedCardTokenDto';
|
|
50
50
|
export * from './CreateStoredCardPaymentMethod';
|
|
@@ -58,8 +58,9 @@ export * from './CreateWebhookDtoEventDomains';
|
|
|
58
58
|
export * from './ErrorEntity';
|
|
59
59
|
export * from './FeatureEntity';
|
|
60
60
|
export * from './FeaturesEntity';
|
|
61
|
+
export * from './MerchantAccountEntity';
|
|
62
|
+
export * from './MerchantAccountEntityCFee';
|
|
61
63
|
export * from './MerchantAccountServiceEntity';
|
|
62
|
-
export * from './MerchantAccountServiceEntityCFee';
|
|
63
64
|
export * from './MerchantAddressEntity';
|
|
64
65
|
export * from './MerchantConnectorCredentialsServiceEntity';
|
|
65
66
|
export * from './MerchantConnectorServiceEntity';
|
|
@@ -91,8 +92,10 @@ export * from './TransactionReturnsSearchEntity';
|
|
|
91
92
|
export * from './TransactionsSearchEntity';
|
|
92
93
|
export * from './UpdateBuyerDto';
|
|
93
94
|
export * from './UpdateFeatureDto';
|
|
95
|
+
export * from './UpdateMerchantAccountDto';
|
|
94
96
|
export * from './UpdateMerchantCredentialsDto';
|
|
95
97
|
export * from './UpdateMerchantDto';
|
|
98
|
+
export * from './UpdateMerchantDtoAddress';
|
|
96
99
|
export * from './UpdatePaymentMethodStatusDto';
|
|
97
100
|
export * from './UpdateSelfDto';
|
|
98
101
|
export * from './UpdateTransactionNoteDto';
|
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.135.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,40 +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
|
-
* The CFee details
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateMerchantAccountWithoutMerchantIdDtoCFee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the cFee.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
17
|
-
*/
|
|
18
|
-
type: CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the cFee as an integer.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDtoCFee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee(value: object): boolean;
|
|
38
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json: any): CreateMerchantAccountWithoutMerchantIdDtoCFee;
|
|
39
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountWithoutMerchantIdDtoCFee;
|
|
40
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value?: CreateMerchantAccountWithoutMerchantIdDtoCFee | null): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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.CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON = exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped = exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON = exports.instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee = exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = {
|
|
17
|
-
Percentage: 'PERCENTAGE',
|
|
18
|
-
Fixed: 'FIXED'
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDtoCFee interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee(value) {
|
|
24
|
-
let isInstance = true;
|
|
25
|
-
isInstance = isInstance && "type" in value;
|
|
26
|
-
isInstance = isInstance && "rate" in value;
|
|
27
|
-
return isInstance;
|
|
28
|
-
}
|
|
29
|
-
exports.instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee = instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee;
|
|
30
|
-
function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json) {
|
|
31
|
-
return CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON = CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON;
|
|
34
|
-
function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if ((json === undefined) || (json === null)) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
const typed = {
|
|
39
|
-
'type': json['type'],
|
|
40
|
-
'rate': json['rate'],
|
|
41
|
-
};
|
|
42
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
43
|
-
}
|
|
44
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped = CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped;
|
|
45
|
-
function CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value) {
|
|
46
|
-
if (value === undefined) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'type': value.type,
|
|
54
|
-
'rate': value.rate,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON = CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON;
|
|
@@ -1,40 +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
|
-
* The CFee details.
|
|
9
|
-
* @export
|
|
10
|
-
* @interface MerchantAccountServiceEntityCFee
|
|
11
|
-
*/
|
|
12
|
-
export interface MerchantAccountServiceEntityCFee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the CFee.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof MerchantAccountServiceEntityCFee
|
|
17
|
-
*/
|
|
18
|
-
type: MerchantAccountServiceEntityCFeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the CFee as an integer.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof MerchantAccountServiceEntityCFee
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const MerchantAccountServiceEntityCFeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type MerchantAccountServiceEntityCFeeTypeEnum = typeof MerchantAccountServiceEntityCFeeTypeEnum[keyof typeof MerchantAccountServiceEntityCFeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the MerchantAccountServiceEntityCFee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfMerchantAccountServiceEntityCFee(value: object): boolean;
|
|
38
|
-
export declare function MerchantAccountServiceEntityCFeeFromJSON(json: any): MerchantAccountServiceEntityCFee;
|
|
39
|
-
export declare function MerchantAccountServiceEntityCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountServiceEntityCFee;
|
|
40
|
-
export declare function MerchantAccountServiceEntityCFeeToJSON(value?: MerchantAccountServiceEntityCFee | null): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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.MerchantAccountServiceEntityCFeeToJSON = exports.MerchantAccountServiceEntityCFeeFromJSONTyped = exports.MerchantAccountServiceEntityCFeeFromJSON = exports.instanceOfMerchantAccountServiceEntityCFee = exports.MerchantAccountServiceEntityCFeeTypeEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
exports.MerchantAccountServiceEntityCFeeTypeEnum = {
|
|
17
|
-
Percentage: 'PERCENTAGE',
|
|
18
|
-
Fixed: 'FIXED'
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the MerchantAccountServiceEntityCFee interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfMerchantAccountServiceEntityCFee(value) {
|
|
24
|
-
let isInstance = true;
|
|
25
|
-
isInstance = isInstance && "type" in value;
|
|
26
|
-
isInstance = isInstance && "rate" in value;
|
|
27
|
-
return isInstance;
|
|
28
|
-
}
|
|
29
|
-
exports.instanceOfMerchantAccountServiceEntityCFee = instanceOfMerchantAccountServiceEntityCFee;
|
|
30
|
-
function MerchantAccountServiceEntityCFeeFromJSON(json) {
|
|
31
|
-
return MerchantAccountServiceEntityCFeeFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.MerchantAccountServiceEntityCFeeFromJSON = MerchantAccountServiceEntityCFeeFromJSON;
|
|
34
|
-
function MerchantAccountServiceEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if ((json === undefined) || (json === null)) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
const typed = {
|
|
39
|
-
'type': json['type'],
|
|
40
|
-
'rate': json['rate'],
|
|
41
|
-
};
|
|
42
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
43
|
-
}
|
|
44
|
-
exports.MerchantAccountServiceEntityCFeeFromJSONTyped = MerchantAccountServiceEntityCFeeFromJSONTyped;
|
|
45
|
-
function MerchantAccountServiceEntityCFeeToJSON(value) {
|
|
46
|
-
if (value === undefined) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
if (value === null) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'type': value.type,
|
|
54
|
-
'rate': value.rate,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.MerchantAccountServiceEntityCFeeToJSON = MerchantAccountServiceEntityCFeeToJSON;
|
|
@@ -1,40 +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
|
-
* The CFee details
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateMerchantAccountWithoutMerchantIdDtoCFee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the cFee.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
17
|
-
*/
|
|
18
|
-
type: CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the cFee as an integer.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CreateMerchantAccountWithoutMerchantIdDtoCFee
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = typeof CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum[keyof typeof CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDtoCFee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee(value: object): boolean;
|
|
38
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json: any): CreateMerchantAccountWithoutMerchantIdDtoCFee;
|
|
39
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountWithoutMerchantIdDtoCFee;
|
|
40
|
-
export declare function CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value?: CreateMerchantAccountWithoutMerchantIdDtoCFee | null): any;
|
|
@@ -1,40 +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
|
-
* The CFee details.
|
|
9
|
-
* @export
|
|
10
|
-
* @interface MerchantAccountServiceEntityCFee
|
|
11
|
-
*/
|
|
12
|
-
export interface MerchantAccountServiceEntityCFee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the CFee.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof MerchantAccountServiceEntityCFee
|
|
17
|
-
*/
|
|
18
|
-
type: MerchantAccountServiceEntityCFeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the CFee as an integer.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof MerchantAccountServiceEntityCFee
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const MerchantAccountServiceEntityCFeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type MerchantAccountServiceEntityCFeeTypeEnum = typeof MerchantAccountServiceEntityCFeeTypeEnum[keyof typeof MerchantAccountServiceEntityCFeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the MerchantAccountServiceEntityCFee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfMerchantAccountServiceEntityCFee(value: object): boolean;
|
|
38
|
-
export declare function MerchantAccountServiceEntityCFeeFromJSON(json: any): MerchantAccountServiceEntityCFee;
|
|
39
|
-
export declare function MerchantAccountServiceEntityCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountServiceEntityCFee;
|
|
40
|
-
export declare function MerchantAccountServiceEntityCFeeToJSON(value?: MerchantAccountServiceEntityCFee | null): any;
|