@emilgroup/payment-sdk 1.13.1-beta.13 → 1.13.1-beta.131

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 (174) hide show
  1. package/.openapi-generator/FILES +24 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +130 -57
  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 +180 -17
  10. package/api/policy-payment-methods-api.ts +471 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +4 -0
  14. package/base.ts +10 -32
  15. package/common.ts +2 -2
  16. package/configuration.ts +0 -9
  17. package/dist/api/bank-accounts-api.d.ts +35 -8
  18. package/dist/api/bank-accounts-api.js +29 -11
  19. package/dist/api/bank-orders-api.d.ts +92 -46
  20. package/dist/api/bank-orders-api.js +83 -52
  21. package/dist/api/bank-transaction-api.d.ts +39 -31
  22. package/dist/api/bank-transaction-api.js +36 -31
  23. package/dist/api/exceeding-credits-api.d.ts +206 -0
  24. package/dist/api/exceeding-credits-api.js +352 -0
  25. package/dist/api/payment-methods-api.d.ts +39 -12
  26. package/dist/api/payment-methods-api.js +32 -14
  27. package/dist/api/payment-reminders-api.d.ts +35 -8
  28. package/dist/api/payment-reminders-api.js +29 -11
  29. package/dist/api/payments-api.d.ts +104 -12
  30. package/dist/api/payments-api.js +133 -14
  31. package/dist/api/policy-payment-methods-api.d.ts +272 -0
  32. package/dist/api/policy-payment-methods-api.js +452 -0
  33. package/dist/api/refunds-api.d.ts +28 -10
  34. package/dist/api/refunds-api.js +24 -12
  35. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  36. package/dist/api/tenant-bank-account-api.js +24 -12
  37. package/dist/api.d.ts +2 -0
  38. package/dist/api.js +2 -0
  39. package/dist/base.d.ts +2 -4
  40. package/dist/base.js +21 -40
  41. package/dist/common.js +2 -2
  42. package/dist/configuration.d.ts +0 -6
  43. package/dist/configuration.js +0 -8
  44. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  45. package/dist/models/bank-order-class.d.ts +23 -3
  46. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  47. package/dist/models/bank-order-xml-file-class.js +15 -0
  48. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  49. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  50. package/dist/models/bank-transaction-class.d.ts +22 -22
  51. package/dist/models/bank-transaction-class.js +5 -0
  52. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  53. package/dist/models/bank-transaction-invoice-class.js +15 -0
  54. package/dist/models/bank-transfer-dto.d.ts +25 -0
  55. package/dist/models/bank-transfer-dto.js +15 -0
  56. package/dist/models/billing-address-dto.d.ts +60 -0
  57. package/dist/models/billing-address-dto.js +15 -0
  58. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  59. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  60. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  61. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  62. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  63. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  64. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  65. package/dist/models/create-bank-order-request-dto.d.ts +9 -9
  66. package/dist/models/create-payment-order-dto.d.ts +48 -0
  67. package/dist/models/create-payment-order-dto.js +15 -0
  68. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  69. package/dist/models/create-payment-order-request-dto.js +15 -0
  70. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  71. package/dist/models/create-payment-request-dto.d.ts +7 -1
  72. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  73. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  74. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  75. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  76. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  77. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  78. package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
  79. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  80. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  81. package/dist/models/eis-sepa-debit-dto.js +15 -0
  82. package/dist/models/exceeding-credit-class.d.ts +116 -0
  83. package/dist/models/exceeding-credit-class.js +29 -0
  84. package/dist/models/financial-account-class.d.ts +111 -0
  85. package/dist/models/financial-account-class.js +24 -0
  86. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  87. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  88. package/dist/models/index.d.ts +22 -1
  89. package/dist/models/index.js +22 -1
  90. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  91. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  92. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  93. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  94. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  95. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  96. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  97. package/dist/models/invoice-allocation-dto.js +15 -0
  98. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  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/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
  117. package/dist/models/tenant-bank-account-class.d.ts +30 -0
  118. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  119. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  120. package/dist/models/update-bank-order-request-dto.d.ts +12 -12
  121. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
  122. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  123. package/models/bank-order-class.ts +23 -3
  124. package/models/bank-order-xml-file-class.ts +78 -0
  125. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  126. package/models/bank-transaction-class.ts +25 -22
  127. package/models/bank-transaction-invoice-class.ts +66 -0
  128. package/models/bank-transfer-dto.ts +31 -0
  129. package/models/billing-address-dto.ts +66 -0
  130. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  131. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  132. package/models/complete-payment-setup-request-dto.ts +7 -0
  133. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  134. package/models/create-bank-order-request-dto.ts +9 -9
  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/create-tenant-bank-account-request-dto.ts +30 -0
  143. package/models/deactivated-payment-reminder-class.ts +7 -1
  144. package/models/eis-sepa-debit-dto.ts +61 -0
  145. package/models/exceeding-credit-class.ts +125 -0
  146. package/models/financial-account-class.ts +120 -0
  147. package/models/get-exceeding-credit-response-class.ts +31 -0
  148. package/models/index.ts +22 -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-exceeding-credits-response-class.ts +37 -0
  157. package/models/list-policy-payment-methods-response-class.ts +37 -0
  158. package/models/mandate-dto.ts +49 -0
  159. package/models/mandate-hash-data-dto.ts +48 -0
  160. package/models/mandate-reference-class.ts +96 -0
  161. package/models/payment-class-without-expand-properties.ts +7 -1
  162. package/models/payment-class.ts +7 -1
  163. package/models/payment-method-class.ts +6 -0
  164. package/models/payment-reminder-class.ts +7 -1
  165. package/models/policy-payment-method-class.ts +92 -0
  166. package/models/refund-class.ts +7 -1
  167. package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
  168. package/models/tenant-bank-account-class.ts +30 -0
  169. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  170. package/models/update-bank-order-request-dto.ts +12 -12
  171. package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
  172. package/package.json +1 -1
  173. package/tsconfig.json +0 -1
  174. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
@@ -0,0 +1,272 @@
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 { ActivatePolicyPaymentMethodRequestDto } from '../models';
16
+ import { CreatePolicyPaymentMethodRequestDto } from '../models';
17
+ import { CreatePolicyPaymentMethodResponseClass } from '../models';
18
+ import { ListPolicyPaymentMethodsResponseClass } from '../models';
19
+ /**
20
+ * PolicyPaymentMethodsApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const PolicyPaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
26
+ * @summary Activate the policy payment method
27
+ * @param {string} code
28
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
29
+ * @param {string} [authorization] Bearer Token
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ activatePolicyPaymentMethod: (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ /**
35
+ * 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\"
36
+ * @summary Create the policy payment method
37
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ createPolicyPaymentMethod: (createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ /**
44
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
45
+ * @summary Retrieve the policy payment methods
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
48
+ * @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.
49
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
50
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
51
+ * @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.
52
+ * @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.
53
+ * @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.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ listPolicyPaymentMethods: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ };
59
+ /**
60
+ * PolicyPaymentMethodsApi - functional programming interface
61
+ * @export
62
+ */
63
+ export declare const PolicyPaymentMethodsApiFp: (configuration?: Configuration) => {
64
+ /**
65
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
66
+ * @summary Activate the policy payment method
67
+ * @param {string} code
68
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
69
+ * @param {string} [authorization] Bearer Token
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
74
+ /**
75
+ * 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\"
76
+ * @summary Create the policy payment method
77
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
78
+ * @param {string} [authorization] Bearer Token
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyPaymentMethodResponseClass>>;
83
+ /**
84
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
85
+ * @summary Retrieve the policy payment methods
86
+ * @param {string} [authorization] Bearer Token
87
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
88
+ * @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.
89
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
90
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
91
+ * @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.
92
+ * @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.
93
+ * @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.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ 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>>;
98
+ };
99
+ /**
100
+ * PolicyPaymentMethodsApi - factory interface
101
+ * @export
102
+ */
103
+ export declare const PolicyPaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
104
+ /**
105
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
106
+ * @summary Activate the policy payment method
107
+ * @param {string} code
108
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
109
+ * @param {string} [authorization] Bearer Token
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
114
+ /**
115
+ * 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\"
116
+ * @summary Create the policy payment method
117
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
118
+ * @param {string} [authorization] Bearer Token
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyPaymentMethodResponseClass>;
123
+ /**
124
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
125
+ * @summary Retrieve the policy payment methods
126
+ * @param {string} [authorization] Bearer Token
127
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
128
+ * @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.
129
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
130
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
131
+ * @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.
132
+ * @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.
133
+ * @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.
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyPaymentMethodsResponseClass>;
138
+ };
139
+ /**
140
+ * Request parameters for activatePolicyPaymentMethod operation in PolicyPaymentMethodsApi.
141
+ * @export
142
+ * @interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest
143
+ */
144
+ export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
145
+ /**
146
+ *
147
+ * @type {string}
148
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
149
+ */
150
+ readonly code: string;
151
+ /**
152
+ *
153
+ * @type {ActivatePolicyPaymentMethodRequestDto}
154
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
155
+ */
156
+ readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto;
157
+ /**
158
+ * Bearer Token
159
+ * @type {string}
160
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
161
+ */
162
+ readonly authorization?: string;
163
+ }
164
+ /**
165
+ * Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
166
+ * @export
167
+ * @interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest
168
+ */
169
+ export interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest {
170
+ /**
171
+ *
172
+ * @type {CreatePolicyPaymentMethodRequestDto}
173
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
174
+ */
175
+ readonly createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto;
176
+ /**
177
+ * Bearer Token
178
+ * @type {string}
179
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
180
+ */
181
+ readonly authorization?: string;
182
+ }
183
+ /**
184
+ * Request parameters for listPolicyPaymentMethods operation in PolicyPaymentMethodsApi.
185
+ * @export
186
+ * @interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest
187
+ */
188
+ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
189
+ /**
190
+ * Bearer Token
191
+ * @type {string}
192
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
193
+ */
194
+ readonly authorization?: string;
195
+ /**
196
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
197
+ * @type {number}
198
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
199
+ */
200
+ readonly pageSize?: number;
201
+ /**
202
+ * 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.
203
+ * @type {string}
204
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
205
+ */
206
+ readonly pageToken?: string;
207
+ /**
208
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
209
+ * @type {string}
210
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
211
+ */
212
+ readonly filter?: string;
213
+ /**
214
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
215
+ * @type {string}
216
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
217
+ */
218
+ readonly search?: string;
219
+ /**
220
+ * 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.
221
+ * @type {string}
222
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
223
+ */
224
+ readonly order?: string;
225
+ /**
226
+ * 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.
227
+ * @type {string}
228
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
229
+ */
230
+ readonly expand?: string;
231
+ /**
232
+ * 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.
233
+ * @type {string}
234
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
235
+ */
236
+ readonly filters?: string;
237
+ }
238
+ /**
239
+ * PolicyPaymentMethodsApi - object-oriented interface
240
+ * @export
241
+ * @class PolicyPaymentMethodsApi
242
+ * @extends {BaseAPI}
243
+ */
244
+ export declare class PolicyPaymentMethodsApi extends BaseAPI {
245
+ /**
246
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
247
+ * @summary Activate the policy payment method
248
+ * @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof PolicyPaymentMethodsApi
252
+ */
253
+ activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
254
+ /**
255
+ * 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\"
256
+ * @summary Create the policy payment method
257
+ * @param {PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof PolicyPaymentMethodsApi
261
+ */
262
+ createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any>>;
263
+ /**
264
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
265
+ * @summary Retrieve the policy payment methods
266
+ * @param {PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest} requestParameters Request parameters.
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ * @memberof PolicyPaymentMethodsApi
270
+ */
271
+ listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any>>;
272
+ }