@emilgroup/payment-sdk-node 1.22.1-beta.50 → 1.22.1-beta.52

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.
@@ -72,6 +72,7 @@ models/generate-invoice-match-suggestions-response-class.ts
72
72
  models/get-bank-account-response-class.ts
73
73
  models/get-bank-order-response-class.ts
74
74
  models/get-bank-transactions-response-class.ts
75
+ models/get-credit-allocation-response-class.ts
75
76
  models/get-exceeding-credit-response-class.ts
76
77
  models/get-payment-method-response-class.ts
77
78
  models/get-payment-reminder-response-class.ts
@@ -98,6 +99,7 @@ models/link-bank-transactions-response-class.ts
98
99
  models/list-bank-accounts-response-class.ts
99
100
  models/list-bank-orders-response-class.ts
100
101
  models/list-bank-transactions-response-class.ts
102
+ models/list-credit-allocations-response-class.ts
101
103
  models/list-exceeding-credits-response-class.ts
102
104
  models/list-payment-methods-response-class.ts
103
105
  models/list-payment-reminders-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.22.1-beta.50 --save
20
+ npm install @emilgroup/payment-sdk-node@1.22.1-beta.52 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.22.1-beta.50
24
+ yarn add @emilgroup/payment-sdk-node@1.22.1-beta.52
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { CreateCreditAllocationRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateCreditAllocationResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetCreditAllocationResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCreditAllocationsResponseClass } from '../models';
27
31
  // URLSearchParams not necessarily used
28
32
  // @ts-ignore
29
33
  import { URL, URLSearchParams } from 'url';
@@ -76,6 +80,127 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
76
80
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
81
  localVarRequestOptions.data = serializeDataIfNeeded(createCreditAllocationRequestDto, localVarRequestOptions, configuration)
78
82
 
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
90
+ * @summary Retrieve the credit allocation entry
91
+ * @param {string} code Code of the credit allocation to get
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ getCreditAllocation: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('getCreditAllocation', 'code', code)
99
+ const localVarPath = `/paymentservice/v1/credit-allocations/{code}`
100
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ }
121
+
122
+
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
135
+ * @summary List credit allocations
136
+ * @param {string} [authorization] Bearer Token
137
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
138
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
139
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
140
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
141
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
142
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
143
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ listCreditAllocations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ const localVarPath = `/paymentservice/v1/credit-allocations`;
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ let baseAccessToken;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ baseAccessToken = configuration.accessToken;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication bearer required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
+
166
+ if (pageSize !== undefined) {
167
+ localVarQueryParameter['pageSize'] = pageSize;
168
+ }
169
+
170
+ if (pageToken !== undefined) {
171
+ localVarQueryParameter['pageToken'] = pageToken;
172
+ }
173
+
174
+ if (filter !== undefined) {
175
+ localVarQueryParameter['filter'] = filter;
176
+ }
177
+
178
+ if (search !== undefined) {
179
+ localVarQueryParameter['search'] = search;
180
+ }
181
+
182
+ if (order !== undefined) {
183
+ localVarQueryParameter['order'] = order;
184
+ }
185
+
186
+ if (expand !== undefined) {
187
+ localVarQueryParameter['expand'] = expand;
188
+ }
189
+
190
+ if (filters !== undefined) {
191
+ localVarQueryParameter['filters'] = filters;
192
+ }
193
+
194
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
195
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
196
+ }
197
+
198
+
199
+
200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
203
+
79
204
  return {
80
205
  url: toPathString(localVarUrlObj),
81
206
  options: localVarRequestOptions,
@@ -103,6 +228,36 @@ export const CreditAllocationApiFp = function(configuration?: Configuration) {
103
228
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAllocateCredit(createCreditAllocationRequestDto, authorization, options);
104
229
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
105
230
  },
231
+ /**
232
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
233
+ * @summary Retrieve the credit allocation entry
234
+ * @param {string} code Code of the credit allocation to get
235
+ * @param {string} [authorization] Bearer Token
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ async getCreditAllocation(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAllocationResponseClass>> {
240
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCreditAllocation(code, authorization, options);
241
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
242
+ },
243
+ /**
244
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
245
+ * @summary List credit allocations
246
+ * @param {string} [authorization] Bearer Token
247
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
248
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
249
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
250
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
251
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
252
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
253
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ async listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCreditAllocationsResponseClass>> {
258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCreditAllocations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
259
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
260
+ },
106
261
  }
107
262
  };
108
263
 
@@ -124,6 +279,34 @@ export const CreditAllocationApiFactory = function (configuration?: Configuratio
124
279
  createAllocateCredit(createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCreditAllocationResponseClass> {
125
280
  return localVarFp.createAllocateCredit(createCreditAllocationRequestDto, authorization, options).then((request) => request(axios, basePath));
126
281
  },
282
+ /**
283
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
284
+ * @summary Retrieve the credit allocation entry
285
+ * @param {string} code Code of the credit allocation to get
286
+ * @param {string} [authorization] Bearer Token
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ getCreditAllocation(code: string, authorization?: string, options?: any): AxiosPromise<GetCreditAllocationResponseClass> {
291
+ return localVarFp.getCreditAllocation(code, authorization, options).then((request) => request(axios, basePath));
292
+ },
293
+ /**
294
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
295
+ * @summary List credit allocations
296
+ * @param {string} [authorization] Bearer Token
297
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
298
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
299
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
300
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
301
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
302
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
303
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCreditAllocationsResponseClass> {
308
+ return localVarFp.listCreditAllocations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
309
+ },
127
310
  };
128
311
  };
129
312
 
@@ -148,6 +331,90 @@ export interface CreditAllocationApiCreateAllocateCreditRequest {
148
331
  readonly authorization?: string
149
332
  }
150
333
 
334
+ /**
335
+ * Request parameters for getCreditAllocation operation in CreditAllocationApi.
336
+ * @export
337
+ * @interface CreditAllocationApiGetCreditAllocationRequest
338
+ */
339
+ export interface CreditAllocationApiGetCreditAllocationRequest {
340
+ /**
341
+ * Code of the credit allocation to get
342
+ * @type {string}
343
+ * @memberof CreditAllocationApiGetCreditAllocation
344
+ */
345
+ readonly code: string
346
+
347
+ /**
348
+ * Bearer Token
349
+ * @type {string}
350
+ * @memberof CreditAllocationApiGetCreditAllocation
351
+ */
352
+ readonly authorization?: string
353
+ }
354
+
355
+ /**
356
+ * Request parameters for listCreditAllocations operation in CreditAllocationApi.
357
+ * @export
358
+ * @interface CreditAllocationApiListCreditAllocationsRequest
359
+ */
360
+ export interface CreditAllocationApiListCreditAllocationsRequest {
361
+ /**
362
+ * Bearer Token
363
+ * @type {string}
364
+ * @memberof CreditAllocationApiListCreditAllocations
365
+ */
366
+ readonly authorization?: string
367
+
368
+ /**
369
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
+ * @type {number}
371
+ * @memberof CreditAllocationApiListCreditAllocations
372
+ */
373
+ readonly pageSize?: number
374
+
375
+ /**
376
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
377
+ * @type {string}
378
+ * @memberof CreditAllocationApiListCreditAllocations
379
+ */
380
+ readonly pageToken?: string
381
+
382
+ /**
383
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
384
+ * @type {string}
385
+ * @memberof CreditAllocationApiListCreditAllocations
386
+ */
387
+ readonly filter?: string
388
+
389
+ /**
390
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
391
+ * @type {string}
392
+ * @memberof CreditAllocationApiListCreditAllocations
393
+ */
394
+ readonly search?: string
395
+
396
+ /**
397
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
398
+ * @type {string}
399
+ * @memberof CreditAllocationApiListCreditAllocations
400
+ */
401
+ readonly order?: string
402
+
403
+ /**
404
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
405
+ * @type {string}
406
+ * @memberof CreditAllocationApiListCreditAllocations
407
+ */
408
+ readonly expand?: string
409
+
410
+ /**
411
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
412
+ * @type {string}
413
+ * @memberof CreditAllocationApiListCreditAllocations
414
+ */
415
+ readonly filters?: string
416
+ }
417
+
151
418
  /**
152
419
  * CreditAllocationApi - object-oriented interface
153
420
  * @export
@@ -166,4 +433,28 @@ export class CreditAllocationApi extends BaseAPI {
166
433
  public createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig) {
167
434
  return CreditAllocationApiFp(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
168
435
  }
436
+
437
+ /**
438
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
439
+ * @summary Retrieve the credit allocation entry
440
+ * @param {CreditAllocationApiGetCreditAllocationRequest} requestParameters Request parameters.
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ * @memberof CreditAllocationApi
444
+ */
445
+ public getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig) {
446
+ return CreditAllocationApiFp(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
447
+ }
448
+
449
+ /**
450
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
451
+ * @summary List credit allocations
452
+ * @param {CreditAllocationApiListCreditAllocationsRequest} requestParameters Request parameters.
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ * @memberof CreditAllocationApi
456
+ */
457
+ public listCreditAllocations(requestParameters: CreditAllocationApiListCreditAllocationsRequest = {}, options?: AxiosRequestConfig) {
458
+ return CreditAllocationApiFp(this.configuration).listCreditAllocations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
459
+ }
169
460
  }
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCreditAllocationRequestDto } from '../models';
16
16
  import { CreateCreditAllocationResponseClass } from '../models';
17
+ import { GetCreditAllocationResponseClass } from '../models';
18
+ import { ListCreditAllocationsResponseClass } from '../models';
17
19
  /**
18
20
  * CreditAllocationApi - axios parameter creator
19
21
  * @export
@@ -28,6 +30,30 @@ export declare const CreditAllocationApiAxiosParamCreator: (configuration?: Conf
28
30
  * @throws {RequiredError}
29
31
  */
30
32
  createAllocateCredit: (createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
35
+ * @summary Retrieve the credit allocation entry
36
+ * @param {string} code Code of the credit allocation to get
37
+ * @param {string} [authorization] Bearer Token
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ getCreditAllocation: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ /**
43
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
44
+ * @summary List credit allocations
45
+ * @param {string} [authorization] Bearer Token
46
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
47
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
48
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
49
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
50
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
51
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
52
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ listCreditAllocations: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
57
  };
32
58
  /**
33
59
  * CreditAllocationApi - functional programming interface
@@ -43,6 +69,30 @@ export declare const CreditAllocationApiFp: (configuration?: Configuration) => {
43
69
  * @throws {RequiredError}
44
70
  */
45
71
  createAllocateCredit(createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCreditAllocationResponseClass>>;
72
+ /**
73
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
74
+ * @summary Retrieve the credit allocation entry
75
+ * @param {string} code Code of the credit allocation to get
76
+ * @param {string} [authorization] Bearer Token
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ getCreditAllocation(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCreditAllocationResponseClass>>;
81
+ /**
82
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
83
+ * @summary List credit allocations
84
+ * @param {string} [authorization] Bearer Token
85
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
86
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
87
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
88
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
89
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
90
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
91
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCreditAllocationsResponseClass>>;
46
96
  };
47
97
  /**
48
98
  * CreditAllocationApi - factory interface
@@ -58,6 +108,30 @@ export declare const CreditAllocationApiFactory: (configuration?: Configuration,
58
108
  * @throws {RequiredError}
59
109
  */
60
110
  createAllocateCredit(createCreditAllocationRequestDto: CreateCreditAllocationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCreditAllocationResponseClass>;
111
+ /**
112
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
113
+ * @summary Retrieve the credit allocation entry
114
+ * @param {string} code Code of the credit allocation to get
115
+ * @param {string} [authorization] Bearer Token
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ getCreditAllocation(code: string, authorization?: string, options?: any): AxiosPromise<GetCreditAllocationResponseClass>;
120
+ /**
121
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
122
+ * @summary List credit allocations
123
+ * @param {string} [authorization] Bearer Token
124
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
125
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
126
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
127
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
128
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
129
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
130
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ listCreditAllocations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCreditAllocationsResponseClass>;
61
135
  };
62
136
  /**
63
137
  * Request parameters for createAllocateCredit operation in CreditAllocationApi.
@@ -78,6 +152,80 @@ export interface CreditAllocationApiCreateAllocateCreditRequest {
78
152
  */
79
153
  readonly authorization?: string;
80
154
  }
155
+ /**
156
+ * Request parameters for getCreditAllocation operation in CreditAllocationApi.
157
+ * @export
158
+ * @interface CreditAllocationApiGetCreditAllocationRequest
159
+ */
160
+ export interface CreditAllocationApiGetCreditAllocationRequest {
161
+ /**
162
+ * Code of the credit allocation to get
163
+ * @type {string}
164
+ * @memberof CreditAllocationApiGetCreditAllocation
165
+ */
166
+ readonly code: string;
167
+ /**
168
+ * Bearer Token
169
+ * @type {string}
170
+ * @memberof CreditAllocationApiGetCreditAllocation
171
+ */
172
+ readonly authorization?: string;
173
+ }
174
+ /**
175
+ * Request parameters for listCreditAllocations operation in CreditAllocationApi.
176
+ * @export
177
+ * @interface CreditAllocationApiListCreditAllocationsRequest
178
+ */
179
+ export interface CreditAllocationApiListCreditAllocationsRequest {
180
+ /**
181
+ * Bearer Token
182
+ * @type {string}
183
+ * @memberof CreditAllocationApiListCreditAllocations
184
+ */
185
+ readonly authorization?: string;
186
+ /**
187
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
+ * @type {number}
189
+ * @memberof CreditAllocationApiListCreditAllocations
190
+ */
191
+ readonly pageSize?: number;
192
+ /**
193
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
194
+ * @type {string}
195
+ * @memberof CreditAllocationApiListCreditAllocations
196
+ */
197
+ readonly pageToken?: string;
198
+ /**
199
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
200
+ * @type {string}
201
+ * @memberof CreditAllocationApiListCreditAllocations
202
+ */
203
+ readonly filter?: string;
204
+ /**
205
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
206
+ * @type {string}
207
+ * @memberof CreditAllocationApiListCreditAllocations
208
+ */
209
+ readonly search?: string;
210
+ /**
211
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
212
+ * @type {string}
213
+ * @memberof CreditAllocationApiListCreditAllocations
214
+ */
215
+ readonly order?: string;
216
+ /**
217
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
218
+ * @type {string}
219
+ * @memberof CreditAllocationApiListCreditAllocations
220
+ */
221
+ readonly expand?: string;
222
+ /**
223
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
224
+ * @type {string}
225
+ * @memberof CreditAllocationApiListCreditAllocations
226
+ */
227
+ readonly filters?: string;
228
+ }
81
229
  /**
82
230
  * CreditAllocationApi - object-oriented interface
83
231
  * @export
@@ -94,4 +242,22 @@ export declare class CreditAllocationApi extends BaseAPI {
94
242
  * @memberof CreditAllocationApi
95
243
  */
96
244
  createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
245
+ /**
246
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
247
+ * @summary Retrieve the credit allocation entry
248
+ * @param {CreditAllocationApiGetCreditAllocationRequest} requestParameters Request parameters.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof CreditAllocationApi
252
+ */
253
+ getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
254
+ /**
255
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
256
+ * @summary List credit allocations
257
+ * @param {CreditAllocationApiListCreditAllocationsRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof CreditAllocationApi
261
+ */
262
+ listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
97
263
  }
@@ -145,6 +145,126 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
+ /**
149
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
150
+ * @summary Retrieve the credit allocation entry
151
+ * @param {string} code Code of the credit allocation to get
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getCreditAllocation: function (code, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('getCreditAllocation', 'code', code);
165
+ localVarPath = "/paymentservice/v1/credit-allocations/{code}"
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
198
+ * @summary List credit allocations
199
+ * @param {string} [authorization] Bearer Token
200
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
201
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
202
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
203
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
204
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
205
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
206
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
211
+ if (options === void 0) { options = {}; }
212
+ return __awaiter(_this, void 0, void 0, function () {
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ localVarPath = "/paymentservice/v1/credit-allocations";
218
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ baseAccessToken = configuration.accessToken;
222
+ }
223
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
224
+ localVarHeaderParameter = {};
225
+ localVarQueryParameter = {};
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
229
+ case 1:
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ _a.sent();
233
+ if (pageSize !== undefined) {
234
+ localVarQueryParameter['pageSize'] = pageSize;
235
+ }
236
+ if (pageToken !== undefined) {
237
+ localVarQueryParameter['pageToken'] = pageToken;
238
+ }
239
+ if (filter !== undefined) {
240
+ localVarQueryParameter['filter'] = filter;
241
+ }
242
+ if (search !== undefined) {
243
+ localVarQueryParameter['search'] = search;
244
+ }
245
+ if (order !== undefined) {
246
+ localVarQueryParameter['order'] = order;
247
+ }
248
+ if (expand !== undefined) {
249
+ localVarQueryParameter['expand'] = expand;
250
+ }
251
+ if (filters !== undefined) {
252
+ localVarQueryParameter['filters'] = filters;
253
+ }
254
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
255
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ }
257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
258
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ return [2 /*return*/, {
261
+ url: (0, common_1.toPathString)(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ }];
264
+ }
265
+ });
266
+ });
267
+ },
148
268
  };
149
269
  };
150
270
  exports.CreditAllocationApiAxiosParamCreator = CreditAllocationApiAxiosParamCreator;
@@ -176,6 +296,54 @@ var CreditAllocationApiFp = function (configuration) {
176
296
  });
177
297
  });
178
298
  },
299
+ /**
300
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
301
+ * @summary Retrieve the credit allocation entry
302
+ * @param {string} code Code of the credit allocation to get
303
+ * @param {string} [authorization] Bearer Token
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ getCreditAllocation: function (code, authorization, options) {
308
+ return __awaiter(this, void 0, void 0, function () {
309
+ var localVarAxiosArgs;
310
+ return __generator(this, function (_a) {
311
+ switch (_a.label) {
312
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCreditAllocation(code, authorization, options)];
313
+ case 1:
314
+ localVarAxiosArgs = _a.sent();
315
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
316
+ }
317
+ });
318
+ });
319
+ },
320
+ /**
321
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
322
+ * @summary List credit allocations
323
+ * @param {string} [authorization] Bearer Token
324
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
325
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
326
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
327
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
328
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
329
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
330
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
335
+ return __awaiter(this, void 0, void 0, function () {
336
+ var localVarAxiosArgs;
337
+ return __generator(this, function (_a) {
338
+ switch (_a.label) {
339
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCreditAllocations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
340
+ case 1:
341
+ localVarAxiosArgs = _a.sent();
342
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
343
+ }
344
+ });
345
+ });
346
+ },
179
347
  };
180
348
  };
181
349
  exports.CreditAllocationApiFp = CreditAllocationApiFp;
@@ -197,6 +365,34 @@ var CreditAllocationApiFactory = function (configuration, basePath, axios) {
197
365
  createAllocateCredit: function (createCreditAllocationRequestDto, authorization, options) {
198
366
  return localVarFp.createAllocateCredit(createCreditAllocationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
199
367
  },
368
+ /**
369
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
370
+ * @summary Retrieve the credit allocation entry
371
+ * @param {string} code Code of the credit allocation to get
372
+ * @param {string} [authorization] Bearer Token
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ getCreditAllocation: function (code, authorization, options) {
377
+ return localVarFp.getCreditAllocation(code, authorization, options).then(function (request) { return request(axios, basePath); });
378
+ },
379
+ /**
380
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
381
+ * @summary List credit allocations
382
+ * @param {string} [authorization] Bearer Token
383
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
384
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
385
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
386
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode&lt;/i&gt;
387
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
388
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: exceedingCredits&lt;i&gt;
389
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, createdAt, updatedAt&lt;/i&gt;
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
394
+ return localVarFp.listCreditAllocations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
395
+ },
200
396
  };
201
397
  };
202
398
  exports.CreditAllocationApiFactory = CreditAllocationApiFactory;
@@ -223,6 +419,31 @@ var CreditAllocationApi = /** @class */ (function (_super) {
223
419
  var _this = this;
224
420
  return (0, exports.CreditAllocationApiFp)(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
225
421
  };
422
+ /**
423
+ * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
424
+ * @summary Retrieve the credit allocation entry
425
+ * @param {CreditAllocationApiGetCreditAllocationRequest} requestParameters Request parameters.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ * @memberof CreditAllocationApi
429
+ */
430
+ CreditAllocationApi.prototype.getCreditAllocation = function (requestParameters, options) {
431
+ var _this = this;
432
+ return (0, exports.CreditAllocationApiFp)(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
433
+ };
434
+ /**
435
+ * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
436
+ * @summary List credit allocations
437
+ * @param {CreditAllocationApiListCreditAllocationsRequest} requestParameters Request parameters.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ * @memberof CreditAllocationApi
441
+ */
442
+ CreditAllocationApi.prototype.listCreditAllocations = function (requestParameters, options) {
443
+ var _this = this;
444
+ if (requestParameters === void 0) { requestParameters = {}; }
445
+ return (0, exports.CreditAllocationApiFp)(this.configuration).listCreditAllocations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
446
+ };
226
447
  return CreditAllocationApi;
227
448
  }(base_1.BaseAPI));
228
449
  exports.CreditAllocationApi = CreditAllocationApi;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CreditAllocationClass } from './credit-allocation-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCreditAllocationResponseClass
17
+ */
18
+ export interface GetCreditAllocationResponseClass {
19
+ /**
20
+ * Credit allocation entry.
21
+ * @type {CreditAllocationClass}
22
+ * @memberof GetCreditAllocationResponseClass
23
+ */
24
+ 'creditAllocation': CreditAllocationClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -48,6 +48,7 @@ export * from './generate-invoice-match-suggestions-response-class';
48
48
  export * from './get-bank-account-response-class';
49
49
  export * from './get-bank-order-response-class';
50
50
  export * from './get-bank-transactions-response-class';
51
+ export * from './get-credit-allocation-response-class';
51
52
  export * from './get-exceeding-credit-response-class';
52
53
  export * from './get-payment-method-response-class';
53
54
  export * from './get-payment-reminder-response-class';
@@ -73,6 +74,7 @@ export * from './link-bank-transactions-response-class';
73
74
  export * from './list-bank-accounts-response-class';
74
75
  export * from './list-bank-orders-response-class';
75
76
  export * from './list-bank-transactions-response-class';
77
+ export * from './list-credit-allocations-response-class';
76
78
  export * from './list-exceeding-credits-response-class';
77
79
  export * from './list-payment-methods-response-class';
78
80
  export * from './list-payment-reminders-response-class';
@@ -64,6 +64,7 @@ __exportStar(require("./generate-invoice-match-suggestions-response-class"), exp
64
64
  __exportStar(require("./get-bank-account-response-class"), exports);
65
65
  __exportStar(require("./get-bank-order-response-class"), exports);
66
66
  __exportStar(require("./get-bank-transactions-response-class"), exports);
67
+ __exportStar(require("./get-credit-allocation-response-class"), exports);
67
68
  __exportStar(require("./get-exceeding-credit-response-class"), exports);
68
69
  __exportStar(require("./get-payment-method-response-class"), exports);
69
70
  __exportStar(require("./get-payment-reminder-response-class"), exports);
@@ -89,6 +90,7 @@ __exportStar(require("./link-bank-transactions-response-class"), exports);
89
90
  __exportStar(require("./list-bank-accounts-response-class"), exports);
90
91
  __exportStar(require("./list-bank-orders-response-class"), exports);
91
92
  __exportStar(require("./list-bank-transactions-response-class"), exports);
93
+ __exportStar(require("./list-credit-allocations-response-class"), exports);
92
94
  __exportStar(require("./list-exceeding-credits-response-class"), exports);
93
95
  __exportStar(require("./list-payment-methods-response-class"), exports);
94
96
  __exportStar(require("./list-payment-reminders-response-class"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CreditAllocationClass } from './credit-allocation-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListCreditAllocationsResponseClass
17
+ */
18
+ export interface ListCreditAllocationsResponseClass {
19
+ /**
20
+ * List of credit allocation entries.
21
+ * @type {Array<CreditAllocationClass>}
22
+ * @memberof ListCreditAllocationsResponseClass
23
+ */
24
+ 'items': Array<CreditAllocationClass>;
25
+ /**
26
+ * Next page token for pagination.
27
+ * @type {string}
28
+ * @memberof ListCreditAllocationsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Number of items per page.
33
+ * @type {number}
34
+ * @memberof ListCreditAllocationsResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total number of items.
39
+ * @type {number}
40
+ * @memberof ListCreditAllocationsResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CreditAllocationClass } from './credit-allocation-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetCreditAllocationResponseClass
22
+ */
23
+ export interface GetCreditAllocationResponseClass {
24
+ /**
25
+ * Credit allocation entry.
26
+ * @type {CreditAllocationClass}
27
+ * @memberof GetCreditAllocationResponseClass
28
+ */
29
+ 'creditAllocation': CreditAllocationClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -48,6 +48,7 @@ export * from './generate-invoice-match-suggestions-response-class';
48
48
  export * from './get-bank-account-response-class';
49
49
  export * from './get-bank-order-response-class';
50
50
  export * from './get-bank-transactions-response-class';
51
+ export * from './get-credit-allocation-response-class';
51
52
  export * from './get-exceeding-credit-response-class';
52
53
  export * from './get-payment-method-response-class';
53
54
  export * from './get-payment-reminder-response-class';
@@ -73,6 +74,7 @@ export * from './link-bank-transactions-response-class';
73
74
  export * from './list-bank-accounts-response-class';
74
75
  export * from './list-bank-orders-response-class';
75
76
  export * from './list-bank-transactions-response-class';
77
+ export * from './list-credit-allocations-response-class';
76
78
  export * from './list-exceeding-credits-response-class';
77
79
  export * from './list-payment-methods-response-class';
78
80
  export * from './list-payment-reminders-response-class';
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CreditAllocationClass } from './credit-allocation-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListCreditAllocationsResponseClass
22
+ */
23
+ export interface ListCreditAllocationsResponseClass {
24
+ /**
25
+ * List of credit allocation entries.
26
+ * @type {Array<CreditAllocationClass>}
27
+ * @memberof ListCreditAllocationsResponseClass
28
+ */
29
+ 'items': Array<CreditAllocationClass>;
30
+ /**
31
+ * Next page token for pagination.
32
+ * @type {string}
33
+ * @memberof ListCreditAllocationsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page.
38
+ * @type {number}
39
+ * @memberof ListCreditAllocationsResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items.
44
+ * @type {number}
45
+ * @memberof ListCreditAllocationsResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.22.1-beta.50",
3
+ "version": "1.22.1-beta.52",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [