@emilgroup/payment-sdk 1.4.1-beta.6 → 1.4.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +20 -16
  4. package/api/bank-transaction-api.ts +2 -2
  5. package/api/payment-methods-api.ts +41 -37
  6. package/api/payment-reminders-api.ts +12 -8
  7. package/api/payment-setup-api.ts +36 -28
  8. package/api/payments-api.ts +27 -25
  9. package/api/refunds-api.ts +13 -15
  10. package/dist/api/bank-accounts-api.d.ts +14 -12
  11. package/dist/api/bank-accounts-api.js +12 -12
  12. package/dist/api/bank-transaction-api.d.ts +3 -3
  13. package/dist/api/payment-methods-api.d.ts +31 -27
  14. package/dist/api/payment-methods-api.js +24 -28
  15. package/dist/api/payment-reminders-api.d.ts +14 -12
  16. package/dist/api/payment-setup-api.d.ts +22 -18
  17. package/dist/api/payment-setup-api.js +24 -24
  18. package/dist/api/payments-api.d.ts +24 -21
  19. package/dist/api/payments-api.js +12 -16
  20. package/dist/api/refunds-api.d.ts +10 -10
  21. package/dist/api/refunds-api.js +9 -11
  22. package/dist/models/bank-account-class.d.ts +54 -0
  23. package/dist/models/bank-account-class.js +15 -0
  24. package/dist/models/billing-profile-dto.d.ts +38 -0
  25. package/dist/models/billing-profile-dto.js +15 -0
  26. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  27. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  28. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  29. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  30. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  31. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  32. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  33. package/dist/models/complete-payment-setup-response-class.js +15 -0
  34. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  35. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  36. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  37. package/dist/models/create-bank-account-request-dto.js +15 -0
  38. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  39. package/dist/models/create-payment-method-response-class.js +15 -0
  40. package/dist/models/create-payment-request-dto.d.ts +3 -3
  41. package/dist/models/create-payment-response-class.d.ts +25 -0
  42. package/dist/models/create-payment-response-class.js +15 -0
  43. package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
  44. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  45. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  46. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  47. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  48. package/dist/models/get-payment-method-response-class.js +15 -0
  49. package/dist/models/get-payment-response-class.d.ts +25 -0
  50. package/dist/models/get-payment-response-class.js +15 -0
  51. package/dist/models/get-request-dto.d.ts +1 -1
  52. package/dist/models/index.d.ts +29 -0
  53. package/dist/models/index.js +29 -0
  54. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  55. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  56. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  57. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  58. package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
  59. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  60. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  61. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  62. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  63. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  64. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  65. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  66. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  67. package/dist/models/list-bank-accounts-response-class.js +15 -0
  68. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  69. package/dist/models/list-payment-methods-response-class.js +15 -0
  70. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  71. package/dist/models/list-payment-reminders-response-class.js +15 -0
  72. package/dist/models/list-payments-response-class.d.ts +31 -0
  73. package/dist/models/list-payments-response-class.js +15 -0
  74. package/dist/models/payment-class.d.ts +103 -0
  75. package/dist/models/payment-class.js +15 -0
  76. package/dist/models/payment-method-class.d.ts +66 -0
  77. package/dist/models/payment-method-class.js +15 -0
  78. package/dist/models/payment-reminder-class.d.ts +112 -0
  79. package/dist/models/payment-reminder-class.js +36 -0
  80. package/dist/models/sepa-direct-dto.d.ts +24 -0
  81. package/dist/models/sepa-direct-dto.js +15 -0
  82. package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
  83. package/dist/models/symphony-profile-limited-response-dto.js +15 -0
  84. package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
  85. package/dist/models/validate-pspconfig-request-dto.js +7 -0
  86. package/models/bank-account-class.ts +60 -0
  87. package/models/billing-profile-dto.ts +44 -0
  88. package/models/billing-profile-limited-response-dto.ts +60 -0
  89. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  90. package/models/complete-payment-setup-request-dto.ts +38 -0
  91. package/models/complete-payment-setup-response-class.ts +31 -0
  92. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  93. package/models/create-bank-account-request-dto.ts +36 -0
  94. package/models/create-payment-method-response-class.ts +31 -0
  95. package/models/create-payment-request-dto.ts +3 -3
  96. package/models/create-payment-response-class.ts +31 -0
  97. package/models/create-psp-payment-method-request-dto.ts +70 -0
  98. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  99. package/models/get-payment-method-response-class.ts +31 -0
  100. package/models/get-payment-response-class.ts +31 -0
  101. package/models/get-request-dto.ts +1 -1
  102. package/models/index.ts +29 -0
  103. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  104. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  105. package/models/initiate-payment-setup-request-dto.ts +50 -0
  106. package/models/initiate-payment-setup-response-class.ts +38 -0
  107. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  108. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  109. package/models/list-bank-accounts-response-class.ts +37 -0
  110. package/models/list-payment-methods-response-class.ts +37 -0
  111. package/models/list-payment-reminders-response-class.ts +37 -0
  112. package/models/list-payments-response-class.ts +37 -0
  113. package/models/payment-class.ts +109 -0
  114. package/models/payment-method-class.ts +72 -0
  115. package/models/payment-reminder-class.ts +122 -0
  116. package/models/sepa-direct-dto.ts +30 -0
  117. package/models/symphony-profile-limited-response-dto.ts +48 -0
  118. package/models/validate-pspconfig-request-dto.ts +11 -1
  119. package/package.json +1 -1
@@ -94,20 +94,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
94
94
  return {
95
95
  /**
96
96
  *
97
- * @param {object} body
97
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
98
98
  * @param {string} [authorization] Bearer Token
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
101
101
  */
102
- completePaymentSetup: function (body, authorization, options) {
102
+ completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
103
103
  if (options === void 0) { options = {}; }
104
104
  return __awaiter(_this, void 0, void 0, function () {
105
105
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
106
  return __generator(this, function (_a) {
107
107
  switch (_a.label) {
108
108
  case 0:
109
- // verify required parameter 'body' is not null or undefined
110
- (0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
109
+ // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
110
+ (0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
111
111
  localVarPath = "/paymentservice/v1/payment-setup/complete";
112
112
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
113
  if (configuration) {
@@ -131,7 +131,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
131
131
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
132
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
133
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupRequestDto, localVarRequestOptions, configuration);
135
135
  return [2 /*return*/, {
136
136
  url: (0, common_1.toPathString)(localVarUrlObj),
137
137
  options: localVarRequestOptions,
@@ -142,20 +142,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
142
142
  },
143
143
  /**
144
144
  *
145
- * @param {object} body
145
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
146
146
  * @param {string} [authorization] Bearer Token
147
147
  * @param {*} [options] Override http request option.
148
148
  * @throws {RequiredError}
149
149
  */
150
- initiatePaymentSetup: function (body, authorization, options) {
150
+ initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
151
151
  if (options === void 0) { options = {}; }
152
152
  return __awaiter(_this, void 0, void 0, function () {
153
153
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
154
154
  return __generator(this, function (_a) {
155
155
  switch (_a.label) {
156
156
  case 0:
157
- // verify required parameter 'body' is not null or undefined
158
- (0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
157
+ // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
158
+ (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
159
159
  localVarPath = "/paymentservice/v1/payment-setup/initiate";
160
160
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
161
  if (configuration) {
@@ -179,7 +179,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
179
179
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
180
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
181
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
182
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
183
183
  return [2 /*return*/, {
184
184
  url: (0, common_1.toPathString)(localVarUrlObj),
185
185
  options: localVarRequestOptions,
@@ -200,17 +200,17 @@ var PaymentSetupApiFp = function (configuration) {
200
200
  return {
201
201
  /**
202
202
  *
203
- * @param {object} body
203
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
204
204
  * @param {string} [authorization] Bearer Token
205
205
  * @param {*} [options] Override http request option.
206
206
  * @throws {RequiredError}
207
207
  */
208
- completePaymentSetup: function (body, authorization, options) {
208
+ completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
209
209
  return __awaiter(this, void 0, void 0, function () {
210
210
  var localVarAxiosArgs;
211
211
  return __generator(this, function (_a) {
212
212
  switch (_a.label) {
213
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
213
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
214
214
  case 1:
215
215
  localVarAxiosArgs = _a.sent();
216
216
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -220,17 +220,17 @@ var PaymentSetupApiFp = function (configuration) {
220
220
  },
221
221
  /**
222
222
  *
223
- * @param {object} body
223
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
224
224
  * @param {string} [authorization] Bearer Token
225
225
  * @param {*} [options] Override http request option.
226
226
  * @throws {RequiredError}
227
227
  */
228
- initiatePaymentSetup: function (body, authorization, options) {
228
+ initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
229
229
  return __awaiter(this, void 0, void 0, function () {
230
230
  var localVarAxiosArgs;
231
231
  return __generator(this, function (_a) {
232
232
  switch (_a.label) {
233
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
233
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
234
234
  case 1:
235
235
  localVarAxiosArgs = _a.sent();
236
236
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -250,23 +250,23 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
250
250
  return {
251
251
  /**
252
252
  *
253
- * @param {object} body
253
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
254
254
  * @param {string} [authorization] Bearer Token
255
255
  * @param {*} [options] Override http request option.
256
256
  * @throws {RequiredError}
257
257
  */
258
- completePaymentSetup: function (body, authorization, options) {
259
- return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
258
+ completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
259
+ return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
260
260
  },
261
261
  /**
262
262
  *
263
- * @param {object} body
263
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
264
264
  * @param {string} [authorization] Bearer Token
265
265
  * @param {*} [options] Override http request option.
266
266
  * @throws {RequiredError}
267
267
  */
268
- initiatePaymentSetup: function (body, authorization, options) {
269
- return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
268
+ initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
269
+ return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
270
270
  },
271
271
  };
272
272
  };
@@ -291,7 +291,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
291
291
  */
292
292
  PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
293
293
  var _this = this;
294
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
294
+ return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
295
295
  };
296
296
  /**
297
297
  *
@@ -302,7 +302,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
302
302
  */
303
303
  PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
304
304
  var _this = this;
305
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
305
+ return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
306
306
  };
307
307
  return PaymentSetupApi;
308
308
  }(base_1.BaseAPI));
@@ -13,6 +13,9 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePaymentRequestDto } from '../models';
16
+ import { CreatePaymentResponseClass } from '../models';
17
+ import { GetPaymentResponseClass } from '../models';
18
+ import { ListPaymentsResponseClass } from '../models';
16
19
  /**
17
20
  * PaymentsApi - axios parameter creator
18
21
  * @export
@@ -32,13 +35,13 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
32
35
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
33
36
  * @summary Retrieve a payment
34
37
  * @param {string} code Unique identifier for the object.
35
- * @param {string} expand Fields to expand response by
36
- * @param {string} expand2 Fields to expand response by
37
38
  * @param {string} [authorization] Bearer Token
39
+ * @param {string} [expand] Fields to expand response by
40
+ * @param {string} [expand2] Fields to expand response by
38
41
  * @param {*} [options] Override http request option.
39
42
  * @throws {RequiredError}
40
43
  */
41
- getPayment: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ getPayment: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
45
  /**
43
46
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
44
47
  * @summary List payments
@@ -69,18 +72,18 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
69
72
  * @param {*} [options] Override http request option.
70
73
  * @throws {RequiredError}
71
74
  */
72
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
75
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
73
76
  /**
74
77
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
75
78
  * @summary Retrieve a payment
76
79
  * @param {string} code Unique identifier for the object.
77
- * @param {string} expand Fields to expand response by
78
- * @param {string} expand2 Fields to expand response by
79
80
  * @param {string} [authorization] Bearer Token
81
+ * @param {string} [expand] Fields to expand response by
82
+ * @param {string} [expand2] Fields to expand response by
80
83
  * @param {*} [options] Override http request option.
81
84
  * @throws {RequiredError}
82
85
  */
83
- getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
86
+ getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
84
87
  /**
85
88
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
86
89
  * @summary List payments
@@ -95,7 +98,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
95
98
  * @param {*} [options] Override http request option.
96
99
  * @throws {RequiredError}
97
100
  */
98
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
101
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
99
102
  };
100
103
  /**
101
104
  * PaymentsApi - factory interface
@@ -111,18 +114,18 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
111
114
  * @param {*} [options] Override http request option.
112
115
  * @throws {RequiredError}
113
116
  */
114
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
117
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
115
118
  /**
116
119
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
117
120
  * @summary Retrieve a payment
118
121
  * @param {string} code Unique identifier for the object.
119
- * @param {string} expand Fields to expand response by
120
- * @param {string} expand2 Fields to expand response by
121
122
  * @param {string} [authorization] Bearer Token
123
+ * @param {string} [expand] Fields to expand response by
124
+ * @param {string} [expand2] Fields to expand response by
122
125
  * @param {*} [options] Override http request option.
123
126
  * @throws {RequiredError}
124
127
  */
125
- getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
128
+ getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
126
129
  /**
127
130
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
128
131
  * @summary List payments
@@ -137,7 +140,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
137
140
  * @param {*} [options] Override http request option.
138
141
  * @throws {RequiredError}
139
142
  */
140
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
143
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentsResponseClass>;
141
144
  };
142
145
  /**
143
146
  * Request parameters for createPayment operation in PaymentsApi.
@@ -177,23 +180,23 @@ export interface PaymentsApiGetPaymentRequest {
177
180
  */
178
181
  readonly code: string;
179
182
  /**
180
- * Fields to expand response by
183
+ * Bearer Token
181
184
  * @type {string}
182
185
  * @memberof PaymentsApiGetPayment
183
186
  */
184
- readonly expand: string;
187
+ readonly authorization?: string;
185
188
  /**
186
189
  * Fields to expand response by
187
190
  * @type {string}
188
191
  * @memberof PaymentsApiGetPayment
189
192
  */
190
- readonly expand2: string;
193
+ readonly expand?: string;
191
194
  /**
192
- * Bearer Token
195
+ * Fields to expand response by
193
196
  * @type {string}
194
197
  * @memberof PaymentsApiGetPayment
195
198
  */
196
- readonly authorization?: string;
199
+ readonly expand2?: string;
197
200
  }
198
201
  /**
199
202
  * Request parameters for listPayments operation in PaymentsApi.
@@ -265,7 +268,7 @@ export declare class PaymentsApi extends BaseAPI {
265
268
  * @throws {RequiredError}
266
269
  * @memberof PaymentsApi
267
270
  */
268
- createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
271
+ createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
269
272
  /**
270
273
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
271
274
  * @summary Retrieve a payment
@@ -274,7 +277,7 @@ export declare class PaymentsApi extends BaseAPI {
274
277
  * @throws {RequiredError}
275
278
  * @memberof PaymentsApi
276
279
  */
277
- getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
280
+ getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
278
281
  /**
279
282
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
280
283
  * @summary List payments
@@ -283,5 +286,5 @@ export declare class PaymentsApi extends BaseAPI {
283
286
  * @throws {RequiredError}
284
287
  * @memberof PaymentsApi
285
288
  */
286
- listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
289
+ listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any>>;
287
290
  }
@@ -151,13 +151,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
151
151
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
152
152
  * @summary Retrieve a payment
153
153
  * @param {string} code Unique identifier for the object.
154
- * @param {string} expand Fields to expand response by
155
- * @param {string} expand2 Fields to expand response by
156
154
  * @param {string} [authorization] Bearer Token
155
+ * @param {string} [expand] Fields to expand response by
156
+ * @param {string} [expand2] Fields to expand response by
157
157
  * @param {*} [options] Override http request option.
158
158
  * @throws {RequiredError}
159
159
  */
160
- getPayment: function (code, expand, expand2, authorization, options) {
160
+ getPayment: function (code, authorization, expand, expand2, options) {
161
161
  if (options === void 0) { options = {}; }
162
162
  return __awaiter(_this, void 0, void 0, function () {
163
163
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -166,10 +166,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
166
166
  case 0:
167
167
  // verify required parameter 'code' is not null or undefined
168
168
  (0, common_1.assertParamExists)('getPayment', 'code', code);
169
- // verify required parameter 'expand' is not null or undefined
170
- (0, common_1.assertParamExists)('getPayment', 'expand', expand);
171
- // verify required parameter 'expand2' is not null or undefined
172
- (0, common_1.assertParamExists)('getPayment', 'expand2', expand2);
173
169
  localVarPath = "/paymentservice/v1/payments/{code}";
174
170
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
175
171
  if (configuration) {
@@ -317,18 +313,18 @@ var PaymentsApiFp = function (configuration) {
317
313
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
318
314
  * @summary Retrieve a payment
319
315
  * @param {string} code Unique identifier for the object.
320
- * @param {string} expand Fields to expand response by
321
- * @param {string} expand2 Fields to expand response by
322
316
  * @param {string} [authorization] Bearer Token
317
+ * @param {string} [expand] Fields to expand response by
318
+ * @param {string} [expand2] Fields to expand response by
323
319
  * @param {*} [options] Override http request option.
324
320
  * @throws {RequiredError}
325
321
  */
326
- getPayment: function (code, expand, expand2, authorization, options) {
322
+ getPayment: function (code, authorization, expand, expand2, options) {
327
323
  return __awaiter(this, void 0, void 0, function () {
328
324
  var localVarAxiosArgs;
329
325
  return __generator(this, function (_a) {
330
326
  switch (_a.label) {
331
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options)];
327
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options)];
332
328
  case 1:
333
329
  localVarAxiosArgs = _a.sent();
334
330
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -389,14 +385,14 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
389
385
  * Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
390
386
  * @summary Retrieve a payment
391
387
  * @param {string} code Unique identifier for the object.
392
- * @param {string} expand Fields to expand response by
393
- * @param {string} expand2 Fields to expand response by
394
388
  * @param {string} [authorization] Bearer Token
389
+ * @param {string} [expand] Fields to expand response by
390
+ * @param {string} [expand2] Fields to expand response by
395
391
  * @param {*} [options] Override http request option.
396
392
  * @throws {RequiredError}
397
393
  */
398
- getPayment: function (code, expand, expand2, authorization, options) {
399
- return localVarFp.getPayment(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
394
+ getPayment: function (code, authorization, expand, expand2, options) {
395
+ return localVarFp.getPayment(code, authorization, expand, expand2, options).then(function (request) { return request(axios, basePath); });
400
396
  },
401
397
  /**
402
398
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -451,7 +447,7 @@ var PaymentsApi = /** @class */ (function (_super) {
451
447
  */
452
448
  PaymentsApi.prototype.getPayment = function (requestParameters, options) {
453
449
  var _this = this;
454
- return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
450
+ return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then(function (request) { return request(_this.axios, _this.basePath); });
455
451
  };
456
452
  /**
457
453
  * Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -33,12 +33,12 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
33
33
  *
34
34
  * @param {string} code
35
35
  * @param {string} code2 Unique identifier for the object.
36
- * @param {string} expand Fields to expand response by
37
36
  * @param {string} [authorization] Bearer Token
37
+ * @param {string} [expand] Fields to expand response by
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- getRefund: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ getRefund: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
43
  *
44
44
  * @param {string} [authorization] Bearer Token
@@ -71,12 +71,12 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
71
71
  *
72
72
  * @param {string} code
73
73
  * @param {string} code2 Unique identifier for the object.
74
- * @param {string} expand Fields to expand response by
75
74
  * @param {string} [authorization] Bearer Token
75
+ * @param {string} [expand] Fields to expand response by
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
79
+ getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
80
80
  /**
81
81
  *
82
82
  * @param {string} [authorization] Bearer Token
@@ -109,12 +109,12 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
109
109
  *
110
110
  * @param {string} code
111
111
  * @param {string} code2 Unique identifier for the object.
112
- * @param {string} expand Fields to expand response by
113
112
  * @param {string} [authorization] Bearer Token
113
+ * @param {string} [expand] Fields to expand response by
114
114
  * @param {*} [options] Override http request option.
115
115
  * @throws {RequiredError}
116
116
  */
117
- getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
117
+ getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
118
118
  /**
119
119
  *
120
120
  * @param {string} [authorization] Bearer Token
@@ -168,17 +168,17 @@ export interface RefundsApiGetRefundRequest {
168
168
  */
169
169
  readonly code2: string;
170
170
  /**
171
- * Fields to expand response by
171
+ * Bearer Token
172
172
  * @type {string}
173
173
  * @memberof RefundsApiGetRefund
174
174
  */
175
- readonly expand: string;
175
+ readonly authorization?: string;
176
176
  /**
177
- * Bearer Token
177
+ * Fields to expand response by
178
178
  * @type {string}
179
179
  * @memberof RefundsApiGetRefund
180
180
  */
181
- readonly authorization?: string;
181
+ readonly expand?: string;
182
182
  }
183
183
  /**
184
184
  * Request parameters for listRefunds operation in RefundsApi.
@@ -144,12 +144,12 @@ var RefundsApiAxiosParamCreator = function (configuration) {
144
144
  *
145
145
  * @param {string} code
146
146
  * @param {string} code2 Unique identifier for the object.
147
- * @param {string} expand Fields to expand response by
148
147
  * @param {string} [authorization] Bearer Token
148
+ * @param {string} [expand] Fields to expand response by
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- getRefund: function (code, code2, expand, authorization, options) {
152
+ getRefund: function (code, code2, authorization, expand, options) {
153
153
  if (options === void 0) { options = {}; }
154
154
  return __awaiter(_this, void 0, void 0, function () {
155
155
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -160,8 +160,6 @@ var RefundsApiAxiosParamCreator = function (configuration) {
160
160
  (0, common_1.assertParamExists)('getRefund', 'code', code);
161
161
  // verify required parameter 'code2' is not null or undefined
162
162
  (0, common_1.assertParamExists)('getRefund', 'code2', code2);
163
- // verify required parameter 'expand' is not null or undefined
164
- (0, common_1.assertParamExists)('getRefund', 'expand', expand);
165
163
  localVarPath = "/paymentservice/v1/refunds/{code}"
166
164
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
165
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -304,17 +302,17 @@ var RefundsApiFp = function (configuration) {
304
302
  *
305
303
  * @param {string} code
306
304
  * @param {string} code2 Unique identifier for the object.
307
- * @param {string} expand Fields to expand response by
308
305
  * @param {string} [authorization] Bearer Token
306
+ * @param {string} [expand] Fields to expand response by
309
307
  * @param {*} [options] Override http request option.
310
308
  * @throws {RequiredError}
311
309
  */
312
- getRefund: function (code, code2, expand, authorization, options) {
310
+ getRefund: function (code, code2, authorization, expand, options) {
313
311
  return __awaiter(this, void 0, void 0, function () {
314
312
  var localVarAxiosArgs;
315
313
  return __generator(this, function (_a) {
316
314
  switch (_a.label) {
317
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options)];
315
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options)];
318
316
  case 1:
319
317
  localVarAxiosArgs = _a.sent();
320
318
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -372,13 +370,13 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
372
370
  *
373
371
  * @param {string} code
374
372
  * @param {string} code2 Unique identifier for the object.
375
- * @param {string} expand Fields to expand response by
376
373
  * @param {string} [authorization] Bearer Token
374
+ * @param {string} [expand] Fields to expand response by
377
375
  * @param {*} [options] Override http request option.
378
376
  * @throws {RequiredError}
379
377
  */
380
- getRefund: function (code, code2, expand, authorization, options) {
381
- return localVarFp.getRefund(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
378
+ getRefund: function (code, code2, authorization, expand, options) {
379
+ return localVarFp.getRefund(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
382
380
  },
383
381
  /**
384
382
  *
@@ -430,7 +428,7 @@ var RefundsApi = /** @class */ (function (_super) {
430
428
  */
431
429
  RefundsApi.prototype.getRefund = function (requestParameters, options) {
432
430
  var _this = this;
433
- return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
431
+ return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
434
432
  };
435
433
  /**
436
434
  *
@@ -0,0 +1,54 @@
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 BankAccountClass
16
+ */
17
+ export interface BankAccountClass {
18
+ /**
19
+ * Unique identifier for bank account.
20
+ * @type {number}
21
+ * @memberof BankAccountClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof BankAccountClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * User account code associated to bank account.
32
+ * @type {string}
33
+ * @memberof BankAccountClass
34
+ */
35
+ 'accountCode': string;
36
+ /**
37
+ * International bank account number with witch the bank account is created
38
+ * @type {string}
39
+ * @memberof BankAccountClass
40
+ */
41
+ 'iban': string;
42
+ /**
43
+ * Time at which the object was created.
44
+ * @type {string}
45
+ * @memberof BankAccountClass
46
+ */
47
+ 'createdAt': string;
48
+ /**
49
+ * Time at which the object was updated.
50
+ * @type {string}
51
+ * @memberof BankAccountClass
52
+ */
53
+ 'updatedAt': string;
54
+ }
@@ -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,38 @@
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 { BillingProfileLimitedResponseDto } from './billing-profile-limited-response-dto';
13
+ import { SymphonyProfileLimitedResponseDto } from './symphony-profile-limited-response-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BillingProfileDto
18
+ */
19
+ export interface BillingProfileDto {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof BillingProfileDto
24
+ */
25
+ 'billProfileId': string;
26
+ /**
27
+ *
28
+ * @type {SymphonyProfileLimitedResponseDto}
29
+ * @memberof BillingProfileDto
30
+ */
31
+ 'symphonyProfileLimitedResponse': SymphonyProfileLimitedResponseDto;
32
+ /**
33
+ *
34
+ * @type {BillingProfileLimitedResponseDto}
35
+ * @memberof BillingProfileDto
36
+ */
37
+ 'billingProfileLimitedResponse': BillingProfileLimitedResponseDto;
38
+ }