@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
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
8
8
|
import type { CreateMerchantAddressDto } from './CreateMerchantAddressDto';
|
|
9
|
+
import type { MerchantSettingsDto } from './MerchantSettingsDto';
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @export
|
|
@@ -54,6 +55,12 @@ export interface CreateMerchantDto {
|
|
|
54
55
|
* @memberof CreateMerchantDto
|
|
55
56
|
*/
|
|
56
57
|
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
58
|
+
/**
|
|
59
|
+
* The merchant settings.
|
|
60
|
+
* @type {MerchantSettingsDto}
|
|
61
|
+
* @memberof CreateMerchantDto
|
|
62
|
+
*/
|
|
63
|
+
merchantSettings?: MerchantSettingsDto;
|
|
57
64
|
}
|
|
58
65
|
/**
|
|
59
66
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
@@ -15,6 +15,7 @@ exports.CreateMerchantDtoToJSON = CreateMerchantDtoToJSON;
|
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
16
|
const CreateMerchantAccountWithoutMerchantIdDto_1 = require("./CreateMerchantAccountWithoutMerchantIdDto");
|
|
17
17
|
const CreateMerchantAddressDto_1 = require("./CreateMerchantAddressDto");
|
|
18
|
+
const MerchantSettingsDto_1 = require("./MerchantSettingsDto");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
20
21
|
*/
|
|
@@ -41,6 +42,7 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
|
|
42
43
|
'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
43
44
|
'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
45
|
+
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsDto_1.MerchantSettingsDtoFromJSON)(json['merchantSettings']),
|
|
44
46
|
};
|
|
45
47
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
46
48
|
}
|
|
@@ -59,5 +61,6 @@ function CreateMerchantDtoToJSON(value) {
|
|
|
59
61
|
'website': value.website,
|
|
60
62
|
'parentMerchantId': value.parentMerchantId,
|
|
61
63
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
64
|
+
'merchantSettings': (0, MerchantSettingsDto_1.MerchantSettingsDtoToJSON)(value.merchantSettings),
|
|
62
65
|
};
|
|
63
66
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface LogoUploadEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface LogoUploadEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The public url to the image once uploaded.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof LogoUploadEntity
|
|
17
|
+
*/
|
|
18
|
+
imageUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* The temporary S3 url to upload the image to.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LogoUploadEntity
|
|
23
|
+
*/
|
|
24
|
+
uploadUrl: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LogoUploadEntity interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLogoUploadEntity(value: object): boolean;
|
|
30
|
+
export declare function LogoUploadEntityFromJSON(json: any): LogoUploadEntity;
|
|
31
|
+
export declare function LogoUploadEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogoUploadEntity;
|
|
32
|
+
export declare function LogoUploadEntityToJSON(value?: LogoUploadEntity | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfLogoUploadEntity = instanceOfLogoUploadEntity;
|
|
12
|
+
exports.LogoUploadEntityFromJSON = LogoUploadEntityFromJSON;
|
|
13
|
+
exports.LogoUploadEntityFromJSONTyped = LogoUploadEntityFromJSONTyped;
|
|
14
|
+
exports.LogoUploadEntityToJSON = LogoUploadEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the LogoUploadEntity interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfLogoUploadEntity(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "imageUrl" in value;
|
|
22
|
+
isInstance = isInstance && "uploadUrl" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
function LogoUploadEntityFromJSON(json) {
|
|
26
|
+
return LogoUploadEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
function LogoUploadEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'imageUrl': json['imageUrl'],
|
|
34
|
+
'uploadUrl': json['uploadUrl'],
|
|
35
|
+
};
|
|
36
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
37
|
+
}
|
|
38
|
+
function LogoUploadEntityToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'imageUrl': value.imageUrl,
|
|
47
|
+
'uploadUrl': value.uploadUrl,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 MerchantColorsDto
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantColorsDto {
|
|
13
|
+
/**
|
|
14
|
+
* The palette's primary color
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantColorsDto
|
|
17
|
+
*/
|
|
18
|
+
primary?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The palette's secondary color
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantColorsDto
|
|
23
|
+
*/
|
|
24
|
+
secondary?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The palette's tertiary color
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MerchantColorsDto
|
|
29
|
+
*/
|
|
30
|
+
tertiary?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the MerchantColorsDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfMerchantColorsDto(value: object): boolean;
|
|
36
|
+
export declare function MerchantColorsDtoFromJSON(json: any): MerchantColorsDto;
|
|
37
|
+
export declare function MerchantColorsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantColorsDto;
|
|
38
|
+
export declare function MerchantColorsDtoToJSON(value?: MerchantColorsDto | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfMerchantColorsDto = instanceOfMerchantColorsDto;
|
|
12
|
+
exports.MerchantColorsDtoFromJSON = MerchantColorsDtoFromJSON;
|
|
13
|
+
exports.MerchantColorsDtoFromJSONTyped = MerchantColorsDtoFromJSONTyped;
|
|
14
|
+
exports.MerchantColorsDtoToJSON = MerchantColorsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MerchantColorsDto interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfMerchantColorsDto(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
function MerchantColorsDtoFromJSON(json) {
|
|
24
|
+
return MerchantColorsDtoFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
function MerchantColorsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
const typed = {
|
|
31
|
+
'primary': !(0, runtime_1.exists)(json, 'primary') ? undefined : json['primary'],
|
|
32
|
+
'secondary': !(0, runtime_1.exists)(json, 'secondary') ? undefined : json['secondary'],
|
|
33
|
+
'tertiary': !(0, runtime_1.exists)(json, 'tertiary') ? undefined : json['tertiary'],
|
|
34
|
+
};
|
|
35
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
36
|
+
}
|
|
37
|
+
function MerchantColorsDtoToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'primary': value.primary,
|
|
46
|
+
'secondary': value.secondary,
|
|
47
|
+
'tertiary': value.tertiary,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 MerchantColorsEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantColorsEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The palette's primary color
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantColorsEntity
|
|
17
|
+
*/
|
|
18
|
+
primary?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The palette's secondary color
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantColorsEntity
|
|
23
|
+
*/
|
|
24
|
+
secondary?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The palette's tertiary color
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MerchantColorsEntity
|
|
29
|
+
*/
|
|
30
|
+
tertiary?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the MerchantColorsEntity interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfMerchantColorsEntity(value: object): boolean;
|
|
36
|
+
export declare function MerchantColorsEntityFromJSON(json: any): MerchantColorsEntity;
|
|
37
|
+
export declare function MerchantColorsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantColorsEntity;
|
|
38
|
+
export declare function MerchantColorsEntityToJSON(value?: MerchantColorsEntity | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfMerchantColorsEntity = instanceOfMerchantColorsEntity;
|
|
12
|
+
exports.MerchantColorsEntityFromJSON = MerchantColorsEntityFromJSON;
|
|
13
|
+
exports.MerchantColorsEntityFromJSONTyped = MerchantColorsEntityFromJSONTyped;
|
|
14
|
+
exports.MerchantColorsEntityToJSON = MerchantColorsEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MerchantColorsEntity interface.
|
|
18
|
+
*/
|
|
19
|
+
function instanceOfMerchantColorsEntity(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
function MerchantColorsEntityFromJSON(json) {
|
|
24
|
+
return MerchantColorsEntityFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
function MerchantColorsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
const typed = {
|
|
31
|
+
'primary': !(0, runtime_1.exists)(json, 'primary') ? undefined : json['primary'],
|
|
32
|
+
'secondary': !(0, runtime_1.exists)(json, 'secondary') ? undefined : json['secondary'],
|
|
33
|
+
'tertiary': !(0, runtime_1.exists)(json, 'tertiary') ? undefined : json['tertiary'],
|
|
34
|
+
};
|
|
35
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
36
|
+
}
|
|
37
|
+
function MerchantColorsEntityToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'primary': value.primary,
|
|
46
|
+
'secondary': value.secondary,
|
|
47
|
+
'tertiary': value.tertiary,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 MerchantEntity {
|
|
|
96
97
|
* @memberof MerchantEntity
|
|
97
98
|
*/
|
|
98
99
|
successRedirectUrl?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The merchant settings.
|
|
102
|
+
* @type {MerchantSettingsEntity}
|
|
103
|
+
* @memberof MerchantEntity
|
|
104
|
+
*/
|
|
105
|
+
merchantSettings?: MerchantSettingsEntity;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* Check if a given object implements the MerchantEntity interface.
|
|
@@ -15,6 +15,7 @@ exports.MerchantEntityToJSON = MerchantEntityToJSON;
|
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
16
|
const MerchantAccountServiceEntity_1 = require("./MerchantAccountServiceEntity");
|
|
17
17
|
const MerchantAddressEntity_1 = require("./MerchantAddressEntity");
|
|
18
|
+
const MerchantSettingsEntity_1 = require("./MerchantSettingsEntity");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the MerchantEntity interface.
|
|
20
21
|
*/
|
|
@@ -52,6 +53,7 @@ function MerchantEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(MerchantAccountServiceEntity_1.MerchantAccountServiceEntityFromJSON)),
|
|
53
54
|
'cancelRedirectUrl': !(0, runtime_1.exists)(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
54
55
|
'successRedirectUrl': !(0, runtime_1.exists)(json, 'successRedirectUrl') ? undefined : json['successRedirectUrl'],
|
|
56
|
+
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsEntity_1.MerchantSettingsEntityFromJSON)(json['merchantSettings']),
|
|
55
57
|
};
|
|
56
58
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
57
59
|
}
|
|
@@ -77,5 +79,6 @@ function MerchantEntityToJSON(value) {
|
|
|
77
79
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(MerchantAccountServiceEntity_1.MerchantAccountServiceEntityToJSON)),
|
|
78
80
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
|
79
81
|
'successRedirectUrl': value.successRedirectUrl,
|
|
82
|
+
'merchantSettings': (0, MerchantSettingsEntity_1.MerchantSettingsEntityToJSON)(value.merchantSettings),
|
|
80
83
|
};
|
|
81
84
|
}
|
|
@@ -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.
|
|
@@ -15,6 +15,7 @@ exports.MerchantServiceEntityToJSON = MerchantServiceEntityToJSON;
|
|
|
15
15
|
const runtime_1 = require("../runtime");
|
|
16
16
|
const MerchantAccountServiceEntity_1 = require("./MerchantAccountServiceEntity");
|
|
17
17
|
const MerchantAddressEntity_1 = require("./MerchantAddressEntity");
|
|
18
|
+
const MerchantSettingsEntity_1 = require("./MerchantSettingsEntity");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the MerchantServiceEntity interface.
|
|
20
21
|
*/
|
|
@@ -52,6 +53,7 @@ function MerchantServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(MerchantAccountServiceEntity_1.MerchantAccountServiceEntityFromJSON)),
|
|
53
54
|
'cancelRedirectUrl': !(0, runtime_1.exists)(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
|
|
54
55
|
'successRedirectUrl': !(0, runtime_1.exists)(json, 'successRedirectUrl') ? undefined : json['successRedirectUrl'],
|
|
56
|
+
'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsEntity_1.MerchantSettingsEntityFromJSON)(json['merchantSettings']),
|
|
55
57
|
};
|
|
56
58
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
57
59
|
}
|
|
@@ -77,5 +79,6 @@ function MerchantServiceEntityToJSON(value) {
|
|
|
77
79
|
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(MerchantAccountServiceEntity_1.MerchantAccountServiceEntityToJSON)),
|
|
78
80
|
'cancelRedirectUrl': value.cancelRedirectUrl,
|
|
79
81
|
'successRedirectUrl': value.successRedirectUrl,
|
|
82
|
+
'merchantSettings': (0, MerchantSettingsEntity_1.MerchantSettingsEntityToJSON)(value.merchantSettings),
|
|
80
83
|
};
|
|
81
84
|
}
|
|
@@ -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,48 @@
|
|
|
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.instanceOfMerchantSettingsDto = instanceOfMerchantSettingsDto;
|
|
12
|
+
exports.MerchantSettingsDtoFromJSON = MerchantSettingsDtoFromJSON;
|
|
13
|
+
exports.MerchantSettingsDtoFromJSONTyped = MerchantSettingsDtoFromJSONTyped;
|
|
14
|
+
exports.MerchantSettingsDtoToJSON = MerchantSettingsDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeDto_1 = require("./MerchantThemeDto");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MerchantSettingsDto interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMerchantSettingsDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
function MerchantSettingsDtoFromJSON(json) {
|
|
25
|
+
return MerchantSettingsDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
function MerchantSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeDto_1.MerchantThemeDtoFromJSON)(json['checkoutTheme']),
|
|
33
|
+
'isSplitCFeeEnabled': !(0, runtime_1.exists)(json, 'isSplitCFeeEnabled') ? undefined : json['isSplitCFeeEnabled'],
|
|
34
|
+
};
|
|
35
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
36
|
+
}
|
|
37
|
+
function MerchantSettingsDtoToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'checkoutTheme': (0, MerchantThemeDto_1.MerchantThemeDtoToJSON)(value.checkoutTheme),
|
|
46
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,52 @@
|
|
|
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.instanceOfMerchantSettingsEntity = instanceOfMerchantSettingsEntity;
|
|
12
|
+
exports.MerchantSettingsEntityFromJSON = MerchantSettingsEntityFromJSON;
|
|
13
|
+
exports.MerchantSettingsEntityFromJSONTyped = MerchantSettingsEntityFromJSONTyped;
|
|
14
|
+
exports.MerchantSettingsEntityToJSON = MerchantSettingsEntityToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantThemeEntity_1 = require("./MerchantThemeEntity");
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MerchantSettingsEntity interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMerchantSettingsEntity(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "merchantId" in value;
|
|
23
|
+
isInstance = isInstance && "isSplitCFeeEnabled" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
function MerchantSettingsEntityFromJSON(json) {
|
|
27
|
+
return MerchantSettingsEntityFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function MerchantSettingsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'merchantId': json['merchantId'],
|
|
35
|
+
'checkoutTheme': !(0, runtime_1.exists)(json, 'checkoutTheme') ? undefined : (0, MerchantThemeEntity_1.MerchantThemeEntityFromJSON)(json['checkoutTheme']),
|
|
36
|
+
'isSplitCFeeEnabled': json['isSplitCFeeEnabled'],
|
|
37
|
+
};
|
|
38
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
39
|
+
}
|
|
40
|
+
function MerchantSettingsEntityToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'merchantId': value.merchantId,
|
|
49
|
+
'checkoutTheme': (0, MerchantThemeEntity_1.MerchantThemeEntityToJSON)(value.checkoutTheme),
|
|
50
|
+
'isSplitCFeeEnabled': value.isSplitCFeeEnabled,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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,53 @@
|
|
|
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.instanceOfMerchantThemeDto = instanceOfMerchantThemeDto;
|
|
12
|
+
exports.MerchantThemeDtoFromJSON = MerchantThemeDtoFromJSON;
|
|
13
|
+
exports.MerchantThemeDtoFromJSONTyped = MerchantThemeDtoFromJSONTyped;
|
|
14
|
+
exports.MerchantThemeDtoToJSON = MerchantThemeDtoToJSON;
|
|
15
|
+
const runtime_1 = require("../runtime");
|
|
16
|
+
const MerchantColorsDto_1 = require("./MerchantColorsDto");
|
|
17
|
+
const MerchantThemeLogoDto_1 = require("./MerchantThemeLogoDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the MerchantThemeDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfMerchantThemeDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "enabled" in value;
|
|
24
|
+
isInstance = isInstance && "logo" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
function MerchantThemeDtoFromJSON(json) {
|
|
28
|
+
return MerchantThemeDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MerchantThemeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'enabled': json['enabled'],
|
|
36
|
+
'logo': (0, MerchantThemeLogoDto_1.MerchantThemeLogoDtoFromJSON)(json['logo']),
|
|
37
|
+
'colors': !(0, runtime_1.exists)(json, 'colors') ? undefined : (0, MerchantColorsDto_1.MerchantColorsDtoFromJSON)(json['colors']),
|
|
38
|
+
};
|
|
39
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
40
|
+
}
|
|
41
|
+
function MerchantThemeDtoToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'enabled': value.enabled,
|
|
50
|
+
'logo': (0, MerchantThemeLogoDto_1.MerchantThemeLogoDtoToJSON)(value.logo),
|
|
51
|
+
'colors': (0, MerchantColorsDto_1.MerchantColorsDtoToJSON)(value.colors),
|
|
52
|
+
};
|
|
53
|
+
}
|