@channelpayments/node-sdk 1.181.0 → 1.183.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 (75) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +9 -1
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +70 -0
  3. package/dist/cjs/models/CreateMerchantDto.d.ts +7 -0
  4. package/dist/cjs/models/CreateMerchantDto.js +3 -0
  5. package/dist/cjs/models/FeeDetailsEntity.d.ts +53 -0
  6. package/dist/cjs/models/FeeDetailsEntity.js +66 -0
  7. package/dist/cjs/models/LogoUploadEntity.d.ts +32 -0
  8. package/dist/cjs/models/LogoUploadEntity.js +49 -0
  9. package/dist/cjs/models/MerchantColorsDto.d.ts +38 -0
  10. package/dist/cjs/models/MerchantColorsDto.js +49 -0
  11. package/dist/cjs/models/MerchantColorsEntity.d.ts +38 -0
  12. package/dist/cjs/models/MerchantColorsEntity.js +49 -0
  13. package/dist/cjs/models/MerchantEntity.d.ts +7 -0
  14. package/dist/cjs/models/MerchantEntity.js +3 -0
  15. package/dist/cjs/models/MerchantFeeDetailsEntity.d.ts +39 -0
  16. package/dist/cjs/models/MerchantFeeDetailsEntity.js +53 -0
  17. package/dist/cjs/models/MerchantServiceEntity.d.ts +7 -0
  18. package/dist/cjs/models/MerchantServiceEntity.js +3 -0
  19. package/dist/cjs/models/MerchantSettingsDto.d.ts +33 -0
  20. package/dist/cjs/models/MerchantSettingsDto.js +48 -0
  21. package/dist/cjs/models/MerchantSettingsEntity.d.ts +39 -0
  22. package/dist/cjs/models/MerchantSettingsEntity.js +52 -0
  23. package/dist/cjs/models/MerchantThemeDto.d.ts +40 -0
  24. package/dist/cjs/models/MerchantThemeDto.js +53 -0
  25. package/dist/cjs/models/MerchantThemeEntity.d.ts +40 -0
  26. package/dist/cjs/models/MerchantThemeEntity.js +53 -0
  27. package/dist/cjs/models/MerchantThemeLogoDto.d.ts +41 -0
  28. package/dist/cjs/models/MerchantThemeLogoDto.js +57 -0
  29. package/dist/cjs/models/MerchantThemeLogoEntity.d.ts +41 -0
  30. package/dist/cjs/models/MerchantThemeLogoEntity.js +57 -0
  31. package/dist/cjs/models/PaymentMethodFeeDetailsEntity.d.ts +54 -0
  32. package/dist/cjs/models/PaymentMethodFeeDetailsEntity.js +65 -0
  33. package/dist/cjs/models/TransactionEntity.d.ts +0 -6
  34. package/dist/cjs/models/TransactionEntity.js +0 -2
  35. package/dist/cjs/models/index.d.ts +12 -0
  36. package/dist/cjs/models/index.js +12 -0
  37. package/dist/cjs/runtime.js +1 -1
  38. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +9 -1
  39. package/dist/mjs/apis/ChannelPaymentsApi.js +69 -1
  40. package/dist/mjs/models/CreateMerchantDto.d.ts +7 -0
  41. package/dist/mjs/models/CreateMerchantDto.js +3 -0
  42. package/dist/mjs/models/FeeDetailsEntity.d.ts +53 -0
  43. package/dist/mjs/models/FeeDetailsEntity.js +59 -0
  44. package/dist/mjs/models/LogoUploadEntity.d.ts +32 -0
  45. package/dist/mjs/models/LogoUploadEntity.js +43 -0
  46. package/dist/mjs/models/MerchantColorsDto.d.ts +38 -0
  47. package/dist/mjs/models/MerchantColorsDto.js +43 -0
  48. package/dist/mjs/models/MerchantColorsEntity.d.ts +38 -0
  49. package/dist/mjs/models/MerchantColorsEntity.js +43 -0
  50. package/dist/mjs/models/MerchantEntity.d.ts +7 -0
  51. package/dist/mjs/models/MerchantEntity.js +3 -0
  52. package/dist/mjs/models/MerchantFeeDetailsEntity.d.ts +39 -0
  53. package/dist/mjs/models/MerchantFeeDetailsEntity.js +47 -0
  54. package/dist/mjs/models/MerchantServiceEntity.d.ts +7 -0
  55. package/dist/mjs/models/MerchantServiceEntity.js +3 -0
  56. package/dist/mjs/models/MerchantSettingsDto.d.ts +33 -0
  57. package/dist/mjs/models/MerchantSettingsDto.js +42 -0
  58. package/dist/mjs/models/MerchantSettingsEntity.d.ts +39 -0
  59. package/dist/mjs/models/MerchantSettingsEntity.js +46 -0
  60. package/dist/mjs/models/MerchantThemeDto.d.ts +40 -0
  61. package/dist/mjs/models/MerchantThemeDto.js +47 -0
  62. package/dist/mjs/models/MerchantThemeEntity.d.ts +40 -0
  63. package/dist/mjs/models/MerchantThemeEntity.js +47 -0
  64. package/dist/mjs/models/MerchantThemeLogoDto.d.ts +41 -0
  65. package/dist/mjs/models/MerchantThemeLogoDto.js +50 -0
  66. package/dist/mjs/models/MerchantThemeLogoEntity.d.ts +41 -0
  67. package/dist/mjs/models/MerchantThemeLogoEntity.js +50 -0
  68. package/dist/mjs/models/PaymentMethodFeeDetailsEntity.d.ts +54 -0
  69. package/dist/mjs/models/PaymentMethodFeeDetailsEntity.js +58 -0
  70. package/dist/mjs/models/TransactionEntity.d.ts +0 -6
  71. package/dist/mjs/models/TransactionEntity.js +0 -2
  72. package/dist/mjs/models/index.d.ts +12 -0
  73. package/dist/mjs/models/index.js +12 -0
  74. package/dist/mjs/runtime.js +1 -1
  75. package/package.json +2 -2
@@ -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.
@@ -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
  }
@@ -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 { PaymentMethodFeeDetailsEntity } from './PaymentMethodFeeDetailsEntity';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface MerchantFeeDetailsEntity
12
+ */
13
+ export interface MerchantFeeDetailsEntity {
14
+ /**
15
+ * The ID of the merchant.
16
+ * @type {string}
17
+ * @memberof MerchantFeeDetailsEntity
18
+ */
19
+ merchantId: string;
20
+ /**
21
+ * The merchant specified total of the transaction.
22
+ * @type {string}
23
+ * @memberof MerchantFeeDetailsEntity
24
+ */
25
+ subtotal: string;
26
+ /**
27
+ * The details of the payment method fees.
28
+ * @type {Array<PaymentMethodFeeDetailsEntity>}
29
+ * @memberof MerchantFeeDetailsEntity
30
+ */
31
+ feeDetails: Array<PaymentMethodFeeDetailsEntity>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the MerchantFeeDetailsEntity interface.
35
+ */
36
+ export declare function instanceOfMerchantFeeDetailsEntity(value: object): boolean;
37
+ export declare function MerchantFeeDetailsEntityFromJSON(json: any): MerchantFeeDetailsEntity;
38
+ export declare function MerchantFeeDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantFeeDetailsEntity;
39
+ export declare function MerchantFeeDetailsEntityToJSON(value?: MerchantFeeDetailsEntity | 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 { removeNullUndefined } from '../runtime';
10
+ import { PaymentMethodFeeDetailsEntityFromJSON, PaymentMethodFeeDetailsEntityToJSON, } from './PaymentMethodFeeDetailsEntity';
11
+ /**
12
+ * Check if a given object implements the MerchantFeeDetailsEntity interface.
13
+ */
14
+ export function instanceOfMerchantFeeDetailsEntity(value) {
15
+ let isInstance = true;
16
+ isInstance = isInstance && "merchantId" in value;
17
+ isInstance = isInstance && "subtotal" in value;
18
+ isInstance = isInstance && "feeDetails" in value;
19
+ return isInstance;
20
+ }
21
+ export function MerchantFeeDetailsEntityFromJSON(json) {
22
+ return MerchantFeeDetailsEntityFromJSONTyped(json, false);
23
+ }
24
+ export function MerchantFeeDetailsEntityFromJSONTyped(json, ignoreDiscriminator) {
25
+ if ((json === undefined) || (json === null)) {
26
+ return json;
27
+ }
28
+ const typed = {
29
+ 'merchantId': json['merchantId'],
30
+ 'subtotal': json['subtotal'],
31
+ 'feeDetails': (json['feeDetails'].map(PaymentMethodFeeDetailsEntityFromJSON)),
32
+ };
33
+ return removeNullUndefined(typed);
34
+ }
35
+ export function MerchantFeeDetailsEntityToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'merchantId': value.merchantId,
44
+ 'subtotal': value.subtotal,
45
+ 'feeDetails': (value.feeDetails.map(PaymentMethodFeeDetailsEntityToJSON)),
46
+ };
47
+ }
@@ -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
+ }