@binance/rebate 1.0.0

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/LICENCE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Binance
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,195 @@
1
+ # Binance JavaScript Rebate Connector
2
+
3
+ [![Open Issues](https://img.shields.io/github/issues/binance/binance-connector-js)](https://github.com/binance/binance-connector-js/issues)
4
+ [![Code Style: Prettier](https://img.shields.io/badge/code%20style-prettier-ff69b4)](https://prettier.io/)
5
+ [![npm version](https://badge.fury.io/js/@binance%2Frebate.svg)](https://badge.fury.io/js/@binance%2Frebate)
6
+ [![npm Downloads](https://img.shields.io/npm/dm/@binance/rebate.svg)](https://www.npmjs.com/package/@binance/rebate)
7
+ ![Node.js Version](https://img.shields.io/badge/Node.js-%3E=22.12.0-brightgreen)
8
+ [![Known Vulnerabilities](https://snyk.io/test/github/binance/binance-connector-js/badge.svg)](https://snyk.io/test/github/binance/binance-connector-js)
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
10
+
11
+ This is a client library for the Binance Rebate API, enabling developers to interact programmatically with Binance's Rebate trading platform. The library provides tools to query spot rebate history Records through the REST API:
12
+
13
+ - [REST API](./src/rest-api/rest-api.ts)
14
+
15
+ ## Table of Contents
16
+
17
+ - [Supported Features](#supported-features)
18
+ - [Installation](#installation)
19
+ - [Documentation](#documentation)
20
+ - [REST APIs](#rest-apis)
21
+ - [Testing](#testing)
22
+ - [Migration Guide](#migration-guide)
23
+ - [Contributing](#contributing)
24
+ - [Licence](#licence)
25
+
26
+ ## Supported Features
27
+
28
+ - REST API Endpoints:
29
+ - `/sapi/v1/rebate/*`
30
+ - Inclusion of test cases and examples for quick onboarding.
31
+
32
+ ## Installation
33
+
34
+ To use this library, ensure your environment is running Node.js version **22.12.0** or later. If you're using `nvm` (Node Version Manager), you can set the correct version as follows:
35
+
36
+ ```bash
37
+ nvm install 22.12.0
38
+ nvm use 22.12.0
39
+ ```
40
+
41
+ Then install the library using `npm`:
42
+
43
+ ```bash
44
+ npm install @binance/rebate
45
+ ```
46
+
47
+ ## Documentation
48
+
49
+ For detailed information, refer to the [Binance API Documentation](https://developers.binance.com/docs/rebate).
50
+
51
+ ### REST APIs
52
+
53
+ All REST API endpoints are available through the [`rest-api`](./src/rest-api/rest-api.ts) module. Note that some endpoints require authentication using your Binance API credentials.
54
+
55
+ ```typescript
56
+ import { Rebate, RebateRestAPI } from '@binance/rebate';
57
+
58
+ const configurationRestAPI = {
59
+ apiKey: 'your-api-key',
60
+ apiSecret: 'your-api-secret',
61
+ };
62
+ const client = new Rebate({ configurationRestAPI });
63
+
64
+ client.restAPI
65
+ .getSpotRebateHistoryRecords()
66
+ .then((res) => res.data())
67
+ .then((data: RebateRestAPI.GetSpotRebateHistoryRecordsResponse) => console.log(data))
68
+ .catch((err) => console.error(err));
69
+ ```
70
+
71
+ More examples can be found in the [`examples/rest-api`](./examples/rest-api/) folder.
72
+
73
+ #### Configuration Options
74
+
75
+ The REST API supports the following advanced configuration options:
76
+
77
+ - `timeout`: Timeout for requests in milliseconds (default: 1000 ms).
78
+ - `proxy`: Proxy configuration:
79
+ - `host`: Proxy server hostname.
80
+ - `port`: Proxy server port.
81
+ - `protocol`: Proxy protocol (http or https).
82
+ - `auth`: Proxy authentication credentials:
83
+ - `username`: Proxy username.
84
+ - `password`: Proxy password.
85
+ - `keepAlive`: Enable HTTP keep-alive (default: true).
86
+ - `compression`: Enable response compression (default: true).
87
+ - `retries`: Number of retry attempts for failed requests (default: 3).
88
+ - `backoff`: Delay in milliseconds between retries (default: 1000 ms).
89
+ - `httpsAgent`: Custom HTTPS agent for advanced TLS configuration.
90
+ - `privateKey`: RSA or ED25519 private key for authentication.
91
+ - `privateKeyPassphrase`: Passphrase for the private key, if encrypted.
92
+
93
+ ##### Timeout
94
+
95
+ You can configure a timeout for requests in milliseconds. If the request exceeds the specified timeout, it will be aborted. See the [Timeout example](./docs/rest-api/timeout.md) for detailed usage.
96
+
97
+ ##### Proxy
98
+
99
+ The REST API supports HTTP/HTTPS proxy configurations. See the [Proxy example](./docs/rest-api/proxy.md) for detailed usage.
100
+
101
+ ##### Keep-Alive
102
+
103
+ Enable HTTP keep-alive for persistent connections. See the [Keep-Alive example](./docs/rest-api/keepAlive.md) for detailed usage.
104
+
105
+ ##### Compression
106
+
107
+ Enable or disable response compression. See the [Compression example](./docs/rest-api/compression.md) for detailed usage.
108
+
109
+ ##### Retries
110
+
111
+ Configure the number of retry attempts and delay in milliseconds between retries for failed requests. See the [Retries example](./docs/rest-api/retries.md) for detailed usage.
112
+
113
+ ##### HTTPS Agent
114
+
115
+ Customize the HTTPS agent for advanced TLS configurations. See the [HTTPS Agent example](./docs/rest-api/httpsAgent.md) for detailed usage.
116
+
117
+ ##### Key Pair Based Authentication
118
+
119
+ The REST API supports key pair-based authentication for secure communication. You can use `RSA` or `ED25519` keys for signing requests. See the [Key Pair Based Authentication example](./docs/rest-api/key-pair-authentication.md) for detailed usage.
120
+
121
+ ##### Certificate Pinning
122
+
123
+ To enhance security, you can use certificate pinning with the `httpsAgent` option in the configuration. This ensures the client only communicates with servers using specific certificates. See the [Certificate Pinning example](./docs/rest-api/certificate-pinning.md) for detailed usage.
124
+
125
+ #### Error Handling
126
+
127
+ The REST API provides detailed error types to help you handle issues effectively:
128
+
129
+ - `ConnectorClientError`: General client error.
130
+ - `RequiredError`: Thrown when a required parameter is missing.
131
+ - `UnauthorizedError`: Indicates missing or invalid authentication credentials.
132
+ - `ForbiddenError`: Access to the requested resource is forbidden.
133
+ - `TooManyRequestsError`: Rate limit exceeded.
134
+ - `RateLimitBanError`: IP address banned for exceeding rate limits.
135
+ - `ServerError`: Internal server error.
136
+ - `NetworkError`: Issues with network connectivity.
137
+ - `NotFoundError`: Resource not found.
138
+ - `BadRequestError`: Invalid request.
139
+
140
+ See the [Error Handling example](./docs/rest-api/error-handling.md) for detailed usage.
141
+
142
+ #### Testnet
143
+
144
+ For testing purposes, `/sapi/v1/rebate/*` endpoints can be used in the [Testnet](https://testnet.binance.vision/). Update the `basePath` in your configuration:
145
+
146
+ ```typescript
147
+ import { Rebate, RebateRestAPI, REBATE_REST_API_TESTNET_URL } from '@binance/rebate';
148
+
149
+ const configurationRestAPI = {
150
+ apiKey: 'your-api-key',
151
+ apiSecret: 'your-api-secret',
152
+ basePath: REBATE_REST_API_TESTNET_URL,
153
+ };
154
+ const client = new Rebate({ configurationRestAPI });
155
+ ```
156
+
157
+ If `basePath` is not provided, it defaults to `https://api.binance.com`.
158
+
159
+ ## Testing
160
+
161
+ To run the tests:
162
+
163
+ ```bash
164
+ npm install
165
+
166
+ npm run test
167
+ ```
168
+
169
+ The tests cover:
170
+
171
+ - REST API endpoints
172
+ - Error handling and edge cases
173
+
174
+ ## Migration Guide
175
+
176
+ If you are upgrading to the new modularized structure, refer to the [Migration Guide](./docs/migration_guide_rebate_connector.md) for detailed steps.
177
+
178
+ ## Contributing
179
+
180
+ Contributions are welcome!
181
+
182
+ Since this repository contains auto-generated code, we encourage you to start by opening a GitHub issue to discuss your ideas or suggest improvements. This helps ensure that changes align with the project's goals and auto-generation processes.
183
+
184
+ To contribute:
185
+
186
+ 1. Open a GitHub issue describing your suggestion or the bug you've identified.
187
+ 2. If it's determined that changes are necessary, the maintainers will merge the changes into the main branch.
188
+
189
+ Please ensure that all tests pass if you're making a direct contribution. Submit a pull request only after discussing and confirming the change.
190
+
191
+ Thank you for your contributions!
192
+
193
+ ## Licence
194
+
195
+ This project is licensed under the MIT License. See the [LICENCE](./LICENCE) file for details.
@@ -0,0 +1,362 @@
1
+ import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
+ export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, REBATE_REST_API_PROD_URL, REBATE_REST_API_TESTNET_URL, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
3
+
4
+ /**
5
+ * Binance Public Rebate REST API
6
+ *
7
+ * OpenAPI Specification for the Binance Public Rebate REST API
8
+ *
9
+ * The version of the OpenAPI document: 1.0.0
10
+ *
11
+ *
12
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
+ * https://openapi-generator.tech
14
+ * Do not edit the class manually.
15
+ */
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BadRequest
20
+ */
21
+ interface BadRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BadRequest
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BadRequest
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Binance Public Rebate REST API
38
+ *
39
+ * OpenAPI Specification for the Binance Public Rebate REST API
40
+ *
41
+ * The version of the OpenAPI document: 1.0.0
42
+ *
43
+ *
44
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
45
+ * https://openapi-generator.tech
46
+ * Do not edit the class manually.
47
+ */
48
+ /**
49
+ *
50
+ * @export
51
+ * @interface GetSpotRebateHistoryRecordsResponseDataDataInner
52
+ */
53
+ interface GetSpotRebateHistoryRecordsResponseDataDataInner {
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GetSpotRebateHistoryRecordsResponseDataDataInner
58
+ */
59
+ asset?: string;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof GetSpotRebateHistoryRecordsResponseDataDataInner
64
+ */
65
+ type?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof GetSpotRebateHistoryRecordsResponseDataDataInner
70
+ */
71
+ amount?: string;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof GetSpotRebateHistoryRecordsResponseDataDataInner
76
+ */
77
+ updateTime?: number;
78
+ }
79
+
80
+ /**
81
+ * Binance Public Rebate REST API
82
+ *
83
+ * OpenAPI Specification for the Binance Public Rebate REST API
84
+ *
85
+ * The version of the OpenAPI document: 1.0.0
86
+ *
87
+ *
88
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
89
+ * https://openapi-generator.tech
90
+ * Do not edit the class manually.
91
+ */
92
+
93
+ /**
94
+ *
95
+ * @export
96
+ * @interface GetSpotRebateHistoryRecordsResponseData
97
+ */
98
+ interface GetSpotRebateHistoryRecordsResponseData {
99
+ /**
100
+ *
101
+ * @type {number}
102
+ * @memberof GetSpotRebateHistoryRecordsResponseData
103
+ */
104
+ page?: number;
105
+ /**
106
+ *
107
+ * @type {number}
108
+ * @memberof GetSpotRebateHistoryRecordsResponseData
109
+ */
110
+ totalRecords?: number;
111
+ /**
112
+ *
113
+ * @type {number}
114
+ * @memberof GetSpotRebateHistoryRecordsResponseData
115
+ */
116
+ totalPageNum?: number;
117
+ /**
118
+ *
119
+ * @type {Array<GetSpotRebateHistoryRecordsResponseDataDataInner>}
120
+ * @memberof GetSpotRebateHistoryRecordsResponseData
121
+ */
122
+ data?: Array<GetSpotRebateHistoryRecordsResponseDataDataInner>;
123
+ }
124
+
125
+ /**
126
+ * Binance Public Rebate REST API
127
+ *
128
+ * OpenAPI Specification for the Binance Public Rebate REST API
129
+ *
130
+ * The version of the OpenAPI document: 1.0.0
131
+ *
132
+ *
133
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
134
+ * https://openapi-generator.tech
135
+ * Do not edit the class manually.
136
+ */
137
+
138
+ /**
139
+ *
140
+ * @export
141
+ * @interface GetSpotRebateHistoryRecordsResponse
142
+ */
143
+ interface GetSpotRebateHistoryRecordsResponse {
144
+ /**
145
+ *
146
+ * @type {string}
147
+ * @memberof GetSpotRebateHistoryRecordsResponse
148
+ */
149
+ status?: string;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof GetSpotRebateHistoryRecordsResponse
154
+ */
155
+ type?: string;
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof GetSpotRebateHistoryRecordsResponse
160
+ */
161
+ code?: string;
162
+ /**
163
+ *
164
+ * @type {GetSpotRebateHistoryRecordsResponseData}
165
+ * @memberof GetSpotRebateHistoryRecordsResponse
166
+ */
167
+ data?: GetSpotRebateHistoryRecordsResponseData;
168
+ }
169
+
170
+ /**
171
+ * Binance Public Rebate REST API
172
+ *
173
+ * OpenAPI Specification for the Binance Public Rebate REST API
174
+ *
175
+ * The version of the OpenAPI document: 1.0.0
176
+ *
177
+ *
178
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
179
+ * https://openapi-generator.tech
180
+ * Do not edit the class manually.
181
+ */
182
+
183
+ /**
184
+ * RebateApi - interface
185
+ * @interface RebateApi
186
+ */
187
+ interface RebateApiInterface {
188
+ /**
189
+ * Get Spot Rebate History Records
190
+ *
191
+ * The max interval between startTime and endTime is 30 days.
192
+ * If startTime and endTime are not sent, the recent 7 days' data will be returned.
193
+ * The earliest startTime is supported on June 10, 2020
194
+ * Return up to 200 records per request.
195
+ *
196
+ * Weight: 12000
197
+ *
198
+ * @summary Get Spot Rebate History Records (USER_DATA)
199
+ * @param {GetSpotRebateHistoryRecordsRequest} requestParameters Request parameters.
200
+ *
201
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
202
+ * @memberof RebateApiInterface
203
+ */
204
+ getSpotRebateHistoryRecords(requestParameters?: GetSpotRebateHistoryRecordsRequest): Promise<RestApiResponse<GetSpotRebateHistoryRecordsResponse>>;
205
+ }
206
+ /**
207
+ * Request parameters for getSpotRebateHistoryRecords operation in RebateApi.
208
+ * @interface GetSpotRebateHistoryRecordsRequest
209
+ */
210
+ interface GetSpotRebateHistoryRecordsRequest {
211
+ /**
212
+ *
213
+ * @type {number}
214
+ * @memberof RebateApiGetSpotRebateHistoryRecords
215
+ */
216
+ readonly startTime?: number;
217
+ /**
218
+ *
219
+ * @type {number}
220
+ * @memberof RebateApiGetSpotRebateHistoryRecords
221
+ */
222
+ readonly endTime?: number;
223
+ /**
224
+ * Default 1
225
+ * @type {number}
226
+ * @memberof RebateApiGetSpotRebateHistoryRecords
227
+ */
228
+ readonly page?: number;
229
+ /**
230
+ *
231
+ * @type {number}
232
+ * @memberof RebateApiGetSpotRebateHistoryRecords
233
+ */
234
+ readonly recvWindow?: number;
235
+ }
236
+ /**
237
+ * RebateApi - object-oriented interface
238
+ * @class RebateApi
239
+ */
240
+ declare class RebateApi implements RebateApiInterface {
241
+ private readonly configuration;
242
+ private localVarAxiosParamCreator;
243
+ constructor(configuration: ConfigurationRestAPI);
244
+ /**
245
+ * Get Spot Rebate History Records
246
+ *
247
+ * The max interval between startTime and endTime is 30 days.
248
+ * If startTime and endTime are not sent, the recent 7 days' data will be returned.
249
+ * The earliest startTime is supported on June 10, 2020
250
+ * Return up to 200 records per request.
251
+ *
252
+ * Weight: 12000
253
+ *
254
+ * @summary Get Spot Rebate History Records (USER_DATA)
255
+ * @param {GetSpotRebateHistoryRecordsRequest} requestParameters Request parameters.
256
+ * @returns {Promise<RestApiResponse<GetSpotRebateHistoryRecordsResponse>>}
257
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
258
+ * @memberof RebateApi
259
+ * @see {@link https://developers.binance.com/docs/rebate/rest-api/Get-Spot-Rebate-History-Records Binance API Documentation}
260
+ */
261
+ getSpotRebateHistoryRecords(requestParameters?: GetSpotRebateHistoryRecordsRequest): Promise<RestApiResponse<GetSpotRebateHistoryRecordsResponse>>;
262
+ }
263
+
264
+ /**
265
+ * Binance Public Rebate REST API
266
+ *
267
+ * OpenAPI Specification for the Binance Public Rebate REST API
268
+ *
269
+ * The version of the OpenAPI document: 1.0.0
270
+ *
271
+ *
272
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
273
+ * https://openapi-generator.tech
274
+ * Do not edit the class manually.
275
+ */
276
+
277
+ declare class RestAPI {
278
+ private configuration;
279
+ private rebateApi;
280
+ constructor(configuration: ConfigurationRestAPI);
281
+ /**
282
+ * Generic function to send a request.
283
+ * @param endpoint - The API endpoint to call.
284
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
285
+ * @param params - Query parameters for the request.
286
+ *
287
+ * @returns A promise resolving to the response data object.
288
+ */
289
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
290
+ /**
291
+ * Generic function to send a signed request.
292
+ * @param endpoint - The API endpoint to call.
293
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
294
+ * @param params - Query parameters for the request.
295
+ *
296
+ * @returns A promise resolving to the response data object.
297
+ */
298
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
299
+ /**
300
+ * Get Spot Rebate History Records
301
+ *
302
+ * The max interval between startTime and endTime is 30 days.
303
+ * If startTime and endTime are not sent, the recent 7 days' data will be returned.
304
+ * The earliest startTime is supported on June 10, 2020
305
+ * Return up to 200 records per request.
306
+ *
307
+ * Weight: 12000
308
+ *
309
+ * @summary Get Spot Rebate History Records (USER_DATA)
310
+ * @param {GetSpotRebateHistoryRecordsRequest} requestParameters Request parameters.
311
+ * @returns {Promise<RestApiResponse<GetSpotRebateHistoryRecordsResponse>>}
312
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
313
+ * @see {@link https://developers.binance.com/docs/rebate/rest-api/Get-Spot-Rebate-History-Records Binance API Documentation}
314
+ */
315
+ getSpotRebateHistoryRecords(requestParameters?: GetSpotRebateHistoryRecordsRequest): Promise<RestApiResponse<GetSpotRebateHistoryRecordsResponse>>;
316
+ }
317
+
318
+ /**
319
+ * Binance Public Rebate REST API
320
+ *
321
+ * OpenAPI Specification for the Binance Public Rebate REST API
322
+ *
323
+ * The version of the OpenAPI document: 1.0.0
324
+ *
325
+ *
326
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
327
+ * https://openapi-generator.tech
328
+ * Do not edit the class manually.
329
+ */
330
+
331
+ type index_BadRequest = BadRequest;
332
+ type index_GetSpotRebateHistoryRecordsRequest = GetSpotRebateHistoryRecordsRequest;
333
+ type index_GetSpotRebateHistoryRecordsResponse = GetSpotRebateHistoryRecordsResponse;
334
+ type index_GetSpotRebateHistoryRecordsResponseData = GetSpotRebateHistoryRecordsResponseData;
335
+ type index_GetSpotRebateHistoryRecordsResponseDataDataInner = GetSpotRebateHistoryRecordsResponseDataDataInner;
336
+ type index_RebateApi = RebateApi;
337
+ declare const index_RebateApi: typeof RebateApi;
338
+ type index_RebateApiInterface = RebateApiInterface;
339
+ type index_RestAPI = RestAPI;
340
+ declare const index_RestAPI: typeof RestAPI;
341
+ declare namespace index {
342
+ export {
343
+ index_BadRequest as BadRequest,
344
+ index_GetSpotRebateHistoryRecordsRequest as GetSpotRebateHistoryRecordsRequest,
345
+ index_GetSpotRebateHistoryRecordsResponse as GetSpotRebateHistoryRecordsResponse,
346
+ index_GetSpotRebateHistoryRecordsResponseData as GetSpotRebateHistoryRecordsResponseData,
347
+ index_GetSpotRebateHistoryRecordsResponseDataDataInner as GetSpotRebateHistoryRecordsResponseDataDataInner,
348
+ index_RebateApi as RebateApi,
349
+ index_RebateApiInterface as RebateApiInterface,
350
+ index_RestAPI as RestAPI,
351
+ };
352
+ }
353
+
354
+ interface ConfigurationRebate {
355
+ configurationRestAPI?: ConfigurationRestAPI;
356
+ }
357
+ declare class Rebate {
358
+ restAPI: RestAPI;
359
+ constructor(config: ConfigurationRebate);
360
+ }
361
+
362
+ export { ConfigurationRebate, Rebate, index as RebateRestAPI };