@emilgroup/payment-sdk 1.13.1-beta.14 → 1.13.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@1.13.1-beta.14 --save
20
+ npm install @emilgroup/payment-sdk@1.13.1-beta.16 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.13.1-beta.14
24
+ yarn add @emilgroup/payment-sdk@1.13.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
  /**
34
36
  * BankOrdersApi - axios parameter creator
@@ -243,13 +245,16 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
243
245
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
244
246
  * @summary Update the bank order
245
247
  * @param {string} code Unique identifier for the object.
248
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
246
249
  * @param {string} [authorization] Bearer Token
247
250
  * @param {*} [options] Override http request option.
248
251
  * @throws {RequiredError}
249
252
  */
250
- updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
253
+ updateBankOrder: async (code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
254
  // verify required parameter 'code' is not null or undefined
252
255
  assertParamExists('updateBankOrder', 'code', code)
256
+ // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
257
+ assertParamExists('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest)
253
258
  const localVarPath = `/paymentservice/v1/bank-orders/{code}`
254
259
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
255
260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -275,9 +280,12 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
275
280
 
276
281
 
277
282
 
283
+ localVarHeaderParameter['Content-Type'] = 'application/json';
284
+
278
285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
279
286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
287
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
288
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration)
281
289
 
282
290
  return {
283
291
  url: toPathString(localVarUrlObj),
@@ -350,12 +358,13 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
350
358
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
351
359
  * @summary Update the bank order
352
360
  * @param {string} code Unique identifier for the object.
361
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
353
362
  * @param {string} [authorization] Bearer Token
354
363
  * @param {*} [options] Override http request option.
355
364
  * @throws {RequiredError}
356
365
  */
357
- async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
358
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
366
+ async updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options);
359
368
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
360
369
  },
361
370
  }
@@ -420,12 +429,13 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
420
429
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
421
430
  * @summary Update the bank order
422
431
  * @param {string} code Unique identifier for the object.
432
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
423
433
  * @param {string} [authorization] Bearer Token
424
434
  * @param {*} [options] Override http request option.
425
435
  * @throws {RequiredError}
426
436
  */
427
- updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
428
- return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
437
+ updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
438
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
429
439
  },
430
440
  };
431
441
  };
@@ -555,6 +565,13 @@ export interface BankOrdersApiUpdateBankOrderRequest {
555
565
  */
556
566
  readonly code: string
557
567
 
568
+ /**
569
+ *
570
+ * @type {UpdateBankOrderRequestDtoRest}
571
+ * @memberof BankOrdersApiUpdateBankOrder
572
+ */
573
+ readonly updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest
574
+
558
575
  /**
559
576
  * Bearer Token
560
577
  * @type {string}
@@ -627,6 +644,6 @@ export class BankOrdersApi extends BaseAPI {
627
644
  * @memberof BankOrdersApi
628
645
  */
629
646
  public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
630
- return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
647
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
631
648
  }
632
649
  }
@@ -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}
@@ -305,11 +305,12 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
305
305
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
306
306
  * @summary Update the bank order
307
307
  * @param {string} code Unique identifier for the object.
308
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
308
309
  * @param {string} [authorization] Bearer Token
309
310
  * @param {*} [options] Override http request option.
310
311
  * @throws {RequiredError}
311
312
  */
312
- updateBankOrder: function (code, authorization, options) {
313
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
313
314
  if (options === void 0) { options = {}; }
314
315
  return __awaiter(_this, void 0, void 0, function () {
315
316
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -318,6 +319,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
318
319
  case 0:
319
320
  // verify required parameter 'code' is not null or undefined
320
321
  (0, common_1.assertParamExists)('updateBankOrder', 'code', code);
322
+ // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
323
+ (0, common_1.assertParamExists)('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest);
321
324
  localVarPath = "/paymentservice/v1/bank-orders/{code}"
322
325
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
323
326
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -338,9 +341,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
338
341
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
339
342
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
340
343
  }
344
+ localVarHeaderParameter['Content-Type'] = 'application/json';
341
345
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
342
346
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
343
347
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
348
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration);
344
349
  return [2 /*return*/, {
345
350
  url: (0, common_1.toPathString)(localVarUrlObj),
346
351
  options: localVarRequestOptions,
@@ -451,16 +456,17 @@ var BankOrdersApiFp = function (configuration) {
451
456
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
452
457
  * @summary Update the bank order
453
458
  * @param {string} code Unique identifier for the object.
459
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
454
460
  * @param {string} [authorization] Bearer Token
455
461
  * @param {*} [options] Override http request option.
456
462
  * @throws {RequiredError}
457
463
  */
458
- updateBankOrder: function (code, authorization, options) {
464
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
459
465
  return __awaiter(this, void 0, void 0, function () {
460
466
  var localVarAxiosArgs;
461
467
  return __generator(this, function (_a) {
462
468
  switch (_a.label) {
463
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
469
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options)];
464
470
  case 1:
465
471
  localVarAxiosArgs = _a.sent();
466
472
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -530,12 +536,13 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
530
536
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
531
537
  * @summary Update the bank order
532
538
  * @param {string} code Unique identifier for the object.
539
+ * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
533
540
  * @param {string} [authorization] Bearer Token
534
541
  * @param {*} [options] Override http request option.
535
542
  * @throws {RequiredError}
536
543
  */
537
- updateBankOrder: function (code, authorization, options) {
538
- return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
544
+ updateBankOrder: function (code, updateBankOrderRequestDtoRest, authorization, options) {
545
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
539
546
  },
540
547
  };
541
548
  };
@@ -610,7 +617,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
610
617
  */
611
618
  BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
612
619
  var _this = this;
613
- return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
+ return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
621
  };
615
622
  return BankOrdersApi;
616
623
  }(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",
3
- "version": "1.13.1-beta.14",
3
+ "version": "1.13.1-beta.16",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [