@emilgroup/payment-sdk 1.4.1-beta.38 → 1.4.1-beta.39

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 (196) hide show
  1. package/.openapi-generator/FILES +0 -51
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +24 -74
  4. package/api/bank-transaction-api.ts +26 -64
  5. package/api/payment-methods-api.ts +30 -80
  6. package/api/payment-reminders-api.ts +20 -70
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +18 -66
  9. package/api/refunds-api.ts +22 -56
  10. package/api/tenant-bank-account-api.ts +18 -46
  11. package/dist/api/bank-accounts-api.d.ts +25 -56
  12. package/dist/api/bank-accounts-api.js +11 -29
  13. package/dist/api/bank-transaction-api.d.ts +24 -47
  14. package/dist/api/bank-transaction-api.js +12 -24
  15. package/dist/api/payment-methods-api.d.ts +22 -53
  16. package/dist/api/payment-methods-api.js +23 -41
  17. package/dist/api/payment-reminders-api.d.ts +19 -50
  18. package/dist/api/payment-reminders-api.js +11 -29
  19. package/dist/api/payment-setup-api.d.ts +18 -22
  20. package/dist/api/payment-setup-api.js +24 -24
  21. package/dist/api/payments-api.d.ts +16 -46
  22. package/dist/api/payments-api.js +11 -29
  23. package/dist/api/refunds-api.d.ts +18 -39
  24. package/dist/api/refunds-api.js +12 -24
  25. package/dist/api/tenant-bank-account-api.d.ts +11 -29
  26. package/dist/api/tenant-bank-account-api.js +12 -24
  27. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
  28. package/dist/models/create-bank-account-request-dto.d.ts +2 -2
  29. package/dist/models/create-payment-request-dto.d.ts +3 -3
  30. package/dist/models/index.d.ts +0 -51
  31. package/dist/models/index.js +0 -51
  32. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
  33. package/dist/models/tenant-bank-account-class.d.ts +12 -0
  34. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  35. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  36. package/models/bank-transaction-class-without-expand-properties.ts +12 -0
  37. package/models/create-bank-account-request-dto.ts +2 -2
  38. package/models/create-payment-request-dto.ts +3 -3
  39. package/models/index.ts +0 -51
  40. package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
  41. package/models/tenant-bank-account-class.ts +12 -0
  42. package/models/validate-pspconfig-request-dto.ts +1 -11
  43. package/package.json +1 -1
  44. package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
  45. package/dist/models/bank-account-class-without-expand-properties.js +0 -15
  46. package/dist/models/bank-account-class.d.ts +0 -79
  47. package/dist/models/bank-account-class.js +0 -15
  48. package/dist/models/bank-transaction-class.d.ts +0 -128
  49. package/dist/models/bank-transaction-class.js +0 -15
  50. package/dist/models/billing-profile-dto.d.ts +0 -38
  51. package/dist/models/billing-profile-dto.js +0 -15
  52. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  53. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  54. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  55. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  56. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  57. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  58. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  59. package/dist/models/complete-payment-setup-response-class.js +0 -15
  60. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  61. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  62. package/dist/models/create-bank-account-response-class.d.ts +0 -25
  63. package/dist/models/create-bank-account-response-class.js +0 -15
  64. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  65. package/dist/models/create-payment-method-response-class.js +0 -15
  66. package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
  67. package/dist/models/create-payment-reminder-response-class.js +0 -15
  68. package/dist/models/create-payment-response-class.d.ts +0 -25
  69. package/dist/models/create-payment-response-class.js +0 -15
  70. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  71. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  72. package/dist/models/create-refund-response-class.d.ts +0 -25
  73. package/dist/models/create-refund-response-class.js +0 -15
  74. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  75. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  76. package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
  77. package/dist/models/deactivated-payment-reminder-class.js +0 -15
  78. package/dist/models/get-bank-account-response-class.d.ts +0 -25
  79. package/dist/models/get-bank-account-response-class.js +0 -15
  80. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  81. package/dist/models/get-bank-transactions-response-class.js +0 -15
  82. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  83. package/dist/models/get-payment-method-response-class.js +0 -15
  84. package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
  85. package/dist/models/get-payment-reminder-response-class.js +0 -15
  86. package/dist/models/get-payment-response-class.d.ts +0 -25
  87. package/dist/models/get-payment-response-class.js +0 -15
  88. package/dist/models/get-refund-response-class.d.ts +0 -25
  89. package/dist/models/get-refund-response-class.js +0 -15
  90. package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
  91. package/dist/models/import-bank-transactions-response-class.js +0 -15
  92. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  93. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  94. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  95. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  96. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
  97. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  98. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  99. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  100. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  101. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  102. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  103. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  104. package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
  105. package/dist/models/link-bank-transactions-response-class.js +0 -15
  106. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  107. package/dist/models/list-bank-accounts-response-class.js +0 -15
  108. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  109. package/dist/models/list-bank-transactions-response-class.js +0 -15
  110. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  111. package/dist/models/list-payment-methods-response-class.js +0 -15
  112. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  113. package/dist/models/list-payment-reminders-response-class.js +0 -15
  114. package/dist/models/list-payments-response-class.d.ts +0 -31
  115. package/dist/models/list-payments-response-class.js +0 -15
  116. package/dist/models/list-refunds-response-class.d.ts +0 -31
  117. package/dist/models/list-refunds-response-class.js +0 -15
  118. package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
  119. package/dist/models/payment-class-without-expand-properties.js +0 -15
  120. package/dist/models/payment-class.d.ts +0 -109
  121. package/dist/models/payment-class.js +0 -15
  122. package/dist/models/payment-method-class.d.ts +0 -66
  123. package/dist/models/payment-method-class.js +0 -15
  124. package/dist/models/payment-reminder-class.d.ts +0 -90
  125. package/dist/models/payment-reminder-class.js +0 -15
  126. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  127. package/dist/models/primary-bank-account-response-class.js +0 -15
  128. package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
  129. package/dist/models/refund-class-without-expand-properties.js +0 -29
  130. package/dist/models/refund-class.d.ts +0 -106
  131. package/dist/models/refund-class.js +0 -29
  132. package/dist/models/refund-item-class.d.ts +0 -102
  133. package/dist/models/refund-item-class.js +0 -15
  134. package/dist/models/sepa-direct-dto.d.ts +0 -24
  135. package/dist/models/sepa-direct-dto.js +0 -15
  136. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  137. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  138. package/dist/models/transaction-class.d.ts +0 -54
  139. package/dist/models/transaction-class.js +0 -15
  140. package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
  141. package/dist/models/unlink-bank-transactions-response-class.js +0 -15
  142. package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
  143. package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
  144. package/dist/models/update-bank-account-response-class.d.ts +0 -25
  145. package/dist/models/update-bank-account-response-class.js +0 -15
  146. package/models/bank-account-class-without-expand-properties.ts +0 -78
  147. package/models/bank-account-class.ts +0 -85
  148. package/models/bank-transaction-class.ts +0 -134
  149. package/models/billing-profile-dto.ts +0 -44
  150. package/models/billing-profile-limited-response-dto.ts +0 -60
  151. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  152. package/models/complete-payment-setup-request-dto.ts +0 -38
  153. package/models/complete-payment-setup-response-class.ts +0 -31
  154. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  155. package/models/create-bank-account-response-class.ts +0 -31
  156. package/models/create-payment-method-response-class.ts +0 -31
  157. package/models/create-payment-reminder-response-class.ts +0 -31
  158. package/models/create-payment-response-class.ts +0 -31
  159. package/models/create-psp-payment-method-request-dto.ts +0 -70
  160. package/models/create-refund-response-class.ts +0 -31
  161. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  162. package/models/deactivated-payment-reminder-class.ts +0 -96
  163. package/models/get-bank-account-response-class.ts +0 -31
  164. package/models/get-bank-transactions-response-class.ts +0 -31
  165. package/models/get-payment-method-response-class.ts +0 -31
  166. package/models/get-payment-reminder-response-class.ts +0 -31
  167. package/models/get-payment-response-class.ts +0 -31
  168. package/models/get-refund-response-class.ts +0 -31
  169. package/models/import-bank-transactions-response-class.ts +0 -31
  170. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  171. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  172. package/models/initiate-payment-setup-request-dto.ts +0 -56
  173. package/models/initiate-payment-setup-response-class.ts +0 -38
  174. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  175. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  176. package/models/link-bank-transactions-response-class.ts +0 -31
  177. package/models/list-bank-accounts-response-class.ts +0 -37
  178. package/models/list-bank-transactions-response-class.ts +0 -37
  179. package/models/list-payment-methods-response-class.ts +0 -37
  180. package/models/list-payment-reminders-response-class.ts +0 -37
  181. package/models/list-payments-response-class.ts +0 -37
  182. package/models/list-refunds-response-class.ts +0 -37
  183. package/models/payment-class-without-expand-properties.ts +0 -108
  184. package/models/payment-class.ts +0 -115
  185. package/models/payment-method-class.ts +0 -72
  186. package/models/payment-reminder-class.ts +0 -96
  187. package/models/primary-bank-account-response-class.ts +0 -48
  188. package/models/refund-class-without-expand-properties.ts +0 -109
  189. package/models/refund-class.ts +0 -116
  190. package/models/refund-item-class.ts +0 -108
  191. package/models/sepa-direct-dto.ts +0 -30
  192. package/models/symphony-profile-limited-response-dto.ts +0 -48
  193. package/models/transaction-class.ts +0 -60
  194. package/models/unlink-bank-transactions-response-class.ts +0 -31
  195. package/models/unlinked-bank-transaction-response-class.ts +0 -102
  196. package/models/update-bank-account-response-class.ts +0 -31
@@ -12,10 +12,6 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { CompletePaymentSetupRequestDto } from '../models';
16
- import { CompletePaymentSetupResponseClass } from '../models';
17
- import { InitiatePaymentSetupRequestDto } from '../models';
18
- import { InitiatePaymentSetupResponseClass } from '../models';
19
15
  /**
20
16
  * PaymentSetupApi - axios parameter creator
21
17
  * @export
@@ -24,21 +20,21 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
24
20
  /**
25
21
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
26
22
  * @summary Complete a payment setup
27
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
23
+ * @param {object} body
28
24
  * @param {string} [authorization] Bearer Token
29
25
  * @param {*} [options] Override http request option.
30
26
  * @throws {RequiredError}
31
27
  */
32
- completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ completePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
29
  /**
34
30
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
35
31
  * @summary Initiate a payment setup
36
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
32
+ * @param {object} body
37
33
  * @param {string} [authorization] Bearer Token
38
34
  * @param {*} [options] Override http request option.
39
35
  * @throws {RequiredError}
40
36
  */
41
- initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
+ initiatePaymentSetup: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
38
  };
43
39
  /**
44
40
  * PaymentSetupApi - functional programming interface
@@ -48,21 +44,21 @@ export declare const PaymentSetupApiFp: (configuration?: Configuration) => {
48
44
  /**
49
45
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
50
46
  * @summary Complete a payment setup
51
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
47
+ * @param {object} body
52
48
  * @param {string} [authorization] Bearer Token
53
49
  * @param {*} [options] Override http request option.
54
50
  * @throws {RequiredError}
55
51
  */
56
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
52
+ completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
57
53
  /**
58
54
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
59
55
  * @summary Initiate a payment setup
60
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
56
+ * @param {object} body
61
57
  * @param {string} [authorization] Bearer Token
62
58
  * @param {*} [options] Override http request option.
63
59
  * @throws {RequiredError}
64
60
  */
65
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
61
+ initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
66
62
  };
67
63
  /**
68
64
  * PaymentSetupApi - factory interface
@@ -72,21 +68,21 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
72
68
  /**
73
69
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
74
70
  * @summary Complete a payment setup
75
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
71
+ * @param {object} body
76
72
  * @param {string} [authorization] Bearer Token
77
73
  * @param {*} [options] Override http request option.
78
74
  * @throws {RequiredError}
79
75
  */
80
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
76
+ completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
81
77
  /**
82
78
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
83
79
  * @summary Initiate a payment setup
84
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
80
+ * @param {object} body
85
81
  * @param {string} [authorization] Bearer Token
86
82
  * @param {*} [options] Override http request option.
87
83
  * @throws {RequiredError}
88
84
  */
89
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
85
+ initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void>;
90
86
  };
91
87
  /**
92
88
  * Request parameters for completePaymentSetup operation in PaymentSetupApi.
@@ -96,10 +92,10 @@ export declare const PaymentSetupApiFactory: (configuration?: Configuration, bas
96
92
  export interface PaymentSetupApiCompletePaymentSetupRequest {
97
93
  /**
98
94
  *
99
- * @type {CompletePaymentSetupRequestDto}
95
+ * @type {object}
100
96
  * @memberof PaymentSetupApiCompletePaymentSetup
101
97
  */
102
- readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto;
98
+ readonly body: object;
103
99
  /**
104
100
  * Bearer Token
105
101
  * @type {string}
@@ -115,10 +111,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
115
111
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
116
112
  /**
117
113
  *
118
- * @type {InitiatePaymentSetupRequestDto}
114
+ * @type {object}
119
115
  * @memberof PaymentSetupApiInitiatePaymentSetup
120
116
  */
121
- readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
117
+ readonly body: object;
122
118
  /**
123
119
  * Bearer Token
124
120
  * @type {string}
@@ -141,7 +137,7 @@ export declare class PaymentSetupApi extends BaseAPI {
141
137
  * @throws {RequiredError}
142
138
  * @memberof PaymentSetupApi
143
139
  */
144
- completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
140
+ completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
145
141
  /**
146
142
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
147
143
  * @summary Initiate a payment setup
@@ -150,5 +146,5 @@ export declare class PaymentSetupApi extends BaseAPI {
150
146
  * @throws {RequiredError}
151
147
  * @memberof PaymentSetupApi
152
148
  */
153
- initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
149
+ initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
154
150
  }
@@ -95,20 +95,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
97
97
  * @summary Complete a payment setup
98
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
98
+ * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
103
+ completePaymentSetup: function (body, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
110
+ // verify required parameter 'body' is not null or undefined
111
+ (0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
112
112
  localVarPath = "/paymentservice/v1/payment-setup/complete";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
@@ -132,7 +132,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -144,20 +144,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
144
144
  /**
145
145
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
146
146
  * @summary Initiate a payment setup
147
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
147
+ * @param {object} body
148
148
  * @param {string} [authorization] Bearer Token
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
152
+ initiatePaymentSetup: function (body, authorization, 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;
156
156
  return __generator(this, function (_a) {
157
157
  switch (_a.label) {
158
158
  case 0:
159
- // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
160
- (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
159
+ // verify required parameter 'body' is not null or undefined
160
+ (0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
161
161
  localVarPath = "/paymentservice/v1/payment-setup/initiate";
162
162
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
163
  if (configuration) {
@@ -181,7 +181,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
181
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
183
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
185
185
  return [2 /*return*/, {
186
186
  url: (0, common_1.toPathString)(localVarUrlObj),
187
187
  options: localVarRequestOptions,
@@ -203,17 +203,17 @@ var PaymentSetupApiFp = function (configuration) {
203
203
  /**
204
204
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
205
205
  * @summary Complete a payment setup
206
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
206
+ * @param {object} body
207
207
  * @param {string} [authorization] Bearer Token
208
208
  * @param {*} [options] Override http request option.
209
209
  * @throws {RequiredError}
210
210
  */
211
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
211
+ completePaymentSetup: function (body, authorization, options) {
212
212
  return __awaiter(this, void 0, void 0, function () {
213
213
  var localVarAxiosArgs;
214
214
  return __generator(this, function (_a) {
215
215
  switch (_a.label) {
216
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
216
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
217
217
  case 1:
218
218
  localVarAxiosArgs = _a.sent();
219
219
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -224,17 +224,17 @@ var PaymentSetupApiFp = function (configuration) {
224
224
  /**
225
225
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
226
226
  * @summary Initiate a payment setup
227
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
227
+ * @param {object} body
228
228
  * @param {string} [authorization] Bearer Token
229
229
  * @param {*} [options] Override http request option.
230
230
  * @throws {RequiredError}
231
231
  */
232
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
232
+ initiatePaymentSetup: function (body, authorization, options) {
233
233
  return __awaiter(this, void 0, void 0, function () {
234
234
  var localVarAxiosArgs;
235
235
  return __generator(this, function (_a) {
236
236
  switch (_a.label) {
237
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
237
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
238
238
  case 1:
239
239
  localVarAxiosArgs = _a.sent();
240
240
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -255,24 +255,24 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
255
255
  /**
256
256
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
257
257
  * @summary Complete a payment setup
258
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
258
+ * @param {object} body
259
259
  * @param {string} [authorization] Bearer Token
260
260
  * @param {*} [options] Override http request option.
261
261
  * @throws {RequiredError}
262
262
  */
263
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
264
- return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
263
+ completePaymentSetup: function (body, authorization, options) {
264
+ return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
265
265
  },
266
266
  /**
267
267
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
268
268
  * @summary Initiate a payment setup
269
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
269
+ * @param {object} body
270
270
  * @param {string} [authorization] Bearer Token
271
271
  * @param {*} [options] Override http request option.
272
272
  * @throws {RequiredError}
273
273
  */
274
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
275
- return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
274
+ initiatePaymentSetup: function (body, authorization, options) {
275
+ return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
276
276
  },
277
277
  };
278
278
  };
@@ -298,7 +298,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
298
298
  */
299
299
  PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
300
300
  var _this = this;
301
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
301
+ return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
302
  };
303
303
  /**
304
304
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
@@ -310,7 +310,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
310
310
  */
311
311
  PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
312
312
  var _this = this;
313
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
313
+ return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
314
314
  };
315
315
  return PaymentSetupApi;
316
316
  }(base_1.BaseAPI));
@@ -13,9 +13,6 @@ 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';
19
16
  /**
20
17
  * PaymentsApi - axios parameter creator
21
18
  * @export
@@ -45,17 +42,14 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
45
42
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
46
43
  * @summary List payments
47
44
  * @param {string} [authorization] Bearer Token
48
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
49
- * @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.
50
45
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
51
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
46
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
52
47
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
53
48
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
54
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
55
49
  * @param {*} [options] Override http request option.
56
50
  * @throws {RequiredError}
57
51
  */
58
- listPayments: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ listPayments: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
53
  };
60
54
  /**
61
55
  * PaymentsApi - functional programming interface
@@ -71,7 +65,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
71
65
  * @param {*} [options] Override http request option.
72
66
  * @throws {RequiredError}
73
67
  */
74
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
68
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
75
69
  /**
76
70
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
77
71
  * @summary Retrieve the payment
@@ -81,22 +75,19 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
81
75
  * @param {*} [options] Override http request option.
82
76
  * @throws {RequiredError}
83
77
  */
84
- getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
78
+ getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
85
79
  /**
86
80
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
87
81
  * @summary List payments
88
82
  * @param {string} [authorization] Bearer Token
89
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
90
- * @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.
91
83
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
92
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
84
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
93
85
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
94
86
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
95
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
96
87
  * @param {*} [options] Override http request option.
97
88
  * @throws {RequiredError}
98
89
  */
99
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
90
+ listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
100
91
  };
101
92
  /**
102
93
  * PaymentsApi - factory interface
@@ -112,7 +103,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
112
103
  * @param {*} [options] Override http request option.
113
104
  * @throws {RequiredError}
114
105
  */
115
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
106
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
116
107
  /**
117
108
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
118
109
  * @summary Retrieve the payment
@@ -122,22 +113,19 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
122
113
  * @param {*} [options] Override http request option.
123
114
  * @throws {RequiredError}
124
115
  */
125
- getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
116
+ getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
126
117
  /**
127
118
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
128
119
  * @summary List payments
129
120
  * @param {string} [authorization] Bearer Token
130
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
131
- * @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.
132
121
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
133
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
122
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
134
123
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
135
124
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
136
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
137
125
  * @param {*} [options] Override http request option.
138
126
  * @throws {RequiredError}
139
127
  */
140
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass>;
128
+ listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
141
129
  };
142
130
  /**
143
131
  * Request parameters for createPayment operation in PaymentsApi.
@@ -201,18 +189,6 @@ export interface PaymentsApiListPaymentsRequest {
201
189
  * @memberof PaymentsApiListPayments
202
190
  */
203
191
  readonly authorization?: string;
204
- /**
205
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
206
- * @type {any}
207
- * @memberof PaymentsApiListPayments
208
- */
209
- readonly pageSize?: any;
210
- /**
211
- * 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.
212
- * @type {any}
213
- * @memberof PaymentsApiListPayments
214
- */
215
- readonly pageToken?: any;
216
192
  /**
217
193
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
218
194
  * @type {string}
@@ -220,11 +196,11 @@ export interface PaymentsApiListPaymentsRequest {
220
196
  */
221
197
  readonly filter?: string;
222
198
  /**
223
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
224
- * @type {any}
199
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
200
+ * @type {string}
225
201
  * @memberof PaymentsApiListPayments
226
202
  */
227
- readonly search?: any;
203
+ readonly filters?: string;
228
204
  /**
229
205
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
230
206
  * @type {string}
@@ -237,12 +213,6 @@ export interface PaymentsApiListPaymentsRequest {
237
213
  * @memberof PaymentsApiListPayments
238
214
  */
239
215
  readonly expand?: string;
240
- /**
241
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
242
- * @type {string}
243
- * @memberof PaymentsApiListPayments
244
- */
245
- readonly filters?: string;
246
216
  }
247
217
  /**
248
218
  * PaymentsApi - object-oriented interface
@@ -259,7 +229,7 @@ export declare class PaymentsApi extends BaseAPI {
259
229
  * @throws {RequiredError}
260
230
  * @memberof PaymentsApi
261
231
  */
262
- createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
232
+ createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
263
233
  /**
264
234
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
265
235
  * @summary Retrieve the payment
@@ -268,7 +238,7 @@ export declare class PaymentsApi extends BaseAPI {
268
238
  * @throws {RequiredError}
269
239
  * @memberof PaymentsApi
270
240
  */
271
- getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
241
+ getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
272
242
  /**
273
243
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
274
244
  * @summary List payments
@@ -277,5 +247,5 @@ export declare class PaymentsApi extends BaseAPI {
277
247
  * @throws {RequiredError}
278
248
  * @memberof PaymentsApi
279
249
  */
280
- listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any>>;
250
+ listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
281
251
  }
@@ -203,17 +203,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
203
203
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
204
204
  * @summary List payments
205
205
  * @param {string} [authorization] Bearer Token
206
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
207
- * @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.
208
206
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
209
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
207
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
210
208
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
211
209
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
212
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
213
210
  * @param {*} [options] Override http request option.
214
211
  * @throws {RequiredError}
215
212
  */
216
- listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
213
+ listPayments: function (authorization, filter, filters, order, expand, options) {
217
214
  if (options === void 0) { options = {}; }
218
215
  return __awaiter(_this, void 0, void 0, function () {
219
216
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -236,17 +233,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
236
233
  // authentication bearer required
237
234
  // http bearer authentication required
238
235
  _a.sent();
239
- if (pageSize !== undefined) {
240
- localVarQueryParameter['pageSize'] = pageSize;
241
- }
242
- if (pageToken !== undefined) {
243
- localVarQueryParameter['pageToken'] = pageToken;
244
- }
245
236
  if (filter !== undefined) {
246
237
  localVarQueryParameter['filter'] = filter;
247
238
  }
248
- if (search !== undefined) {
249
- localVarQueryParameter['search'] = search;
239
+ if (filters !== undefined) {
240
+ localVarQueryParameter['filters'] = filters;
250
241
  }
251
242
  if (order !== undefined) {
252
243
  localVarQueryParameter['order'] = order;
@@ -254,9 +245,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
254
245
  if (expand !== undefined) {
255
246
  localVarQueryParameter['expand'] = expand;
256
247
  }
257
- if (filters !== undefined) {
258
- localVarQueryParameter['filters'] = filters;
259
- }
260
248
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
261
249
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
262
250
  }
@@ -329,22 +317,19 @@ var PaymentsApiFp = function (configuration) {
329
317
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
330
318
  * @summary List payments
331
319
  * @param {string} [authorization] Bearer Token
332
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
333
- * @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.
334
320
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
335
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
321
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
336
322
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
337
323
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
338
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
339
324
  * @param {*} [options] Override http request option.
340
325
  * @throws {RequiredError}
341
326
  */
342
- listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
327
+ listPayments: function (authorization, filter, filters, order, expand, options) {
343
328
  return __awaiter(this, void 0, void 0, function () {
344
329
  var localVarAxiosArgs;
345
330
  return __generator(this, function (_a) {
346
331
  switch (_a.label) {
347
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
332
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options)];
348
333
  case 1:
349
334
  localVarAxiosArgs = _a.sent();
350
335
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -390,18 +375,15 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
390
375
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
391
376
  * @summary List payments
392
377
  * @param {string} [authorization] Bearer Token
393
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
394
- * @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.
395
378
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
396
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
379
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
397
380
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, code, amount&lt;/i&gt;
398
381
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: transactions&lt;i&gt;
399
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
400
382
  * @param {*} [options] Override http request option.
401
383
  * @throws {RequiredError}
402
384
  */
403
- listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
404
- return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
385
+ listPayments: function (authorization, filter, filters, order, expand, options) {
386
+ return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
405
387
  },
406
388
  };
407
389
  };
@@ -452,7 +434,7 @@ var PaymentsApi = /** @class */ (function (_super) {
452
434
  PaymentsApi.prototype.listPayments = function (requestParameters, options) {
453
435
  var _this = this;
454
436
  if (requestParameters === void 0) { requestParameters = {}; }
455
- return (0, exports.PaymentsApiFp)(this.configuration).listPayments(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); });
437
+ return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
456
438
  };
457
439
  return PaymentsApi;
458
440
  }(base_1.BaseAPI));