@emilgroup/customer-sdk-node 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +28 -28
  4. package/api/customers-api.ts +28 -28
  5. package/api/documents-api.ts +51 -34
  6. package/api/invoices-api.ts +28 -28
  7. package/api/leads-api.ts +36 -36
  8. package/api/payments-api.ts +23 -6
  9. package/api/policies-api.ts +28 -28
  10. package/api/products-api.ts +28 -28
  11. package/base.ts +14 -23
  12. package/dist/api/claims-api.d.ts +20 -20
  13. package/dist/api/claims-api.js +18 -18
  14. package/dist/api/customers-api.d.ts +20 -20
  15. package/dist/api/customers-api.js +18 -18
  16. package/dist/api/documents-api.d.ts +33 -23
  17. package/dist/api/documents-api.js +31 -24
  18. package/dist/api/invoices-api.d.ts +20 -20
  19. package/dist/api/invoices-api.js +18 -18
  20. package/dist/api/leads-api.d.ts +28 -28
  21. package/dist/api/leads-api.js +26 -26
  22. package/dist/api/payments-api.d.ts +13 -3
  23. package/dist/api/payments-api.js +13 -6
  24. package/dist/api/policies-api.d.ts +20 -20
  25. package/dist/api/policies-api.js +18 -18
  26. package/dist/api/products-api.d.ts +20 -20
  27. package/dist/api/products-api.js +18 -18
  28. package/dist/base.d.ts +3 -4
  29. package/dist/base.js +29 -37
  30. package/dist/models/account-class.d.ts +1 -1
  31. package/dist/models/account-class.js +1 -1
  32. package/dist/models/card-details-dto.d.ts +42 -0
  33. package/dist/models/card-details-dto.js +15 -0
  34. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
  35. package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
  36. package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
  37. package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
  39. package/dist/models/create-account-request-dto.d.ts +2 -8
  40. package/dist/models/create-account-request-dto.js +1 -1
  41. package/dist/models/customer-product-class.d.ts +2 -2
  42. package/dist/models/index.d.ts +7 -0
  43. package/dist/models/index.js +7 -0
  44. package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
  45. package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
  46. package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
  47. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  48. package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
  49. package/dist/models/inline-response200.d.ts +6 -6
  50. package/dist/models/inline-response503.d.ts +6 -6
  51. package/dist/models/lead-class.d.ts +1 -1
  52. package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
  53. package/dist/models/payment-method-class.d.ts +78 -0
  54. package/dist/models/payment-method-class.js +15 -0
  55. package/dist/models/policy-object-dto.d.ts +2 -2
  56. package/dist/models/policy-premium-class.d.ts +2 -2
  57. package/dist/models/sepa-direct-dto.d.ts +24 -0
  58. package/dist/models/sepa-direct-dto.js +15 -0
  59. package/dist/models/update-lead-request-dto.d.ts +1 -1
  60. package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
  61. package/dist/models/upload-account-documents-request-dto.js +19 -0
  62. package/models/account-class.ts +1 -1
  63. package/models/card-details-dto.ts +48 -0
  64. package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
  65. package/models/complete-payment-setup-psp-request.ts +13 -0
  66. package/models/complete-payment-setup-response-class.ts +3 -2
  67. package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
  68. package/models/create-account-request-dto.ts +2 -8
  69. package/models/customer-product-class.ts +2 -2
  70. package/models/index.ts +7 -0
  71. package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
  72. package/models/initiate-payment-setup-request-dto.ts +36 -0
  73. package/models/initiate-payment-setup-response-class.ts +7 -0
  74. package/models/inline-response200.ts +6 -6
  75. package/models/inline-response503.ts +6 -6
  76. package/models/lead-class.ts +1 -1
  77. package/models/link-lead-partner-request-dto.ts +16 -4
  78. package/models/payment-method-class.ts +84 -0
  79. package/models/policy-object-dto.ts +2 -2
  80. package/models/policy-premium-class.ts +2 -2
  81. package/models/sepa-direct-dto.ts +30 -0
  82. package/models/update-lead-request-dto.ts +1 -1
  83. package/models/upload-account-documents-request-dto.ts +55 -0
  84. package/package.json +1 -1
@@ -100,18 +100,18 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
100
100
  * List all the invoices of a customer.
101
101
  * @summary List invoices of a customer
102
102
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
103
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
103
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
104
104
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
105
105
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
107
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
106
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
108
107
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
109
108
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
109
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
110
110
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
111
111
  * @param {*} [options] Override http request option.
112
112
  * @throws {RequiredError}
113
113
  */
114
- listInvoices: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
114
+ listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
115
115
  if (options === void 0) { options = {}; }
116
116
  return __awaiter(_this, void 0, void 0, function () {
117
117
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -137,9 +137,6 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
137
137
  if (filter !== undefined) {
138
138
  localVarQueryParameter['filter'] = filter;
139
139
  }
140
- if (filters !== undefined) {
141
- localVarQueryParameter['filters'] = filters;
142
- }
143
140
  if (search !== undefined) {
144
141
  localVarQueryParameter['search'] = search;
145
142
  }
@@ -149,6 +146,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
149
146
  if (expand !== undefined) {
150
147
  localVarQueryParameter['expand'] = expand;
151
148
  }
149
+ if (filters !== undefined) {
150
+ localVarQueryParameter['filters'] = filters;
151
+ }
152
152
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
153
153
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
154
154
  }
@@ -176,23 +176,23 @@ var InvoicesApiFp = function (configuration) {
176
176
  * List all the invoices of a customer.
177
177
  * @summary List invoices of a customer
178
178
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
179
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
179
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
180
180
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
181
181
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
182
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
183
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
182
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
184
183
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
185
184
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
185
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
186
186
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
189
189
  */
190
- listInvoices: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
190
+ listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
191
191
  return __awaiter(this, void 0, void 0, function () {
192
192
  var localVarAxiosArgs;
193
193
  return __generator(this, function (_a) {
194
194
  switch (_a.label) {
195
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options)];
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
196
196
  case 1:
197
197
  localVarAxiosArgs = _a.sent();
198
198
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -214,19 +214,19 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
214
214
  * List all the invoices of a customer.
215
215
  * @summary List invoices of a customer
216
216
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
217
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
217
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
218
218
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
219
219
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
220
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
221
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
220
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
222
221
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
223
222
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
223
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
224
224
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
225
  * @param {*} [options] Override http request option.
226
226
  * @throws {RequiredError}
227
227
  */
228
- listInvoices: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
229
- return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
228
+ listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
229
+ return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
230
230
  },
231
231
  };
232
232
  };
@@ -252,7 +252,7 @@ var InvoicesApi = /** @class */ (function (_super) {
252
252
  */
253
253
  InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
254
254
  var _this = this;
255
- return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
255
+ return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
256
256
  };
257
257
  return InvoicesApi;
258
258
  }(base_1.BaseAPI));
@@ -34,7 +34,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
34
34
  */
35
35
  createLead: (customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
36
  /**
37
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
37
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
38
38
  * @summary Retrieve the lead
39
39
  * @param {string} code Unique identifier for the object.
40
40
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -45,21 +45,21 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
45
45
  */
46
46
  getLead: (code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
47
  /**
48
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
48
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
49
49
  * @summary List leads
50
50
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
51
51
  * @param {string} [authorization] Bearer Token
52
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
52
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
53
53
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
54
54
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
55
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
56
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
55
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
57
56
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
58
57
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
58
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
59
59
  * @param {*} [options] Override http request option.
60
60
  * @throws {RequiredError}
61
61
  */
62
- listLeads: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
+ listLeads: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
63
  /**
64
64
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
65
65
  * @summary Update the lead
@@ -88,7 +88,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
88
88
  */
89
89
  createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
90
90
  /**
91
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
91
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
92
92
  * @summary Retrieve the lead
93
93
  * @param {string} code Unique identifier for the object.
94
94
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -99,21 +99,21 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
99
99
  */
100
100
  getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
101
101
  /**
102
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
102
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
103
103
  * @summary List leads
104
104
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
105
105
  * @param {string} [authorization] Bearer Token
106
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
106
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
107
107
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
108
108
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
109
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
110
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
109
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
111
110
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
112
111
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
112
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
116
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
116
+ listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
117
117
  /**
118
118
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
119
119
  * @summary Update the lead
@@ -142,7 +142,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
142
142
  */
143
143
  createLead(customerCode: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
144
144
  /**
145
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
145
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
146
146
  * @summary Retrieve the lead
147
147
  * @param {string} code Unique identifier for the object.
148
148
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -153,21 +153,21 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
153
153
  */
154
154
  getLead(code: string, customerCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
155
155
  /**
156
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
156
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
157
157
  * @summary List leads
158
158
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
159
159
  * @param {string} [authorization] Bearer Token
160
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
160
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
161
161
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
162
162
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
163
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
164
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
163
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
165
164
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
166
165
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
166
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
170
- listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
170
+ listLeads(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
171
171
  /**
172
172
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
173
173
  * @summary Update the lead
@@ -255,7 +255,7 @@ export interface LeadsApiListLeadsRequest {
255
255
  */
256
256
  readonly authorization?: string;
257
257
  /**
258
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
258
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
259
259
  * @type {any}
260
260
  * @memberof LeadsApiListLeads
261
261
  */
@@ -273,13 +273,7 @@ export interface LeadsApiListLeadsRequest {
273
273
  */
274
274
  readonly filter?: any;
275
275
  /**
276
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
277
- * @type {any}
278
- * @memberof LeadsApiListLeads
279
- */
280
- readonly filters?: any;
281
- /**
282
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
276
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
283
277
  * @type {any}
284
278
  * @memberof LeadsApiListLeads
285
279
  */
@@ -296,6 +290,12 @@ export interface LeadsApiListLeadsRequest {
296
290
  * @memberof LeadsApiListLeads
297
291
  */
298
292
  readonly expand?: any;
293
+ /**
294
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
295
+ * @type {any}
296
+ * @memberof LeadsApiListLeads
297
+ */
298
+ readonly filters?: any;
299
299
  }
300
300
  /**
301
301
  * Request parameters for updateLead operation in LeadsApi.
@@ -345,7 +345,7 @@ export declare class LeadsApi extends BaseAPI {
345
345
  */
346
346
  createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
347
347
  /**
348
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
348
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
349
349
  * @summary Retrieve the lead
350
350
  * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
351
351
  * @param {*} [options] Override http request option.
@@ -354,7 +354,7 @@ export declare class LeadsApi extends BaseAPI {
354
354
  */
355
355
  getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
356
356
  /**
357
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
357
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
358
358
  * @summary List leads
359
359
  * @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
360
360
  * @param {*} [options] Override http request option.
@@ -150,7 +150,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
150
150
  });
151
151
  },
152
152
  /**
153
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
153
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
154
154
  * @summary Retrieve the lead
155
155
  * @param {string} code Unique identifier for the object.
156
156
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -206,21 +206,21 @@ var LeadsApiAxiosParamCreator = function (configuration) {
206
206
  });
207
207
  },
208
208
  /**
209
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
209
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
210
210
  * @summary List leads
211
211
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
212
212
  * @param {string} [authorization] Bearer Token
213
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
213
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
214
214
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
215
215
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
216
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
217
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
216
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
218
217
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
219
218
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
219
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
220
220
  * @param {*} [options] Override http request option.
221
221
  * @throws {RequiredError}
222
222
  */
223
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
223
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
224
224
  if (options === void 0) { options = {}; }
225
225
  return __awaiter(_this, void 0, void 0, function () {
226
226
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -255,9 +255,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
255
255
  if (filter !== undefined) {
256
256
  localVarQueryParameter['filter'] = filter;
257
257
  }
258
- if (filters !== undefined) {
259
- localVarQueryParameter['filters'] = filters;
260
- }
261
258
  if (search !== undefined) {
262
259
  localVarQueryParameter['search'] = search;
263
260
  }
@@ -267,6 +264,9 @@ var LeadsApiAxiosParamCreator = function (configuration) {
267
264
  if (expand !== undefined) {
268
265
  localVarQueryParameter['expand'] = expand;
269
266
  }
267
+ if (filters !== undefined) {
268
+ localVarQueryParameter['filters'] = filters;
269
+ }
270
270
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
271
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
272
  }
@@ -371,7 +371,7 @@ var LeadsApiFp = function (configuration) {
371
371
  });
372
372
  },
373
373
  /**
374
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
374
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
375
375
  * @summary Retrieve the lead
376
376
  * @param {string} code Unique identifier for the object.
377
377
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -394,26 +394,26 @@ var LeadsApiFp = function (configuration) {
394
394
  });
395
395
  },
396
396
  /**
397
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
397
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
398
398
  * @summary List leads
399
399
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
400
400
  * @param {string} [authorization] Bearer Token
401
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
401
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
402
402
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
403
403
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
404
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
405
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
404
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
406
405
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
407
406
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
407
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
408
408
  * @param {*} [options] Override http request option.
409
409
  * @throws {RequiredError}
410
410
  */
411
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
411
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
412
412
  return __awaiter(this, void 0, void 0, function () {
413
413
  var localVarAxiosArgs;
414
414
  return __generator(this, function (_a) {
415
415
  switch (_a.label) {
416
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options)];
416
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
417
417
  case 1:
418
418
  localVarAxiosArgs = _a.sent();
419
419
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -467,7 +467,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
467
467
  return localVarFp.createLead(customerCode, createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
468
468
  },
469
469
  /**
470
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
470
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
471
471
  * @summary Retrieve the lead
472
472
  * @param {string} code Unique identifier for the object.
473
473
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
@@ -480,22 +480,22 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
480
480
  return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
481
481
  },
482
482
  /**
483
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
483
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
484
484
  * @summary List leads
485
485
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
486
486
  * @param {string} [authorization] Bearer Token
487
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
487
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
488
488
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
489
489
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
490
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
491
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
490
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
492
491
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
493
492
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
493
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
494
494
  * @param {*} [options] Override http request option.
495
495
  * @throws {RequiredError}
496
496
  */
497
- listLeads: function (customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
498
- return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
497
+ listLeads: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
498
+ return localVarFp.listLeads(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
499
499
  },
500
500
  /**
501
501
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -537,7 +537,7 @@ var LeadsApi = /** @class */ (function (_super) {
537
537
  return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.customerCode, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
538
538
  };
539
539
  /**
540
- * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
540
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
541
541
  * @summary Retrieve the lead
542
542
  * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
543
543
  * @param {*} [options] Override http request option.
@@ -549,7 +549,7 @@ var LeadsApi = /** @class */ (function (_super) {
549
549
  return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
550
550
  };
551
551
  /**
552
- * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
552
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
553
553
  * @summary List leads
554
554
  * @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
555
555
  * @param {*} [options] Override http request option.
@@ -558,7 +558,7 @@ var LeadsApi = /** @class */ (function (_super) {
558
558
  */
559
559
  LeadsApi.prototype.listLeads = function (requestParameters, options) {
560
560
  var _this = this;
561
- return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
561
+ return (0, exports.LeadsApiFp)(this.configuration).listLeads(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
562
562
  };
563
563
  /**
564
564
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CompletePaymentSetupPspRequest } from '../models';
16
16
  import { CompletePaymentSetupResponseClass } from '../models';
17
+ import { InitiatePaymentSetupRequestDto } from '../models';
17
18
  import { InitiatePaymentSetupResponseClass } from '../models';
18
19
  /**
19
20
  * PaymentsApi - axios parameter creator
@@ -34,11 +35,12 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
34
35
  * Request to initiate a payment change by customer.
35
36
  * @summary Request payment setup initiation
36
37
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
38
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
37
39
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
40
  * @param {*} [options] Override http request option.
39
41
  * @throws {RequiredError}
40
42
  */
41
- initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ initiatePaymentSetup: (customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
44
  };
43
45
  /**
44
46
  * PaymentsApi - functional programming interface
@@ -59,11 +61,12 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
59
61
  * Request to initiate a payment change by customer.
60
62
  * @summary Request payment setup initiation
61
63
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
64
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
62
65
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
66
  * @param {*} [options] Override http request option.
64
67
  * @throws {RequiredError}
65
68
  */
66
- initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
69
+ initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
67
70
  };
68
71
  /**
69
72
  * PaymentsApi - factory interface
@@ -84,11 +87,12 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
84
87
  * Request to initiate a payment change by customer.
85
88
  * @summary Request payment setup initiation
86
89
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
90
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
87
91
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
92
  * @param {*} [options] Override http request option.
89
93
  * @throws {RequiredError}
90
94
  */
91
- initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
95
+ initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
92
96
  };
93
97
  /**
94
98
  * Request parameters for completePaymentSetup operation in PaymentsApi.
@@ -127,6 +131,12 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
127
131
  * @memberof PaymentsApiInitiatePaymentSetup
128
132
  */
129
133
  readonly customerCode: string;
134
+ /**
135
+ *
136
+ * @type {InitiatePaymentSetupRequestDto}
137
+ * @memberof PaymentsApiInitiatePaymentSetup
138
+ */
139
+ readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
130
140
  /**
131
141
  * Bearer Token: provided by the login endpoint under the name accessToken.
132
142
  * @type {string}
@@ -143,17 +143,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
143
143
  * Request to initiate a payment change by customer.
144
144
  * @summary Request payment setup initiation
145
145
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
146
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
146
147
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
148
  * @param {*} [options] Override http request option.
148
149
  * @throws {RequiredError}
149
150
  */
150
- initiatePaymentSetup: function (customerCode, authorization, options) {
151
+ initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
151
152
  if (options === void 0) { options = {}; }
152
153
  return __awaiter(_this, void 0, void 0, function () {
153
154
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
154
155
  return __generator(this, function (_a) {
155
156
  // verify required parameter 'customerCode' is not null or undefined
156
157
  (0, common_1.assertParamExists)('initiatePaymentSetup', 'customerCode', customerCode);
158
+ // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
159
+ (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
157
160
  localVarPath = "/v1/customers/{customerCode}/payment_setup/initiate"
158
161
  .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
159
162
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -167,9 +170,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
167
170
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
168
171
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
169
172
  }
173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
170
174
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
171
175
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
172
176
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
177
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
173
178
  return [2 /*return*/, {
174
179
  url: (0, common_1.toPathString)(localVarUrlObj),
175
180
  options: localVarRequestOptions,
@@ -213,16 +218,17 @@ var PaymentsApiFp = function (configuration) {
213
218
  * Request to initiate a payment change by customer.
214
219
  * @summary Request payment setup initiation
215
220
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
221
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
216
222
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
223
  * @param {*} [options] Override http request option.
218
224
  * @throws {RequiredError}
219
225
  */
220
- initiatePaymentSetup: function (customerCode, authorization, options) {
226
+ initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
221
227
  return __awaiter(this, void 0, void 0, function () {
222
228
  var localVarAxiosArgs;
223
229
  return __generator(this, function (_a) {
224
230
  switch (_a.label) {
225
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options)];
231
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options)];
226
232
  case 1:
227
233
  localVarAxiosArgs = _a.sent();
228
234
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -256,12 +262,13 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
256
262
  * Request to initiate a payment change by customer.
257
263
  * @summary Request payment setup initiation
258
264
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
265
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
259
266
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
260
267
  * @param {*} [options] Override http request option.
261
268
  * @throws {RequiredError}
262
269
  */
263
- initiatePaymentSetup: function (customerCode, authorization, options) {
264
- return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
270
+ initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
271
+ return localVarFp.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
265
272
  },
266
273
  };
267
274
  };
@@ -299,7 +306,7 @@ var PaymentsApi = /** @class */ (function (_super) {
299
306
  */
300
307
  PaymentsApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
301
308
  var _this = this;
302
- return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
309
+ return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
303
310
  };
304
311
  return PaymentsApi;
305
312
  }(base_1.BaseAPI));