@emilgroup/payment-sdk 1.13.1-beta.10 → 1.13.1-beta.100

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 (172) hide show
  1. package/.openapi-generator/FILES +31 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +691 -0
  5. package/api/bank-transaction-api.ts +59 -48
  6. package/api/exceeding-credits-api.ts +349 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +188 -21
  10. package/api/policy-payment-methods-api.ts +353 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +6 -0
  14. package/base.ts +51 -2
  15. package/dist/api/bank-accounts-api.d.ts +35 -8
  16. package/dist/api/bank-accounts-api.js +29 -11
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +642 -0
  19. package/dist/api/bank-transaction-api.d.ts +39 -31
  20. package/dist/api/bank-transaction-api.js +36 -31
  21. package/dist/api/exceeding-credits-api.d.ts +206 -0
  22. package/dist/api/exceeding-credits-api.js +352 -0
  23. package/dist/api/payment-methods-api.d.ts +39 -12
  24. package/dist/api/payment-methods-api.js +32 -14
  25. package/dist/api/payment-reminders-api.d.ts +35 -8
  26. package/dist/api/payment-reminders-api.js +29 -11
  27. package/dist/api/payments-api.d.ts +112 -16
  28. package/dist/api/payments-api.js +141 -18
  29. package/dist/api/policy-payment-methods-api.d.ts +207 -0
  30. package/dist/api/policy-payment-methods-api.js +353 -0
  31. package/dist/api/refunds-api.d.ts +28 -10
  32. package/dist/api/refunds-api.js +24 -12
  33. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  34. package/dist/api/tenant-bank-account-api.js +24 -12
  35. package/dist/api.d.ts +3 -0
  36. package/dist/api.js +3 -0
  37. package/dist/base.d.ts +10 -1
  38. package/dist/base.js +46 -2
  39. package/dist/models/bank-order-class.d.ts +122 -0
  40. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  41. package/dist/models/bank-order-xml-file-class.js +15 -0
  42. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  43. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  44. package/dist/models/bank-transaction-class.d.ts +22 -22
  45. package/dist/models/bank-transaction-class.js +5 -0
  46. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  47. package/dist/models/bank-transaction-invoice-class.js +15 -0
  48. package/dist/models/bank-transfer-dto.d.ts +25 -0
  49. package/dist/models/bank-transfer-dto.js +15 -0
  50. package/dist/models/billing-address-dto.d.ts +54 -0
  51. package/dist/models/billing-address-dto.js +15 -0
  52. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  53. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  54. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  55. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  56. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  57. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  58. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  59. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  60. package/dist/models/create-bank-order-request-dto.js +28 -0
  61. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  62. package/dist/models/create-bank-order-response-class.js +15 -0
  63. package/dist/models/create-payment-order-dto.d.ts +48 -0
  64. package/dist/models/create-payment-order-dto.js +15 -0
  65. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  66. package/dist/models/create-payment-order-request-dto.js +15 -0
  67. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  68. package/dist/models/create-payment-request-dto.d.ts +7 -1
  69. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  70. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  71. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  72. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  73. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  74. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  75. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  76. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  77. package/dist/models/eis-sepa-debit-dto.js +15 -0
  78. package/dist/models/exceeding-credit-class.d.ts +116 -0
  79. package/dist/models/exceeding-credit-class.js +29 -0
  80. package/dist/models/financial-account-class.d.ts +111 -0
  81. package/dist/models/financial-account-class.js +24 -0
  82. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  83. package/dist/models/get-bank-order-response-class.js +15 -0
  84. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  85. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  86. package/dist/models/index.d.ts +28 -1
  87. package/dist/models/index.js +28 -1
  88. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  89. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  90. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  91. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  92. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  93. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  94. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  95. package/dist/models/invoice-allocation-dto.js +15 -0
  96. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  97. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  98. package/dist/models/list-bank-orders-response-class.js +15 -0
  99. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  100. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  101. package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
  102. package/dist/models/list-policy-payment-methods-response-class.js +15 -0
  103. package/dist/models/mandate-dto.d.ts +43 -0
  104. package/dist/models/mandate-dto.js +15 -0
  105. package/dist/models/mandate-hash-data-dto.d.ts +42 -0
  106. package/dist/models/mandate-hash-data-dto.js +15 -0
  107. package/dist/models/mandate-reference-class.d.ts +90 -0
  108. package/dist/models/mandate-reference-class.js +15 -0
  109. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  110. package/dist/models/payment-class.d.ts +7 -1
  111. package/dist/models/payment-method-class.d.ts +6 -0
  112. package/dist/models/payment-reminder-class.d.ts +7 -1
  113. package/dist/models/policy-payment-method-class.d.ts +86 -0
  114. package/dist/models/policy-payment-method-class.js +15 -0
  115. package/dist/models/refund-class.d.ts +7 -1
  116. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  117. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  118. package/dist/models/update-bank-order-request-dto.d.ts +62 -0
  119. package/dist/models/update-bank-order-request-dto.js +23 -0
  120. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  121. package/dist/models/update-bank-order-response-class.js +15 -0
  122. package/models/bank-order-class.ts +128 -0
  123. package/models/bank-order-xml-file-class.ts +78 -0
  124. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  125. package/models/bank-transaction-class.ts +25 -22
  126. package/models/bank-transaction-invoice-class.ts +66 -0
  127. package/models/bank-transfer-dto.ts +31 -0
  128. package/models/billing-address-dto.ts +60 -0
  129. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  130. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  131. package/models/complete-payment-setup-request-dto.ts +7 -0
  132. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  133. package/models/create-bank-order-request-dto.ts +84 -0
  134. package/models/create-bank-order-response-class.ts +31 -0
  135. package/models/create-payment-order-dto.ts +54 -0
  136. package/models/create-payment-order-request-dto.ts +54 -0
  137. package/models/create-payment-reminder-request-dto.ts +7 -1
  138. package/models/create-payment-request-dto.ts +7 -1
  139. package/models/create-policy-payment-method-request-dto.ts +36 -0
  140. package/models/create-policy-payment-method-response-class.ts +31 -0
  141. package/models/create-psp-payment-method-request-dto.ts +30 -2
  142. package/models/deactivated-payment-reminder-class.ts +7 -1
  143. package/models/eis-sepa-debit-dto.ts +61 -0
  144. package/models/exceeding-credit-class.ts +125 -0
  145. package/models/financial-account-class.ts +120 -0
  146. package/models/get-bank-order-response-class.ts +31 -0
  147. package/models/get-exceeding-credit-response-class.ts +31 -0
  148. package/models/index.ts +28 -1
  149. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  150. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  151. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  152. package/models/initiate-payment-setup-request-dto.ts +3 -2
  153. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  154. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  155. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  156. package/models/list-bank-orders-response-class.ts +37 -0
  157. package/models/list-exceeding-credits-response-class.ts +37 -0
  158. package/models/list-policy-payment-methods-response-class.ts +37 -0
  159. package/models/mandate-dto.ts +49 -0
  160. package/models/mandate-hash-data-dto.ts +48 -0
  161. package/models/mandate-reference-class.ts +96 -0
  162. package/models/payment-class-without-expand-properties.ts +7 -1
  163. package/models/payment-class.ts +7 -1
  164. package/models/payment-method-class.ts +6 -0
  165. package/models/payment-reminder-class.ts +7 -1
  166. package/models/policy-payment-method-class.ts +92 -0
  167. package/models/refund-class.ts +7 -1
  168. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  169. package/models/update-bank-order-request-dto.ts +71 -0
  170. package/models/update-bank-order-response-class.ts +31 -0
  171. package/package.json +1 -1
  172. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
@@ -0,0 +1,207 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePolicyPaymentMethodRequestDto } from '../models';
16
+ import { CreatePolicyPaymentMethodResponseClass } from '../models';
17
+ import { ListPolicyPaymentMethodsResponseClass } from '../models';
18
+ /**
19
+ * PolicyPaymentMethodsApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const PolicyPaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
25
+ * @summary Create the policy payment method
26
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
27
+ * @param {string} [authorization] Bearer Token
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ createPolicyPaymentMethod: (createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
34
+ * @summary Retrieve the policy payment methods
35
+ * @param {string} [authorization] Bearer Token
36
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
37
+ * @param {string} [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.
38
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
39
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
40
+ * @param {string} [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.
41
+ * @param {string} [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.
42
+ * @param {string} [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.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listPolicyPaymentMethods: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ };
48
+ /**
49
+ * PolicyPaymentMethodsApi - functional programming interface
50
+ * @export
51
+ */
52
+ export declare const PolicyPaymentMethodsApiFp: (configuration?: Configuration) => {
53
+ /**
54
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
55
+ * @summary Create the policy payment method
56
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
57
+ * @param {string} [authorization] Bearer Token
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyPaymentMethodResponseClass>>;
62
+ /**
63
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
64
+ * @summary Retrieve the policy payment methods
65
+ * @param {string} [authorization] Bearer Token
66
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
67
+ * @param {string} [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.
68
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
69
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
70
+ * @param {string} [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.
71
+ * @param {string} [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.
72
+ * @param {string} [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.
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyPaymentMethodsResponseClass>>;
77
+ };
78
+ /**
79
+ * PolicyPaymentMethodsApi - factory interface
80
+ * @export
81
+ */
82
+ export declare const PolicyPaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
+ /**
84
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
85
+ * @summary Create the policy payment method
86
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
87
+ * @param {string} [authorization] Bearer Token
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyPaymentMethodResponseClass>;
92
+ /**
93
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
94
+ * @summary Retrieve the policy payment methods
95
+ * @param {string} [authorization] Bearer Token
96
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
97
+ * @param {string} [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.
98
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
99
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
100
+ * @param {string} [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.
101
+ * @param {string} [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.
102
+ * @param {string} [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.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyPaymentMethodsResponseClass>;
107
+ };
108
+ /**
109
+ * Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
110
+ * @export
111
+ * @interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest
112
+ */
113
+ export interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest {
114
+ /**
115
+ *
116
+ * @type {CreatePolicyPaymentMethodRequestDto}
117
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
118
+ */
119
+ readonly createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto;
120
+ /**
121
+ * Bearer Token
122
+ * @type {string}
123
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
124
+ */
125
+ readonly authorization?: string;
126
+ }
127
+ /**
128
+ * Request parameters for listPolicyPaymentMethods operation in PolicyPaymentMethodsApi.
129
+ * @export
130
+ * @interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest
131
+ */
132
+ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
133
+ /**
134
+ * Bearer Token
135
+ * @type {string}
136
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
137
+ */
138
+ readonly authorization?: string;
139
+ /**
140
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
141
+ * @type {number}
142
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
143
+ */
144
+ readonly pageSize?: number;
145
+ /**
146
+ * 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.
147
+ * @type {string}
148
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
149
+ */
150
+ readonly pageToken?: string;
151
+ /**
152
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
153
+ * @type {string}
154
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
155
+ */
156
+ readonly filter?: string;
157
+ /**
158
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
159
+ * @type {string}
160
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
161
+ */
162
+ readonly search?: string;
163
+ /**
164
+ * 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.
165
+ * @type {string}
166
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
167
+ */
168
+ readonly order?: string;
169
+ /**
170
+ * 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.
171
+ * @type {string}
172
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
173
+ */
174
+ readonly expand?: string;
175
+ /**
176
+ * 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.
177
+ * @type {string}
178
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
179
+ */
180
+ readonly filters?: string;
181
+ }
182
+ /**
183
+ * PolicyPaymentMethodsApi - object-oriented interface
184
+ * @export
185
+ * @class PolicyPaymentMethodsApi
186
+ * @extends {BaseAPI}
187
+ */
188
+ export declare class PolicyPaymentMethodsApi extends BaseAPI {
189
+ /**
190
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
191
+ * @summary Create the policy payment method
192
+ * @param {PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest} requestParameters Request parameters.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ * @memberof PolicyPaymentMethodsApi
196
+ */
197
+ createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any>>;
198
+ /**
199
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
200
+ * @summary Retrieve the policy payment methods
201
+ * @param {PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest} requestParameters Request parameters.
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ * @memberof PolicyPaymentMethodsApi
205
+ */
206
+ listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any>>;
207
+ }
@@ -0,0 +1,353 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.PolicyPaymentMethodsApi = exports.PolicyPaymentMethodsApiFactory = exports.PolicyPaymentMethodsApiFp = exports.PolicyPaymentMethodsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * PolicyPaymentMethodsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
97
+ * @summary Create the policy payment method
98
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createPolicyPaymentMethodRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createPolicyPaymentMethod', 'createPolicyPaymentMethodRequestDto', createPolicyPaymentMethodRequestDto);
112
+ localVarPath = "/paymentservice/v1/policy-payment-methods";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPolicyPaymentMethodRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
146
+ * @summary Retrieve the policy payment methods
147
+ * @param {string} [authorization] Bearer Token
148
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
149
+ * @param {string} [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.
150
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
151
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
152
+ * @param {string} [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.
153
+ * @param {string} [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.
154
+ * @param {string} [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.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ localVarPath = "/paymentservice/v1/policy-payment-methods";
166
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
+ case 1:
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ _a.sent();
181
+ if (pageSize !== undefined) {
182
+ localVarQueryParameter['pageSize'] = pageSize;
183
+ }
184
+ if (pageToken !== undefined) {
185
+ localVarQueryParameter['pageToken'] = pageToken;
186
+ }
187
+ if (filter !== undefined) {
188
+ localVarQueryParameter['filter'] = filter;
189
+ }
190
+ if (search !== undefined) {
191
+ localVarQueryParameter['search'] = search;
192
+ }
193
+ if (order !== undefined) {
194
+ localVarQueryParameter['order'] = order;
195
+ }
196
+ if (expand !== undefined) {
197
+ localVarQueryParameter['expand'] = expand;
198
+ }
199
+ if (filters !== undefined) {
200
+ localVarQueryParameter['filters'] = filters;
201
+ }
202
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
203
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
204
+ }
205
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
206
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
207
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
208
+ return [2 /*return*/, {
209
+ url: (0, common_1.toPathString)(localVarUrlObj),
210
+ options: localVarRequestOptions,
211
+ }];
212
+ }
213
+ });
214
+ });
215
+ },
216
+ };
217
+ };
218
+ exports.PolicyPaymentMethodsApiAxiosParamCreator = PolicyPaymentMethodsApiAxiosParamCreator;
219
+ /**
220
+ * PolicyPaymentMethodsApi - functional programming interface
221
+ * @export
222
+ */
223
+ var PolicyPaymentMethodsApiFp = function (configuration) {
224
+ var localVarAxiosParamCreator = (0, exports.PolicyPaymentMethodsApiAxiosParamCreator)(configuration);
225
+ return {
226
+ /**
227
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
228
+ * @summary Create the policy payment method
229
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
230
+ * @param {string} [authorization] Bearer Token
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
235
+ return __awaiter(this, void 0, void 0, function () {
236
+ var localVarAxiosArgs;
237
+ return __generator(this, function (_a) {
238
+ switch (_a.label) {
239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto, authorization, options)];
240
+ case 1:
241
+ localVarAxiosArgs = _a.sent();
242
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
243
+ }
244
+ });
245
+ });
246
+ },
247
+ /**
248
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
249
+ * @summary Retrieve the policy payment methods
250
+ * @param {string} [authorization] Bearer Token
251
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
252
+ * @param {string} [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.
253
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
255
+ * @param {string} [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.
256
+ * @param {string} [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.
257
+ * @param {string} [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.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
262
+ return __awaiter(this, void 0, void 0, function () {
263
+ var localVarAxiosArgs;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
266
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicyPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
267
+ case 1:
268
+ localVarAxiosArgs = _a.sent();
269
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
270
+ }
271
+ });
272
+ });
273
+ },
274
+ };
275
+ };
276
+ exports.PolicyPaymentMethodsApiFp = PolicyPaymentMethodsApiFp;
277
+ /**
278
+ * PolicyPaymentMethodsApi - factory interface
279
+ * @export
280
+ */
281
+ var PolicyPaymentMethodsApiFactory = function (configuration, basePath, axios) {
282
+ var localVarFp = (0, exports.PolicyPaymentMethodsApiFp)(configuration);
283
+ return {
284
+ /**
285
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
286
+ * @summary Create the policy payment method
287
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
288
+ * @param {string} [authorization] Bearer Token
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
293
+ return localVarFp.createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
294
+ },
295
+ /**
296
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
297
+ * @summary Retrieve the policy payment methods
298
+ * @param {string} [authorization] Bearer Token
299
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
300
+ * @param {string} [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.
301
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
302
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
303
+ * @param {string} [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.
304
+ * @param {string} [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.
305
+ * @param {string} [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.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
310
+ return localVarFp.listPolicyPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
311
+ },
312
+ };
313
+ };
314
+ exports.PolicyPaymentMethodsApiFactory = PolicyPaymentMethodsApiFactory;
315
+ /**
316
+ * PolicyPaymentMethodsApi - object-oriented interface
317
+ * @export
318
+ * @class PolicyPaymentMethodsApi
319
+ * @extends {BaseAPI}
320
+ */
321
+ var PolicyPaymentMethodsApi = /** @class */ (function (_super) {
322
+ __extends(PolicyPaymentMethodsApi, _super);
323
+ function PolicyPaymentMethodsApi() {
324
+ return _super !== null && _super.apply(this, arguments) || this;
325
+ }
326
+ /**
327
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
328
+ * @summary Create the policy payment method
329
+ * @param {PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest} requestParameters Request parameters.
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ * @memberof PolicyPaymentMethodsApi
333
+ */
334
+ PolicyPaymentMethodsApi.prototype.createPolicyPaymentMethod = function (requestParameters, options) {
335
+ var _this = this;
336
+ return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).createPolicyPaymentMethod(requestParameters.createPolicyPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
337
+ };
338
+ /**
339
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
340
+ * @summary Retrieve the policy payment methods
341
+ * @param {PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ * @memberof PolicyPaymentMethodsApi
345
+ */
346
+ PolicyPaymentMethodsApi.prototype.listPolicyPaymentMethods = function (requestParameters, options) {
347
+ var _this = this;
348
+ if (requestParameters === void 0) { requestParameters = {}; }
349
+ return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).listPolicyPaymentMethods(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); });
350
+ };
351
+ return PolicyPaymentMethodsApi;
352
+ }(base_1.BaseAPI));
353
+ exports.PolicyPaymentMethodsApi = PolicyPaymentMethodsApi;