@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.
Files changed (55) hide show
  1. package/dist/cjs/models/CreateMerchantDto.d.ts +7 -0
  2. package/dist/cjs/models/CreateMerchantDto.js +3 -0
  3. package/dist/cjs/models/LogoUploadEntity.d.ts +32 -0
  4. package/dist/cjs/models/LogoUploadEntity.js +49 -0
  5. package/dist/cjs/models/MerchantColorsDto.d.ts +38 -0
  6. package/dist/cjs/models/MerchantColorsDto.js +49 -0
  7. package/dist/cjs/models/MerchantColorsEntity.d.ts +38 -0
  8. package/dist/cjs/models/MerchantColorsEntity.js +49 -0
  9. package/dist/cjs/models/MerchantEntity.d.ts +7 -0
  10. package/dist/cjs/models/MerchantEntity.js +3 -0
  11. package/dist/cjs/models/MerchantServiceEntity.d.ts +7 -0
  12. package/dist/cjs/models/MerchantServiceEntity.js +3 -0
  13. package/dist/cjs/models/MerchantSettingsDto.d.ts +33 -0
  14. package/dist/cjs/models/MerchantSettingsDto.js +48 -0
  15. package/dist/cjs/models/MerchantSettingsEntity.d.ts +39 -0
  16. package/dist/cjs/models/MerchantSettingsEntity.js +52 -0
  17. package/dist/cjs/models/MerchantThemeDto.d.ts +40 -0
  18. package/dist/cjs/models/MerchantThemeDto.js +53 -0
  19. package/dist/cjs/models/MerchantThemeEntity.d.ts +40 -0
  20. package/dist/cjs/models/MerchantThemeEntity.js +53 -0
  21. package/dist/cjs/models/MerchantThemeLogoDto.d.ts +41 -0
  22. package/dist/cjs/models/MerchantThemeLogoDto.js +57 -0
  23. package/dist/cjs/models/MerchantThemeLogoEntity.d.ts +41 -0
  24. package/dist/cjs/models/MerchantThemeLogoEntity.js +57 -0
  25. package/dist/cjs/models/index.d.ts +9 -0
  26. package/dist/cjs/models/index.js +9 -0
  27. package/dist/cjs/runtime.js +1 -1
  28. package/dist/mjs/models/CreateMerchantDto.d.ts +7 -0
  29. package/dist/mjs/models/CreateMerchantDto.js +3 -0
  30. package/dist/mjs/models/LogoUploadEntity.d.ts +32 -0
  31. package/dist/mjs/models/LogoUploadEntity.js +43 -0
  32. package/dist/mjs/models/MerchantColorsDto.d.ts +38 -0
  33. package/dist/mjs/models/MerchantColorsDto.js +43 -0
  34. package/dist/mjs/models/MerchantColorsEntity.d.ts +38 -0
  35. package/dist/mjs/models/MerchantColorsEntity.js +43 -0
  36. package/dist/mjs/models/MerchantEntity.d.ts +7 -0
  37. package/dist/mjs/models/MerchantEntity.js +3 -0
  38. package/dist/mjs/models/MerchantServiceEntity.d.ts +7 -0
  39. package/dist/mjs/models/MerchantServiceEntity.js +3 -0
  40. package/dist/mjs/models/MerchantSettingsDto.d.ts +33 -0
  41. package/dist/mjs/models/MerchantSettingsDto.js +42 -0
  42. package/dist/mjs/models/MerchantSettingsEntity.d.ts +39 -0
  43. package/dist/mjs/models/MerchantSettingsEntity.js +46 -0
  44. package/dist/mjs/models/MerchantThemeDto.d.ts +40 -0
  45. package/dist/mjs/models/MerchantThemeDto.js +47 -0
  46. package/dist/mjs/models/MerchantThemeEntity.d.ts +40 -0
  47. package/dist/mjs/models/MerchantThemeEntity.js +47 -0
  48. package/dist/mjs/models/MerchantThemeLogoDto.d.ts +41 -0
  49. package/dist/mjs/models/MerchantThemeLogoDto.js +50 -0
  50. package/dist/mjs/models/MerchantThemeLogoEntity.d.ts +41 -0
  51. package/dist/mjs/models/MerchantThemeLogoEntity.js +50 -0
  52. package/dist/mjs/models/index.d.ts +9 -0
  53. package/dist/mjs/models/index.js +9 -0
  54. package/dist/mjs/runtime.js +1 -1
  55. package/package.json +2 -2
@@ -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,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.instanceOfMerchantThemeEntity = instanceOfMerchantThemeEntity;
12
+ exports.MerchantThemeEntityFromJSON = MerchantThemeEntityFromJSON;
13
+ exports.MerchantThemeEntityFromJSONTyped = MerchantThemeEntityFromJSONTyped;
14
+ exports.MerchantThemeEntityToJSON = MerchantThemeEntityToJSON;
15
+ const runtime_1 = require("../runtime");
16
+ const MerchantColorsEntity_1 = require("./MerchantColorsEntity");
17
+ const MerchantThemeLogoEntity_1 = require("./MerchantThemeLogoEntity");
18
+ /**
19
+ * Check if a given object implements the MerchantThemeEntity interface.
20
+ */
21
+ function instanceOfMerchantThemeEntity(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "enabled" in value;
24
+ isInstance = isInstance && "logo" in value;
25
+ return isInstance;
26
+ }
27
+ function MerchantThemeEntityFromJSON(json) {
28
+ return MerchantThemeEntityFromJSONTyped(json, false);
29
+ }
30
+ function MerchantThemeEntityFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ const typed = {
35
+ 'enabled': json['enabled'],
36
+ 'logo': (0, MerchantThemeLogoEntity_1.MerchantThemeLogoEntityFromJSON)(json['logo']),
37
+ 'colors': !(0, runtime_1.exists)(json, 'colors') ? undefined : (0, MerchantColorsEntity_1.MerchantColorsEntityFromJSON)(json['colors']),
38
+ };
39
+ return (0, runtime_1.removeNullUndefined)(typed);
40
+ }
41
+ function MerchantThemeEntityToJSON(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, MerchantThemeLogoEntity_1.MerchantThemeLogoEntityToJSON)(value.logo),
51
+ 'colors': (0, MerchantColorsEntity_1.MerchantColorsEntityToJSON)(value.colors),
52
+ };
53
+ }
@@ -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,57 @@
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.MerchantThemeLogoDtoTypeEnum = void 0;
12
+ exports.instanceOfMerchantThemeLogoDto = instanceOfMerchantThemeLogoDto;
13
+ exports.MerchantThemeLogoDtoFromJSON = MerchantThemeLogoDtoFromJSON;
14
+ exports.MerchantThemeLogoDtoFromJSONTyped = MerchantThemeLogoDtoFromJSONTyped;
15
+ exports.MerchantThemeLogoDtoToJSON = MerchantThemeLogoDtoToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ /**
18
+ * @export
19
+ */
20
+ exports.MerchantThemeLogoDtoTypeEnum = {
21
+ None: 'NONE',
22
+ Default: 'DEFAULT',
23
+ Custom: 'CUSTOM'
24
+ };
25
+ /**
26
+ * Check if a given object implements the MerchantThemeLogoDto interface.
27
+ */
28
+ function instanceOfMerchantThemeLogoDto(value) {
29
+ let isInstance = true;
30
+ isInstance = isInstance && "type" in value;
31
+ return isInstance;
32
+ }
33
+ function MerchantThemeLogoDtoFromJSON(json) {
34
+ return MerchantThemeLogoDtoFromJSONTyped(json, false);
35
+ }
36
+ function MerchantThemeLogoDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ const typed = {
41
+ 'type': json['type'],
42
+ 'customLogo': !(0, runtime_1.exists)(json, 'customLogo') ? undefined : json['customLogo'],
43
+ };
44
+ return (0, runtime_1.removeNullUndefined)(typed);
45
+ }
46
+ function MerchantThemeLogoDtoToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'type': value.type,
55
+ 'customLogo': value.customLogo,
56
+ };
57
+ }
@@ -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,57 @@
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.MerchantThemeLogoEntityTypeEnum = void 0;
12
+ exports.instanceOfMerchantThemeLogoEntity = instanceOfMerchantThemeLogoEntity;
13
+ exports.MerchantThemeLogoEntityFromJSON = MerchantThemeLogoEntityFromJSON;
14
+ exports.MerchantThemeLogoEntityFromJSONTyped = MerchantThemeLogoEntityFromJSONTyped;
15
+ exports.MerchantThemeLogoEntityToJSON = MerchantThemeLogoEntityToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ /**
18
+ * @export
19
+ */
20
+ exports.MerchantThemeLogoEntityTypeEnum = {
21
+ None: 'NONE',
22
+ Default: 'DEFAULT',
23
+ Custom: 'CUSTOM'
24
+ };
25
+ /**
26
+ * Check if a given object implements the MerchantThemeLogoEntity interface.
27
+ */
28
+ function instanceOfMerchantThemeLogoEntity(value) {
29
+ let isInstance = true;
30
+ isInstance = isInstance && "type" in value;
31
+ return isInstance;
32
+ }
33
+ function MerchantThemeLogoEntityFromJSON(json) {
34
+ return MerchantThemeLogoEntityFromJSONTyped(json, false);
35
+ }
36
+ function MerchantThemeLogoEntityFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ const typed = {
41
+ 'type': json['type'],
42
+ 'customLogo': !(0, runtime_1.exists)(json, 'customLogo') ? undefined : json['customLogo'],
43
+ };
44
+ return (0, runtime_1.removeNullUndefined)(typed);
45
+ }
46
+ function MerchantThemeLogoEntityToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'type': value.type,
55
+ 'customLogo': value.customLogo,
56
+ };
57
+ }
@@ -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';
@@ -66,15 +66,24 @@ __exportStar(require("./ErrorEntity"), exports);
66
66
  __exportStar(require("./FeatureEntity"), exports);
67
67
  __exportStar(require("./FeatureTargetEntity"), exports);
68
68
  __exportStar(require("./FeaturesEntity"), exports);
69
+ __exportStar(require("./LogoUploadEntity"), exports);
69
70
  __exportStar(require("./MerchantAccountEntity"), exports);
70
71
  __exportStar(require("./MerchantAccountServiceEntity"), exports);
71
72
  __exportStar(require("./MerchantAccountsSearchEntity"), exports);
72
73
  __exportStar(require("./MerchantAddressEntity"), exports);
74
+ __exportStar(require("./MerchantColorsDto"), exports);
75
+ __exportStar(require("./MerchantColorsEntity"), exports);
73
76
  __exportStar(require("./MerchantConnectorCredentialsServiceEntity"), exports);
74
77
  __exportStar(require("./MerchantConnectorServiceEntity"), exports);
75
78
  __exportStar(require("./MerchantCredentialsEntity"), exports);
76
79
  __exportStar(require("./MerchantEntity"), exports);
77
80
  __exportStar(require("./MerchantServiceEntity"), exports);
81
+ __exportStar(require("./MerchantSettingsDto"), exports);
82
+ __exportStar(require("./MerchantSettingsEntity"), exports);
83
+ __exportStar(require("./MerchantThemeDto"), exports);
84
+ __exportStar(require("./MerchantThemeEntity"), exports);
85
+ __exportStar(require("./MerchantThemeLogoDto"), exports);
86
+ __exportStar(require("./MerchantThemeLogoEntity"), exports);
78
87
  __exportStar(require("./PaymentMethodBaseEntity"), exports);
79
88
  __exportStar(require("./PaymentMethodDto"), exports);
80
89
  __exportStar(require("./PaymentMethodEntity"), exports);
@@ -114,7 +114,7 @@ class BaseAPI {
114
114
  createFetchParams(context) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
116
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
117
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.181.0";
117
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.182.0";
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -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.
@@ -9,6 +9,7 @@
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  import { CreateMerchantAccountWithoutMerchantIdDtoFromJSON, CreateMerchantAccountWithoutMerchantIdDtoToJSON, } from './CreateMerchantAccountWithoutMerchantIdDto';
11
11
  import { CreateMerchantAddressDtoFromJSON, CreateMerchantAddressDtoToJSON, } from './CreateMerchantAddressDto';
12
+ import { MerchantSettingsDtoFromJSON, MerchantSettingsDtoToJSON, } from './MerchantSettingsDto';
12
13
  /**
13
14
  * Check if a given object implements the CreateMerchantDto interface.
14
15
  */
@@ -35,6 +36,7 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
35
36
  'website': !exists(json, 'website') ? undefined : json['website'],
36
37
  'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
37
38
  'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
39
+ 'merchantSettings': !exists(json, 'merchantSettings') ? undefined : MerchantSettingsDtoFromJSON(json['merchantSettings']),
38
40
  };
39
41
  return removeNullUndefined(typed);
40
42
  }
@@ -53,5 +55,6 @@ export function CreateMerchantDtoToJSON(value) {
53
55
  'website': value.website,
54
56
  'parentMerchantId': value.parentMerchantId,
55
57
  'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
58
+ 'merchantSettings': MerchantSettingsDtoToJSON(value.merchantSettings),
56
59
  };
57
60
  }
@@ -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,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the LogoUploadEntity interface.
12
+ */
13
+ export function instanceOfLogoUploadEntity(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "imageUrl" in value;
16
+ isInstance = isInstance && "uploadUrl" in value;
17
+ return isInstance;
18
+ }
19
+ export function LogoUploadEntityFromJSON(json) {
20
+ return LogoUploadEntityFromJSONTyped(json, false);
21
+ }
22
+ export function LogoUploadEntityFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ const typed = {
27
+ 'imageUrl': json['imageUrl'],
28
+ 'uploadUrl': json['uploadUrl'],
29
+ };
30
+ return removeNullUndefined(typed);
31
+ }
32
+ export function LogoUploadEntityToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'imageUrl': value.imageUrl,
41
+ 'uploadUrl': value.uploadUrl,
42
+ };
43
+ }
@@ -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,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { exists, removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the MerchantColorsDto interface.
12
+ */
13
+ export function instanceOfMerchantColorsDto(value) {
14
+ let isInstance = true;
15
+ return isInstance;
16
+ }
17
+ export function MerchantColorsDtoFromJSON(json) {
18
+ return MerchantColorsDtoFromJSONTyped(json, false);
19
+ }
20
+ export function MerchantColorsDtoFromJSONTyped(json, ignoreDiscriminator) {
21
+ if ((json === undefined) || (json === null)) {
22
+ return json;
23
+ }
24
+ const typed = {
25
+ 'primary': !exists(json, 'primary') ? undefined : json['primary'],
26
+ 'secondary': !exists(json, 'secondary') ? undefined : json['secondary'],
27
+ 'tertiary': !exists(json, 'tertiary') ? undefined : json['tertiary'],
28
+ };
29
+ return removeNullUndefined(typed);
30
+ }
31
+ export function MerchantColorsDtoToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'primary': value.primary,
40
+ 'secondary': value.secondary,
41
+ 'tertiary': value.tertiary,
42
+ };
43
+ }
@@ -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,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { exists, removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the MerchantColorsEntity interface.
12
+ */
13
+ export function instanceOfMerchantColorsEntity(value) {
14
+ let isInstance = true;
15
+ return isInstance;
16
+ }
17
+ export function MerchantColorsEntityFromJSON(json) {
18
+ return MerchantColorsEntityFromJSONTyped(json, false);
19
+ }
20
+ export function MerchantColorsEntityFromJSONTyped(json, ignoreDiscriminator) {
21
+ if ((json === undefined) || (json === null)) {
22
+ return json;
23
+ }
24
+ const typed = {
25
+ 'primary': !exists(json, 'primary') ? undefined : json['primary'],
26
+ 'secondary': !exists(json, 'secondary') ? undefined : json['secondary'],
27
+ 'tertiary': !exists(json, 'tertiary') ? undefined : json['tertiary'],
28
+ };
29
+ return removeNullUndefined(typed);
30
+ }
31
+ export function MerchantColorsEntityToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'primary': value.primary,
40
+ 'secondary': value.secondary,
41
+ 'tertiary': value.tertiary,
42
+ };
43
+ }
@@ -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.