@channelpayments/node-sdk 1.180.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 (67) 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/PaymentMethodEntity.d.ts +1 -1
  26. package/dist/cjs/models/PaymentMethodEntity.js +1 -1
  27. package/dist/cjs/models/PaymentMethodServiceEntity.d.ts +1 -1
  28. package/dist/cjs/models/PaymentMethodServiceEntity.js +1 -1
  29. package/dist/cjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
  30. package/dist/cjs/models/UpdatePaymentMethodStatusDto.js +1 -1
  31. package/dist/cjs/models/index.d.ts +9 -0
  32. package/dist/cjs/models/index.js +9 -0
  33. package/dist/cjs/runtime.js +1 -1
  34. package/dist/mjs/models/CreateMerchantDto.d.ts +7 -0
  35. package/dist/mjs/models/CreateMerchantDto.js +3 -0
  36. package/dist/mjs/models/LogoUploadEntity.d.ts +32 -0
  37. package/dist/mjs/models/LogoUploadEntity.js +43 -0
  38. package/dist/mjs/models/MerchantColorsDto.d.ts +38 -0
  39. package/dist/mjs/models/MerchantColorsDto.js +43 -0
  40. package/dist/mjs/models/MerchantColorsEntity.d.ts +38 -0
  41. package/dist/mjs/models/MerchantColorsEntity.js +43 -0
  42. package/dist/mjs/models/MerchantEntity.d.ts +7 -0
  43. package/dist/mjs/models/MerchantEntity.js +3 -0
  44. package/dist/mjs/models/MerchantServiceEntity.d.ts +7 -0
  45. package/dist/mjs/models/MerchantServiceEntity.js +3 -0
  46. package/dist/mjs/models/MerchantSettingsDto.d.ts +33 -0
  47. package/dist/mjs/models/MerchantSettingsDto.js +42 -0
  48. package/dist/mjs/models/MerchantSettingsEntity.d.ts +39 -0
  49. package/dist/mjs/models/MerchantSettingsEntity.js +46 -0
  50. package/dist/mjs/models/MerchantThemeDto.d.ts +40 -0
  51. package/dist/mjs/models/MerchantThemeDto.js +47 -0
  52. package/dist/mjs/models/MerchantThemeEntity.d.ts +40 -0
  53. package/dist/mjs/models/MerchantThemeEntity.js +47 -0
  54. package/dist/mjs/models/MerchantThemeLogoDto.d.ts +41 -0
  55. package/dist/mjs/models/MerchantThemeLogoDto.js +50 -0
  56. package/dist/mjs/models/MerchantThemeLogoEntity.d.ts +41 -0
  57. package/dist/mjs/models/MerchantThemeLogoEntity.js +50 -0
  58. package/dist/mjs/models/PaymentMethodEntity.d.ts +1 -1
  59. package/dist/mjs/models/PaymentMethodEntity.js +1 -1
  60. package/dist/mjs/models/PaymentMethodServiceEntity.d.ts +1 -1
  61. package/dist/mjs/models/PaymentMethodServiceEntity.js +1 -1
  62. package/dist/mjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
  63. package/dist/mjs/models/UpdatePaymentMethodStatusDto.js +1 -1
  64. package/dist/mjs/models/index.d.ts +9 -0
  65. package/dist/mjs/models/index.js +9 -0
  66. package/dist/mjs/runtime.js +1 -1
  67. 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
  }
@@ -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
+ }
@@ -137,7 +137,7 @@ export declare const PaymentMethodEntityStatusEnum: {
137
137
  readonly ApprovalRequired: "approvalRequired";
138
138
  readonly Succeeded: "succeeded";
139
139
  readonly Failed: "failed";
140
- readonly Active: "active";
140
+ readonly Expired: "expired";
141
141
  };
142
142
  export type PaymentMethodEntityStatusEnum = typeof PaymentMethodEntityStatusEnum[keyof typeof PaymentMethodEntityStatusEnum];
143
143
  /**
@@ -19,7 +19,7 @@ export const PaymentMethodEntityStatusEnum = {
19
19
  ApprovalRequired: 'approvalRequired',
20
20
  Succeeded: 'succeeded',
21
21
  Failed: 'failed',
22
- Active: 'active'
22
+ Expired: 'expired'
23
23
  };
24
24
  /**
25
25
  * @export