@emilgroup/commission-sdk 1.0.0-beta.9 → 1.0.2

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 (156) hide show
  1. package/README.md +1 -51
  2. package/index.js +99 -0
  3. package/package.json +8 -21
  4. package/scripts/deploy.js +81 -0
  5. package/.openapi-generator/FILES +0 -56
  6. package/.openapi-generator/VERSION +0 -1
  7. package/.openapi-generator-ignore +0 -23
  8. package/api/commission-agreement-products-api.ts +0 -651
  9. package/api/commission-agreement-versions-api.ts +0 -573
  10. package/api/commission-agreements-api.ts +0 -680
  11. package/api/commission-recipients-api.ts +0 -693
  12. package/api/commissions-api.ts +0 -693
  13. package/api/default-api.ts +0 -124
  14. package/api.ts +0 -37
  15. package/base.ts +0 -331
  16. package/common.ts +0 -198
  17. package/configuration.ts +0 -110
  18. package/dist/api/commission-agreement-products-api.d.ts +0 -366
  19. package/dist/api/commission-agreement-products-api.js +0 -626
  20. package/dist/api/commission-agreement-versions-api.d.ts +0 -327
  21. package/dist/api/commission-agreement-versions-api.js +0 -545
  22. package/dist/api/commission-agreements-api.d.ts +0 -384
  23. package/dist/api/commission-agreements-api.js +0 -638
  24. package/dist/api/commission-recipients-api.d.ts +0 -393
  25. package/dist/api/commission-recipients-api.js +0 -644
  26. package/dist/api/commissions-api.d.ts +0 -393
  27. package/dist/api/commissions-api.js +0 -644
  28. package/dist/api/default-api.d.ts +0 -70
  29. package/dist/api/default-api.js +0 -200
  30. package/dist/api.d.ts +0 -17
  31. package/dist/api.js +0 -35
  32. package/dist/base.d.ts +0 -86
  33. package/dist/base.js +0 -367
  34. package/dist/common.d.ts +0 -91
  35. package/dist/common.js +0 -276
  36. package/dist/configuration.d.ts +0 -89
  37. package/dist/configuration.js +0 -52
  38. package/dist/index.d.ts +0 -15
  39. package/dist/index.js +0 -36
  40. package/dist/models/commission-agreement-class.d.ts +0 -89
  41. package/dist/models/commission-agreement-class.js +0 -25
  42. package/dist/models/commission-agreement-product-class.d.ts +0 -78
  43. package/dist/models/commission-agreement-product-class.js +0 -20
  44. package/dist/models/commission-agreement-version-class.d.ts +0 -79
  45. package/dist/models/commission-agreement-version-class.js +0 -15
  46. package/dist/models/commission-class.d.ts +0 -103
  47. package/dist/models/commission-class.js +0 -15
  48. package/dist/models/commission-item-class.d.ts +0 -84
  49. package/dist/models/commission-item-class.js +0 -21
  50. package/dist/models/commission-recipient-class.d.ts +0 -90
  51. package/dist/models/commission-recipient-class.js +0 -20
  52. package/dist/models/create-commission-agreement-product-request-dto.d.ts +0 -30
  53. package/dist/models/create-commission-agreement-product-request-dto.js +0 -15
  54. package/dist/models/create-commission-agreement-product-response-class.d.ts +0 -25
  55. package/dist/models/create-commission-agreement-product-response-class.js +0 -15
  56. package/dist/models/create-commission-agreement-request-dto.d.ts +0 -71
  57. package/dist/models/create-commission-agreement-request-dto.js +0 -25
  58. package/dist/models/create-commission-agreement-response-class.d.ts +0 -25
  59. package/dist/models/create-commission-agreement-response-class.js +0 -15
  60. package/dist/models/create-commission-agreement-version-request-dto.d.ts +0 -42
  61. package/dist/models/create-commission-agreement-version-request-dto.js +0 -15
  62. package/dist/models/create-commission-agreement-version-response-class.d.ts +0 -25
  63. package/dist/models/create-commission-agreement-version-response-class.js +0 -15
  64. package/dist/models/create-commission-item-request-dto.d.ts +0 -48
  65. package/dist/models/create-commission-item-request-dto.js +0 -21
  66. package/dist/models/create-commission-recipient-request-dto.d.ts +0 -36
  67. package/dist/models/create-commission-recipient-request-dto.js +0 -15
  68. package/dist/models/create-commission-recipient-response-class.d.ts +0 -25
  69. package/dist/models/create-commission-recipient-response-class.js +0 -15
  70. package/dist/models/create-commission-request-dto.d.ts +0 -55
  71. package/dist/models/create-commission-request-dto.js +0 -15
  72. package/dist/models/create-commission-response-class.d.ts +0 -25
  73. package/dist/models/create-commission-response-class.js +0 -15
  74. package/dist/models/get-commission-agreement-product-response-class.d.ts +0 -25
  75. package/dist/models/get-commission-agreement-product-response-class.js +0 -15
  76. package/dist/models/get-commission-agreement-response-class.d.ts +0 -25
  77. package/dist/models/get-commission-agreement-response-class.js +0 -15
  78. package/dist/models/get-commission-agreement-version-response-class.d.ts +0 -25
  79. package/dist/models/get-commission-agreement-version-response-class.js +0 -15
  80. package/dist/models/get-commission-recipient-response-class.d.ts +0 -25
  81. package/dist/models/get-commission-recipient-response-class.js +0 -15
  82. package/dist/models/get-commission-response-class.d.ts +0 -25
  83. package/dist/models/get-commission-response-class.js +0 -15
  84. package/dist/models/index.d.ts +0 -37
  85. package/dist/models/index.js +0 -53
  86. package/dist/models/inline-response200.d.ts +0 -54
  87. package/dist/models/inline-response200.js +0 -15
  88. package/dist/models/inline-response503.d.ts +0 -54
  89. package/dist/models/inline-response503.js +0 -15
  90. package/dist/models/list-commission-agreement-products-response-class.d.ts +0 -43
  91. package/dist/models/list-commission-agreement-products-response-class.js +0 -15
  92. package/dist/models/list-commission-agreement-versions-response-class.d.ts +0 -43
  93. package/dist/models/list-commission-agreement-versions-response-class.js +0 -15
  94. package/dist/models/list-commission-agreements-response-class.d.ts +0 -43
  95. package/dist/models/list-commission-agreements-response-class.js +0 -15
  96. package/dist/models/list-commission-recipients-response-class.d.ts +0 -43
  97. package/dist/models/list-commission-recipients-response-class.js +0 -15
  98. package/dist/models/list-commissions-response-class.d.ts +0 -43
  99. package/dist/models/list-commissions-response-class.js +0 -15
  100. package/dist/models/update-commission-agreement-product-request-dto.d.ts +0 -41
  101. package/dist/models/update-commission-agreement-product-request-dto.js +0 -20
  102. package/dist/models/update-commission-agreement-product-response-class.d.ts +0 -25
  103. package/dist/models/update-commission-agreement-product-response-class.js +0 -15
  104. package/dist/models/update-commission-agreement-request-dto.d.ts +0 -48
  105. package/dist/models/update-commission-agreement-request-dto.js +0 -21
  106. package/dist/models/update-commission-agreement-response-class.d.ts +0 -25
  107. package/dist/models/update-commission-agreement-response-class.js +0 -15
  108. package/dist/models/update-commission-recipient-request-dto.d.ts +0 -42
  109. package/dist/models/update-commission-recipient-request-dto.js +0 -15
  110. package/dist/models/update-commission-recipient-response-class.d.ts +0 -25
  111. package/dist/models/update-commission-recipient-response-class.js +0 -15
  112. package/dist/models/update-commission-request-dto.d.ts +0 -53
  113. package/dist/models/update-commission-request-dto.js +0 -20
  114. package/dist/models/update-commission-response-class.d.ts +0 -25
  115. package/dist/models/update-commission-response-class.js +0 -15
  116. package/git_push.sh +0 -57
  117. package/index.ts +0 -19
  118. package/models/commission-agreement-class.ts +0 -99
  119. package/models/commission-agreement-product-class.ts +0 -87
  120. package/models/commission-agreement-version-class.ts +0 -85
  121. package/models/commission-class.ts +0 -109
  122. package/models/commission-item-class.ts +0 -93
  123. package/models/commission-recipient-class.ts +0 -99
  124. package/models/create-commission-agreement-product-request-dto.ts +0 -36
  125. package/models/create-commission-agreement-product-response-class.ts +0 -31
  126. package/models/create-commission-agreement-request-dto.ts +0 -81
  127. package/models/create-commission-agreement-response-class.ts +0 -31
  128. package/models/create-commission-agreement-version-request-dto.ts +0 -48
  129. package/models/create-commission-agreement-version-response-class.ts +0 -31
  130. package/models/create-commission-item-request-dto.ts +0 -57
  131. package/models/create-commission-recipient-request-dto.ts +0 -42
  132. package/models/create-commission-recipient-response-class.ts +0 -31
  133. package/models/create-commission-request-dto.ts +0 -61
  134. package/models/create-commission-response-class.ts +0 -31
  135. package/models/get-commission-agreement-product-response-class.ts +0 -31
  136. package/models/get-commission-agreement-response-class.ts +0 -31
  137. package/models/get-commission-agreement-version-response-class.ts +0 -31
  138. package/models/get-commission-recipient-response-class.ts +0 -31
  139. package/models/get-commission-response-class.ts +0 -31
  140. package/models/index.ts +0 -37
  141. package/models/inline-response200.ts +0 -48
  142. package/models/inline-response503.ts +0 -48
  143. package/models/list-commission-agreement-products-response-class.ts +0 -49
  144. package/models/list-commission-agreement-versions-response-class.ts +0 -49
  145. package/models/list-commission-agreements-response-class.ts +0 -49
  146. package/models/list-commission-recipients-response-class.ts +0 -49
  147. package/models/list-commissions-response-class.ts +0 -49
  148. package/models/update-commission-agreement-product-request-dto.ts +0 -50
  149. package/models/update-commission-agreement-product-response-class.ts +0 -31
  150. package/models/update-commission-agreement-request-dto.ts +0 -57
  151. package/models/update-commission-agreement-response-class.ts +0 -31
  152. package/models/update-commission-recipient-request-dto.ts +0 -48
  153. package/models/update-commission-recipient-response-class.ts +0 -31
  154. package/models/update-commission-request-dto.ts +0 -62
  155. package/models/update-commission-response-class.ts +0 -31
  156. package/tsconfig.json +0 -23
@@ -1,393 +0,0 @@
1
- /**
2
- * EMIL CommissionService
3
- * The EMIL CommissionService API description
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 { CreateCommissionRequestDto } from '../models';
16
- import { CreateCommissionResponseClass } from '../models';
17
- import { GetCommissionResponseClass } from '../models';
18
- import { ListCommissionsResponseClass } from '../models';
19
- import { UpdateCommissionRequestDto } from '../models';
20
- import { UpdateCommissionResponseClass } from '../models';
21
- /**
22
- * CommissionsApi - axios parameter creator
23
- * @export
24
- */
25
- export declare const CommissionsApiAxiosParamCreator: (configuration?: Configuration) => {
26
- /**
27
- * This will create commission.
28
- * @summary Create the commission
29
- * @param {CreateCommissionRequestDto} createCommissionRequestDto
30
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- */
34
- createCommission: (createCommissionRequestDto: CreateCommissionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
- /**
36
- * This will delete commission.
37
- * @summary Delete the commission
38
- * @param {string} code Unique identifier for the object.
39
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- deleteCommission: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
- /**
45
- * This will get commission.
46
- * @summary Retrieve the commission
47
- * @param {string} code Unique identifier for the object.
48
- * @param {string} expand
49
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- getCommission: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
- /**
55
- * Retrieves a list of commissions.
56
- * @summary List commissions
57
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
- * @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.
60
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
61
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
62
- * @param {'createdAt'} [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.
63
- * @param {'items'} [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.
64
- * @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.
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- */
68
- listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
- /**
70
- * This will update commission.
71
- * @summary Update the commission
72
- * @param {string} code
73
- * @param {UpdateCommissionRequestDto} updateCommissionRequestDto
74
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- updateCommission: (code: string, updateCommissionRequestDto: UpdateCommissionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
- };
80
- /**
81
- * CommissionsApi - functional programming interface
82
- * @export
83
- */
84
- export declare const CommissionsApiFp: (configuration?: Configuration) => {
85
- /**
86
- * This will create commission.
87
- * @summary Create the commission
88
- * @param {CreateCommissionRequestDto} createCommissionRequestDto
89
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
- * @param {*} [options] Override http request option.
91
- * @throws {RequiredError}
92
- */
93
- createCommission(createCommissionRequestDto: CreateCommissionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionResponseClass>>;
94
- /**
95
- * This will delete commission.
96
- * @summary Delete the commission
97
- * @param {string} code Unique identifier for the object.
98
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- deleteCommission(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
103
- /**
104
- * This will get commission.
105
- * @summary Retrieve the commission
106
- * @param {string} code Unique identifier for the object.
107
- * @param {string} expand
108
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
109
- * @param {*} [options] Override http request option.
110
- * @throws {RequiredError}
111
- */
112
- getCommission(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionResponseClass>>;
113
- /**
114
- * Retrieves a list of commissions.
115
- * @summary List commissions
116
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
- * @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.
119
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
120
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
121
- * @param {'createdAt'} [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.
122
- * @param {'items'} [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.
123
- * @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.
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- */
127
- listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
128
- /**
129
- * This will update commission.
130
- * @summary Update the commission
131
- * @param {string} code
132
- * @param {UpdateCommissionRequestDto} updateCommissionRequestDto
133
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- */
137
- updateCommission(code: string, updateCommissionRequestDto: UpdateCommissionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionResponseClass>>;
138
- };
139
- /**
140
- * CommissionsApi - factory interface
141
- * @export
142
- */
143
- export declare const CommissionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
144
- /**
145
- * This will create commission.
146
- * @summary Create the commission
147
- * @param {CreateCommissionRequestDto} createCommissionRequestDto
148
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- createCommission(createCommissionRequestDto: CreateCommissionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionResponseClass>;
153
- /**
154
- * This will delete commission.
155
- * @summary Delete the commission
156
- * @param {string} code Unique identifier for the object.
157
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void>;
162
- /**
163
- * This will get commission.
164
- * @summary Retrieve the commission
165
- * @param {string} code Unique identifier for the object.
166
- * @param {string} expand
167
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
- * @param {*} [options] Override http request option.
169
- * @throws {RequiredError}
170
- */
171
- getCommission(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionResponseClass>;
172
- /**
173
- * Retrieves a list of commissions.
174
- * @summary List commissions
175
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
- * @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.
178
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
179
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
180
- * @param {'createdAt'} [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.
181
- * @param {'items'} [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.
182
- * @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.
183
- * @param {*} [options] Override http request option.
184
- * @throws {RequiredError}
185
- */
186
- listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
187
- /**
188
- * This will update commission.
189
- * @summary Update the commission
190
- * @param {string} code
191
- * @param {UpdateCommissionRequestDto} updateCommissionRequestDto
192
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- updateCommission(code: string, updateCommissionRequestDto: UpdateCommissionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionResponseClass>;
197
- };
198
- /**
199
- * Request parameters for createCommission operation in CommissionsApi.
200
- * @export
201
- * @interface CommissionsApiCreateCommissionRequest
202
- */
203
- export interface CommissionsApiCreateCommissionRequest {
204
- /**
205
- *
206
- * @type {CreateCommissionRequestDto}
207
- * @memberof CommissionsApiCreateCommission
208
- */
209
- readonly createCommissionRequestDto: CreateCommissionRequestDto;
210
- /**
211
- * Bearer Token: provided by the login endpoint under the name accessToken.
212
- * @type {string}
213
- * @memberof CommissionsApiCreateCommission
214
- */
215
- readonly authorization?: string;
216
- }
217
- /**
218
- * Request parameters for deleteCommission operation in CommissionsApi.
219
- * @export
220
- * @interface CommissionsApiDeleteCommissionRequest
221
- */
222
- export interface CommissionsApiDeleteCommissionRequest {
223
- /**
224
- * Unique identifier for the object.
225
- * @type {string}
226
- * @memberof CommissionsApiDeleteCommission
227
- */
228
- readonly code: string;
229
- /**
230
- * Bearer Token: provided by the login endpoint under the name accessToken.
231
- * @type {string}
232
- * @memberof CommissionsApiDeleteCommission
233
- */
234
- readonly authorization?: string;
235
- }
236
- /**
237
- * Request parameters for getCommission operation in CommissionsApi.
238
- * @export
239
- * @interface CommissionsApiGetCommissionRequest
240
- */
241
- export interface CommissionsApiGetCommissionRequest {
242
- /**
243
- * Unique identifier for the object.
244
- * @type {string}
245
- * @memberof CommissionsApiGetCommission
246
- */
247
- readonly code: string;
248
- /**
249
- *
250
- * @type {string}
251
- * @memberof CommissionsApiGetCommission
252
- */
253
- readonly expand: string;
254
- /**
255
- * Bearer Token: provided by the login endpoint under the name accessToken.
256
- * @type {string}
257
- * @memberof CommissionsApiGetCommission
258
- */
259
- readonly authorization?: string;
260
- }
261
- /**
262
- * Request parameters for listCommissions operation in CommissionsApi.
263
- * @export
264
- * @interface CommissionsApiListCommissionsRequest
265
- */
266
- export interface CommissionsApiListCommissionsRequest {
267
- /**
268
- * Bearer Token: provided by the login endpoint under the name accessToken.
269
- * @type {string}
270
- * @memberof CommissionsApiListCommissions
271
- */
272
- readonly authorization?: string;
273
- /**
274
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
- * @type {number}
276
- * @memberof CommissionsApiListCommissions
277
- */
278
- readonly pageSize?: number;
279
- /**
280
- * 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.
281
- * @type {string}
282
- * @memberof CommissionsApiListCommissions
283
- */
284
- readonly pageToken?: string;
285
- /**
286
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
287
- * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
288
- * @memberof CommissionsApiListCommissions
289
- */
290
- readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt';
291
- /**
292
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
293
- * @type {string}
294
- * @memberof CommissionsApiListCommissions
295
- */
296
- readonly search?: string;
297
- /**
298
- * 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.
299
- * @type {'createdAt'}
300
- * @memberof CommissionsApiListCommissions
301
- */
302
- readonly order?: 'createdAt';
303
- /**
304
- * 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
- * @type {'items'}
306
- * @memberof CommissionsApiListCommissions
307
- */
308
- readonly expand?: 'items';
309
- /**
310
- * 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.
311
- * @type {string}
312
- * @memberof CommissionsApiListCommissions
313
- */
314
- readonly filters?: string;
315
- }
316
- /**
317
- * Request parameters for updateCommission operation in CommissionsApi.
318
- * @export
319
- * @interface CommissionsApiUpdateCommissionRequest
320
- */
321
- export interface CommissionsApiUpdateCommissionRequest {
322
- /**
323
- *
324
- * @type {string}
325
- * @memberof CommissionsApiUpdateCommission
326
- */
327
- readonly code: string;
328
- /**
329
- *
330
- * @type {UpdateCommissionRequestDto}
331
- * @memberof CommissionsApiUpdateCommission
332
- */
333
- readonly updateCommissionRequestDto: UpdateCommissionRequestDto;
334
- /**
335
- * Bearer Token: provided by the login endpoint under the name accessToken.
336
- * @type {string}
337
- * @memberof CommissionsApiUpdateCommission
338
- */
339
- readonly authorization?: string;
340
- }
341
- /**
342
- * CommissionsApi - object-oriented interface
343
- * @export
344
- * @class CommissionsApi
345
- * @extends {BaseAPI}
346
- */
347
- export declare class CommissionsApi extends BaseAPI {
348
- /**
349
- * This will create commission.
350
- * @summary Create the commission
351
- * @param {CommissionsApiCreateCommissionRequest} requestParameters Request parameters.
352
- * @param {*} [options] Override http request option.
353
- * @throws {RequiredError}
354
- * @memberof CommissionsApi
355
- */
356
- createCommission(requestParameters: CommissionsApiCreateCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCommissionResponseClass, any, {}>>;
357
- /**
358
- * This will delete commission.
359
- * @summary Delete the commission
360
- * @param {CommissionsApiDeleteCommissionRequest} requestParameters Request parameters.
361
- * @param {*} [options] Override http request option.
362
- * @throws {RequiredError}
363
- * @memberof CommissionsApi
364
- */
365
- deleteCommission(requestParameters: CommissionsApiDeleteCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
366
- /**
367
- * This will get commission.
368
- * @summary Retrieve the commission
369
- * @param {CommissionsApiGetCommissionRequest} requestParameters Request parameters.
370
- * @param {*} [options] Override http request option.
371
- * @throws {RequiredError}
372
- * @memberof CommissionsApi
373
- */
374
- getCommission(requestParameters: CommissionsApiGetCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommissionResponseClass, any, {}>>;
375
- /**
376
- * Retrieves a list of commissions.
377
- * @summary List commissions
378
- * @param {CommissionsApiListCommissionsRequest} requestParameters Request parameters.
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- * @memberof CommissionsApi
382
- */
383
- listCommissions(requestParameters?: CommissionsApiListCommissionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCommissionsResponseClass, any, {}>>;
384
- /**
385
- * This will update commission.
386
- * @summary Update the commission
387
- * @param {CommissionsApiUpdateCommissionRequest} requestParameters Request parameters.
388
- * @param {*} [options] Override http request option.
389
- * @throws {RequiredError}
390
- * @memberof CommissionsApi
391
- */
392
- updateCommission(requestParameters: CommissionsApiUpdateCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCommissionResponseClass, any, {}>>;
393
- }