@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
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { FeeDetailsEntity } from './FeeDetailsEntity';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface PaymentMethodFeeDetailsEntity
12
+ */
13
+ export interface PaymentMethodFeeDetailsEntity {
14
+ /**
15
+ * The payment method used for the transaction fee calculation.
16
+ * @type {string}
17
+ * @memberof PaymentMethodFeeDetailsEntity
18
+ */
19
+ method: PaymentMethodFeeDetailsEntityMethodEnum;
20
+ /**
21
+ * The details of the transaction fees.
22
+ * @type {Array<FeeDetailsEntity>}
23
+ * @memberof PaymentMethodFeeDetailsEntity
24
+ */
25
+ fees: Array<FeeDetailsEntity>;
26
+ /**
27
+ * The total amount of fees applied.
28
+ * @type {number}
29
+ * @memberof PaymentMethodFeeDetailsEntity
30
+ */
31
+ feesTotal: number;
32
+ /**
33
+ * The adjusted total after applying the fees.
34
+ * @type {number}
35
+ * @memberof PaymentMethodFeeDetailsEntity
36
+ */
37
+ adjustedTotal: number;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const PaymentMethodFeeDetailsEntityMethodEnum: {
43
+ readonly Ach: "ACH";
44
+ readonly Bank: "BANK";
45
+ readonly Card: "CARD";
46
+ };
47
+ export type PaymentMethodFeeDetailsEntityMethodEnum = typeof PaymentMethodFeeDetailsEntityMethodEnum[keyof typeof PaymentMethodFeeDetailsEntityMethodEnum];
48
+ /**
49
+ * Check if a given object implements the PaymentMethodFeeDetailsEntity interface.
50
+ */
51
+ export declare function instanceOfPaymentMethodFeeDetailsEntity(value: object): boolean;
52
+ export declare function PaymentMethodFeeDetailsEntityFromJSON(json: any): PaymentMethodFeeDetailsEntity;
53
+ export declare function PaymentMethodFeeDetailsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodFeeDetailsEntity;
54
+ export declare function PaymentMethodFeeDetailsEntityToJSON(value?: PaymentMethodFeeDetailsEntity | null): any;