@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
@@ -35,7 +35,6 @@ export * from './CreateEventDomainDto';
35
35
  export * from './CreateFeatureDto';
36
36
  export * from './CreateFeatureTargetDto';
37
37
  export * from './CreateInitialUserDto';
38
- export * from './CreateMerchantAccountDto';
39
38
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
40
39
  export * from './CreateMerchantAddressDto';
41
40
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -50,6 +49,10 @@ export * from './CreateServicePaymentMethodDto';
50
49
  export * from './CreateStoredCardPaymentMethodDto';
51
50
  export * from './CreateTransactionRefundDto';
52
51
  export * from './CreateTransactionRequestDto';
52
+ export * from './CreateTransactionsReportDto';
53
+ export * from './CreateTransactionsReportsFiltersDto';
54
+ export * from './CreateTransactionsReportsScheduleDto';
55
+ export * from './CreateTransactionsReportsTemplateDto';
53
56
  export * from './CreateUserDto';
54
57
  export * from './CreateWebhookDto';
55
58
  export * from './ErrorEntity';
@@ -58,7 +61,6 @@ export * from './FeatureTargetEntity';
58
61
  export * from './FeaturesEntity';
59
62
  export * from './FeeDetailsEntity';
60
63
  export * from './LogoUploadEntity';
61
- export * from './MerchantAccountEntity';
62
64
  export * from './MerchantAccountServiceEntity';
63
65
  export * from './MerchantAccountsSearchEntity';
64
66
  export * from './MerchantAddressEntity';
@@ -70,6 +72,7 @@ export * from './MerchantCredentialsEntity';
70
72
  export * from './MerchantEntity';
71
73
  export * from './MerchantFeeDetailsEntity';
72
74
  export * from './MerchantServiceEntity';
75
+ export * from './MerchantSettingsBaseDto';
73
76
  export * from './MerchantSettingsDto';
74
77
  export * from './MerchantSettingsEntity';
75
78
  export * from './MerchantThemeDto';
@@ -84,6 +87,7 @@ export * from './PaymentMethodSessionAttemptEntity';
84
87
  export * from './PaymentMethodSessionBaseEntity';
85
88
  export * from './PaymentMethodSessionEntity';
86
89
  export * from './PaymentMethodsSearchEntity';
90
+ export * from './ReportCreatorEntity';
87
91
  export * from './ReturnNotificationEntity';
88
92
  export * from './ReturnNotificationsSearchEntity';
89
93
  export * from './SessionPaymentMethodEntity';
@@ -97,6 +101,14 @@ export * from './TransactionPaymentInstrumentBaseEntity';
97
101
  export * from './TransactionRefundBaseEntity';
98
102
  export * from './TransactionRefundEntity';
99
103
  export * from './TransactionRefundsSearchEntity';
104
+ export * from './TransactionsRecordEntity';
105
+ export * from './TransactionsReportEntity';
106
+ export * from './TransactionsReportScheduleEntity';
107
+ export * from './TransactionsReportSchedulesSearchQueryResponseEntity';
108
+ export * from './TransactionsReportTemplateEntity';
109
+ export * from './TransactionsReportTemplatesSearchQueryResponseEntity';
110
+ export * from './TransactionsReportsFiltersEntity';
111
+ export * from './TransactionsReportsSearchQueryResponseEntity';
100
112
  export * from './TransactionsSearchEntity';
101
113
  export * from './UpdateBuyerDto';
102
114
  export * from './UpdateFeatureDto';
@@ -106,6 +118,8 @@ export * from './UpdateMerchantCredentialsDto';
106
118
  export * from './UpdateMerchantDto';
107
119
  export * from './UpdatePaymentMethodStatusDto';
108
120
  export * from './UpdateSelfDto';
121
+ export * from './UpdateTransactionsReportsScheduleDto';
122
+ export * from './UpdateTransactionsReportsTemplateDto';
109
123
  export * from './UpdateUserDto';
110
124
  export * from './UpdateWebhookDto';
111
125
  export * from './UserEntity';
@@ -37,7 +37,6 @@ export * from './CreateEventDomainDto';
37
37
  export * from './CreateFeatureDto';
38
38
  export * from './CreateFeatureTargetDto';
39
39
  export * from './CreateInitialUserDto';
40
- export * from './CreateMerchantAccountDto';
41
40
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
42
41
  export * from './CreateMerchantAddressDto';
43
42
  export * from './CreateMerchantConnectorCredentialsDto';
@@ -52,6 +51,10 @@ export * from './CreateServicePaymentMethodDto';
52
51
  export * from './CreateStoredCardPaymentMethodDto';
53
52
  export * from './CreateTransactionRefundDto';
54
53
  export * from './CreateTransactionRequestDto';
54
+ export * from './CreateTransactionsReportDto';
55
+ export * from './CreateTransactionsReportsFiltersDto';
56
+ export * from './CreateTransactionsReportsScheduleDto';
57
+ export * from './CreateTransactionsReportsTemplateDto';
55
58
  export * from './CreateUserDto';
56
59
  export * from './CreateWebhookDto';
57
60
  export * from './ErrorEntity';
@@ -60,7 +63,6 @@ export * from './FeatureTargetEntity';
60
63
  export * from './FeaturesEntity';
61
64
  export * from './FeeDetailsEntity';
62
65
  export * from './LogoUploadEntity';
63
- export * from './MerchantAccountEntity';
64
66
  export * from './MerchantAccountServiceEntity';
65
67
  export * from './MerchantAccountsSearchEntity';
66
68
  export * from './MerchantAddressEntity';
@@ -72,6 +74,7 @@ export * from './MerchantCredentialsEntity';
72
74
  export * from './MerchantEntity';
73
75
  export * from './MerchantFeeDetailsEntity';
74
76
  export * from './MerchantServiceEntity';
77
+ export * from './MerchantSettingsBaseDto';
75
78
  export * from './MerchantSettingsDto';
76
79
  export * from './MerchantSettingsEntity';
77
80
  export * from './MerchantThemeDto';
@@ -86,6 +89,7 @@ export * from './PaymentMethodSessionAttemptEntity';
86
89
  export * from './PaymentMethodSessionBaseEntity';
87
90
  export * from './PaymentMethodSessionEntity';
88
91
  export * from './PaymentMethodsSearchEntity';
92
+ export * from './ReportCreatorEntity';
89
93
  export * from './ReturnNotificationEntity';
90
94
  export * from './ReturnNotificationsSearchEntity';
91
95
  export * from './SessionPaymentMethodEntity';
@@ -99,6 +103,14 @@ export * from './TransactionPaymentInstrumentBaseEntity';
99
103
  export * from './TransactionRefundBaseEntity';
100
104
  export * from './TransactionRefundEntity';
101
105
  export * from './TransactionRefundsSearchEntity';
106
+ export * from './TransactionsRecordEntity';
107
+ export * from './TransactionsReportEntity';
108
+ export * from './TransactionsReportScheduleEntity';
109
+ export * from './TransactionsReportSchedulesSearchQueryResponseEntity';
110
+ export * from './TransactionsReportTemplateEntity';
111
+ export * from './TransactionsReportTemplatesSearchQueryResponseEntity';
112
+ export * from './TransactionsReportsFiltersEntity';
113
+ export * from './TransactionsReportsSearchQueryResponseEntity';
102
114
  export * from './TransactionsSearchEntity';
103
115
  export * from './UpdateBuyerDto';
104
116
  export * from './UpdateFeatureDto';
@@ -108,6 +120,8 @@ export * from './UpdateMerchantCredentialsDto';
108
120
  export * from './UpdateMerchantDto';
109
121
  export * from './UpdatePaymentMethodStatusDto';
110
122
  export * from './UpdateSelfDto';
123
+ export * from './UpdateTransactionsReportsScheduleDto';
124
+ export * from './UpdateTransactionsReportsTemplateDto';
111
125
  export * from './UpdateUserDto';
112
126
  export * from './UpdateWebhookDto';
113
127
  export * from './UserEntity';
@@ -64,7 +64,7 @@ export class BaseAPI {
64
64
  }
65
65
  async createFetchParams(context) {
66
66
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
67
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.193.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.195.0";
68
68
  const token = this.generateAuthToken();
69
69
  context.headers['Authorization'] = `Bearer ${token}`;
70
70
  let url = this.url + context.path;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.193.0",
4
+ "version": "1.195.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",
@@ -1,161 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- import type { CreateCFeeDto } from './CreateCFeeDto';
8
- import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
9
- /**
10
- *
11
- * @export
12
- * @interface CreateMerchantAccountDto
13
- */
14
- export interface CreateMerchantAccountDto {
15
- /**
16
- * The associated merchant ID
17
- * @type {string}
18
- * @memberof CreateMerchantAccountDto
19
- */
20
- merchantId: string;
21
- /**
22
- * The issued MID (Merchant ID)
23
- * @type {string}
24
- * @memberof CreateMerchantAccountDto
25
- */
26
- issuedMid: string;
27
- /**
28
- * The payment method
29
- * @type {string}
30
- * @memberof CreateMerchantAccountDto
31
- */
32
- method: CreateMerchantAccountDtoMethodEnum;
33
- /**
34
- * The payment service provider
35
- * @type {string}
36
- * @memberof CreateMerchantAccountDto
37
- */
38
- psp: CreateMerchantAccountDtoPspEnum;
39
- /**
40
- * The CFee details
41
- * @type {CreateCFeeDto}
42
- * @memberof CreateMerchantAccountDto
43
- */
44
- cFee: CreateCFeeDto;
45
- /**
46
- * The accepted card types
47
- * @type {Array<string>}
48
- * @memberof CreateMerchantAccountDto
49
- */
50
- cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
51
- /**
52
- * The accepted card schemes
53
- * @type {Array<string>}
54
- * @memberof CreateMerchantAccountDto
55
- */
56
- cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
57
- /**
58
- * The accepted currencies
59
- * @type {Array<string>}
60
- * @memberof CreateMerchantAccountDto
61
- */
62
- currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
63
- /**
64
- * The list of merchant connectors
65
- * @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
66
- * @memberof CreateMerchantAccountDto
67
- */
68
- connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
69
- /**
70
- * The MCC (Merchant Category Code)
71
- * @type {string}
72
- * @memberof CreateMerchantAccountDto
73
- */
74
- mcc?: string;
75
- /**
76
- * The BIN (Bank Identification Number)
77
- * @type {string}
78
- * @memberof CreateMerchantAccountDto
79
- */
80
- bin?: string;
81
- /**
82
- * The chain or franchise information associated with the merchant
83
- * @type {string}
84
- * @memberof CreateMerchantAccountDto
85
- */
86
- chain?: string;
87
- /**
88
- * The store information associated with the merchant
89
- * @type {string}
90
- * @memberof CreateMerchantAccountDto
91
- */
92
- store?: string;
93
- /**
94
- * The agent information associated with the merchant
95
- * @type {string}
96
- * @memberof CreateMerchantAccountDto
97
- */
98
- agent?: string;
99
- /**
100
- * The default merchant account
101
- * @type {boolean}
102
- * @memberof CreateMerchantAccountDto
103
- */
104
- isDefault?: boolean;
105
- }
106
- /**
107
- * @export
108
- */
109
- export declare const CreateMerchantAccountDtoMethodEnum: {
110
- readonly Card: "CARD";
111
- readonly Ach: "ACH";
112
- };
113
- export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
114
- /**
115
- * @export
116
- */
117
- export declare const CreateMerchantAccountDtoPspEnum: {
118
- readonly Tsys: "TSYS";
119
- readonly Nashville: "NASHVILLE";
120
- readonly North: "NORTH";
121
- readonly ChannelPayments: "CHANNEL_PAYMENTS";
122
- };
123
- export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
124
- /**
125
- * @export
126
- */
127
- export declare const CreateMerchantAccountDtoCardTypesEnum: {
128
- readonly Credit: "CREDIT";
129
- readonly Debit: "DEBIT";
130
- readonly Prepaid: "PREPAID";
131
- };
132
- export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
133
- /**
134
- * @export
135
- */
136
- export declare const CreateMerchantAccountDtoCardSchemesEnum: {
137
- readonly Visa: "VISA";
138
- readonly Mastercard: "MASTERCARD";
139
- readonly Amex: "AMEX";
140
- readonly Discover: "DISCOVER";
141
- readonly Jcb: "JCB";
142
- readonly DinersClub: "DINERS_CLUB";
143
- readonly Maestro: "MAESTRO";
144
- };
145
- export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
146
- /**
147
- * @export
148
- */
149
- export declare const CreateMerchantAccountDtoCurrenciesEnum: {
150
- readonly Usd: "USD";
151
- readonly Aud: "AUD";
152
- readonly Cad: "CAD";
153
- };
154
- export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
155
- /**
156
- * Check if a given object implements the CreateMerchantAccountDto interface.
157
- */
158
- export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
159
- export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
160
- export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
161
- export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
@@ -1,126 +0,0 @@
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.CreateMerchantAccountDtoCurrenciesEnum = exports.CreateMerchantAccountDtoCardSchemesEnum = exports.CreateMerchantAccountDtoCardTypesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoMethodEnum = void 0;
12
- exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
13
- exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
14
- exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
15
- exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
16
- const runtime_1 = require("../runtime");
17
- const CreateCFeeDto_1 = require("./CreateCFeeDto");
18
- const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
19
- /**
20
- * @export
21
- */
22
- exports.CreateMerchantAccountDtoMethodEnum = {
23
- Card: 'CARD',
24
- Ach: 'ACH'
25
- };
26
- /**
27
- * @export
28
- */
29
- exports.CreateMerchantAccountDtoPspEnum = {
30
- Tsys: 'TSYS',
31
- Nashville: 'NASHVILLE',
32
- North: 'NORTH',
33
- ChannelPayments: 'CHANNEL_PAYMENTS'
34
- };
35
- /**
36
- * @export
37
- */
38
- exports.CreateMerchantAccountDtoCardTypesEnum = {
39
- Credit: 'CREDIT',
40
- Debit: 'DEBIT',
41
- Prepaid: 'PREPAID'
42
- };
43
- /**
44
- * @export
45
- */
46
- exports.CreateMerchantAccountDtoCardSchemesEnum = {
47
- Visa: 'VISA',
48
- Mastercard: 'MASTERCARD',
49
- Amex: 'AMEX',
50
- Discover: 'DISCOVER',
51
- Jcb: 'JCB',
52
- DinersClub: 'DINERS_CLUB',
53
- Maestro: 'MAESTRO'
54
- };
55
- /**
56
- * @export
57
- */
58
- exports.CreateMerchantAccountDtoCurrenciesEnum = {
59
- Usd: 'USD',
60
- Aud: 'AUD',
61
- Cad: 'CAD'
62
- };
63
- /**
64
- * Check if a given object implements the CreateMerchantAccountDto interface.
65
- */
66
- function instanceOfCreateMerchantAccountDto(value) {
67
- let isInstance = true;
68
- isInstance = isInstance && "merchantId" in value;
69
- isInstance = isInstance && "issuedMid" in value;
70
- isInstance = isInstance && "method" in value;
71
- isInstance = isInstance && "psp" in value;
72
- isInstance = isInstance && "cFee" in value;
73
- isInstance = isInstance && "connectors" in value;
74
- return isInstance;
75
- }
76
- function CreateMerchantAccountDtoFromJSON(json) {
77
- return CreateMerchantAccountDtoFromJSONTyped(json, false);
78
- }
79
- function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
80
- if ((json === undefined) || (json === null)) {
81
- return json;
82
- }
83
- const typed = {
84
- 'merchantId': json['merchantId'],
85
- 'issuedMid': json['issuedMid'],
86
- 'method': json['method'],
87
- 'psp': json['psp'],
88
- 'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
89
- 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
90
- 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
91
- 'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
92
- 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
93
- 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
94
- 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
95
- 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
96
- 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
97
- 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
98
- 'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
99
- };
100
- return (0, runtime_1.removeNullUndefined)(typed);
101
- }
102
- function CreateMerchantAccountDtoToJSON(value) {
103
- if (value === undefined) {
104
- return undefined;
105
- }
106
- if (value === null) {
107
- return null;
108
- }
109
- return {
110
- 'merchantId': value.merchantId,
111
- 'issuedMid': value.issuedMid,
112
- 'method': value.method,
113
- 'psp': value.psp,
114
- 'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
115
- 'cardTypes': value.cardTypes,
116
- 'cardSchemes': value.cardSchemes,
117
- 'currencies': value.currencies,
118
- 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
119
- 'mcc': value.mcc,
120
- 'bin': value.bin,
121
- 'chain': value.chain,
122
- 'store': value.store,
123
- 'agent': value.agent,
124
- 'isDefault': value.isDefault,
125
- };
126
- }
@@ -1,178 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- import type { CFeeEntity } from './CFeeEntity';
8
- import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
9
- /**
10
- *
11
- * @export
12
- * @interface MerchantAccountEntity
13
- */
14
- export interface MerchantAccountEntity {
15
- /**
16
- * The alphanumeric ID of the merchant account.
17
- * @type {string}
18
- * @memberof MerchantAccountEntity
19
- */
20
- merchantAccountId: string;
21
- /**
22
- * The associated merchant ID.
23
- * @type {string}
24
- * @memberof MerchantAccountEntity
25
- */
26
- merchantId?: string;
27
- /**
28
- * The issued MID (Merchant ID).
29
- * @type {string}
30
- * @memberof MerchantAccountEntity
31
- */
32
- issuedMid: string;
33
- /**
34
- * The payment service provider.
35
- * @type {string}
36
- * @memberof MerchantAccountEntity
37
- */
38
- psp: MerchantAccountEntityPspEnum;
39
- /**
40
- * The CFee details.
41
- * @type {CFeeEntity}
42
- * @memberof MerchantAccountEntity
43
- */
44
- cFee: CFeeEntity;
45
- /**
46
- * The date the merchant was created.
47
- * @type {Date}
48
- * @memberof MerchantAccountEntity
49
- */
50
- createdAt: Date;
51
- /**
52
- * The date the merchant was last updated.
53
- * @type {Date}
54
- * @memberof MerchantAccountEntity
55
- */
56
- updatedAt: Date;
57
- /**
58
- * The payment method.
59
- * @type {string}
60
- * @memberof MerchantAccountEntity
61
- */
62
- method: MerchantAccountEntityMethodEnum;
63
- /**
64
- * The status of the merchant account.
65
- * @type {string}
66
- * @memberof MerchantAccountEntity
67
- */
68
- status: MerchantAccountEntityStatusEnum;
69
- /**
70
- * The card schemes.
71
- * @type {Array<string>}
72
- * @memberof MerchantAccountEntity
73
- */
74
- cardSchemes: Array<MerchantAccountEntityCardSchemesEnum>;
75
- /**
76
- * The accepted currencies.
77
- * @type {Array<string>}
78
- * @memberof MerchantAccountEntity
79
- */
80
- currencies: Array<MerchantAccountEntityCurrenciesEnum>;
81
- /**
82
- * The accepted card types.
83
- * @type {Array<string>}
84
- * @memberof MerchantAccountEntity
85
- */
86
- cardTypes: Array<MerchantAccountEntityCardTypesEnum>;
87
- /**
88
- * Specifies if default merchant account for a given payment method.
89
- * @type {boolean}
90
- * @memberof MerchantAccountEntity
91
- */
92
- isDefault?: boolean;
93
- /**
94
- * The name of the merchant account.
95
- * @type {string}
96
- * @memberof MerchantAccountEntity
97
- */
98
- name?: string;
99
- /**
100
- * The connectors.
101
- * @type {Array<MerchantConnectorServiceEntity>}
102
- * @memberof MerchantAccountEntity
103
- */
104
- connectors?: Array<MerchantConnectorServiceEntity>;
105
- /**
106
- * The date the merchant account was last polled for return notifications.
107
- * @type {Date}
108
- * @memberof MerchantAccountEntity
109
- */
110
- lastPolledAt?: Date;
111
- }
112
- /**
113
- * @export
114
- */
115
- export declare const MerchantAccountEntityPspEnum: {
116
- readonly Tsys: "TSYS";
117
- readonly Nashville: "NASHVILLE";
118
- readonly North: "NORTH";
119
- readonly ChannelPayments: "CHANNEL_PAYMENTS";
120
- };
121
- export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
122
- /**
123
- * @export
124
- */
125
- export declare const MerchantAccountEntityMethodEnum: {
126
- readonly Card: "CARD";
127
- readonly Ach: "ACH";
128
- };
129
- export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
130
- /**
131
- * @export
132
- */
133
- export declare const MerchantAccountEntityStatusEnum: {
134
- readonly Pending: "PENDING";
135
- readonly Active: "ACTIVE";
136
- readonly Inactive: "INACTIVE";
137
- readonly Suspended: "SUSPENDED";
138
- readonly Closed: "CLOSED";
139
- };
140
- export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
141
- /**
142
- * @export
143
- */
144
- export declare const MerchantAccountEntityCardSchemesEnum: {
145
- readonly Visa: "VISA";
146
- readonly Mastercard: "MASTERCARD";
147
- readonly Amex: "AMEX";
148
- readonly Discover: "DISCOVER";
149
- readonly Jcb: "JCB";
150
- readonly DinersClub: "DINERS_CLUB";
151
- readonly Maestro: "MAESTRO";
152
- };
153
- export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
154
- /**
155
- * @export
156
- */
157
- export declare const MerchantAccountEntityCurrenciesEnum: {
158
- readonly Usd: "USD";
159
- readonly Aud: "AUD";
160
- readonly Cad: "CAD";
161
- };
162
- export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
163
- /**
164
- * @export
165
- */
166
- export declare const MerchantAccountEntityCardTypesEnum: {
167
- readonly Credit: "CREDIT";
168
- readonly Debit: "DEBIT";
169
- readonly Prepaid: "PREPAID";
170
- };
171
- export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
172
- /**
173
- * Check if a given object implements the MerchantAccountEntity interface.
174
- */
175
- export declare function instanceOfMerchantAccountEntity(value: object): boolean;
176
- export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
177
- export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
178
- export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;