@channelpayments/node-sdk 1.193.0 → 1.195.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 (119) hide show
  1. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  2. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
  3. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  5. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  6. package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
  7. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  8. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  9. package/dist/cjs/models/CreateTransactionsReportDto.d.ts +112 -0
  10. package/dist/cjs/models/CreateTransactionsReportDto.js +99 -0
  11. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  12. package/dist/cjs/models/CreateTransactionsReportsFiltersDto.js +126 -0
  13. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  14. package/dist/cjs/models/CreateTransactionsReportsScheduleDto.js +107 -0
  15. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  16. package/dist/cjs/models/CreateTransactionsReportsTemplateDto.js +90 -0
  17. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  18. package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
  19. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  20. package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
  21. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  22. package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
  23. package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
  24. package/dist/cjs/models/MerchantSettingsDto.js +2 -2
  25. package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
  26. package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
  27. package/dist/cjs/models/ReportCreatorEntity.d.ts +32 -0
  28. package/dist/cjs/models/ReportCreatorEntity.js +49 -0
  29. package/dist/cjs/models/TransactionsRecordEntity.d.ts +303 -0
  30. package/dist/cjs/models/TransactionsRecordEntity.js +188 -0
  31. package/dist/cjs/models/TransactionsReportEntity.d.ts +171 -0
  32. package/dist/cjs/models/TransactionsReportEntity.js +133 -0
  33. package/dist/cjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  34. package/dist/cjs/models/TransactionsReportScheduleEntity.js +131 -0
  35. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  36. package/dist/cjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +66 -0
  37. package/dist/cjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  38. package/dist/cjs/models/TransactionsReportTemplateEntity.js +121 -0
  39. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  40. package/dist/cjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +66 -0
  41. package/dist/cjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  42. package/dist/cjs/models/TransactionsReportsFiltersEntity.js +126 -0
  43. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  44. package/dist/cjs/models/TransactionsReportsSearchQueryResponseEntity.js +66 -0
  45. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  46. package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
  47. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  48. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
  49. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  50. package/dist/cjs/models/UpdateTransactionsReportsScheduleDto.js +101 -0
  51. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  52. package/dist/cjs/models/UpdateTransactionsReportsTemplateDto.js +89 -0
  53. package/dist/cjs/models/index.d.ts +16 -2
  54. package/dist/cjs/models/index.js +16 -2
  55. package/dist/cjs/runtime.js +1 -1
  56. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  57. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
  58. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  59. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  60. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  61. package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
  62. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  63. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  64. package/dist/mjs/models/CreateTransactionsReportDto.d.ts +112 -0
  65. package/dist/mjs/models/CreateTransactionsReportDto.js +92 -0
  66. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.d.ts +151 -0
  67. package/dist/mjs/models/CreateTransactionsReportsFiltersDto.js +119 -0
  68. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.d.ts +121 -0
  69. package/dist/mjs/models/CreateTransactionsReportsScheduleDto.js +100 -0
  70. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.d.ts +94 -0
  71. package/dist/mjs/models/CreateTransactionsReportsTemplateDto.js +83 -0
  72. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  73. package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
  74. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  75. package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
  76. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  77. package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
  78. package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
  79. package/dist/mjs/models/MerchantSettingsDto.js +2 -2
  80. package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
  81. package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
  82. package/dist/mjs/models/ReportCreatorEntity.d.ts +32 -0
  83. package/dist/mjs/models/ReportCreatorEntity.js +43 -0
  84. package/dist/mjs/models/TransactionsRecordEntity.d.ts +303 -0
  85. package/dist/mjs/models/TransactionsRecordEntity.js +181 -0
  86. package/dist/mjs/models/TransactionsReportEntity.d.ts +171 -0
  87. package/dist/mjs/models/TransactionsReportEntity.js +126 -0
  88. package/dist/mjs/models/TransactionsReportScheduleEntity.d.ts +176 -0
  89. package/dist/mjs/models/TransactionsReportScheduleEntity.js +124 -0
  90. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.d.ts +69 -0
  91. package/dist/mjs/models/TransactionsReportSchedulesSearchQueryResponseEntity.js +60 -0
  92. package/dist/mjs/models/TransactionsReportTemplateEntity.d.ts +156 -0
  93. package/dist/mjs/models/TransactionsReportTemplateEntity.js +114 -0
  94. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.d.ts +69 -0
  95. package/dist/mjs/models/TransactionsReportTemplatesSearchQueryResponseEntity.js +60 -0
  96. package/dist/mjs/models/TransactionsReportsFiltersEntity.d.ts +151 -0
  97. package/dist/mjs/models/TransactionsReportsFiltersEntity.js +119 -0
  98. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.d.ts +69 -0
  99. package/dist/mjs/models/TransactionsReportsSearchQueryResponseEntity.js +60 -0
  100. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  101. package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
  102. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  103. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
  104. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.d.ts +127 -0
  105. package/dist/mjs/models/UpdateTransactionsReportsScheduleDto.js +94 -0
  106. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.d.ts +106 -0
  107. package/dist/mjs/models/UpdateTransactionsReportsTemplateDto.js +82 -0
  108. package/dist/mjs/models/index.d.ts +16 -2
  109. package/dist/mjs/models/index.js +16 -2
  110. package/dist/mjs/runtime.js +1 -1
  111. package/package.json +1 -1
  112. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
  113. package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
  114. package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
  115. package/dist/cjs/models/MerchantAccountEntity.js +0 -143
  116. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
  117. package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
  118. package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
  119. package/dist/mjs/models/MerchantAccountEntity.js +0 -136
@@ -0,0 +1,126 @@
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.TransactionsReportsFiltersEntityTransactionStatusesEnum = exports.TransactionsReportsFiltersEntityTransactionIntentsEnum = exports.TransactionsReportsFiltersEntityCardSchemesEnum = exports.TransactionsReportsFiltersEntityCardTypesEnum = exports.TransactionsReportsFiltersEntityAccountTypesEnum = exports.TransactionsReportsFiltersEntityPaymentMethodsEnum = void 0;
12
+ exports.instanceOfTransactionsReportsFiltersEntity = instanceOfTransactionsReportsFiltersEntity;
13
+ exports.TransactionsReportsFiltersEntityFromJSON = TransactionsReportsFiltersEntityFromJSON;
14
+ exports.TransactionsReportsFiltersEntityFromJSONTyped = TransactionsReportsFiltersEntityFromJSONTyped;
15
+ exports.TransactionsReportsFiltersEntityToJSON = TransactionsReportsFiltersEntityToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ /**
18
+ * @export
19
+ */
20
+ exports.TransactionsReportsFiltersEntityPaymentMethodsEnum = {
21
+ Card: 'CARD',
22
+ Bank: 'BANK'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ exports.TransactionsReportsFiltersEntityAccountTypesEnum = {
28
+ Checking: 'CHECKING',
29
+ Savings: 'SAVINGS'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.TransactionsReportsFiltersEntityCardTypesEnum = {
35
+ Credit: 'CREDIT',
36
+ Debit: 'DEBIT',
37
+ Prepaid: 'PREPAID'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.TransactionsReportsFiltersEntityCardSchemesEnum = {
43
+ Visa: 'visa',
44
+ Mastercard: 'mastercard',
45
+ Amex: 'amex',
46
+ Discover: 'discover',
47
+ Jcb: 'jcb',
48
+ DinersClub: 'diners_club',
49
+ Maestro: 'maestro'
50
+ };
51
+ /**
52
+ * @export
53
+ */
54
+ exports.TransactionsReportsFiltersEntityTransactionIntentsEnum = {
55
+ Capture: 'capture',
56
+ Authorize: 'authorize',
57
+ Debit: 'debit',
58
+ Credit: 'credit'
59
+ };
60
+ /**
61
+ * @export
62
+ */
63
+ exports.TransactionsReportsFiltersEntityTransactionStatusesEnum = {
64
+ Authorized: 'authorized',
65
+ AuthorizationFailed: 'authorizationFailed',
66
+ Declined: 'declined',
67
+ Captured: 'captured',
68
+ Voided: 'voided',
69
+ Hold: 'hold',
70
+ Submitted: 'submitted',
71
+ Transmitted: 'transmitted',
72
+ Settled: 'settled',
73
+ Returned: 'returned',
74
+ Rejected: 'rejected'
75
+ };
76
+ /**
77
+ * Check if a given object implements the TransactionsReportsFiltersEntity interface.
78
+ */
79
+ function instanceOfTransactionsReportsFiltersEntity(value) {
80
+ let isInstance = true;
81
+ isInstance = isInstance && "paymentMethods" in value;
82
+ return isInstance;
83
+ }
84
+ function TransactionsReportsFiltersEntityFromJSON(json) {
85
+ return TransactionsReportsFiltersEntityFromJSONTyped(json, false);
86
+ }
87
+ function TransactionsReportsFiltersEntityFromJSONTyped(json, ignoreDiscriminator) {
88
+ if ((json === undefined) || (json === null)) {
89
+ return json;
90
+ }
91
+ const typed = {
92
+ 'paymentMethods': json['paymentMethods'],
93
+ 'accountTypes': !(0, runtime_1.exists)(json, 'accountTypes') ? undefined : json['accountTypes'],
94
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
95
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
96
+ 'transactionIntents': !(0, runtime_1.exists)(json, 'transactionIntents') ? undefined : json['transactionIntents'],
97
+ 'transactionStatuses': !(0, runtime_1.exists)(json, 'transactionStatuses') ? undefined : json['transactionStatuses'],
98
+ 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
99
+ 'amountGreaterThan': !(0, runtime_1.exists)(json, 'amountGreaterThan') ? undefined : json['amountGreaterThan'],
100
+ 'amountLessThan': !(0, runtime_1.exists)(json, 'amountLessThan') ? undefined : json['amountLessThan'],
101
+ 'amountMin': !(0, runtime_1.exists)(json, 'amountMin') ? undefined : json['amountMin'],
102
+ 'amountMax': !(0, runtime_1.exists)(json, 'amountMax') ? undefined : json['amountMax'],
103
+ };
104
+ return (0, runtime_1.removeNullUndefined)(typed);
105
+ }
106
+ function TransactionsReportsFiltersEntityToJSON(value) {
107
+ if (value === undefined) {
108
+ return undefined;
109
+ }
110
+ if (value === null) {
111
+ return null;
112
+ }
113
+ return {
114
+ 'paymentMethods': value.paymentMethods,
115
+ 'accountTypes': value.accountTypes,
116
+ 'cardTypes': value.cardTypes,
117
+ 'cardSchemes': value.cardSchemes,
118
+ 'transactionIntents': value.transactionIntents,
119
+ 'transactionStatuses': value.transactionStatuses,
120
+ 'amount': value.amount,
121
+ 'amountGreaterThan': value.amountGreaterThan,
122
+ 'amountLessThan': value.amountLessThan,
123
+ 'amountMin': value.amountMin,
124
+ 'amountMax': value.amountMax,
125
+ };
126
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { TransactionsReportEntity } from './TransactionsReportEntity';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface TransactionsReportsSearchQueryResponseEntity
12
+ */
13
+ export interface TransactionsReportsSearchQueryResponseEntity {
14
+ /**
15
+ * The number of records returned.
16
+ * @type {number}
17
+ * @memberof TransactionsReportsSearchQueryResponseEntity
18
+ */
19
+ limit: number;
20
+ /**
21
+ * The page number.
22
+ * @type {number}
23
+ * @memberof TransactionsReportsSearchQueryResponseEntity
24
+ */
25
+ page: number;
26
+ /**
27
+ * The number of pages.
28
+ * @type {number}
29
+ * @memberof TransactionsReportsSearchQueryResponseEntity
30
+ */
31
+ pageCount: number;
32
+ /**
33
+ * The total number of records.
34
+ * @type {number}
35
+ * @memberof TransactionsReportsSearchQueryResponseEntity
36
+ */
37
+ totalCount: number;
38
+ /**
39
+ * The total number of records returned.
40
+ * @type {number}
41
+ * @memberof TransactionsReportsSearchQueryResponseEntity
42
+ */
43
+ filteredCount: number;
44
+ /**
45
+ * The next cursor.
46
+ * @type {string}
47
+ * @memberof TransactionsReportsSearchQueryResponseEntity
48
+ */
49
+ nextCursor?: string;
50
+ /**
51
+ * The previous cursor
52
+ * @type {string}
53
+ * @memberof TransactionsReportsSearchQueryResponseEntity
54
+ */
55
+ prevCursor?: string;
56
+ /**
57
+ *
58
+ * @type {Array<TransactionsReportEntity>}
59
+ * @memberof TransactionsReportsSearchQueryResponseEntity
60
+ */
61
+ items: Array<TransactionsReportEntity>;
62
+ }
63
+ /**
64
+ * Check if a given object implements the TransactionsReportsSearchQueryResponseEntity interface.
65
+ */
66
+ export declare function instanceOfTransactionsReportsSearchQueryResponseEntity(value: object): boolean;
67
+ export declare function TransactionsReportsSearchQueryResponseEntityFromJSON(json: any): TransactionsReportsSearchQueryResponseEntity;
68
+ export declare function TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsReportsSearchQueryResponseEntity;
69
+ export declare function TransactionsReportsSearchQueryResponseEntityToJSON(value?: TransactionsReportsSearchQueryResponseEntity | null): any;
@@ -0,0 +1,66 @@
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.instanceOfTransactionsReportsSearchQueryResponseEntity = instanceOfTransactionsReportsSearchQueryResponseEntity;
12
+ exports.TransactionsReportsSearchQueryResponseEntityFromJSON = TransactionsReportsSearchQueryResponseEntityFromJSON;
13
+ exports.TransactionsReportsSearchQueryResponseEntityFromJSONTyped = TransactionsReportsSearchQueryResponseEntityFromJSONTyped;
14
+ exports.TransactionsReportsSearchQueryResponseEntityToJSON = TransactionsReportsSearchQueryResponseEntityToJSON;
15
+ const runtime_1 = require("../runtime");
16
+ const TransactionsReportEntity_1 = require("./TransactionsReportEntity");
17
+ /**
18
+ * Check if a given object implements the TransactionsReportsSearchQueryResponseEntity interface.
19
+ */
20
+ function instanceOfTransactionsReportsSearchQueryResponseEntity(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "limit" in value;
23
+ isInstance = isInstance && "page" in value;
24
+ isInstance = isInstance && "pageCount" in value;
25
+ isInstance = isInstance && "totalCount" in value;
26
+ isInstance = isInstance && "filteredCount" in value;
27
+ isInstance = isInstance && "items" in value;
28
+ return isInstance;
29
+ }
30
+ function TransactionsReportsSearchQueryResponseEntityFromJSON(json) {
31
+ return TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json, false);
32
+ }
33
+ function TransactionsReportsSearchQueryResponseEntityFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ const typed = {
38
+ 'limit': json['limit'],
39
+ 'page': json['page'],
40
+ 'pageCount': json['pageCount'],
41
+ 'totalCount': json['totalCount'],
42
+ 'filteredCount': json['filteredCount'],
43
+ 'nextCursor': !(0, runtime_1.exists)(json, 'nextCursor') ? undefined : json['nextCursor'],
44
+ 'prevCursor': !(0, runtime_1.exists)(json, 'prevCursor') ? undefined : json['prevCursor'],
45
+ 'items': (json['items'].map(TransactionsReportEntity_1.TransactionsReportEntityFromJSON)),
46
+ };
47
+ return (0, runtime_1.removeNullUndefined)(typed);
48
+ }
49
+ function TransactionsReportsSearchQueryResponseEntityToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'limit': value.limit,
58
+ 'page': value.page,
59
+ 'pageCount': value.pageCount,
60
+ 'totalCount': value.totalCount,
61
+ 'filteredCount': value.filteredCount,
62
+ 'nextCursor': value.nextCursor,
63
+ 'prevCursor': value.prevCursor,
64
+ 'items': (value.items.map(TransactionsReportEntity_1.TransactionsReportEntityToJSON)),
65
+ };
66
+ }
@@ -35,6 +35,12 @@ export interface UpdateMerchantAccountDto {
35
35
  * @memberof UpdateMerchantAccountDto
36
36
  */
37
37
  cardSchemes?: Array<UpdateMerchantAccountDtoCardSchemesEnum>;
38
+ /**
39
+ * Source of card data for this merchant account
40
+ * @type {string}
41
+ * @memberof UpdateMerchantAccountDto
42
+ */
43
+ dataSource?: UpdateMerchantAccountDtoDataSourceEnum;
38
44
  /**
39
45
  * The accepted currencies
40
46
  * @type {Array<string>}
@@ -116,6 +122,14 @@ export declare const UpdateMerchantAccountDtoCardSchemesEnum: {
116
122
  readonly Maestro: "MAESTRO";
117
123
  };
118
124
  export type UpdateMerchantAccountDtoCardSchemesEnum = typeof UpdateMerchantAccountDtoCardSchemesEnum[keyof typeof UpdateMerchantAccountDtoCardSchemesEnum];
125
+ /**
126
+ * @export
127
+ */
128
+ export declare const UpdateMerchantAccountDtoDataSourceEnum: {
129
+ readonly Moto: "MOTO";
130
+ readonly Internet: "INTERNET";
131
+ };
132
+ export type UpdateMerchantAccountDtoDataSourceEnum = typeof UpdateMerchantAccountDtoDataSourceEnum[keyof typeof UpdateMerchantAccountDtoDataSourceEnum];
119
133
  /**
120
134
  * @export
121
135
  */
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = void 0;
11
+ exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoDataSourceEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = void 0;
12
12
  exports.instanceOfUpdateMerchantAccountDto = instanceOfUpdateMerchantAccountDto;
13
13
  exports.UpdateMerchantAccountDtoFromJSON = UpdateMerchantAccountDtoFromJSON;
14
14
  exports.UpdateMerchantAccountDtoFromJSONTyped = UpdateMerchantAccountDtoFromJSONTyped;
@@ -44,6 +44,13 @@ exports.UpdateMerchantAccountDtoCardSchemesEnum = {
44
44
  DinersClub: 'DINERS_CLUB',
45
45
  Maestro: 'MAESTRO'
46
46
  };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.UpdateMerchantAccountDtoDataSourceEnum = {
51
+ Moto: 'MOTO',
52
+ Internet: 'INTERNET'
53
+ };
47
54
  /**
48
55
  * @export
49
56
  */
@@ -71,6 +78,7 @@ function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
71
78
  'cFee': !(0, runtime_1.exists)(json, 'cFee') ? undefined : (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
72
79
  'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
73
80
  'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
81
+ 'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
74
82
  'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
75
83
  'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
76
84
  'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
@@ -94,6 +102,7 @@ function UpdateMerchantAccountDtoToJSON(value) {
94
102
  'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
95
103
  'cardTypes': value.cardTypes,
96
104
  'cardSchemes': value.cardSchemes,
105
+ 'dataSource': value.dataSource,
97
106
  'currencies': value.currencies,
98
107
  'mcc': value.mcc,
99
108
  'bin': value.bin,
@@ -11,17 +11,17 @@
11
11
  */
12
12
  export interface UpdateMerchantCredentialsDto {
13
13
  /**
14
- * The given reference name.
14
+ * The alphanumeric ID of the merchant credentials record
15
15
  * @type {string}
16
16
  * @memberof UpdateMerchantCredentialsDto
17
17
  */
18
- credentialsName?: string;
18
+ merchantCredentialsId: string;
19
19
  /**
20
- * The alphanumeric ID of the merchant credentials record
20
+ * The given reference name.
21
21
  * @type {string}
22
22
  * @memberof UpdateMerchantCredentialsDto
23
23
  */
24
- merchantCredentialsId: string;
24
+ credentialsName: string;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the UpdateMerchantCredentialsDto interface.
@@ -19,6 +19,7 @@ const runtime_1 = require("../runtime");
19
19
  function instanceOfUpdateMerchantCredentialsDto(value) {
20
20
  let isInstance = true;
21
21
  isInstance = isInstance && "merchantCredentialsId" in value;
22
+ isInstance = isInstance && "credentialsName" in value;
22
23
  return isInstance;
23
24
  }
24
25
  function UpdateMerchantCredentialsDtoFromJSON(json) {
@@ -29,8 +30,8 @@ function UpdateMerchantCredentialsDtoFromJSONTyped(json, ignoreDiscriminator) {
29
30
  return json;
30
31
  }
31
32
  const typed = {
32
- 'credentialsName': !(0, runtime_1.exists)(json, 'credentialsName') ? undefined : json['credentialsName'],
33
33
  'merchantCredentialsId': json['merchantCredentialsId'],
34
+ 'credentialsName': json['credentialsName'],
34
35
  };
35
36
  return (0, runtime_1.removeNullUndefined)(typed);
36
37
  }
@@ -42,7 +43,7 @@ function UpdateMerchantCredentialsDtoToJSON(value) {
42
43
  return null;
43
44
  }
44
45
  return {
45
- 'credentialsName': value.credentialsName,
46
46
  'merchantCredentialsId': value.merchantCredentialsId,
47
+ 'credentialsName': value.credentialsName,
47
48
  };
48
49
  }
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateTransactionsReportsFiltersDto } from './CreateTransactionsReportsFiltersDto';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface UpdateTransactionsReportsScheduleDto
12
+ */
13
+ export interface UpdateTransactionsReportsScheduleDto {
14
+ /**
15
+ * The report schedule name.
16
+ * @type {string}
17
+ * @memberof UpdateTransactionsReportsScheduleDto
18
+ */
19
+ name?: string;
20
+ /**
21
+ * The report schedule description.
22
+ * @type {string}
23
+ * @memberof UpdateTransactionsReportsScheduleDto
24
+ */
25
+ description?: string;
26
+ /**
27
+ * The interval of this report schedule.
28
+ * @type {string}
29
+ * @memberof UpdateTransactionsReportsScheduleDto
30
+ */
31
+ interval?: UpdateTransactionsReportsScheduleDtoIntervalEnum;
32
+ /**
33
+ * The date range applied for this report schedule.
34
+ * @type {string}
35
+ * @memberof UpdateTransactionsReportsScheduleDto
36
+ */
37
+ dateRange?: UpdateTransactionsReportsScheduleDtoDateRangeEnum;
38
+ /**
39
+ * The list of email addresses recipients of this report schedule.
40
+ * @type {Array<string>}
41
+ * @memberof UpdateTransactionsReportsScheduleDto
42
+ */
43
+ recipients?: Array<string>;
44
+ /**
45
+ * The order in which the report records are returned.
46
+ * @type {string}
47
+ * @memberof UpdateTransactionsReportsScheduleDto
48
+ */
49
+ order?: UpdateTransactionsReportsScheduleDtoOrderEnum;
50
+ /**
51
+ * The start time for this report schedule.
52
+ * @type {string}
53
+ * @memberof UpdateTransactionsReportsScheduleDto
54
+ */
55
+ startTime?: string;
56
+ /**
57
+ * The end time for this report schedule.
58
+ * @type {string}
59
+ * @memberof UpdateTransactionsReportsScheduleDto
60
+ */
61
+ endTime?: string;
62
+ /**
63
+ * The next run date for this report schedule.
64
+ * @type {string}
65
+ * @memberof UpdateTransactionsReportsScheduleDto
66
+ */
67
+ nextRun?: string;
68
+ /**
69
+ * The columns associated to this report schedule.
70
+ * @type {Array<string>}
71
+ * @memberof UpdateTransactionsReportsScheduleDto
72
+ */
73
+ columns?: Array<string>;
74
+ /**
75
+ * The filters associated to this report schedule.
76
+ * @type {CreateTransactionsReportsFiltersDto}
77
+ * @memberof UpdateTransactionsReportsScheduleDto
78
+ */
79
+ transactionsFilters?: CreateTransactionsReportsFiltersDto;
80
+ /**
81
+ * The report schedule ID.
82
+ * @type {string}
83
+ * @memberof UpdateTransactionsReportsScheduleDto
84
+ */
85
+ reportScheduleId: string;
86
+ }
87
+ /**
88
+ * @export
89
+ */
90
+ export declare const UpdateTransactionsReportsScheduleDtoIntervalEnum: {
91
+ readonly Daily: "DAILY";
92
+ readonly Weekly: "WEEKLY";
93
+ readonly Monthly: "MONTHLY";
94
+ };
95
+ export type UpdateTransactionsReportsScheduleDtoIntervalEnum = typeof UpdateTransactionsReportsScheduleDtoIntervalEnum[keyof typeof UpdateTransactionsReportsScheduleDtoIntervalEnum];
96
+ /**
97
+ * @export
98
+ */
99
+ export declare const UpdateTransactionsReportsScheduleDtoDateRangeEnum: {
100
+ readonly Today: "TODAY";
101
+ readonly Yesterday: "YESTERDAY";
102
+ readonly Last7Days: "LAST_7_DAYS";
103
+ readonly Last30Days: "LAST_30_DAYS";
104
+ readonly Last60Days: "LAST_60_DAYS";
105
+ readonly Last90Days: "LAST_90_DAYS";
106
+ readonly LastWeek: "LAST_WEEK";
107
+ readonly LastMonth: "LAST_MONTH";
108
+ readonly LastQuarter: "LAST_QUARTER";
109
+ readonly LastYear: "LAST_YEAR";
110
+ readonly Custom: "CUSTOM";
111
+ };
112
+ export type UpdateTransactionsReportsScheduleDtoDateRangeEnum = typeof UpdateTransactionsReportsScheduleDtoDateRangeEnum[keyof typeof UpdateTransactionsReportsScheduleDtoDateRangeEnum];
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const UpdateTransactionsReportsScheduleDtoOrderEnum: {
117
+ readonly Asc: "asc";
118
+ readonly Desc: "desc";
119
+ };
120
+ export type UpdateTransactionsReportsScheduleDtoOrderEnum = typeof UpdateTransactionsReportsScheduleDtoOrderEnum[keyof typeof UpdateTransactionsReportsScheduleDtoOrderEnum];
121
+ /**
122
+ * Check if a given object implements the UpdateTransactionsReportsScheduleDto interface.
123
+ */
124
+ export declare function instanceOfUpdateTransactionsReportsScheduleDto(value: object): boolean;
125
+ export declare function UpdateTransactionsReportsScheduleDtoFromJSON(json: any): UpdateTransactionsReportsScheduleDto;
126
+ export declare function UpdateTransactionsReportsScheduleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionsReportsScheduleDto;
127
+ export declare function UpdateTransactionsReportsScheduleDtoToJSON(value?: UpdateTransactionsReportsScheduleDto | null): any;
@@ -0,0 +1,101 @@
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.UpdateTransactionsReportsScheduleDtoOrderEnum = exports.UpdateTransactionsReportsScheduleDtoDateRangeEnum = exports.UpdateTransactionsReportsScheduleDtoIntervalEnum = void 0;
12
+ exports.instanceOfUpdateTransactionsReportsScheduleDto = instanceOfUpdateTransactionsReportsScheduleDto;
13
+ exports.UpdateTransactionsReportsScheduleDtoFromJSON = UpdateTransactionsReportsScheduleDtoFromJSON;
14
+ exports.UpdateTransactionsReportsScheduleDtoFromJSONTyped = UpdateTransactionsReportsScheduleDtoFromJSONTyped;
15
+ exports.UpdateTransactionsReportsScheduleDtoToJSON = UpdateTransactionsReportsScheduleDtoToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ const CreateTransactionsReportsFiltersDto_1 = require("./CreateTransactionsReportsFiltersDto");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.UpdateTransactionsReportsScheduleDtoIntervalEnum = {
22
+ Daily: 'DAILY',
23
+ Weekly: 'WEEKLY',
24
+ Monthly: 'MONTHLY'
25
+ };
26
+ /**
27
+ * @export
28
+ */
29
+ exports.UpdateTransactionsReportsScheduleDtoDateRangeEnum = {
30
+ Today: 'TODAY',
31
+ Yesterday: 'YESTERDAY',
32
+ Last7Days: 'LAST_7_DAYS',
33
+ Last30Days: 'LAST_30_DAYS',
34
+ Last60Days: 'LAST_60_DAYS',
35
+ Last90Days: 'LAST_90_DAYS',
36
+ LastWeek: 'LAST_WEEK',
37
+ LastMonth: 'LAST_MONTH',
38
+ LastQuarter: 'LAST_QUARTER',
39
+ LastYear: 'LAST_YEAR',
40
+ Custom: 'CUSTOM'
41
+ };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.UpdateTransactionsReportsScheduleDtoOrderEnum = {
46
+ Asc: 'asc',
47
+ Desc: 'desc'
48
+ };
49
+ /**
50
+ * Check if a given object implements the UpdateTransactionsReportsScheduleDto interface.
51
+ */
52
+ function instanceOfUpdateTransactionsReportsScheduleDto(value) {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "reportScheduleId" in value;
55
+ return isInstance;
56
+ }
57
+ function UpdateTransactionsReportsScheduleDtoFromJSON(json) {
58
+ return UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, false);
59
+ }
60
+ function UpdateTransactionsReportsScheduleDtoFromJSONTyped(json, ignoreDiscriminator) {
61
+ if ((json === undefined) || (json === null)) {
62
+ return json;
63
+ }
64
+ const typed = {
65
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
66
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
67
+ 'interval': !(0, runtime_1.exists)(json, 'interval') ? undefined : json['interval'],
68
+ 'dateRange': !(0, runtime_1.exists)(json, 'dateRange') ? undefined : json['dateRange'],
69
+ 'recipients': !(0, runtime_1.exists)(json, 'recipients') ? undefined : json['recipients'],
70
+ 'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
71
+ 'startTime': !(0, runtime_1.exists)(json, 'startTime') ? undefined : json['startTime'],
72
+ 'endTime': !(0, runtime_1.exists)(json, 'endTime') ? undefined : json['endTime'],
73
+ 'nextRun': !(0, runtime_1.exists)(json, 'nextRun') ? undefined : json['nextRun'],
74
+ 'columns': !(0, runtime_1.exists)(json, 'columns') ? undefined : json['columns'],
75
+ 'transactionsFilters': !(0, runtime_1.exists)(json, 'transactionsFilters') ? undefined : (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoFromJSON)(json['transactionsFilters']),
76
+ 'reportScheduleId': json['reportScheduleId'],
77
+ };
78
+ return (0, runtime_1.removeNullUndefined)(typed);
79
+ }
80
+ function UpdateTransactionsReportsScheduleDtoToJSON(value) {
81
+ if (value === undefined) {
82
+ return undefined;
83
+ }
84
+ if (value === null) {
85
+ return null;
86
+ }
87
+ return {
88
+ 'name': value.name,
89
+ 'description': value.description,
90
+ 'interval': value.interval,
91
+ 'dateRange': value.dateRange,
92
+ 'recipients': value.recipients,
93
+ 'order': value.order,
94
+ 'startTime': value.startTime,
95
+ 'endTime': value.endTime,
96
+ 'nextRun': value.nextRun,
97
+ 'columns': value.columns,
98
+ 'transactionsFilters': (0, CreateTransactionsReportsFiltersDto_1.CreateTransactionsReportsFiltersDtoToJSON)(value.transactionsFilters),
99
+ 'reportScheduleId': value.reportScheduleId,
100
+ };
101
+ }