@emilgroup/commission-sdk 1.0.0-beta.9 → 1.1.1-beta.10

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 (167) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +55 -13
  4. package/api/commission-agreement-rules-api.ts +800 -0
  5. package/api/commission-agreements-api.ts +160 -27
  6. package/api/commission-candidates-api.ts +693 -0
  7. package/api/commission-recipients-api.ts +4 -4
  8. package/api/commission-settlements-api.ts +800 -0
  9. package/api/commissions-api.ts +125 -18
  10. package/api.ts +6 -0
  11. package/dist/api/commission-agreement-products-api.d.ts +35 -8
  12. package/dist/api/commission-agreement-products-api.js +29 -11
  13. package/dist/api/commission-agreement-rules-api.d.ts +450 -0
  14. package/dist/api/commission-agreement-rules-api.js +737 -0
  15. package/dist/api/commission-agreements-api.d.ts +98 -23
  16. package/dist/api/commission-agreements-api.js +127 -22
  17. package/dist/api/commission-candidates-api.d.ts +393 -0
  18. package/dist/api/commission-candidates-api.js +644 -0
  19. package/dist/api/commission-recipients-api.d.ts +4 -4
  20. package/dist/api/commission-recipients-api.js +3 -3
  21. package/dist/api/commission-settlements-api.d.ts +450 -0
  22. package/dist/api/commission-settlements-api.js +737 -0
  23. package/dist/api/commissions-api.d.ts +75 -18
  24. package/dist/api/commissions-api.js +102 -9
  25. package/dist/api.d.ts +3 -0
  26. package/dist/api.js +3 -0
  27. package/dist/models/commission-agreement-class.d.ts +27 -3
  28. package/dist/models/commission-agreement-class.js +5 -1
  29. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  30. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  31. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  32. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  33. package/dist/models/commission-agreement-product-class.d.ts +6 -7
  34. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  35. package/dist/models/commission-agreement-rule-class.js +21 -0
  36. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  37. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  38. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  39. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  40. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  41. package/dist/models/commission-candidate-class.d.ts +95 -0
  42. package/dist/models/commission-candidate-class.js +20 -0
  43. package/dist/models/commission-class.d.ts +37 -6
  44. package/dist/models/commission-conditions-dto.d.ts +24 -0
  45. package/dist/models/commission-conditions-dto.js +15 -0
  46. package/dist/models/commission-config-dto.d.ts +63 -0
  47. package/dist/models/commission-config-dto.js +34 -0
  48. package/dist/models/commission-estimate-class.d.ts +59 -0
  49. package/dist/models/commission-estimate-class.js +25 -0
  50. package/dist/models/commission-recipient-class.d.ts +6 -6
  51. package/dist/models/commission-settlement-class.d.ts +124 -0
  52. package/dist/models/commission-settlement-class.js +35 -0
  53. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  54. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  55. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  56. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  58. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  59. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  60. package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
  61. package/dist/models/create-commission-candidate-request-dto.js +25 -0
  62. package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-candidate-response-class.js +15 -0
  64. package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
  65. package/dist/models/create-commission-request-dto.d.ts +3 -9
  66. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  67. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  68. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  69. package/dist/models/create-commission-settlement-response-class.js +15 -0
  70. package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
  71. package/dist/models/estimate-commissions-request-dto.js +15 -0
  72. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  73. package/dist/models/estimate-commissions-response-class.js +15 -0
  74. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  75. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  76. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  77. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  78. package/dist/models/evaluated-commission-class.d.ts +54 -0
  79. package/dist/models/evaluated-commission-class.js +21 -0
  80. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  81. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  82. package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
  83. package/dist/models/get-commission-candidate-response-class.js +15 -0
  84. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  85. package/dist/models/get-commission-settlement-response-class.js +15 -0
  86. package/dist/models/index.d.ts +37 -0
  87. package/dist/models/index.js +37 -0
  88. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  89. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  90. package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
  91. package/dist/models/list-commission-candidates-response-class.js +15 -0
  92. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  93. package/dist/models/list-commission-settlements-response-class.js +15 -0
  94. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  95. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  96. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  97. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  98. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  99. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  100. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  101. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  102. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  103. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  104. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  105. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  106. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  107. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  108. package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
  109. package/dist/models/update-commission-candidate-request-dto.js +25 -0
  110. package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
  111. package/dist/models/update-commission-candidate-response-class.js +15 -0
  112. package/dist/models/update-commission-request-dto.d.ts +5 -3
  113. package/dist/models/update-commission-request-dto.js +4 -2
  114. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  115. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  116. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  117. package/dist/models/update-commission-settlement-response-class.js +15 -0
  118. package/models/commission-agreement-class.ts +27 -3
  119. package/models/commission-agreement-metadata-dto.ts +31 -0
  120. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  121. package/models/commission-agreement-product-class.ts +6 -7
  122. package/models/commission-agreement-rule-class.ts +102 -0
  123. package/models/commission-agreement-rule-config-dto.ts +31 -0
  124. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  125. package/models/commission-agreement-version-class.ts +7 -0
  126. package/models/commission-candidate-class.ts +104 -0
  127. package/models/commission-class.ts +37 -6
  128. package/models/commission-conditions-dto.ts +30 -0
  129. package/models/commission-config-dto.ts +73 -0
  130. package/models/commission-estimate-class.ts +69 -0
  131. package/models/commission-recipient-class.ts +6 -6
  132. package/models/commission-settlement-class.ts +134 -0
  133. package/models/create-commission-agreement-request-dto.ts +14 -3
  134. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  135. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  136. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  137. package/models/create-commission-candidate-request-dto.ts +75 -0
  138. package/models/create-commission-candidate-response-class.ts +31 -0
  139. package/models/create-commission-recipient-request-dto.ts +2 -2
  140. package/models/create-commission-request-dto.ts +3 -9
  141. package/models/create-commission-settlement-request-dto.ts +67 -0
  142. package/models/create-commission-settlement-response-class.ts +31 -0
  143. package/models/estimate-commissions-request-dto.ts +36 -0
  144. package/models/estimate-commissions-response-class.ts +79 -0
  145. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  146. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  147. package/models/evaluated-commission-class.ts +63 -0
  148. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  149. package/models/get-commission-candidate-response-class.ts +31 -0
  150. package/models/get-commission-settlement-response-class.ts +31 -0
  151. package/models/index.ts +37 -0
  152. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  153. package/models/list-commission-candidates-response-class.ts +49 -0
  154. package/models/list-commission-settlements-response-class.ts +49 -0
  155. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  156. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  157. package/models/publish-commission-settlements-request-dto.ts +30 -0
  158. package/models/publish-commission-settlements-response-class.ts +31 -0
  159. package/models/update-commission-agreement-request-dto.ts +3 -1
  160. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  161. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  162. package/models/update-commission-candidate-request-dto.ts +81 -0
  163. package/models/update-commission-candidate-response-class.ts +31 -0
  164. package/models/update-commission-request-dto.ts +5 -3
  165. package/models/update-commission-settlement-request-dto.ts +52 -0
  166. package/models/update-commission-settlement-response-class.ts +31 -0
  167. package/package.json +2 -1
@@ -16,6 +16,8 @@ import { CreateCommissionAgreementRequestDto } from '../models';
16
16
  import { CreateCommissionAgreementResponseClass } from '../models';
17
17
  import { GetCommissionAgreementResponseClass } from '../models';
18
18
  import { ListCommissionAgreementsResponseClass } from '../models';
19
+ import { PatchCommissionAgreementStatusRequestDto } from '../models';
20
+ import { PatchCommissionAgreementStatusResponseClass } from '../models';
19
21
  import { UpdateCommissionAgreementRequestDto } from '../models';
20
22
  import { UpdateCommissionAgreementResponseClass } from '../models';
21
23
  /**
@@ -57,24 +59,35 @@ export declare const CommissionAgreementsApiAxiosParamCreator: (configuration?:
57
59
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
60
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
61
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
60
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt</i>
61
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
62
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
63
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
64
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt</i>
62
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, partnerCode, productSlug, endDate</i>
63
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
64
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency</i>
65
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions, products<i>
66
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, partnerCode, productSlug, endDate</i>
65
67
  * @param {*} [options] Override http request option.
66
68
  * @throws {RequiredError}
67
69
  */
68
70
  listCommissionAgreements: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
71
+ /**
72
+ * This will patch commission agreement status.
73
+ * @summary Update the commission agreement status
74
+ * @param {string} code Unique identifier for the object.
75
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
76
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ patchCommissionAgreementStatus: (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
81
  /**
70
82
  * This will update commission agreement.
71
83
  * @summary Update the commission agreement
84
+ * @param {string} code
72
85
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
73
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
74
87
  * @param {*} [options] Override http request option.
75
88
  * @throws {RequiredError}
76
89
  */
77
- updateCommissionAgreement: (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
+ updateCommissionAgreement: (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
91
  };
79
92
  /**
80
93
  * CommissionAgreementsApi - functional programming interface
@@ -115,24 +128,35 @@ export declare const CommissionAgreementsApiFp: (configuration?: Configuration)
115
128
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
116
129
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
117
130
  * @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.
118
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
119
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
120
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
121
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
122
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
131
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
132
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
133
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
134
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
135
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
123
136
  * @param {*} [options] Override http request option.
124
137
  * @throws {RequiredError}
125
138
  */
126
139
  listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>>;
140
+ /**
141
+ * This will patch commission agreement status.
142
+ * @summary Update the commission agreement status
143
+ * @param {string} code Unique identifier for the object.
144
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>>;
127
150
  /**
128
151
  * This will update commission agreement.
129
152
  * @summary Update the commission agreement
153
+ * @param {string} code
130
154
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
131
155
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
132
156
  * @param {*} [options] Override http request option.
133
157
  * @throws {RequiredError}
134
158
  */
135
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>>;
159
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>>;
136
160
  };
137
161
  /**
138
162
  * CommissionAgreementsApi - factory interface
@@ -173,24 +197,35 @@ export declare const CommissionAgreementsApiFactory: (configuration?: Configurat
173
197
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
174
198
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
175
199
  * @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.
176
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
177
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
178
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
179
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
180
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
200
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
201
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
202
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
203
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
204
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
181
205
  * @param {*} [options] Override http request option.
182
206
  * @throws {RequiredError}
183
207
  */
184
208
  listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass>;
209
+ /**
210
+ * This will patch commission agreement status.
211
+ * @summary Update the commission agreement status
212
+ * @param {string} code Unique identifier for the object.
213
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
214
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass>;
185
219
  /**
186
220
  * This will update commission agreement.
187
221
  * @summary Update the commission agreement
222
+ * @param {string} code
188
223
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
189
224
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
225
  * @param {*} [options] Override http request option.
191
226
  * @throws {RequiredError}
192
227
  */
193
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass>;
228
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass>;
194
229
  };
195
230
  /**
196
231
  * Request parameters for createCommissionAgreement operation in CommissionAgreementsApi.
@@ -280,42 +315,73 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
280
315
  */
281
316
  readonly pageToken?: string;
282
317
  /**
283
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
318
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
284
319
  * @type {string}
285
320
  * @memberof CommissionAgreementsApiListCommissionAgreements
286
321
  */
287
322
  readonly filter?: string;
288
323
  /**
289
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
324
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
290
325
  * @type {string}
291
326
  * @memberof CommissionAgreementsApiListCommissionAgreements
292
327
  */
293
328
  readonly search?: string;
294
329
  /**
295
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
330
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
296
331
  * @type {string}
297
332
  * @memberof CommissionAgreementsApiListCommissionAgreements
298
333
  */
299
334
  readonly order?: string;
300
335
  /**
301
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
336
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
302
337
  * @type {string}
303
338
  * @memberof CommissionAgreementsApiListCommissionAgreements
304
339
  */
305
340
  readonly expand?: string;
306
341
  /**
307
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
342
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
308
343
  * @type {string}
309
344
  * @memberof CommissionAgreementsApiListCommissionAgreements
310
345
  */
311
346
  readonly filters?: string;
312
347
  }
348
+ /**
349
+ * Request parameters for patchCommissionAgreementStatus operation in CommissionAgreementsApi.
350
+ * @export
351
+ * @interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest
352
+ */
353
+ export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
354
+ /**
355
+ * Unique identifier for the object.
356
+ * @type {string}
357
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
358
+ */
359
+ readonly code: string;
360
+ /**
361
+ *
362
+ * @type {PatchCommissionAgreementStatusRequestDto}
363
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
364
+ */
365
+ readonly patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto;
366
+ /**
367
+ * Bearer Token: provided by the login endpoint under the name accessToken.
368
+ * @type {string}
369
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
370
+ */
371
+ readonly authorization?: string;
372
+ }
313
373
  /**
314
374
  * Request parameters for updateCommissionAgreement operation in CommissionAgreementsApi.
315
375
  * @export
316
376
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
317
377
  */
318
378
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
379
+ /**
380
+ *
381
+ * @type {string}
382
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
383
+ */
384
+ readonly code: string;
319
385
  /**
320
386
  *
321
387
  * @type {UpdateCommissionAgreementRequestDto}
@@ -372,6 +438,15 @@ export declare class CommissionAgreementsApi extends BaseAPI {
372
438
  * @memberof CommissionAgreementsApi
373
439
  */
374
440
  listCommissionAgreements(requestParameters?: CommissionAgreementsApiListCommissionAgreementsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCommissionAgreementsResponseClass, any, {}>>;
441
+ /**
442
+ * This will patch commission agreement status.
443
+ * @summary Update the commission agreement status
444
+ * @param {CommissionAgreementsApiPatchCommissionAgreementStatusRequest} requestParameters Request parameters.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ * @memberof CommissionAgreementsApi
448
+ */
449
+ patchCommissionAgreementStatus(requestParameters: CommissionAgreementsApiPatchCommissionAgreementStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchCommissionAgreementStatusResponseClass, any, {}>>;
375
450
  /**
376
451
  * This will update commission agreement.
377
452
  * @summary Update the commission agreement
@@ -249,11 +249,11 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
251
  * @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.
252
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
253
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
254
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
255
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
256
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
252
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
253
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
254
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
255
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
256
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
@@ -315,24 +315,81 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
315
315
  });
316
316
  });
317
317
  },
318
+ /**
319
+ * This will patch commission agreement status.
320
+ * @summary Update the commission agreement status
321
+ * @param {string} code Unique identifier for the object.
322
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
323
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ // verify required parameter 'code' is not null or undefined
335
+ (0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'code', code);
336
+ // verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
337
+ (0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto);
338
+ localVarPath = "/commissionservice/v1/agreements/{code}/status"
339
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
340
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ baseAccessToken = configuration.accessToken;
344
+ }
345
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
346
+ localVarHeaderParameter = {};
347
+ localVarQueryParameter = {};
348
+ // authentication bearer required
349
+ // http bearer authentication required
350
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
351
+ case 1:
352
+ // authentication bearer required
353
+ // http bearer authentication required
354
+ _a.sent();
355
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
+ }
358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchCommissionAgreementStatusRequestDto, localVarRequestOptions, configuration);
363
+ return [2 /*return*/, {
364
+ url: (0, common_1.toPathString)(localVarUrlObj),
365
+ options: localVarRequestOptions,
366
+ }];
367
+ }
368
+ });
369
+ });
370
+ },
318
371
  /**
319
372
  * This will update commission agreement.
320
373
  * @summary Update the commission agreement
374
+ * @param {string} code
321
375
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
322
376
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
323
377
  * @param {*} [options] Override http request option.
324
378
  * @throws {RequiredError}
325
379
  */
326
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
380
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
327
381
  if (options === void 0) { options = {}; }
328
382
  return __awaiter(_this, void 0, void 0, function () {
329
383
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
330
384
  return __generator(this, function (_a) {
331
385
  switch (_a.label) {
332
386
  case 0:
387
+ // verify required parameter 'code' is not null or undefined
388
+ (0, common_1.assertParamExists)('updateCommissionAgreement', 'code', code);
333
389
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
334
390
  (0, common_1.assertParamExists)('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto);
335
- localVarPath = "/commissionservice/v1/agreements";
391
+ localVarPath = "/commissionservice/v1/agreements/{code}"
392
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
336
393
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
337
394
  if (configuration) {
338
395
  baseOptions = configuration.baseOptions;
@@ -444,11 +501,11 @@ var CommissionAgreementsApiFp = function (configuration) {
444
501
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
502
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
446
503
  * @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.
447
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
448
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
449
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
450
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
451
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
504
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
505
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
506
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
507
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
508
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
452
509
  * @param {*} [options] Override http request option.
453
510
  * @throws {RequiredError}
454
511
  */
@@ -465,20 +522,43 @@ var CommissionAgreementsApiFp = function (configuration) {
465
522
  });
466
523
  });
467
524
  },
525
+ /**
526
+ * This will patch commission agreement status.
527
+ * @summary Update the commission agreement status
528
+ * @param {string} code Unique identifier for the object.
529
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
530
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
535
+ return __awaiter(this, void 0, void 0, function () {
536
+ var localVarAxiosArgs;
537
+ return __generator(this, function (_a) {
538
+ switch (_a.label) {
539
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options)];
540
+ case 1:
541
+ localVarAxiosArgs = _a.sent();
542
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
543
+ }
544
+ });
545
+ });
546
+ },
468
547
  /**
469
548
  * This will update commission agreement.
470
549
  * @summary Update the commission agreement
550
+ * @param {string} code
471
551
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
472
552
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
473
553
  * @param {*} [options] Override http request option.
474
554
  * @throws {RequiredError}
475
555
  */
476
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
556
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
477
557
  return __awaiter(this, void 0, void 0, function () {
478
558
  var localVarAxiosArgs;
479
559
  return __generator(this, function (_a) {
480
560
  switch (_a.label) {
481
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options)];
561
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options)];
482
562
  case 1:
483
563
  localVarAxiosArgs = _a.sent();
484
564
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -536,27 +616,40 @@ var CommissionAgreementsApiFactory = function (configuration, basePath, axios) {
536
616
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
537
617
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
538
618
  * @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.
539
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
540
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
541
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
542
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
543
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
619
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
620
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
621
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency&lt;/i&gt;
622
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, products&lt;i&gt;
623
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt, partnerCode, productSlug, endDate&lt;/i&gt;
544
624
  * @param {*} [options] Override http request option.
545
625
  * @throws {RequiredError}
546
626
  */
547
627
  listCommissionAgreements: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
548
628
  return localVarFp.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
549
629
  },
630
+ /**
631
+ * This will patch commission agreement status.
632
+ * @summary Update the commission agreement status
633
+ * @param {string} code Unique identifier for the object.
634
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
635
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ */
639
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
640
+ return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
641
+ },
550
642
  /**
551
643
  * This will update commission agreement.
552
644
  * @summary Update the commission agreement
645
+ * @param {string} code
553
646
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
554
647
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
555
648
  * @param {*} [options] Override http request option.
556
649
  * @throws {RequiredError}
557
650
  */
558
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
559
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
651
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
652
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
560
653
  },
561
654
  };
562
655
  };
@@ -621,6 +714,18 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
621
714
  if (requestParameters === void 0) { requestParameters = {}; }
622
715
  return (0, exports.CommissionAgreementsApiFp)(this.configuration).listCommissionAgreements(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); });
623
716
  };
717
+ /**
718
+ * This will patch commission agreement status.
719
+ * @summary Update the commission agreement status
720
+ * @param {CommissionAgreementsApiPatchCommissionAgreementStatusRequest} requestParameters Request parameters.
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ * @memberof CommissionAgreementsApi
724
+ */
725
+ CommissionAgreementsApi.prototype.patchCommissionAgreementStatus = function (requestParameters, options) {
726
+ var _this = this;
727
+ return (0, exports.CommissionAgreementsApiFp)(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
728
+ };
624
729
  /**
625
730
  * This will update commission agreement.
626
731
  * @summary Update the commission agreement
@@ -631,7 +736,7 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
631
736
  */
632
737
  CommissionAgreementsApi.prototype.updateCommissionAgreement = function (requestParameters, options) {
633
738
  var _this = this;
634
- return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
739
+ return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
740
  };
636
741
  return CommissionAgreementsApi;
637
742
  }(base_1.BaseAPI));