@emilgroup/payment-sdk-node 1.21.1-beta.14 → 1.21.1-beta.16

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 (34) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/bank-orders-api.ts +23 -6
  4. package/dist/api/bank-orders-api.d.ts +13 -3
  5. package/dist/api/bank-orders-api.js +13 -6
  6. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  7. package/dist/models/create-payment-request-dto.d.ts +7 -1
  8. package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
  9. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  10. package/dist/models/index.d.ts +1 -0
  11. package/dist/models/index.js +1 -0
  12. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  13. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  14. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  15. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  16. package/dist/models/payment-class.d.ts +7 -1
  17. package/dist/models/payment-reminder-class.d.ts +7 -1
  18. package/dist/models/refund-class.d.ts +7 -1
  19. package/dist/models/update-bank-order-request-dto-rest.d.ts +62 -0
  20. package/dist/models/update-bank-order-request-dto-rest.js +23 -0
  21. package/models/create-payment-reminder-request-dto.ts +7 -1
  22. package/models/create-payment-request-dto.ts +7 -1
  23. package/models/create-psp-payment-method-request-dto.ts +7 -1
  24. package/models/deactivated-payment-reminder-class.ts +7 -1
  25. package/models/index.ts +1 -0
  26. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  27. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  28. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  29. package/models/payment-class-without-expand-properties.ts +7 -1
  30. package/models/payment-class.ts +7 -1
  31. package/models/payment-reminder-class.ts +7 -1
  32. package/models/refund-class.ts +7 -1
  33. package/models/update-bank-order-request-dto-rest.ts +71 -0
  34. package/package.json +1 -1
@@ -101,6 +101,7 @@ models/unlinked-bank-transaction-response-class.ts
101
101
  models/update-bank-account-request-dto-rest.ts
102
102
  models/update-bank-account-request-dto.ts
103
103
  models/update-bank-account-response-class.ts
104
+ models/update-bank-order-request-dto-rest.ts
104
105
  models/update-bank-order-request-dto.ts
105
106
  models/update-bank-order-response-class.ts
106
107
  models/update-tenant-bank-account-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.21.1-beta.14 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.16 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.14
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.16
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -29,6 +29,8 @@ import { GetBankOrderResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListBankOrdersResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { UpdateBankOrderRequestDtoRest } from '../models';
33
+ // @ts-ignore
32
34
  import { UpdateBankOrderResponseClass } from '../models';
33
35
  // URLSearchParams not necessarily used
34
36
  // @ts-ignore
@@ -247,13 +249,16 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
247
249
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
248
250
  * @summary Update the bank order
249
251
  * @param {string} code Unique identifier for the object.
252
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
250
253
  * @param {string} [authorization] Bearer Token
251
254
  * @param {*} [options] Override http request option.
252
255
  * @throws {RequiredError}
253
256
  */
254
- updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
257
+ updateBankOrder: async (code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
258
  // verify required parameter 'code' is not null or undefined
256
259
  assertParamExists('updateBankOrder', 'code', code)
260
+ // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
261
+ assertParamExists('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest)
257
262
  const localVarPath = `/paymentservice/v1/bank-orders/{code}`
258
263
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
259
264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -279,9 +284,12 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
279
284
 
280
285
 
281
286
 
287
+ localVarHeaderParameter['Content-Type'] = 'application/json';
288
+
282
289
  setSearchParams(localVarUrlObj, localVarQueryParameter);
283
290
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
291
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
292
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration)
285
293
 
286
294
  return {
287
295
  url: toPathString(localVarUrlObj),
@@ -354,12 +362,13 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
354
362
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
355
363
  * @summary Update the bank order
356
364
  * @param {string} code Unique identifier for the object.
365
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
357
366
  * @param {string} [authorization] Bearer Token
358
367
  * @param {*} [options] Override http request option.
359
368
  * @throws {RequiredError}
360
369
  */
361
- async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
362
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
370
+ async updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options);
363
372
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
373
  },
365
374
  }
@@ -424,12 +433,13 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
424
433
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
425
434
  * @summary Update the bank order
426
435
  * @param {string} code Unique identifier for the object.
436
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
427
437
  * @param {string} [authorization] Bearer Token
428
438
  * @param {*} [options] Override http request option.
429
439
  * @throws {RequiredError}
430
440
  */
431
- updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
432
- return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
441
+ updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
442
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
433
443
  },
434
444
  };
435
445
  };
@@ -559,6 +569,13 @@ export interface BankOrdersApiUpdateBankOrderRequest {
559
569
  */
560
570
  readonly code: string
561
571
 
572
+ /**
573
+ *
574
+ * @type {UpdateBankOrderRequestDtoRest}
575
+ * @memberof BankOrdersApiUpdateBankOrder
576
+ */
577
+ readonly updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest
578
+
562
579
  /**
563
580
  * Bearer Token
564
581
  * @type {string}
@@ -631,6 +648,6 @@ export class BankOrdersApi extends BaseAPI {
631
648
  * @memberof BankOrdersApi
632
649
  */
633
650
  public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
634
- return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
651
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
635
652
  }
636
653
  }
@@ -16,6 +16,7 @@ import { CreateBankOrderRequestDto } from '../models';
16
16
  import { CreateBankOrderResponseClass } from '../models';
17
17
  import { GetBankOrderResponseClass } from '../models';
18
18
  import { ListBankOrdersResponseClass } from '../models';
19
+ import { UpdateBankOrderRequestDtoRest } from '../models';
19
20
  import { UpdateBankOrderResponseClass } from '../models';
20
21
  /**
21
22
  * BankOrdersApi - axios parameter creator
@@ -66,11 +67,12 @@ export declare const BankOrdersApiAxiosParamCreator: (configuration?: Configurat
66
67
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
67
68
  * @summary Update the bank order
68
69
  * @param {string} code Unique identifier for the object.
70
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
69
71
  * @param {string} [authorization] Bearer Token
70
72
  * @param {*} [options] Override http request option.
71
73
  * @throws {RequiredError}
72
74
  */
73
- updateBankOrder: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
+ updateBankOrder: (code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
76
  };
75
77
  /**
76
78
  * BankOrdersApi - functional programming interface
@@ -121,11 +123,12 @@ export declare const BankOrdersApiFp: (configuration?: Configuration) => {
121
123
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
122
124
  * @summary Update the bank order
123
125
  * @param {string} code Unique identifier for the object.
126
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
124
127
  * @param {string} [authorization] Bearer Token
125
128
  * @param {*} [options] Override http request option.
126
129
  * @throws {RequiredError}
127
130
  */
128
- updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>>;
131
+ updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>>;
129
132
  };
130
133
  /**
131
134
  * BankOrdersApi - factory interface
@@ -176,11 +179,12 @@ export declare const BankOrdersApiFactory: (configuration?: Configuration, baseP
176
179
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
177
180
  * @summary Update the bank order
178
181
  * @param {string} code Unique identifier for the object.
182
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
179
183
  * @param {string} [authorization] Bearer Token
180
184
  * @param {*} [options] Override http request option.
181
185
  * @throws {RequiredError}
182
186
  */
183
- updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass>;
187
+ updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass>;
184
188
  };
185
189
  /**
186
190
  * Request parameters for createBankOrder operation in BankOrdersApi.
@@ -294,6 +298,12 @@ export interface BankOrdersApiUpdateBankOrderRequest {
294
298
  * @memberof BankOrdersApiUpdateBankOrder
295
299
  */
296
300
  readonly code: string;
301
+ /**
302
+ *
303
+ * @type {UpdateBankOrderRequestDtoRest}
304
+ * @memberof BankOrdersApiUpdateBankOrder
305
+ */
306
+ readonly updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest;
297
307
  /**
298
308
  * Bearer Token
299
309
  * @type {string}
@@ -309,11 +309,12 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
309
309
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
310
310
  * @summary Update the bank order
311
311
  * @param {string} code Unique identifier for the object.
312
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
312
313
  * @param {string} [authorization] Bearer Token
313
314
  * @param {*} [options] Override http request option.
314
315
  * @throws {RequiredError}
315
316
  */
316
- updateBankOrder: function (code, authorization, options) {
317
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
317
318
  if (options === void 0) { options = {}; }
318
319
  return __awaiter(_this, void 0, void 0, function () {
319
320
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -322,6 +323,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
322
323
  case 0:
323
324
  // verify required parameter 'code' is not null or undefined
324
325
  (0, common_1.assertParamExists)('updateBankOrder', 'code', code);
326
+ // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
327
+ (0, common_1.assertParamExists)('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest);
325
328
  localVarPath = "/paymentservice/v1/bank-orders/{code}"
326
329
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
327
330
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -342,9 +345,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
342
345
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
343
346
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
347
  }
348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
345
349
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
350
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
351
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration);
348
353
  return [2 /*return*/, {
349
354
  url: (0, common_1.toPathString)(localVarUrlObj),
350
355
  options: localVarRequestOptions,
@@ -455,16 +460,17 @@ var BankOrdersApiFp = function (configuration) {
455
460
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
456
461
  * @summary Update the bank order
457
462
  * @param {string} code Unique identifier for the object.
463
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
458
464
  * @param {string} [authorization] Bearer Token
459
465
  * @param {*} [options] Override http request option.
460
466
  * @throws {RequiredError}
461
467
  */
462
- updateBankOrder: function (code, authorization, options) {
468
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
463
469
  return __awaiter(this, void 0, void 0, function () {
464
470
  var localVarAxiosArgs;
465
471
  return __generator(this, function (_a) {
466
472
  switch (_a.label) {
467
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
473
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options)];
468
474
  case 1:
469
475
  localVarAxiosArgs = _a.sent();
470
476
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -534,12 +540,13 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
534
540
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
535
541
  * @summary Update the bank order
536
542
  * @param {string} code Unique identifier for the object.
543
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
537
544
  * @param {string} [authorization] Bearer Token
538
545
  * @param {*} [options] Override http request option.
539
546
  * @throws {RequiredError}
540
547
  */
541
- updateBankOrder: function (code, authorization, options) {
542
- return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
548
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
549
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
543
550
  },
544
551
  };
545
552
  };
@@ -614,7 +621,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
614
621
  */
615
622
  BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
616
623
  var _this = this;
617
- return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
624
+ return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
625
  };
619
626
  return BankOrdersApi;
620
627
  }(base_1.BaseAPI));
@@ -32,7 +32,13 @@ export interface CreatePaymentReminderRequestDto {
32
32
  * @type {string}
33
33
  * @memberof CreatePaymentReminderRequestDto
34
34
  */
35
- 'accountCode': string;
35
+ 'accountCode'?: string;
36
+ /**
37
+ * Code referencing the partner for which this reminder is created.
38
+ * @type {string}
39
+ * @memberof CreatePaymentReminderRequestDto
40
+ */
41
+ 'partnerCode'?: string;
36
42
  /**
37
43
  * The type of invoice is used to determine the proper workflow.
38
44
  * @type {string}
@@ -20,7 +20,13 @@ export interface CreatePaymentRequestDto {
20
20
  * @type {string}
21
21
  * @memberof CreatePaymentRequestDto
22
22
  */
23
- 'accountCode': string;
23
+ 'accountCode'?: string;
24
+ /**
25
+ * Partner code associated to that payment.
26
+ * @type {string}
27
+ * @memberof CreatePaymentRequestDto
28
+ */
29
+ 'partnerCode'?: string;
24
30
  /**
25
31
  * Amount to be paid in cents. 100 to charge 1€.
26
32
  * @type {number}
@@ -28,7 +28,13 @@ export interface CreatePspPaymentMethodRequestDto {
28
28
  * @type {string}
29
29
  * @memberof CreatePspPaymentMethodRequestDto
30
30
  */
31
- 'accountCode': string;
31
+ 'accountCode'?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CreatePspPaymentMethodRequestDto
36
+ */
37
+ 'partnerCode'?: string;
32
38
  /**
33
39
  *
34
40
  * @type {SepaDirectDto}
@@ -38,7 +38,13 @@ export interface DeactivatedPaymentReminderClass {
38
38
  * @type {string}
39
39
  * @memberof DeactivatedPaymentReminderClass
40
40
  */
41
- 'accountCode': string;
41
+ 'accountCode'?: string;
42
+ /**
43
+ * Unique identifier of related partner.
44
+ * @type {string}
45
+ * @memberof DeactivatedPaymentReminderClass
46
+ */
47
+ 'partnerCode'?: string;
42
48
  /**
43
49
  * Type of the invoice
44
50
  * @type {string}
@@ -80,6 +80,7 @@ export * from './update-bank-account-request-dto';
80
80
  export * from './update-bank-account-request-dto-rest';
81
81
  export * from './update-bank-account-response-class';
82
82
  export * from './update-bank-order-request-dto';
83
+ export * from './update-bank-order-request-dto-rest';
83
84
  export * from './update-bank-order-response-class';
84
85
  export * from './update-tenant-bank-account-response-class';
85
86
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -96,6 +96,7 @@ __exportStar(require("./update-bank-account-request-dto"), exports);
96
96
  __exportStar(require("./update-bank-account-request-dto-rest"), exports);
97
97
  __exportStar(require("./update-bank-account-response-class"), exports);
98
98
  __exportStar(require("./update-bank-order-request-dto"), exports);
99
+ __exportStar(require("./update-bank-order-request-dto-rest"), exports);
99
100
  __exportStar(require("./update-bank-order-response-class"), exports);
100
101
  __exportStar(require("./update-tenant-bank-account-response-class"), exports);
101
102
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
@@ -27,4 +27,10 @@ export interface InitiateAdyenPaymentSetupRequestDto {
27
27
  * @memberof InitiateAdyenPaymentSetupRequestDto
28
28
  */
29
29
  'accountCode'?: string;
30
+ /**
31
+ * Unique identifier of the partner that this object belongs to.
32
+ * @type {string}
33
+ * @memberof InitiateAdyenPaymentSetupRequestDto
34
+ */
35
+ 'partnerCode'?: string;
30
36
  }
@@ -27,4 +27,10 @@ export interface InitiateBraintreePaymentSetupRequestDto {
27
27
  * @memberof InitiateBraintreePaymentSetupRequestDto
28
28
  */
29
29
  'accountCode'?: string;
30
+ /**
31
+ * Unique identifier of the partner that this object belongs to.
32
+ * @type {string}
33
+ * @memberof InitiateBraintreePaymentSetupRequestDto
34
+ */
35
+ 'partnerCode'?: string;
30
36
  }
@@ -27,4 +27,10 @@ export interface InitiateStripePaymentSetupRequestDto {
27
27
  * @memberof InitiateStripePaymentSetupRequestDto
28
28
  */
29
29
  'accountCode'?: string;
30
+ /**
31
+ * Unique identifier of the partner that this object belongs to.
32
+ * @type {string}
33
+ * @memberof InitiateStripePaymentSetupRequestDto
34
+ */
35
+ 'partnerCode'?: string;
30
36
  }
@@ -38,7 +38,13 @@ export interface PaymentClassWithoutExpandProperties {
38
38
  * @type {string}
39
39
  * @memberof PaymentClassWithoutExpandProperties
40
40
  */
41
- 'accountCode': string;
41
+ 'accountCode'?: string;
42
+ /**
43
+ * Partner code associated to that payment.
44
+ * @type {string}
45
+ * @memberof PaymentClassWithoutExpandProperties
46
+ */
47
+ 'partnerCode'?: string;
42
48
  /**
43
49
  * Amount to be paid in cents. 100 to charge 1€.
44
50
  * @type {number}
@@ -39,7 +39,13 @@ export interface PaymentClass {
39
39
  * @type {string}
40
40
  * @memberof PaymentClass
41
41
  */
42
- 'accountCode': string;
42
+ 'accountCode'?: string;
43
+ /**
44
+ * Partner code associated to that payment.
45
+ * @type {string}
46
+ * @memberof PaymentClass
47
+ */
48
+ 'partnerCode'?: string;
43
49
  /**
44
50
  * Amount to be paid in cents. 100 to charge 1€.
45
51
  * @type {number}
@@ -38,7 +38,13 @@ export interface PaymentReminderClass {
38
38
  * @type {string}
39
39
  * @memberof PaymentReminderClass
40
40
  */
41
- 'accountCode': string;
41
+ 'accountCode'?: string;
42
+ /**
43
+ * Unique identifier of related partner.
44
+ * @type {string}
45
+ * @memberof PaymentReminderClass
46
+ */
47
+ 'partnerCode'?: string;
42
48
  /**
43
49
  * Type of the invoice
44
50
  * @type {string}
@@ -39,7 +39,13 @@ export interface RefundClass {
39
39
  * @type {string}
40
40
  * @memberof RefundClass
41
41
  */
42
- 'accountCode': string;
42
+ 'accountCode'?: string;
43
+ /**
44
+ * Partner code associated with the payment.
45
+ * @type {string}
46
+ * @memberof RefundClass
47
+ */
48
+ 'partnerCode'?: string;
43
49
  /**
44
50
  * Amount that was refunded in cents. 100 to refund 1€.
45
51
  * @type {number}
@@ -0,0 +1,62 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateBankOrderRequestDtoRest
16
+ */
17
+ export interface UpdateBankOrderRequestDtoRest {
18
+ /**
19
+ * Amount for the bank order
20
+ * @type {number}
21
+ * @memberof UpdateBankOrderRequestDtoRest
22
+ */
23
+ 'amount': number;
24
+ /**
25
+ * Bank order status
26
+ * @type {string}
27
+ * @memberof UpdateBankOrderRequestDtoRest
28
+ */
29
+ 'status': UpdateBankOrderRequestDtoRestStatusEnum;
30
+ /**
31
+ * Bank order description.
32
+ * @type {string}
33
+ * @memberof UpdateBankOrderRequestDtoRest
34
+ */
35
+ 'description'?: string;
36
+ /**
37
+ * List of invoice IDs associated with bank order.
38
+ * @type {Array<number>}
39
+ * @memberof UpdateBankOrderRequestDtoRest
40
+ */
41
+ 'invoiceIds': Array<number>;
42
+ /**
43
+ * Day of execution of bank order.
44
+ * @type {string}
45
+ * @memberof UpdateBankOrderRequestDtoRest
46
+ */
47
+ 'executionDate': string;
48
+ /**
49
+ * Latest due date.
50
+ * @type {string}
51
+ * @memberof UpdateBankOrderRequestDtoRest
52
+ */
53
+ 'dueDate': string;
54
+ }
55
+ export declare const UpdateBankOrderRequestDtoRestStatusEnum: {
56
+ readonly Open: "open";
57
+ readonly Draft: "draft";
58
+ readonly Closed: "closed";
59
+ readonly Accepted: "accepted";
60
+ readonly Processing: "processing";
61
+ };
62
+ export type UpdateBankOrderRequestDtoRestStatusEnum = typeof UpdateBankOrderRequestDtoRestStatusEnum[keyof typeof UpdateBankOrderRequestDtoRestStatusEnum];
@@ -0,0 +1,23 @@
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 });
16
+ exports.UpdateBankOrderRequestDtoRestStatusEnum = void 0;
17
+ exports.UpdateBankOrderRequestDtoRestStatusEnum = {
18
+ Open: 'open',
19
+ Draft: 'draft',
20
+ Closed: 'closed',
21
+ Accepted: 'accepted',
22
+ Processing: 'processing'
23
+ };
@@ -37,7 +37,13 @@ export interface CreatePaymentReminderRequestDto {
37
37
  * @type {string}
38
38
  * @memberof CreatePaymentReminderRequestDto
39
39
  */
40
- 'accountCode': string;
40
+ 'accountCode'?: string;
41
+ /**
42
+ * Code referencing the partner for which this reminder is created.
43
+ * @type {string}
44
+ * @memberof CreatePaymentReminderRequestDto
45
+ */
46
+ 'partnerCode'?: string;
41
47
  /**
42
48
  * The type of invoice is used to determine the proper workflow.
43
49
  * @type {string}
@@ -25,7 +25,13 @@ export interface CreatePaymentRequestDto {
25
25
  * @type {string}
26
26
  * @memberof CreatePaymentRequestDto
27
27
  */
28
- 'accountCode': string;
28
+ 'accountCode'?: string;
29
+ /**
30
+ * Partner code associated to that payment.
31
+ * @type {string}
32
+ * @memberof CreatePaymentRequestDto
33
+ */
34
+ 'partnerCode'?: string;
29
35
  /**
30
36
  * Amount to be paid in cents. 100 to charge 1€.
31
37
  * @type {number}
@@ -33,7 +33,13 @@ export interface CreatePspPaymentMethodRequestDto {
33
33
  * @type {string}
34
34
  * @memberof CreatePspPaymentMethodRequestDto
35
35
  */
36
- 'accountCode': string;
36
+ 'accountCode'?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CreatePspPaymentMethodRequestDto
41
+ */
42
+ 'partnerCode'?: string;
37
43
  /**
38
44
  *
39
45
  * @type {SepaDirectDto}
@@ -43,7 +43,13 @@ export interface DeactivatedPaymentReminderClass {
43
43
  * @type {string}
44
44
  * @memberof DeactivatedPaymentReminderClass
45
45
  */
46
- 'accountCode': string;
46
+ 'accountCode'?: string;
47
+ /**
48
+ * Unique identifier of related partner.
49
+ * @type {string}
50
+ * @memberof DeactivatedPaymentReminderClass
51
+ */
52
+ 'partnerCode'?: string;
47
53
  /**
48
54
  * Type of the invoice
49
55
  * @type {string}
package/models/index.ts CHANGED
@@ -80,6 +80,7 @@ export * from './update-bank-account-request-dto';
80
80
  export * from './update-bank-account-request-dto-rest';
81
81
  export * from './update-bank-account-response-class';
82
82
  export * from './update-bank-order-request-dto';
83
+ export * from './update-bank-order-request-dto-rest';
83
84
  export * from './update-bank-order-response-class';
84
85
  export * from './update-tenant-bank-account-response-class';
85
86
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -32,5 +32,11 @@ export interface InitiateAdyenPaymentSetupRequestDto {
32
32
  * @memberof InitiateAdyenPaymentSetupRequestDto
33
33
  */
34
34
  'accountCode'?: string;
35
+ /**
36
+ * Unique identifier of the partner that this object belongs to.
37
+ * @type {string}
38
+ * @memberof InitiateAdyenPaymentSetupRequestDto
39
+ */
40
+ 'partnerCode'?: string;
35
41
  }
36
42
 
@@ -32,5 +32,11 @@ export interface InitiateBraintreePaymentSetupRequestDto {
32
32
  * @memberof InitiateBraintreePaymentSetupRequestDto
33
33
  */
34
34
  'accountCode'?: string;
35
+ /**
36
+ * Unique identifier of the partner that this object belongs to.
37
+ * @type {string}
38
+ * @memberof InitiateBraintreePaymentSetupRequestDto
39
+ */
40
+ 'partnerCode'?: string;
35
41
  }
36
42
 
@@ -32,5 +32,11 @@ export interface InitiateStripePaymentSetupRequestDto {
32
32
  * @memberof InitiateStripePaymentSetupRequestDto
33
33
  */
34
34
  'accountCode'?: string;
35
+ /**
36
+ * Unique identifier of the partner that this object belongs to.
37
+ * @type {string}
38
+ * @memberof InitiateStripePaymentSetupRequestDto
39
+ */
40
+ 'partnerCode'?: string;
35
41
  }
36
42
 
@@ -43,7 +43,13 @@ export interface PaymentClassWithoutExpandProperties {
43
43
  * @type {string}
44
44
  * @memberof PaymentClassWithoutExpandProperties
45
45
  */
46
- 'accountCode': string;
46
+ 'accountCode'?: string;
47
+ /**
48
+ * Partner code associated to that payment.
49
+ * @type {string}
50
+ * @memberof PaymentClassWithoutExpandProperties
51
+ */
52
+ 'partnerCode'?: string;
47
53
  /**
48
54
  * Amount to be paid in cents. 100 to charge 1€.
49
55
  * @type {number}
@@ -44,7 +44,13 @@ export interface PaymentClass {
44
44
  * @type {string}
45
45
  * @memberof PaymentClass
46
46
  */
47
- 'accountCode': string;
47
+ 'accountCode'?: string;
48
+ /**
49
+ * Partner code associated to that payment.
50
+ * @type {string}
51
+ * @memberof PaymentClass
52
+ */
53
+ 'partnerCode'?: string;
48
54
  /**
49
55
  * Amount to be paid in cents. 100 to charge 1€.
50
56
  * @type {number}
@@ -43,7 +43,13 @@ export interface PaymentReminderClass {
43
43
  * @type {string}
44
44
  * @memberof PaymentReminderClass
45
45
  */
46
- 'accountCode': string;
46
+ 'accountCode'?: string;
47
+ /**
48
+ * Unique identifier of related partner.
49
+ * @type {string}
50
+ * @memberof PaymentReminderClass
51
+ */
52
+ 'partnerCode'?: string;
47
53
  /**
48
54
  * Type of the invoice
49
55
  * @type {string}
@@ -44,7 +44,13 @@ export interface RefundClass {
44
44
  * @type {string}
45
45
  * @memberof RefundClass
46
46
  */
47
- 'accountCode': string;
47
+ 'accountCode'?: string;
48
+ /**
49
+ * Partner code associated with the payment.
50
+ * @type {string}
51
+ * @memberof RefundClass
52
+ */
53
+ 'partnerCode'?: string;
48
54
  /**
49
55
  * Amount that was refunded in cents. 100 to refund 1€.
50
56
  * @type {number}
@@ -0,0 +1,71 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface UpdateBankOrderRequestDtoRest
21
+ */
22
+ export interface UpdateBankOrderRequestDtoRest {
23
+ /**
24
+ * Amount for the bank order
25
+ * @type {number}
26
+ * @memberof UpdateBankOrderRequestDtoRest
27
+ */
28
+ 'amount': number;
29
+ /**
30
+ * Bank order status
31
+ * @type {string}
32
+ * @memberof UpdateBankOrderRequestDtoRest
33
+ */
34
+ 'status': UpdateBankOrderRequestDtoRestStatusEnum;
35
+ /**
36
+ * Bank order description.
37
+ * @type {string}
38
+ * @memberof UpdateBankOrderRequestDtoRest
39
+ */
40
+ 'description'?: string;
41
+ /**
42
+ * List of invoice IDs associated with bank order.
43
+ * @type {Array<number>}
44
+ * @memberof UpdateBankOrderRequestDtoRest
45
+ */
46
+ 'invoiceIds': Array<number>;
47
+ /**
48
+ * Day of execution of bank order.
49
+ * @type {string}
50
+ * @memberof UpdateBankOrderRequestDtoRest
51
+ */
52
+ 'executionDate': string;
53
+ /**
54
+ * Latest due date.
55
+ * @type {string}
56
+ * @memberof UpdateBankOrderRequestDtoRest
57
+ */
58
+ 'dueDate': string;
59
+ }
60
+
61
+ export const UpdateBankOrderRequestDtoRestStatusEnum = {
62
+ Open: 'open',
63
+ Draft: 'draft',
64
+ Closed: 'closed',
65
+ Accepted: 'accepted',
66
+ Processing: 'processing'
67
+ } as const;
68
+
69
+ export type UpdateBankOrderRequestDtoRestStatusEnum = typeof UpdateBankOrderRequestDtoRestStatusEnum[keyof typeof UpdateBankOrderRequestDtoRestStatusEnum];
70
+
71
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.21.1-beta.14",
3
+ "version": "1.21.1-beta.16",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [