@channelpayments/node-sdk 1.181.0 → 1.182.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/CreateMerchantDto.d.ts +7 -0
- package/dist/cjs/models/CreateMerchantDto.js +3 -0
- package/dist/cjs/models/LogoUploadEntity.d.ts +32 -0
- package/dist/cjs/models/LogoUploadEntity.js +49 -0
- package/dist/cjs/models/MerchantColorsDto.d.ts +38 -0
- package/dist/cjs/models/MerchantColorsDto.js +49 -0
- package/dist/cjs/models/MerchantColorsEntity.d.ts +38 -0
- package/dist/cjs/models/MerchantColorsEntity.js +49 -0
- package/dist/cjs/models/MerchantEntity.d.ts +7 -0
- package/dist/cjs/models/MerchantEntity.js +3 -0
- package/dist/cjs/models/MerchantServiceEntity.d.ts +7 -0
- package/dist/cjs/models/MerchantServiceEntity.js +3 -0
- package/dist/cjs/models/MerchantSettingsDto.d.ts +33 -0
- package/dist/cjs/models/MerchantSettingsDto.js +48 -0
- package/dist/cjs/models/MerchantSettingsEntity.d.ts +39 -0
- package/dist/cjs/models/MerchantSettingsEntity.js +52 -0
- package/dist/cjs/models/MerchantThemeDto.d.ts +40 -0
- package/dist/cjs/models/MerchantThemeDto.js +53 -0
- package/dist/cjs/models/MerchantThemeEntity.d.ts +40 -0
- package/dist/cjs/models/MerchantThemeEntity.js +53 -0
- package/dist/cjs/models/MerchantThemeLogoDto.d.ts +41 -0
- package/dist/cjs/models/MerchantThemeLogoDto.js +57 -0
- package/dist/cjs/models/MerchantThemeLogoEntity.d.ts +41 -0
- package/dist/cjs/models/MerchantThemeLogoEntity.js +57 -0
- package/dist/cjs/models/index.d.ts +9 -0
- package/dist/cjs/models/index.js +9 -0
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/CreateMerchantDto.d.ts +7 -0
- package/dist/mjs/models/CreateMerchantDto.js +3 -0
- package/dist/mjs/models/LogoUploadEntity.d.ts +32 -0
- package/dist/mjs/models/LogoUploadEntity.js +43 -0
- package/dist/mjs/models/MerchantColorsDto.d.ts +38 -0
- package/dist/mjs/models/MerchantColorsDto.js +43 -0
- package/dist/mjs/models/MerchantColorsEntity.d.ts +38 -0
- package/dist/mjs/models/MerchantColorsEntity.js +43 -0
- package/dist/mjs/models/MerchantEntity.d.ts +7 -0
- package/dist/mjs/models/MerchantEntity.js +3 -0
- package/dist/mjs/models/MerchantServiceEntity.d.ts +7 -0
- package/dist/mjs/models/MerchantServiceEntity.js +3 -0
- package/dist/mjs/models/MerchantSettingsDto.d.ts +33 -0
- package/dist/mjs/models/MerchantSettingsDto.js +42 -0
- package/dist/mjs/models/MerchantSettingsEntity.d.ts +39 -0
- package/dist/mjs/models/MerchantSettingsEntity.js +46 -0
- package/dist/mjs/models/MerchantThemeDto.d.ts +40 -0
- package/dist/mjs/models/MerchantThemeDto.js +47 -0
- package/dist/mjs/models/MerchantThemeEntity.d.ts +40 -0
- package/dist/mjs/models/MerchantThemeEntity.js +47 -0
- package/dist/mjs/models/MerchantThemeLogoDto.d.ts +41 -0
- package/dist/mjs/models/MerchantThemeLogoDto.js +50 -0
- package/dist/mjs/models/MerchantThemeLogoEntity.d.ts +41 -0
- package/dist/mjs/models/MerchantThemeLogoEntity.js +50 -0
- package/dist/mjs/models/index.d.ts +9 -0
- package/dist/mjs/models/index.js +9 -0
- package/dist/mjs/runtime.js +1 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { MerchantAccountServiceEntityFromJSON, MerchantAccountServiceEntityToJSON, } from './MerchantAccountServiceEntity';
|
|
11
11
|
import { MerchantAddressEntityFromJSON, MerchantAddressEntityToJSON, } from './MerchantAddressEntity';
|
|
12
|
+
import { MerchantSettingsEntityFromJSON, MerchantSettingsEntityToJSON, } from './MerchantSettingsEntity';
|
|
12
13
|
/**
|
|
13
14
|
* Check if a given object implements the MerchantEntity interface.
|
|
14
15
|
*/
|
|
@@ -46,6 +47,7 @@ export function MerchantEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(MerchantAccountServiceEntityFromJSON)),
|
|
47
48
|
'cancelRedirectUrl': !exists(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
48
49
|
'successRedirectUrl': !exists(json, 'successRedirectUrl') ? undefined : json['successRedirectUrl'],
|
|
50
|
+
'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsEntityFromJSON(json['merchantSettings']),
|
|
49
51
|
};
|
|
50
52
|
return removeNullUndefined(typed);
|
|
51
53
|
}
|
|
@@ -71,5 +73,6 @@ export function MerchantEntityToJSON(value) {
|
|
|
71
73
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(MerchantAccountServiceEntityToJSON)),
|
|
72
74
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
|
73
75
|
'successRedirectUrl': value.successRedirectUrl,
|
|
76
|
+
'merchantSettings': MerchantSettingsEntityToJSON(value.merchantSettings),
|
|
74
77
|
};
|
|
75
78
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { MerchantAccountServiceEntity } from './MerchantAccountServiceEntity';
|
|
8
8
|
import type { MerchantAddressEntity } from './MerchantAddressEntity';
|
|
9
|
+
import type { MerchantSettingsEntity } from './MerchantSettingsEntity';
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @export
|
|
@@ -96,6 +97,12 @@ export interface MerchantServiceEntity {
|
|
|
96
97
|
* @memberof MerchantServiceEntity
|
|
97
98
|
*/
|
|
98
99
|
successRedirectUrl?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The merchant settings.
|
|
102
|
+
* @type {MerchantSettingsEntity}
|
|
103
|
+
* @memberof MerchantServiceEntity
|
|
104
|
+
*/
|
|
105
|
+
merchantSettings?: MerchantSettingsEntity;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* Check if a given object implements the MerchantServiceEntity interface.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
10
|
import { MerchantAccountServiceEntityFromJSON, MerchantAccountServiceEntityToJSON, } from './MerchantAccountServiceEntity';
|
|
11
11
|
import { MerchantAddressEntityFromJSON, MerchantAddressEntityToJSON, } from './MerchantAddressEntity';
|
|
12
|
+
import { MerchantSettingsEntityFromJSON, MerchantSettingsEntityToJSON, } from './MerchantSettingsEntity';
|
|
12
13
|
/**
|
|
13
14
|
* Check if a given object implements the MerchantServiceEntity interface.
|
|
14
15
|
*/
|
|
@@ -46,6 +47,7 @@ export function MerchantServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(MerchantAccountServiceEntityFromJSON)),
|
|
47
48
|
'cancelRedirectUrl': !exists(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
48
49
|
'successRedirectUrl': !exists(json, 'successRedirectUrl') ? undefined : json['successRedirectUrl'],
|
|
50
|
+
'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsEntityFromJSON(json['merchantSettings']),
|
|
49
51
|
};
|
|
50
52
|
return removeNullUndefined(typed);
|
|
51
53
|
}
|
|
@@ -71,5 +73,6 @@ export function MerchantServiceEntityToJSON(value) {
|
|
|
71
73
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(MerchantAccountServiceEntityToJSON)),
|
|
72
74
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
|
73
75
|
'successRedirectUrl': value.successRedirectUrl,
|
|
76
|
+
'merchantSettings': MerchantSettingsEntityToJSON(value.merchantSettings),
|
|
74
77
|
};
|
|
75
78
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantThemeDto } from './MerchantThemeDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface MerchantSettingsDto
|
|
12
|
+
*/
|
|
13
|
+
export interface MerchantSettingsDto {
|
|
14
|
+
/**
|
|
15
|
+
* The custom theme for hosted checkout.
|
|
16
|
+
* @type {MerchantThemeDto}
|
|
17
|
+
* @memberof MerchantSettingsDto
|
|
18
|
+
*/
|
|
19
|
+
checkoutTheme?: MerchantThemeDto;
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable split card fee transactions.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof MerchantSettingsDto
|
|
24
|
+
*/
|
|
25
|
+
isSplitCFeeEnabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the MerchantSettingsDto interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfMerchantSettingsDto(value: object): boolean;
|
|
31
|
+
export declare function MerchantSettingsDtoFromJSON(json: any): MerchantSettingsDto;
|
|
32
|
+
export declare function MerchantSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantSettingsDto;
|
|
33
|
+
export declare function MerchantSettingsDtoToJSON(value?: MerchantSettingsDto | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { MerchantThemeDtoFromJSON, MerchantThemeDtoToJSON, } from './MerchantThemeDto';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the MerchantSettingsDto interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfMerchantSettingsDto(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
return isInstance;
|
|
17
|
+
}
|
|
18
|
+
export function MerchantSettingsDtoFromJSON(json) {
|
|
19
|
+
return MerchantSettingsDtoFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
const typed = {
|
|
26
|
+
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeDtoFromJSON(json['checkoutTheme']),
|
|
27
|
+
'isSplitCFeeEnabled': !exists(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
28
|
+
};
|
|
29
|
+
return removeNullUndefined(typed);
|
|
30
|
+
}
|
|
31
|
+
export function MerchantSettingsDtoToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'checkoutTheme': MerchantThemeDtoToJSON(value.checkoutTheme),
|
|
40
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantThemeEntity } from './MerchantThemeEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface MerchantSettingsEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface MerchantSettingsEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The merchant ID.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof MerchantSettingsEntity
|
|
18
|
+
*/
|
|
19
|
+
merchantId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The merchants custom theme.
|
|
22
|
+
* @type {MerchantThemeEntity}
|
|
23
|
+
* @memberof MerchantSettingsEntity
|
|
24
|
+
*/
|
|
25
|
+
checkoutTheme?: MerchantThemeEntity;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to split the fee into a separate transaction.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof MerchantSettingsEntity
|
|
30
|
+
*/
|
|
31
|
+
isSplitCFeeEnabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfMerchantSettingsEntity(value: object): boolean;
|
|
37
|
+
export declare function MerchantSettingsEntityFromJSON(json: any): MerchantSettingsEntity;
|
|
38
|
+
export declare function MerchantSettingsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantSettingsEntity;
|
|
39
|
+
export declare function MerchantSettingsEntityToJSON(value?: MerchantSettingsEntity | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { MerchantThemeEntityFromJSON, MerchantThemeEntityToJSON, } from './MerchantThemeEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfMerchantSettingsEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "merchantId" in value;
|
|
17
|
+
isInstance = isInstance && "isSplitCFeeEnabled" in value;
|
|
18
|
+
return isInstance;
|
|
19
|
+
}
|
|
20
|
+
export function MerchantSettingsEntityFromJSON(json) {
|
|
21
|
+
return MerchantSettingsEntityFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
const typed = {
|
|
28
|
+
'merchantId': json['merchantId'],
|
|
29
|
+
'checkoutTheme': !exists(json, 'checkoutTheme') ? undefined : MerchantThemeEntityFromJSON(json['checkoutTheme']),
|
|
30
|
+
'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
|
|
31
|
+
};
|
|
32
|
+
return removeNullUndefined(typed);
|
|
33
|
+
}
|
|
34
|
+
export function MerchantSettingsEntityToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'merchantId': value.merchantId,
|
|
43
|
+
'checkoutTheme': MerchantThemeEntityToJSON(value.checkoutTheme),
|
|
44
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantColorsDto } from './MerchantColorsDto';
|
|
8
|
+
import type { MerchantThemeLogoDto } from './MerchantThemeLogoDto';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface MerchantThemeDto
|
|
13
|
+
*/
|
|
14
|
+
export interface MerchantThemeDto {
|
|
15
|
+
/**
|
|
16
|
+
* Is the merchant's custom theme enabled
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
* @memberof MerchantThemeDto
|
|
19
|
+
*/
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The theme's logo details
|
|
23
|
+
* @type {MerchantThemeLogoDto}
|
|
24
|
+
* @memberof MerchantThemeDto
|
|
25
|
+
*/
|
|
26
|
+
logo: MerchantThemeLogoDto;
|
|
27
|
+
/**
|
|
28
|
+
* The merchant's color palette
|
|
29
|
+
* @type {MerchantColorsDto}
|
|
30
|
+
* @memberof MerchantThemeDto
|
|
31
|
+
*/
|
|
32
|
+
colors?: MerchantColorsDto;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the MerchantThemeDto interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfMerchantThemeDto(value: object): boolean;
|
|
38
|
+
export declare function MerchantThemeDtoFromJSON(json: any): MerchantThemeDto;
|
|
39
|
+
export declare function MerchantThemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantThemeDto;
|
|
40
|
+
export declare function MerchantThemeDtoToJSON(value?: MerchantThemeDto | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { MerchantColorsDtoFromJSON, MerchantColorsDtoToJSON, } from './MerchantColorsDto';
|
|
11
|
+
import { MerchantThemeLogoDtoFromJSON, MerchantThemeLogoDtoToJSON, } from './MerchantThemeLogoDto';
|
|
12
|
+
/**
|
|
13
|
+
* Check if a given object implements the MerchantThemeDto interface.
|
|
14
|
+
*/
|
|
15
|
+
export function instanceOfMerchantThemeDto(value) {
|
|
16
|
+
let isInstance = true;
|
|
17
|
+
isInstance = isInstance && "enabled" in value;
|
|
18
|
+
isInstance = isInstance && "logo" in value;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function MerchantThemeDtoFromJSON(json) {
|
|
22
|
+
return MerchantThemeDtoFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function MerchantThemeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const typed = {
|
|
29
|
+
'enabled': json['enabled'],
|
|
30
|
+
'logo': MerchantThemeLogoDtoFromJSON(json['logo']),
|
|
31
|
+
'colors': !exists(json, 'colors') ? undefined : MerchantColorsDtoFromJSON(json['colors']),
|
|
32
|
+
};
|
|
33
|
+
return removeNullUndefined(typed);
|
|
34
|
+
}
|
|
35
|
+
export function MerchantThemeDtoToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'enabled': value.enabled,
|
|
44
|
+
'logo': MerchantThemeLogoDtoToJSON(value.logo),
|
|
45
|
+
'colors': MerchantColorsDtoToJSON(value.colors),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantColorsEntity } from './MerchantColorsEntity';
|
|
8
|
+
import type { MerchantThemeLogoEntity } from './MerchantThemeLogoEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface MerchantThemeEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface MerchantThemeEntity {
|
|
15
|
+
/**
|
|
16
|
+
* Is the merchant's custom theme enabled
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
* @memberof MerchantThemeEntity
|
|
19
|
+
*/
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The theme's logo details
|
|
23
|
+
* @type {MerchantThemeLogoEntity}
|
|
24
|
+
* @memberof MerchantThemeEntity
|
|
25
|
+
*/
|
|
26
|
+
logo: MerchantThemeLogoEntity;
|
|
27
|
+
/**
|
|
28
|
+
* The merchant's color palette
|
|
29
|
+
* @type {MerchantColorsEntity}
|
|
30
|
+
* @memberof MerchantThemeEntity
|
|
31
|
+
*/
|
|
32
|
+
colors?: MerchantColorsEntity;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the MerchantThemeEntity interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfMerchantThemeEntity(value: object): boolean;
|
|
38
|
+
export declare function MerchantThemeEntityFromJSON(json: any): MerchantThemeEntity;
|
|
39
|
+
export declare function MerchantThemeEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantThemeEntity;
|
|
40
|
+
export declare function MerchantThemeEntityToJSON(value?: MerchantThemeEntity | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { MerchantColorsEntityFromJSON, MerchantColorsEntityToJSON, } from './MerchantColorsEntity';
|
|
11
|
+
import { MerchantThemeLogoEntityFromJSON, MerchantThemeLogoEntityToJSON, } from './MerchantThemeLogoEntity';
|
|
12
|
+
/**
|
|
13
|
+
* Check if a given object implements the MerchantThemeEntity interface.
|
|
14
|
+
*/
|
|
15
|
+
export function instanceOfMerchantThemeEntity(value) {
|
|
16
|
+
let isInstance = true;
|
|
17
|
+
isInstance = isInstance && "enabled" in value;
|
|
18
|
+
isInstance = isInstance && "logo" in value;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function MerchantThemeEntityFromJSON(json) {
|
|
22
|
+
return MerchantThemeEntityFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function MerchantThemeEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const typed = {
|
|
29
|
+
'enabled': json['enabled'],
|
|
30
|
+
'logo': MerchantThemeLogoEntityFromJSON(json['logo']),
|
|
31
|
+
'colors': !exists(json, 'colors') ? undefined : MerchantColorsEntityFromJSON(json['colors']),
|
|
32
|
+
};
|
|
33
|
+
return removeNullUndefined(typed);
|
|
34
|
+
}
|
|
35
|
+
export function MerchantThemeEntityToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'enabled': value.enabled,
|
|
44
|
+
'logo': MerchantThemeLogoEntityToJSON(value.logo),
|
|
45
|
+
'colors': MerchantColorsEntityToJSON(value.colors),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 MerchantThemeLogoDto
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantThemeLogoDto {
|
|
13
|
+
/**
|
|
14
|
+
* The theme logo type
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantThemeLogoDto
|
|
17
|
+
*/
|
|
18
|
+
type: MerchantThemeLogoDtoTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* Custom logo url
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantThemeLogoDto
|
|
23
|
+
*/
|
|
24
|
+
customLogo?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const MerchantThemeLogoDtoTypeEnum: {
|
|
30
|
+
readonly None: "NONE";
|
|
31
|
+
readonly Default: "DEFAULT";
|
|
32
|
+
readonly Custom: "CUSTOM";
|
|
33
|
+
};
|
|
34
|
+
export type MerchantThemeLogoDtoTypeEnum = typeof MerchantThemeLogoDtoTypeEnum[keyof typeof MerchantThemeLogoDtoTypeEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the MerchantThemeLogoDto interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfMerchantThemeLogoDto(value: object): boolean;
|
|
39
|
+
export declare function MerchantThemeLogoDtoFromJSON(json: any): MerchantThemeLogoDto;
|
|
40
|
+
export declare function MerchantThemeLogoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantThemeLogoDto;
|
|
41
|
+
export declare function MerchantThemeLogoDtoToJSON(value?: MerchantThemeLogoDto | 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 { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const MerchantThemeLogoDtoTypeEnum = {
|
|
14
|
+
None: 'NONE',
|
|
15
|
+
Default: 'DEFAULT',
|
|
16
|
+
Custom: 'CUSTOM'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the MerchantThemeLogoDto interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfMerchantThemeLogoDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "type" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function MerchantThemeLogoDtoFromJSON(json) {
|
|
27
|
+
return MerchantThemeLogoDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MerchantThemeLogoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
'customLogo': !exists(json, 'customLogo') ? undefined : json['customLogo'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function MerchantThemeLogoDtoToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value.type,
|
|
48
|
+
'customLogo': value.customLogo,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 MerchantThemeLogoEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantThemeLogoEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The theme logo type
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantThemeLogoEntity
|
|
17
|
+
*/
|
|
18
|
+
type: MerchantThemeLogoEntityTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* Custom logo url
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantThemeLogoEntity
|
|
23
|
+
*/
|
|
24
|
+
customLogo?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const MerchantThemeLogoEntityTypeEnum: {
|
|
30
|
+
readonly None: "NONE";
|
|
31
|
+
readonly Default: "DEFAULT";
|
|
32
|
+
readonly Custom: "CUSTOM";
|
|
33
|
+
};
|
|
34
|
+
export type MerchantThemeLogoEntityTypeEnum = typeof MerchantThemeLogoEntityTypeEnum[keyof typeof MerchantThemeLogoEntityTypeEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the MerchantThemeLogoEntity interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfMerchantThemeLogoEntity(value: object): boolean;
|
|
39
|
+
export declare function MerchantThemeLogoEntityFromJSON(json: any): MerchantThemeLogoEntity;
|
|
40
|
+
export declare function MerchantThemeLogoEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantThemeLogoEntity;
|
|
41
|
+
export declare function MerchantThemeLogoEntityToJSON(value?: MerchantThemeLogoEntity | 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 { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const MerchantThemeLogoEntityTypeEnum = {
|
|
14
|
+
None: 'NONE',
|
|
15
|
+
Default: 'DEFAULT',
|
|
16
|
+
Custom: 'CUSTOM'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the MerchantThemeLogoEntity interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfMerchantThemeLogoEntity(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "type" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function MerchantThemeLogoEntityFromJSON(json) {
|
|
27
|
+
return MerchantThemeLogoEntityFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MerchantThemeLogoEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
'customLogo': !exists(json, 'customLogo') ? undefined : json['customLogo'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function MerchantThemeLogoEntityToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value.type,
|
|
48
|
+
'customLogo': value.customLogo,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -48,15 +48,24 @@ export * from './ErrorEntity';
|
|
|
48
48
|
export * from './FeatureEntity';
|
|
49
49
|
export * from './FeatureTargetEntity';
|
|
50
50
|
export * from './FeaturesEntity';
|
|
51
|
+
export * from './LogoUploadEntity';
|
|
51
52
|
export * from './MerchantAccountEntity';
|
|
52
53
|
export * from './MerchantAccountServiceEntity';
|
|
53
54
|
export * from './MerchantAccountsSearchEntity';
|
|
54
55
|
export * from './MerchantAddressEntity';
|
|
56
|
+
export * from './MerchantColorsDto';
|
|
57
|
+
export * from './MerchantColorsEntity';
|
|
55
58
|
export * from './MerchantConnectorCredentialsServiceEntity';
|
|
56
59
|
export * from './MerchantConnectorServiceEntity';
|
|
57
60
|
export * from './MerchantCredentialsEntity';
|
|
58
61
|
export * from './MerchantEntity';
|
|
59
62
|
export * from './MerchantServiceEntity';
|
|
63
|
+
export * from './MerchantSettingsDto';
|
|
64
|
+
export * from './MerchantSettingsEntity';
|
|
65
|
+
export * from './MerchantThemeDto';
|
|
66
|
+
export * from './MerchantThemeEntity';
|
|
67
|
+
export * from './MerchantThemeLogoDto';
|
|
68
|
+
export * from './MerchantThemeLogoEntity';
|
|
60
69
|
export * from './PaymentMethodBaseEntity';
|
|
61
70
|
export * from './PaymentMethodDto';
|
|
62
71
|
export * from './PaymentMethodEntity';
|
package/dist/mjs/models/index.js
CHANGED
|
@@ -50,15 +50,24 @@ export * from './ErrorEntity';
|
|
|
50
50
|
export * from './FeatureEntity';
|
|
51
51
|
export * from './FeatureTargetEntity';
|
|
52
52
|
export * from './FeaturesEntity';
|
|
53
|
+
export * from './LogoUploadEntity';
|
|
53
54
|
export * from './MerchantAccountEntity';
|
|
54
55
|
export * from './MerchantAccountServiceEntity';
|
|
55
56
|
export * from './MerchantAccountsSearchEntity';
|
|
56
57
|
export * from './MerchantAddressEntity';
|
|
58
|
+
export * from './MerchantColorsDto';
|
|
59
|
+
export * from './MerchantColorsEntity';
|
|
57
60
|
export * from './MerchantConnectorCredentialsServiceEntity';
|
|
58
61
|
export * from './MerchantConnectorServiceEntity';
|
|
59
62
|
export * from './MerchantCredentialsEntity';
|
|
60
63
|
export * from './MerchantEntity';
|
|
61
64
|
export * from './MerchantServiceEntity';
|
|
65
|
+
export * from './MerchantSettingsDto';
|
|
66
|
+
export * from './MerchantSettingsEntity';
|
|
67
|
+
export * from './MerchantThemeDto';
|
|
68
|
+
export * from './MerchantThemeEntity';
|
|
69
|
+
export * from './MerchantThemeLogoDto';
|
|
70
|
+
export * from './MerchantThemeLogoEntity';
|
|
62
71
|
export * from './PaymentMethodBaseEntity';
|
|
63
72
|
export * from './PaymentMethodDto';
|
|
64
73
|
export * from './PaymentMethodEntity';
|
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.182.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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@channelpayments/node-sdk",
|
|
3
3
|
"description": "Channel Payments nodejs sdk",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.182.0",
|
|
5
5
|
"author": "Channel Payments",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@aws-sdk/client-s3": "3.721.0",
|
|
31
31
|
"@aws-sdk/client-ssm": "3.721.0",
|
|
32
|
-
"@cp/channel-utils": "1.1.
|
|
32
|
+
"@cp/channel-utils": "1.1.1",
|
|
33
33
|
"@types/jsonwebtoken": "9.0.7",
|
|
34
34
|
"@types/node": "22.10.5",
|
|
35
35
|
"chalk": "4.1.2",
|