@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40
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.
- package/.openapi-generator/FILES +39 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +655 -0
- package/api/commission-agreement-rules-api.ts +762 -0
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-recipients-api.ts +92 -37
- package/api/commission-settlements-api.ts +804 -0
- package/api/commissions-api.ts +121 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +366 -0
- package/dist/api/commission-agreement-products-api.js +630 -0
- package/dist/api/commission-agreement-rules-api.d.ts +423 -0
- package/dist/api/commission-agreement-rules-api.js +723 -0
- package/dist/api/commission-agreements-api.d.ts +98 -23
- package/dist/api/commission-agreements-api.js +127 -22
- package/dist/api/commission-recipients-api.d.ts +63 -27
- package/dist/api/commission-recipients-api.js +53 -29
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +741 -0
- package/dist/api/commissions-api.d.ts +74 -18
- package/dist/api/commissions-api.js +101 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/models/commission-agreement-class.d.ts +27 -3
- package/dist/models/commission-agreement-class.js +5 -1
- package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
- package/dist/models/commission-agreement-metadata-dto.js +15 -0
- package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
- package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +77 -0
- package/dist/models/commission-agreement-product-class.js +20 -0
- package/dist/models/commission-agreement-rule-class.d.ts +93 -0
- package/dist/models/commission-agreement-rule-class.js +21 -0
- package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
- package/dist/models/commission-agreement-rule-config-dto.js +15 -0
- package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
- package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +7 -0
- package/dist/models/commission-class.d.ts +37 -6
- package/dist/models/commission-conditions-dto.d.ts +24 -0
- package/dist/models/commission-conditions-dto.js +15 -0
- package/dist/models/commission-config-dto.d.ts +63 -0
- package/dist/models/commission-config-dto.js +34 -0
- package/dist/models/commission-estimate-class.d.ts +59 -0
- package/dist/models/commission-estimate-class.js +25 -0
- package/dist/models/commission-settlement-class.d.ts +124 -0
- package/dist/models/commission-settlement-class.js +35 -0
- package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
- package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-product-response-class.js +15 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
- package/dist/models/create-commission-agreement-request-dto.js +5 -1
- package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
- package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
- package/dist/models/create-commission-request-dto.d.ts +3 -9
- package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
- package/dist/models/create-commission-settlement-request-dto.js +35 -0
- package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/create-commission-settlement-response-class.js +15 -0
- package/dist/models/estimate-commissions-response-class.d.ts +73 -0
- package/dist/models/estimate-commissions-response-class.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/evaluated-commission-class.d.ts +54 -0
- package/dist/models/evaluated-commission-class.js +21 -0
- package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-product-response-class.js +15 -0
- package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/get-commission-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +36 -0
- package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-products-response-class.js +15 -0
- package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
- package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
- package/dist/models/list-commission-settlements-response-class.js +15 -0
- package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
- package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
- package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
- package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
- package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
- package/dist/models/publish-commission-settlements-request-dto.js +15 -0
- package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
- package/dist/models/publish-commission-settlements-response-class.js +15 -0
- package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
- package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
- package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-product-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
- package/dist/models/update-commission-agreement-request-dto.js +2 -0
- package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
- package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
- package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/update-commission-request-dto.d.ts +5 -3
- package/dist/models/update-commission-request-dto.js +4 -2
- package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
- package/dist/models/update-commission-settlement-request-dto.js +22 -0
- package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/update-commission-settlement-response-class.js +15 -0
- package/models/commission-agreement-class.ts +27 -3
- package/models/commission-agreement-metadata-dto.ts +31 -0
- package/models/commission-agreement-metadata-partner-dto.ts +36 -0
- package/models/commission-agreement-product-class.ts +86 -0
- package/models/commission-agreement-rule-class.ts +102 -0
- package/models/commission-agreement-rule-config-dto.ts +31 -0
- package/models/commission-agreement-rule-evaluation-class.ts +37 -0
- package/models/commission-agreement-version-class.ts +7 -0
- package/models/commission-class.ts +37 -6
- package/models/commission-conditions-dto.ts +30 -0
- package/models/commission-config-dto.ts +73 -0
- package/models/commission-estimate-class.ts +69 -0
- package/models/commission-settlement-class.ts +134 -0
- package/models/create-commission-agreement-product-request-dto.ts +36 -0
- package/models/create-commission-agreement-product-response-class.ts +31 -0
- package/models/create-commission-agreement-request-dto.ts +14 -3
- package/models/create-commission-agreement-rule-request-dto.ts +43 -0
- package/models/create-commission-agreement-rule-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +1 -1
- package/models/create-commission-request-dto.ts +3 -9
- package/models/create-commission-settlement-request-dto.ts +67 -0
- package/models/create-commission-settlement-response-class.ts +31 -0
- package/models/estimate-commissions-response-class.ts +79 -0
- package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
- package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
- package/models/evaluated-commission-class.ts +63 -0
- package/models/get-commission-agreement-product-response-class.ts +31 -0
- package/models/get-commission-agreement-rule-response-class.ts +31 -0
- package/models/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +36 -0
- package/models/list-commission-agreement-products-response-class.ts +49 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-settlements-response-class.ts +49 -0
- package/models/patch-commission-agreement-status-request-dto.ts +46 -0
- package/models/patch-commission-agreement-status-response-class.ts +31 -0
- package/models/publish-commission-settlements-request-dto.ts +30 -0
- package/models/publish-commission-settlements-response-class.ts +31 -0
- package/models/update-commission-agreement-product-request-dto.ts +50 -0
- package/models/update-commission-agreement-product-response-class.ts +31 -0
- package/models/update-commission-agreement-request-dto.ts +3 -1
- package/models/update-commission-agreement-rule-request-dto.ts +58 -0
- package/models/update-commission-agreement-rule-response-class.ts +31 -0
- package/models/update-commission-request-dto.ts +5 -3
- package/models/update-commission-settlement-request-dto.ts +52 -0
- package/models/update-commission-settlement-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -35,12 +35,12 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
35
35
|
/**
|
|
36
36
|
* This will delete commission recipient.
|
|
37
37
|
* @summary Delete the commission recipient
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
deleteCommissionRecipient: (code:
|
|
43
|
+
deleteCommissionRecipient: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
45
|
* This will get commission recipient.
|
|
46
46
|
* @summary Retrieve the commission recipient
|
|
@@ -52,26 +52,30 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
52
52
|
*/
|
|
53
53
|
getCommissionRecipient: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves a list of
|
|
55
|
+
* Retrieves a list of commission recipients.
|
|
56
56
|
* @summary List commission recipients
|
|
57
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
58
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, displayName, partnerCode, status, createdAt</i>
|
|
59
|
-
* @param {string} [
|
|
61
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
60
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>
|
|
61
|
-
* @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/>
|
|
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/> <i>Allowed values: commissionAgreementVersion<i>
|
|
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, displayName, partnerCode, status, createdAt</i>
|
|
62
65
|
* @param {*} [options] Override http request option.
|
|
63
66
|
* @throws {RequiredError}
|
|
64
67
|
*/
|
|
65
|
-
listCommissionRecipients: (authorization?: string, filter?: string,
|
|
68
|
+
listCommissionRecipients: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
69
|
/**
|
|
67
70
|
* This will update commission recipient.
|
|
68
71
|
* @summary Update the commission recipient
|
|
72
|
+
* @param {string} code
|
|
69
73
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
70
74
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
71
75
|
* @param {*} [options] Override http request option.
|
|
72
76
|
* @throws {RequiredError}
|
|
73
77
|
*/
|
|
74
|
-
updateCommissionRecipient: (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
78
|
+
updateCommissionRecipient: (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
79
|
};
|
|
76
80
|
/**
|
|
77
81
|
* CommissionRecipientsApi - functional programming interface
|
|
@@ -90,12 +94,12 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
90
94
|
/**
|
|
91
95
|
* This will delete commission recipient.
|
|
92
96
|
* @summary Delete the commission recipient
|
|
93
|
-
* @param {
|
|
97
|
+
* @param {string} code Unique identifier for the object.
|
|
94
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
96
100
|
* @throws {RequiredError}
|
|
97
101
|
*/
|
|
98
|
-
deleteCommissionRecipient(code:
|
|
102
|
+
deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
99
103
|
/**
|
|
100
104
|
* This will get commission recipient.
|
|
101
105
|
* @summary Retrieve the commission recipient
|
|
@@ -107,26 +111,30 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
107
111
|
*/
|
|
108
112
|
getCommissionRecipient(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionRecipientResponseClass>>;
|
|
109
113
|
/**
|
|
110
|
-
* Retrieves a list of
|
|
114
|
+
* Retrieves a list of commission recipients.
|
|
111
115
|
* @summary List commission recipients
|
|
112
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
113
119
|
* @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, displayName, partnerCode, status, createdAt</i>
|
|
114
|
-
* @param {string} [
|
|
120
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
115
121
|
* @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>
|
|
116
|
-
* @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/>
|
|
122
|
+
* @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: commissionAgreementVersion<i>
|
|
123
|
+
* @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, displayName, partnerCode, status, createdAt</i>
|
|
117
124
|
* @param {*} [options] Override http request option.
|
|
118
125
|
* @throws {RequiredError}
|
|
119
126
|
*/
|
|
120
|
-
listCommissionRecipients(authorization?: string, filter?: string,
|
|
127
|
+
listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>>;
|
|
121
128
|
/**
|
|
122
129
|
* This will update commission recipient.
|
|
123
130
|
* @summary Update the commission recipient
|
|
131
|
+
* @param {string} code
|
|
124
132
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
125
133
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
126
134
|
* @param {*} [options] Override http request option.
|
|
127
135
|
* @throws {RequiredError}
|
|
128
136
|
*/
|
|
129
|
-
updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
|
|
137
|
+
updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
|
|
130
138
|
};
|
|
131
139
|
/**
|
|
132
140
|
* CommissionRecipientsApi - factory interface
|
|
@@ -145,12 +153,12 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
145
153
|
/**
|
|
146
154
|
* This will delete commission recipient.
|
|
147
155
|
* @summary Delete the commission recipient
|
|
148
|
-
* @param {
|
|
156
|
+
* @param {string} code Unique identifier for the object.
|
|
149
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
158
|
* @param {*} [options] Override http request option.
|
|
151
159
|
* @throws {RequiredError}
|
|
152
160
|
*/
|
|
153
|
-
deleteCommissionRecipient(code:
|
|
161
|
+
deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
154
162
|
/**
|
|
155
163
|
* This will get commission recipient.
|
|
156
164
|
* @summary Retrieve the commission recipient
|
|
@@ -162,26 +170,30 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
162
170
|
*/
|
|
163
171
|
getCommissionRecipient(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionRecipientResponseClass>;
|
|
164
172
|
/**
|
|
165
|
-
* Retrieves a list of
|
|
173
|
+
* Retrieves a list of commission recipients.
|
|
166
174
|
* @summary List commission recipients
|
|
167
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
168
178
|
* @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, displayName, partnerCode, status, createdAt</i>
|
|
169
|
-
* @param {string} [
|
|
179
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
170
180
|
* @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>
|
|
171
|
-
* @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/>
|
|
181
|
+
* @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: commissionAgreementVersion<i>
|
|
182
|
+
* @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, displayName, partnerCode, status, createdAt</i>
|
|
172
183
|
* @param {*} [options] Override http request option.
|
|
173
184
|
* @throws {RequiredError}
|
|
174
185
|
*/
|
|
175
|
-
listCommissionRecipients(authorization?: string, filter?: string,
|
|
186
|
+
listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass>;
|
|
176
187
|
/**
|
|
177
188
|
* This will update commission recipient.
|
|
178
189
|
* @summary Update the commission recipient
|
|
190
|
+
* @param {string} code
|
|
179
191
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
180
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
193
|
* @param {*} [options] Override http request option.
|
|
182
194
|
* @throws {RequiredError}
|
|
183
195
|
*/
|
|
184
|
-
updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
|
|
196
|
+
updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
|
|
185
197
|
};
|
|
186
198
|
/**
|
|
187
199
|
* Request parameters for createCommissionRecipient operation in CommissionRecipientsApi.
|
|
@@ -210,10 +222,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
210
222
|
export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
|
|
211
223
|
/**
|
|
212
224
|
* Unique identifier for the object.
|
|
213
|
-
* @type {
|
|
225
|
+
* @type {string}
|
|
214
226
|
* @memberof CommissionRecipientsApiDeleteCommissionRecipient
|
|
215
227
|
*/
|
|
216
|
-
readonly code:
|
|
228
|
+
readonly code: string;
|
|
217
229
|
/**
|
|
218
230
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
219
231
|
* @type {string}
|
|
@@ -258,6 +270,18 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
258
270
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
259
271
|
*/
|
|
260
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 CommissionRecipientsApiListCommissionRecipients
|
|
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
283
|
+
*/
|
|
284
|
+
readonly pageToken?: string;
|
|
261
285
|
/**
|
|
262
286
|
* 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, displayName, partnerCode, status, createdAt</i>
|
|
263
287
|
* @type {string}
|
|
@@ -265,11 +289,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
265
289
|
*/
|
|
266
290
|
readonly filter?: string;
|
|
267
291
|
/**
|
|
268
|
-
*
|
|
292
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
269
293
|
* @type {string}
|
|
270
294
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
271
295
|
*/
|
|
272
|
-
readonly
|
|
296
|
+
readonly search?: string;
|
|
273
297
|
/**
|
|
274
298
|
* 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>
|
|
275
299
|
* @type {string}
|
|
@@ -277,11 +301,17 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
277
301
|
*/
|
|
278
302
|
readonly order?: string;
|
|
279
303
|
/**
|
|
280
|
-
* 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/>
|
|
304
|
+
* 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: commissionAgreementVersion<i>
|
|
281
305
|
* @type {string}
|
|
282
306
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
283
307
|
*/
|
|
284
308
|
readonly expand?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 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, displayName, partnerCode, status, createdAt</i>
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
313
|
+
*/
|
|
314
|
+
readonly filters?: string;
|
|
285
315
|
}
|
|
286
316
|
/**
|
|
287
317
|
* Request parameters for updateCommissionRecipient operation in CommissionRecipientsApi.
|
|
@@ -289,6 +319,12 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
289
319
|
* @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
|
|
290
320
|
*/
|
|
291
321
|
export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof CommissionRecipientsApiUpdateCommissionRecipient
|
|
326
|
+
*/
|
|
327
|
+
readonly code: string;
|
|
292
328
|
/**
|
|
293
329
|
*
|
|
294
330
|
* @type {UpdateCommissionRecipientRequestDto}
|
|
@@ -337,7 +373,7 @@ export declare class CommissionRecipientsApi extends BaseAPI {
|
|
|
337
373
|
*/
|
|
338
374
|
getCommissionRecipient(requestParameters: CommissionRecipientsApiGetCommissionRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommissionRecipientResponseClass, any, {}>>;
|
|
339
375
|
/**
|
|
340
|
-
* Retrieves a list of
|
|
376
|
+
* Retrieves a list of commission recipients.
|
|
341
377
|
* @summary List commission recipients
|
|
342
378
|
* @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
|
|
343
379
|
* @param {*} [options] Override http request option.
|
|
@@ -148,7 +148,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
/**
|
|
149
149
|
* This will delete commission recipient.
|
|
150
150
|
* @summary Delete the commission recipient
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
@@ -162,7 +162,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
162
162
|
case 0:
|
|
163
163
|
// verify required parameter 'code' is not null or undefined
|
|
164
164
|
(0, common_1.assertParamExists)('deleteCommissionRecipient', 'code', code);
|
|
165
|
-
localVarPath = "/commissionservice/v1/commission-recipients"
|
|
165
|
+
localVarPath = "/commissionservice/v1/commission-recipients/{code}"
|
|
166
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
168
|
if (configuration) {
|
|
@@ -248,17 +248,20 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
248
248
|
});
|
|
249
249
|
},
|
|
250
250
|
/**
|
|
251
|
-
* Retrieves a list of
|
|
251
|
+
* Retrieves a list of commission recipients.
|
|
252
252
|
* @summary List commission recipients
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
|
+
* @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.
|
|
254
256
|
* @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, displayName, partnerCode, status, createdAt</i>
|
|
255
|
-
* @param {string} [
|
|
257
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
256
258
|
* @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>
|
|
257
|
-
* @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/>
|
|
259
|
+
* @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: commissionAgreementVersion<i>
|
|
260
|
+
* @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, displayName, partnerCode, status, createdAt</i>
|
|
258
261
|
* @param {*} [options] Override http request option.
|
|
259
262
|
* @throws {RequiredError}
|
|
260
263
|
*/
|
|
261
|
-
listCommissionRecipients: function (authorization, filter,
|
|
264
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
262
265
|
if (options === void 0) { options = {}; }
|
|
263
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -281,11 +284,17 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
281
284
|
// authentication bearer required
|
|
282
285
|
// http bearer authentication required
|
|
283
286
|
_a.sent();
|
|
287
|
+
if (pageSize !== undefined) {
|
|
288
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
|
+
}
|
|
290
|
+
if (pageToken !== undefined) {
|
|
291
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
292
|
+
}
|
|
284
293
|
if (filter !== undefined) {
|
|
285
294
|
localVarQueryParameter['filter'] = filter;
|
|
286
295
|
}
|
|
287
|
-
if (
|
|
288
|
-
localVarQueryParameter['
|
|
296
|
+
if (search !== undefined) {
|
|
297
|
+
localVarQueryParameter['search'] = search;
|
|
289
298
|
}
|
|
290
299
|
if (order !== undefined) {
|
|
291
300
|
localVarQueryParameter['order'] = order;
|
|
@@ -293,6 +302,9 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
293
302
|
if (expand !== undefined) {
|
|
294
303
|
localVarQueryParameter['expand'] = expand;
|
|
295
304
|
}
|
|
305
|
+
if (filters !== undefined) {
|
|
306
|
+
localVarQueryParameter['filters'] = filters;
|
|
307
|
+
}
|
|
296
308
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
297
309
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
298
310
|
}
|
|
@@ -310,21 +322,25 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
310
322
|
/**
|
|
311
323
|
* This will update commission recipient.
|
|
312
324
|
* @summary Update the commission recipient
|
|
325
|
+
* @param {string} code
|
|
313
326
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
314
327
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
328
|
* @param {*} [options] Override http request option.
|
|
316
329
|
* @throws {RequiredError}
|
|
317
330
|
*/
|
|
318
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
331
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
319
332
|
if (options === void 0) { options = {}; }
|
|
320
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
321
334
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
322
335
|
return __generator(this, function (_a) {
|
|
323
336
|
switch (_a.label) {
|
|
324
337
|
case 0:
|
|
338
|
+
// verify required parameter 'code' is not null or undefined
|
|
339
|
+
(0, common_1.assertParamExists)('updateCommissionRecipient', 'code', code);
|
|
325
340
|
// verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
|
|
326
341
|
(0, common_1.assertParamExists)('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto);
|
|
327
|
-
localVarPath = "/commissionservice/v1/commission-recipients"
|
|
342
|
+
localVarPath = "/commissionservice/v1/commission-recipients/{code}"
|
|
343
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
328
344
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
329
345
|
if (configuration) {
|
|
330
346
|
baseOptions = configuration.baseOptions;
|
|
@@ -390,7 +406,7 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
390
406
|
/**
|
|
391
407
|
* This will delete commission recipient.
|
|
392
408
|
* @summary Delete the commission recipient
|
|
393
|
-
* @param {
|
|
409
|
+
* @param {string} code Unique identifier for the object.
|
|
394
410
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
395
411
|
* @param {*} [options] Override http request option.
|
|
396
412
|
* @throws {RequiredError}
|
|
@@ -431,22 +447,25 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
431
447
|
});
|
|
432
448
|
},
|
|
433
449
|
/**
|
|
434
|
-
* Retrieves a list of
|
|
450
|
+
* Retrieves a list of commission recipients.
|
|
435
451
|
* @summary List commission recipients
|
|
436
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
454
|
+
* @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.
|
|
437
455
|
* @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, displayName, partnerCode, status, createdAt</i>
|
|
438
|
-
* @param {string} [
|
|
456
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
439
457
|
* @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>
|
|
440
|
-
* @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/>
|
|
458
|
+
* @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: commissionAgreementVersion<i>
|
|
459
|
+
* @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, displayName, partnerCode, status, createdAt</i>
|
|
441
460
|
* @param {*} [options] Override http request option.
|
|
442
461
|
* @throws {RequiredError}
|
|
443
462
|
*/
|
|
444
|
-
listCommissionRecipients: function (authorization, filter,
|
|
463
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
445
464
|
return __awaiter(this, void 0, void 0, function () {
|
|
446
465
|
var localVarAxiosArgs;
|
|
447
466
|
return __generator(this, function (_a) {
|
|
448
467
|
switch (_a.label) {
|
|
449
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, filter,
|
|
468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
450
469
|
case 1:
|
|
451
470
|
localVarAxiosArgs = _a.sent();
|
|
452
471
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -457,17 +476,18 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
457
476
|
/**
|
|
458
477
|
* This will update commission recipient.
|
|
459
478
|
* @summary Update the commission recipient
|
|
479
|
+
* @param {string} code
|
|
460
480
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
461
481
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
462
482
|
* @param {*} [options] Override http request option.
|
|
463
483
|
* @throws {RequiredError}
|
|
464
484
|
*/
|
|
465
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
485
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
466
486
|
return __awaiter(this, void 0, void 0, function () {
|
|
467
487
|
var localVarAxiosArgs;
|
|
468
488
|
return __generator(this, function (_a) {
|
|
469
489
|
switch (_a.label) {
|
|
470
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options)];
|
|
490
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options)];
|
|
471
491
|
case 1:
|
|
472
492
|
localVarAxiosArgs = _a.sent();
|
|
473
493
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -499,7 +519,7 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
499
519
|
/**
|
|
500
520
|
* This will delete commission recipient.
|
|
501
521
|
* @summary Delete the commission recipient
|
|
502
|
-
* @param {
|
|
522
|
+
* @param {string} code Unique identifier for the object.
|
|
503
523
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
524
|
* @param {*} [options] Override http request option.
|
|
505
525
|
* @throws {RequiredError}
|
|
@@ -520,29 +540,33 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
520
540
|
return localVarFp.getCommissionRecipient(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
521
541
|
},
|
|
522
542
|
/**
|
|
523
|
-
* Retrieves a list of
|
|
543
|
+
* Retrieves a list of commission recipients.
|
|
524
544
|
* @summary List commission recipients
|
|
525
545
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
547
|
+
* @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.
|
|
526
548
|
* @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, displayName, partnerCode, status, createdAt</i>
|
|
527
|
-
* @param {string} [
|
|
549
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
528
550
|
* @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>
|
|
529
|
-
* @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/>
|
|
551
|
+
* @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: commissionAgreementVersion<i>
|
|
552
|
+
* @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, displayName, partnerCode, status, createdAt</i>
|
|
530
553
|
* @param {*} [options] Override http request option.
|
|
531
554
|
* @throws {RequiredError}
|
|
532
555
|
*/
|
|
533
|
-
listCommissionRecipients: function (authorization, filter,
|
|
534
|
-
return localVarFp.listCommissionRecipients(authorization, filter,
|
|
556
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
557
|
+
return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
535
558
|
},
|
|
536
559
|
/**
|
|
537
560
|
* This will update commission recipient.
|
|
538
561
|
* @summary Update the commission recipient
|
|
562
|
+
* @param {string} code
|
|
539
563
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
540
564
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
565
|
* @param {*} [options] Override http request option.
|
|
542
566
|
* @throws {RequiredError}
|
|
543
567
|
*/
|
|
544
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
545
|
-
return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
568
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
569
|
+
return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
546
570
|
},
|
|
547
571
|
};
|
|
548
572
|
};
|
|
@@ -595,7 +619,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
595
619
|
return (0, exports.CommissionRecipientsApiFp)(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
620
|
};
|
|
597
621
|
/**
|
|
598
|
-
* Retrieves a list of
|
|
622
|
+
* Retrieves a list of commission recipients.
|
|
599
623
|
* @summary List commission recipients
|
|
600
624
|
* @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
|
|
601
625
|
* @param {*} [options] Override http request option.
|
|
@@ -605,7 +629,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
605
629
|
CommissionRecipientsApi.prototype.listCommissionRecipients = function (requestParameters, options) {
|
|
606
630
|
var _this = this;
|
|
607
631
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
608
|
-
return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
632
|
+
return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(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); });
|
|
609
633
|
};
|
|
610
634
|
/**
|
|
611
635
|
* This will update commission recipient.
|
|
@@ -617,7 +641,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
617
641
|
*/
|
|
618
642
|
CommissionRecipientsApi.prototype.updateCommissionRecipient = function (requestParameters, options) {
|
|
619
643
|
var _this = this;
|
|
620
|
-
return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
|
+
return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
645
|
};
|
|
622
646
|
return CommissionRecipientsApi;
|
|
623
647
|
}(base_1.BaseAPI));
|