@binance/pay 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
- export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, PAY_REST_API_PROD_URL, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
1
+ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, PAY_REST_API_PROD_URL, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
3
2
 
3
+ //#region rolldown:runtime
4
+
5
+ //#endregion
6
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner-funds-detail-inner-wallet-asset-cost-inner.d.ts
4
7
  /**
5
8
  * Binance Pay REST API
6
9
  *
@@ -19,59 +22,48 @@ export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, No
19
22
  * @interface GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner
20
23
  */
21
24
  interface GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner
26
- */
27
- '1'?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner
32
- */
33
- '2'?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner
29
+ */
30
+ '1'?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner
35
+ */
36
+ '2'?: string;
34
37
  }
35
-
36
- /**
37
- * Binance Pay REST API
38
- *
39
- * OpenAPI Specification for the Binance Pay 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
-
38
+ //#endregion
39
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner-funds-detail-inner.d.ts
49
40
  /**
50
41
  *
51
42
  * @export
52
43
  * @interface GetPayTradeHistoryResponseDataInnerFundsDetailInner
53
44
  */
54
45
  interface GetPayTradeHistoryResponseDataInnerFundsDetailInner {
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
59
- */
60
- currency?: string;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
65
- */
66
- amount?: string;
67
- /**
68
- *
69
- * @type {Array<GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner>}
70
- * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
71
- */
72
- walletAssetCost?: Array<GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner>;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
50
+ */
51
+ currency?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
56
+ */
57
+ amount?: string;
58
+ /**
59
+ *
60
+ * @type {Array<GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner>}
61
+ * @memberof GetPayTradeHistoryResponseDataInnerFundsDetailInner
62
+ */
63
+ walletAssetCost?: Array<GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner>;
73
64
  }
74
-
65
+ //#endregion
66
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner-payer-info.d.ts
75
67
  /**
76
68
  * Binance Pay REST API
77
69
  *
@@ -90,26 +82,27 @@ interface GetPayTradeHistoryResponseDataInnerFundsDetailInner {
90
82
  * @interface GetPayTradeHistoryResponseDataInnerPayerInfo
91
83
  */
92
84
  interface GetPayTradeHistoryResponseDataInnerPayerInfo {
93
- /**
94
- *
95
- * @type {string}
96
- * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
97
- */
98
- name?: string;
99
- /**
100
- *
101
- * @type {string}
102
- * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
103
- */
104
- type?: string;
105
- /**
106
- *
107
- * @type {string}
108
- * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
109
- */
110
- binanceId?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
89
+ */
90
+ name?: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
95
+ */
96
+ type?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof GetPayTradeHistoryResponseDataInnerPayerInfo
101
+ */
102
+ binanceId?: string;
111
103
  }
112
-
104
+ //#endregion
105
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner-receiver-info-extend.d.ts
113
106
  /**
114
107
  * Binance Pay REST API
115
108
  *
@@ -128,520 +121,435 @@ interface GetPayTradeHistoryResponseDataInnerPayerInfo {
128
121
  * @interface GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
129
122
  */
130
123
  interface GetPayTradeHistoryResponseDataInnerReceiverInfoExtend {
131
- /**
132
- *
133
- * @type {string}
134
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
135
- */
136
- institutionName?: string;
137
- /**
138
- *
139
- * @type {string}
140
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
141
- */
142
- cardNumber?: string;
143
- /**
144
- *
145
- * @type {string}
146
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
147
- */
148
- digitalWalletId?: string;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
128
+ */
129
+ institutionName?: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
134
+ */
135
+ cardNumber?: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfoExtend
140
+ */
141
+ digitalWalletId?: string;
149
142
  }
150
-
151
- /**
152
- * Binance Pay REST API
153
- *
154
- * OpenAPI Specification for the Binance Pay REST API
155
- *
156
- * The version of the OpenAPI document: 1.0.0
157
- *
158
- *
159
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
160
- * https://openapi-generator.tech
161
- * Do not edit the class manually.
162
- */
163
-
143
+ //#endregion
144
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner-receiver-info.d.ts
164
145
  /**
165
146
  *
166
147
  * @export
167
148
  * @interface GetPayTradeHistoryResponseDataInnerReceiverInfo
168
149
  */
169
150
  interface GetPayTradeHistoryResponseDataInnerReceiverInfo {
170
- /**
171
- *
172
- * @type {string}
173
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
174
- */
175
- name?: string;
176
- /**
177
- *
178
- * @type {string}
179
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
180
- */
181
- type?: string;
182
- /**
183
- *
184
- * @type {string}
185
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
186
- */
187
- email?: string;
188
- /**
189
- *
190
- * @type {string}
191
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
192
- */
193
- binanceId?: string;
194
- /**
195
- *
196
- * @type {string}
197
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
198
- */
199
- accountId?: string;
200
- /**
201
- *
202
- * @type {string}
203
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
204
- */
205
- countryCode?: string;
206
- /**
207
- *
208
- * @type {string}
209
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
210
- */
211
- phoneNumber?: string;
212
- /**
213
- *
214
- * @type {string}
215
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
216
- */
217
- mobileCode?: string;
218
- /**
219
- *
220
- * @type {GetPayTradeHistoryResponseDataInnerReceiverInfoExtend}
221
- * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
222
- */
223
- extend?: GetPayTradeHistoryResponseDataInnerReceiverInfoExtend;
151
+ /**
152
+ *
153
+ * @type {string}
154
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
155
+ */
156
+ name?: string;
157
+ /**
158
+ *
159
+ * @type {string}
160
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
161
+ */
162
+ type?: string;
163
+ /**
164
+ *
165
+ * @type {string}
166
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
167
+ */
168
+ email?: string;
169
+ /**
170
+ *
171
+ * @type {string}
172
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
173
+ */
174
+ binanceId?: string;
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
179
+ */
180
+ accountId?: string;
181
+ /**
182
+ *
183
+ * @type {string}
184
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
185
+ */
186
+ countryCode?: string;
187
+ /**
188
+ *
189
+ * @type {string}
190
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
191
+ */
192
+ phoneNumber?: string;
193
+ /**
194
+ *
195
+ * @type {string}
196
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
197
+ */
198
+ mobileCode?: string;
199
+ /**
200
+ *
201
+ * @type {GetPayTradeHistoryResponseDataInnerReceiverInfoExtend}
202
+ * @memberof GetPayTradeHistoryResponseDataInnerReceiverInfo
203
+ */
204
+ extend?: GetPayTradeHistoryResponseDataInnerReceiverInfoExtend;
224
205
  }
225
-
226
- /**
227
- * Binance Pay REST API
228
- *
229
- * OpenAPI Specification for the Binance Pay REST API
230
- *
231
- * The version of the OpenAPI document: 1.0.0
232
- *
233
- *
234
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
235
- * https://openapi-generator.tech
236
- * Do not edit the class manually.
237
- */
238
-
206
+ //#endregion
207
+ //#region src/rest-api/types/get-pay-trade-history-response-data-inner.d.ts
239
208
  /**
240
209
  *
241
210
  * @export
242
211
  * @interface GetPayTradeHistoryResponseDataInner
243
212
  */
244
213
  interface GetPayTradeHistoryResponseDataInner {
245
- /**
246
- *
247
- * @type {string}
248
- * @memberof GetPayTradeHistoryResponseDataInner
249
- */
250
- orderType?: string;
251
- /**
252
- *
253
- * @type {string}
254
- * @memberof GetPayTradeHistoryResponseDataInner
255
- */
256
- transactionId?: string;
257
- /**
258
- *
259
- * @type {number | bigint}
260
- * @memberof GetPayTradeHistoryResponseDataInner
261
- */
262
- transactionTime?: number | bigint;
263
- /**
264
- *
265
- * @type {string}
266
- * @memberof GetPayTradeHistoryResponseDataInner
267
- */
268
- amount?: string;
269
- /**
270
- *
271
- * @type {string}
272
- * @memberof GetPayTradeHistoryResponseDataInner
273
- */
274
- currency?: string;
275
- /**
276
- *
277
- * @type {number | bigint}
278
- * @memberof GetPayTradeHistoryResponseDataInner
279
- */
280
- walletType?: number | bigint;
281
- /**
282
- *
283
- * @type {Array<number>}
284
- * @memberof GetPayTradeHistoryResponseDataInner
285
- */
286
- walletTypes?: Array<number>;
287
- /**
288
- *
289
- * @type {Array<GetPayTradeHistoryResponseDataInnerFundsDetailInner>}
290
- * @memberof GetPayTradeHistoryResponseDataInner
291
- */
292
- fundsDetail?: Array<GetPayTradeHistoryResponseDataInnerFundsDetailInner>;
293
- /**
294
- *
295
- * @type {GetPayTradeHistoryResponseDataInnerPayerInfo}
296
- * @memberof GetPayTradeHistoryResponseDataInner
297
- */
298
- payerInfo?: GetPayTradeHistoryResponseDataInnerPayerInfo;
299
- /**
300
- *
301
- * @type {GetPayTradeHistoryResponseDataInnerReceiverInfo}
302
- * @memberof GetPayTradeHistoryResponseDataInner
303
- */
304
- receiverInfo?: GetPayTradeHistoryResponseDataInnerReceiverInfo;
214
+ /**
215
+ *
216
+ * @type {string}
217
+ * @memberof GetPayTradeHistoryResponseDataInner
218
+ */
219
+ orderType?: string;
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof GetPayTradeHistoryResponseDataInner
224
+ */
225
+ transactionId?: string;
226
+ /**
227
+ *
228
+ * @type {number | bigint}
229
+ * @memberof GetPayTradeHistoryResponseDataInner
230
+ */
231
+ transactionTime?: number | bigint;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof GetPayTradeHistoryResponseDataInner
236
+ */
237
+ amount?: string;
238
+ /**
239
+ *
240
+ * @type {string}
241
+ * @memberof GetPayTradeHistoryResponseDataInner
242
+ */
243
+ currency?: string;
244
+ /**
245
+ *
246
+ * @type {number | bigint}
247
+ * @memberof GetPayTradeHistoryResponseDataInner
248
+ */
249
+ walletType?: number | bigint;
250
+ /**
251
+ *
252
+ * @type {Array<number>}
253
+ * @memberof GetPayTradeHistoryResponseDataInner
254
+ */
255
+ walletTypes?: Array<number>;
256
+ /**
257
+ *
258
+ * @type {Array<GetPayTradeHistoryResponseDataInnerFundsDetailInner>}
259
+ * @memberof GetPayTradeHistoryResponseDataInner
260
+ */
261
+ fundsDetail?: Array<GetPayTradeHistoryResponseDataInnerFundsDetailInner>;
262
+ /**
263
+ *
264
+ * @type {GetPayTradeHistoryResponseDataInnerPayerInfo}
265
+ * @memberof GetPayTradeHistoryResponseDataInner
266
+ */
267
+ payerInfo?: GetPayTradeHistoryResponseDataInnerPayerInfo;
268
+ /**
269
+ *
270
+ * @type {GetPayTradeHistoryResponseDataInnerReceiverInfo}
271
+ * @memberof GetPayTradeHistoryResponseDataInner
272
+ */
273
+ receiverInfo?: GetPayTradeHistoryResponseDataInnerReceiverInfo;
305
274
  }
306
-
307
- /**
308
- * Binance Pay REST API
309
- *
310
- * OpenAPI Specification for the Binance Pay REST API
311
- *
312
- * The version of the OpenAPI document: 1.0.0
313
- *
314
- *
315
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
316
- * https://openapi-generator.tech
317
- * Do not edit the class manually.
318
- */
319
-
275
+ //#endregion
276
+ //#region src/rest-api/types/get-pay-trade-history-response.d.ts
320
277
  /**
321
278
  *
322
279
  * @export
323
280
  * @interface GetPayTradeHistoryResponse
324
281
  */
325
282
  interface GetPayTradeHistoryResponse {
326
- /**
327
- *
328
- * @type {string}
329
- * @memberof GetPayTradeHistoryResponse
330
- */
331
- code?: string;
332
- /**
333
- *
334
- * @type {string}
335
- * @memberof GetPayTradeHistoryResponse
336
- */
337
- message?: string;
338
- /**
339
- *
340
- * @type {Array<GetPayTradeHistoryResponseDataInner>}
341
- * @memberof GetPayTradeHistoryResponse
342
- */
343
- data?: Array<GetPayTradeHistoryResponseDataInner>;
344
- /**
345
- *
346
- * @type {boolean}
347
- * @memberof GetPayTradeHistoryResponse
348
- */
349
- success?: boolean;
283
+ /**
284
+ *
285
+ * @type {string}
286
+ * @memberof GetPayTradeHistoryResponse
287
+ */
288
+ code?: string;
289
+ /**
290
+ *
291
+ * @type {string}
292
+ * @memberof GetPayTradeHistoryResponse
293
+ */
294
+ message?: string;
295
+ /**
296
+ *
297
+ * @type {Array<GetPayTradeHistoryResponseDataInner>}
298
+ * @memberof GetPayTradeHistoryResponse
299
+ */
300
+ data?: Array<GetPayTradeHistoryResponseDataInner>;
301
+ /**
302
+ *
303
+ * @type {boolean}
304
+ * @memberof GetPayTradeHistoryResponse
305
+ */
306
+ success?: boolean;
350
307
  }
351
-
352
- /**
353
- * Binance Pay REST API
354
- *
355
- * OpenAPI Specification for the Binance Pay REST API
356
- *
357
- * The version of the OpenAPI document: 1.0.0
358
- *
359
- *
360
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
361
- * https://openapi-generator.tech
362
- * Do not edit the class manually.
363
- */
364
-
308
+ //#endregion
309
+ //#region src/rest-api/modules/pay-api.d.ts
365
310
  /**
366
311
  * PayApi - interface
367
312
  * @interface PayApi
368
313
  */
369
314
  interface PayApiInterface {
370
- /**
371
- * Get Pay Trade History
372
- *
373
- * If startTime and endTime are not sent, the recent 90 days' data will be returned.
374
- * The max interval between startTime and endTime is 90 days.
375
- * Support for querying orders within the last 18 months.
376
- * For payerInfo and receiverInfo,there are different return values in different orderTypes.
377
- * Sender's perspective when orderType is C2C
378
- * payerInfo : binanceId
379
- * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
380
- * Receiver's perspective when orderType is C2C
381
- * payerInfo : name
382
- * receiverInfo : binanceId
383
- * Sender's perspective when orderType is CRYPTO_BOX
384
- * payerInfo : binanceId
385
- * receiverInfo : name(the value is always "Crypto Box")
386
- * Receiver's perspective when orderType is CRYPTO_BOX
387
- * payerInfo : name
388
- * receiverInfo : binanceId
389
- * Sender's perspective when orderType is PAY
390
- * payerInfo : binanceId
391
- * receiverInfo : name
392
- * Receiver's perspective when orderType is PAY
393
- * payerInfo : name
394
- * receiverInfo : binanceId, name
395
- * Sender's perspective when orderType is PAY_REFUND
396
- * payerInfo : binanceId, name
397
- * receiverInfo : name, accountId
398
- * Receiver's perspective when orderType is PAY_REFUND
399
- * payerInfo : name
400
- * receiverInfo : binanceId
401
- * Sender's perspective when orderType is PAYOUT
402
- * payerInfo : binanceId, name
403
- * receiverInfo : name, accountId
404
- * Receiver's perspective when orderType is PAYOUT
405
- * payerInfo : name
406
- * receiverInfo : binanceId
407
- * Receiver's perspective when orderType is CRYPTO_BOX_RF
408
- * payerInfo : name(the value is always "Crypto Box")
409
- * receiverInfo : binanceId
410
- * Sender's perspective when orderType is REMITTANCE
411
- * payerInfo : binanceId
412
- * receiverInfo : name, institutionName, cardNumber, digitalWalletId
413
- *
414
- * Weight: 3000
415
- *
416
- * @summary Get Pay Trade History
417
- * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
418
- *
419
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
420
- * @memberof PayApiInterface
421
- */
422
- getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
315
+ /**
316
+ * Get Pay Trade History
317
+ *
318
+ * If startTime and endTime are not sent, the recent 90 days' data will be returned.
319
+ * The max interval between startTime and endTime is 90 days.
320
+ * Support for querying orders within the last 18 months.
321
+ * For payerInfo and receiverInfo,there are different return values in different orderTypes.
322
+ * Sender's perspective when orderType is C2C
323
+ * payerInfo : binanceId
324
+ * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
325
+ * Receiver's perspective when orderType is C2C
326
+ * payerInfo : name
327
+ * receiverInfo : binanceId
328
+ * Sender's perspective when orderType is CRYPTO_BOX
329
+ * payerInfo : binanceId
330
+ * receiverInfo : name(the value is always "Crypto Box")
331
+ * Receiver's perspective when orderType is CRYPTO_BOX
332
+ * payerInfo : name
333
+ * receiverInfo : binanceId
334
+ * Sender's perspective when orderType is PAY
335
+ * payerInfo : binanceId
336
+ * receiverInfo : name
337
+ * Receiver's perspective when orderType is PAY
338
+ * payerInfo : name
339
+ * receiverInfo : binanceId, name
340
+ * Sender's perspective when orderType is PAY_REFUND
341
+ * payerInfo : binanceId, name
342
+ * receiverInfo : name, accountId
343
+ * Receiver's perspective when orderType is PAY_REFUND
344
+ * payerInfo : name
345
+ * receiverInfo : binanceId
346
+ * Sender's perspective when orderType is PAYOUT
347
+ * payerInfo : binanceId, name
348
+ * receiverInfo : name, accountId
349
+ * Receiver's perspective when orderType is PAYOUT
350
+ * payerInfo : name
351
+ * receiverInfo : binanceId
352
+ * Receiver's perspective when orderType is CRYPTO_BOX_RF
353
+ * payerInfo : name(the value is always "Crypto Box")
354
+ * receiverInfo : binanceId
355
+ * Sender's perspective when orderType is REMITTANCE
356
+ * payerInfo : binanceId
357
+ * receiverInfo : name, institutionName, cardNumber, digitalWalletId
358
+ *
359
+ * Weight: 3000
360
+ *
361
+ * @summary Get Pay Trade History
362
+ * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
363
+ *
364
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
365
+ * @memberof PayApiInterface
366
+ */
367
+ getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
423
368
  }
424
369
  /**
425
370
  * Request parameters for getPayTradeHistory operation in PayApi.
426
371
  * @interface GetPayTradeHistoryRequest
427
372
  */
428
373
  interface GetPayTradeHistoryRequest {
429
- /**
430
- *
431
- * @type {number}
432
- * @memberof PayApiGetPayTradeHistory
433
- */
434
- readonly startTime?: number;
435
- /**
436
- *
437
- * @type {number}
438
- * @memberof PayApiGetPayTradeHistory
439
- */
440
- readonly endTime?: number;
441
- /**
442
- * default 100, max 100
443
- * @type {number}
444
- * @memberof PayApiGetPayTradeHistory
445
- */
446
- readonly limit?: number;
447
- /**
448
- *
449
- * @type {number}
450
- * @memberof PayApiGetPayTradeHistory
451
- */
452
- readonly recvWindow?: number;
374
+ /**
375
+ *
376
+ * @type {number | bigint}
377
+ * @memberof PayApiGetPayTradeHistory
378
+ */
379
+ readonly startTime?: number | bigint;
380
+ /**
381
+ *
382
+ * @type {number | bigint}
383
+ * @memberof PayApiGetPayTradeHistory
384
+ */
385
+ readonly endTime?: number | bigint;
386
+ /**
387
+ * default 100, max 100
388
+ * @type {number | bigint}
389
+ * @memberof PayApiGetPayTradeHistory
390
+ */
391
+ readonly limit?: number | bigint;
392
+ /**
393
+ *
394
+ * @type {number | bigint}
395
+ * @memberof PayApiGetPayTradeHistory
396
+ */
397
+ readonly recvWindow?: number | bigint;
453
398
  }
454
399
  /**
455
400
  * PayApi - object-oriented interface
456
401
  * @class PayApi
457
402
  */
458
403
  declare class PayApi implements PayApiInterface {
459
- private readonly configuration;
460
- private localVarAxiosParamCreator;
461
- constructor(configuration: ConfigurationRestAPI);
462
- /**
463
- * Get Pay Trade History
464
- *
465
- * If startTime and endTime are not sent, the recent 90 days' data will be returned.
466
- * The max interval between startTime and endTime is 90 days.
467
- * Support for querying orders within the last 18 months.
468
- * For payerInfo and receiverInfo,there are different return values in different orderTypes.
469
- * Sender's perspective when orderType is C2C
470
- * payerInfo : binanceId
471
- * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
472
- * Receiver's perspective when orderType is C2C
473
- * payerInfo : name
474
- * receiverInfo : binanceId
475
- * Sender's perspective when orderType is CRYPTO_BOX
476
- * payerInfo : binanceId
477
- * receiverInfo : name(the value is always "Crypto Box")
478
- * Receiver's perspective when orderType is CRYPTO_BOX
479
- * payerInfo : name
480
- * receiverInfo : binanceId
481
- * Sender's perspective when orderType is PAY
482
- * payerInfo : binanceId
483
- * receiverInfo : name
484
- * Receiver's perspective when orderType is PAY
485
- * payerInfo : name
486
- * receiverInfo : binanceId, name
487
- * Sender's perspective when orderType is PAY_REFUND
488
- * payerInfo : binanceId, name
489
- * receiverInfo : name, accountId
490
- * Receiver's perspective when orderType is PAY_REFUND
491
- * payerInfo : name
492
- * receiverInfo : binanceId
493
- * Sender's perspective when orderType is PAYOUT
494
- * payerInfo : binanceId, name
495
- * receiverInfo : name, accountId
496
- * Receiver's perspective when orderType is PAYOUT
497
- * payerInfo : name
498
- * receiverInfo : binanceId
499
- * Receiver's perspective when orderType is CRYPTO_BOX_RF
500
- * payerInfo : name(the value is always "Crypto Box")
501
- * receiverInfo : binanceId
502
- * Sender's perspective when orderType is REMITTANCE
503
- * payerInfo : binanceId
504
- * receiverInfo : name, institutionName, cardNumber, digitalWalletId
505
- *
506
- * Weight: 3000
507
- *
508
- * @summary Get Pay Trade History
509
- * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
510
- * @returns {Promise<RestApiResponse<GetPayTradeHistoryResponse>>}
511
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
512
- * @memberof PayApi
513
- * @see {@link https://developers.binance.com/docs/pay/rest-api/Get-Pay-Trade-History Binance API Documentation}
514
- */
515
- getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
404
+ private readonly configuration;
405
+ private localVarAxiosParamCreator;
406
+ constructor(configuration: ConfigurationRestAPI);
407
+ /**
408
+ * Get Pay Trade History
409
+ *
410
+ * If startTime and endTime are not sent, the recent 90 days' data will be returned.
411
+ * The max interval between startTime and endTime is 90 days.
412
+ * Support for querying orders within the last 18 months.
413
+ * For payerInfo and receiverInfo,there are different return values in different orderTypes.
414
+ * Sender's perspective when orderType is C2C
415
+ * payerInfo : binanceId
416
+ * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
417
+ * Receiver's perspective when orderType is C2C
418
+ * payerInfo : name
419
+ * receiverInfo : binanceId
420
+ * Sender's perspective when orderType is CRYPTO_BOX
421
+ * payerInfo : binanceId
422
+ * receiverInfo : name(the value is always "Crypto Box")
423
+ * Receiver's perspective when orderType is CRYPTO_BOX
424
+ * payerInfo : name
425
+ * receiverInfo : binanceId
426
+ * Sender's perspective when orderType is PAY
427
+ * payerInfo : binanceId
428
+ * receiverInfo : name
429
+ * Receiver's perspective when orderType is PAY
430
+ * payerInfo : name
431
+ * receiverInfo : binanceId, name
432
+ * Sender's perspective when orderType is PAY_REFUND
433
+ * payerInfo : binanceId, name
434
+ * receiverInfo : name, accountId
435
+ * Receiver's perspective when orderType is PAY_REFUND
436
+ * payerInfo : name
437
+ * receiverInfo : binanceId
438
+ * Sender's perspective when orderType is PAYOUT
439
+ * payerInfo : binanceId, name
440
+ * receiverInfo : name, accountId
441
+ * Receiver's perspective when orderType is PAYOUT
442
+ * payerInfo : name
443
+ * receiverInfo : binanceId
444
+ * Receiver's perspective when orderType is CRYPTO_BOX_RF
445
+ * payerInfo : name(the value is always "Crypto Box")
446
+ * receiverInfo : binanceId
447
+ * Sender's perspective when orderType is REMITTANCE
448
+ * payerInfo : binanceId
449
+ * receiverInfo : name, institutionName, cardNumber, digitalWalletId
450
+ *
451
+ * Weight: 3000
452
+ *
453
+ * @summary Get Pay Trade History
454
+ * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
455
+ * @returns {Promise<RestApiResponse<GetPayTradeHistoryResponse>>}
456
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
457
+ * @memberof PayApi
458
+ * @see {@link https://developers.binance.com/docs/pay/rest-api/Get-Pay-Trade-History Binance API Documentation}
459
+ */
460
+ getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
516
461
  }
517
-
518
- /**
519
- * Binance Pay REST API
520
- *
521
- * OpenAPI Specification for the Binance Pay REST API
522
- *
523
- * The version of the OpenAPI document: 1.0.0
524
- *
525
- *
526
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
527
- * https://openapi-generator.tech
528
- * Do not edit the class manually.
529
- */
530
-
462
+ //#endregion
463
+ //#region src/rest-api/rest-api.d.ts
531
464
  declare class RestAPI {
532
- private configuration;
533
- private payApi;
534
- constructor(configuration: ConfigurationRestAPI);
535
- /**
536
- * Generic function to send a request.
537
- * @param endpoint - The API endpoint to call.
538
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
539
- * @param params - Query parameters for the request.
540
- *
541
- * @returns A promise resolving to the response data object.
542
- */
543
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
544
- /**
545
- * Generic function to send a signed request.
546
- * @param endpoint - The API endpoint to call.
547
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
548
- * @param params - Query parameters for the request.
549
- *
550
- * @returns A promise resolving to the response data object.
551
- */
552
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
553
- /**
554
- * Get Pay Trade History
555
- *
556
- * If startTime and endTime are not sent, the recent 90 days' data will be returned.
557
- * The max interval between startTime and endTime is 90 days.
558
- * Support for querying orders within the last 18 months.
559
- * For payerInfo and receiverInfo,there are different return values in different orderTypes.
560
- * Sender's perspective when orderType is C2C
561
- * payerInfo : binanceId
562
- * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
563
- * Receiver's perspective when orderType is C2C
564
- * payerInfo : name
565
- * receiverInfo : binanceId
566
- * Sender's perspective when orderType is CRYPTO_BOX
567
- * payerInfo : binanceId
568
- * receiverInfo : name(the value is always "Crypto Box")
569
- * Receiver's perspective when orderType is CRYPTO_BOX
570
- * payerInfo : name
571
- * receiverInfo : binanceId
572
- * Sender's perspective when orderType is PAY
573
- * payerInfo : binanceId
574
- * receiverInfo : name
575
- * Receiver's perspective when orderType is PAY
576
- * payerInfo : name
577
- * receiverInfo : binanceId, name
578
- * Sender's perspective when orderType is PAY_REFUND
579
- * payerInfo : binanceId, name
580
- * receiverInfo : name, accountId
581
- * Receiver's perspective when orderType is PAY_REFUND
582
- * payerInfo : name
583
- * receiverInfo : binanceId
584
- * Sender's perspective when orderType is PAYOUT
585
- * payerInfo : binanceId, name
586
- * receiverInfo : name, accountId
587
- * Receiver's perspective when orderType is PAYOUT
588
- * payerInfo : name
589
- * receiverInfo : binanceId
590
- * Receiver's perspective when orderType is CRYPTO_BOX_RF
591
- * payerInfo : name(the value is always "Crypto Box")
592
- * receiverInfo : binanceId
593
- * Sender's perspective when orderType is REMITTANCE
594
- * payerInfo : binanceId
595
- * receiverInfo : name, institutionName, cardNumber, digitalWalletId
596
- *
597
- * Weight: 3000
598
- *
599
- * @summary Get Pay Trade History
600
- * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
601
- *
602
- * @returns {Promise<RestApiResponse<GetPayTradeHistoryResponse>>}
603
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
604
- * @see {@link https://developers.binance.com/docs/pay/rest-api/Get-Pay-Trade-History Binance API Documentation}
605
- */
606
- getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
465
+ private configuration;
466
+ private payApi;
467
+ constructor(configuration: ConfigurationRestAPI);
468
+ /**
469
+ * Generic function to send a request.
470
+ * @param endpoint - The API endpoint to call.
471
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
472
+ * @param params - Query parameters for the request.
473
+ *
474
+ * @returns A promise resolving to the response data object.
475
+ */
476
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
477
+ /**
478
+ * Generic function to send a signed request.
479
+ * @param endpoint - The API endpoint to call.
480
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
481
+ * @param params - Query parameters for the request.
482
+ *
483
+ * @returns A promise resolving to the response data object.
484
+ */
485
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
486
+ /**
487
+ * Get Pay Trade History
488
+ *
489
+ * If startTime and endTime are not sent, the recent 90 days' data will be returned.
490
+ * The max interval between startTime and endTime is 90 days.
491
+ * Support for querying orders within the last 18 months.
492
+ * For payerInfo and receiverInfo,there are different return values in different orderTypes.
493
+ * Sender's perspective when orderType is C2C
494
+ * payerInfo : binanceId
495
+ * receiverInfo : name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input)
496
+ * Receiver's perspective when orderType is C2C
497
+ * payerInfo : name
498
+ * receiverInfo : binanceId
499
+ * Sender's perspective when orderType is CRYPTO_BOX
500
+ * payerInfo : binanceId
501
+ * receiverInfo : name(the value is always "Crypto Box")
502
+ * Receiver's perspective when orderType is CRYPTO_BOX
503
+ * payerInfo : name
504
+ * receiverInfo : binanceId
505
+ * Sender's perspective when orderType is PAY
506
+ * payerInfo : binanceId
507
+ * receiverInfo : name
508
+ * Receiver's perspective when orderType is PAY
509
+ * payerInfo : name
510
+ * receiverInfo : binanceId, name
511
+ * Sender's perspective when orderType is PAY_REFUND
512
+ * payerInfo : binanceId, name
513
+ * receiverInfo : name, accountId
514
+ * Receiver's perspective when orderType is PAY_REFUND
515
+ * payerInfo : name
516
+ * receiverInfo : binanceId
517
+ * Sender's perspective when orderType is PAYOUT
518
+ * payerInfo : binanceId, name
519
+ * receiverInfo : name, accountId
520
+ * Receiver's perspective when orderType is PAYOUT
521
+ * payerInfo : name
522
+ * receiverInfo : binanceId
523
+ * Receiver's perspective when orderType is CRYPTO_BOX_RF
524
+ * payerInfo : name(the value is always "Crypto Box")
525
+ * receiverInfo : binanceId
526
+ * Sender's perspective when orderType is REMITTANCE
527
+ * payerInfo : binanceId
528
+ * receiverInfo : name, institutionName, cardNumber, digitalWalletId
529
+ *
530
+ * Weight: 3000
531
+ *
532
+ * @summary Get Pay Trade History
533
+ * @param {GetPayTradeHistoryRequest} requestParameters Request parameters.
534
+ *
535
+ * @returns {Promise<RestApiResponse<GetPayTradeHistoryResponse>>}
536
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
537
+ * @see {@link https://developers.binance.com/docs/pay/rest-api/Get-Pay-Trade-History Binance API Documentation}
538
+ */
539
+ getPayTradeHistory(requestParameters?: GetPayTradeHistoryRequest): Promise<RestApiResponse<GetPayTradeHistoryResponse>>;
607
540
  }
608
-
609
- /**
610
- * Binance Pay REST API
611
- *
612
- * OpenAPI Specification for the Binance Pay REST API
613
- *
614
- * The version of the OpenAPI document: 1.0.0
615
- *
616
- *
617
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
618
- * https://openapi-generator.tech
619
- * Do not edit the class manually.
620
- */
621
-
622
- type index_GetPayTradeHistoryRequest = GetPayTradeHistoryRequest;
623
- type index_GetPayTradeHistoryResponse = GetPayTradeHistoryResponse;
624
- type index_GetPayTradeHistoryResponseDataInner = GetPayTradeHistoryResponseDataInner;
625
- type index_GetPayTradeHistoryResponseDataInnerFundsDetailInner = GetPayTradeHistoryResponseDataInnerFundsDetailInner;
626
- type index_GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner = GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner;
627
- type index_GetPayTradeHistoryResponseDataInnerPayerInfo = GetPayTradeHistoryResponseDataInnerPayerInfo;
628
- type index_GetPayTradeHistoryResponseDataInnerReceiverInfo = GetPayTradeHistoryResponseDataInnerReceiverInfo;
629
- type index_GetPayTradeHistoryResponseDataInnerReceiverInfoExtend = GetPayTradeHistoryResponseDataInnerReceiverInfoExtend;
630
- type index_PayApi = PayApi;
631
- declare const index_PayApi: typeof PayApi;
632
- type index_PayApiInterface = PayApiInterface;
633
- type index_RestAPI = RestAPI;
634
- declare const index_RestAPI: typeof RestAPI;
635
- declare namespace index {
636
- export { type index_GetPayTradeHistoryRequest as GetPayTradeHistoryRequest, type index_GetPayTradeHistoryResponse as GetPayTradeHistoryResponse, type index_GetPayTradeHistoryResponseDataInner as GetPayTradeHistoryResponseDataInner, type index_GetPayTradeHistoryResponseDataInnerFundsDetailInner as GetPayTradeHistoryResponseDataInnerFundsDetailInner, type index_GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner as GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner, type index_GetPayTradeHistoryResponseDataInnerPayerInfo as GetPayTradeHistoryResponseDataInnerPayerInfo, type index_GetPayTradeHistoryResponseDataInnerReceiverInfo as GetPayTradeHistoryResponseDataInnerReceiverInfo, type index_GetPayTradeHistoryResponseDataInnerReceiverInfoExtend as GetPayTradeHistoryResponseDataInnerReceiverInfoExtend, index_PayApi as PayApi, type index_PayApiInterface as PayApiInterface, index_RestAPI as RestAPI };
541
+ declare namespace index_d_exports {
542
+ export { GetPayTradeHistoryRequest, GetPayTradeHistoryResponse, GetPayTradeHistoryResponseDataInner, GetPayTradeHistoryResponseDataInnerFundsDetailInner, GetPayTradeHistoryResponseDataInnerFundsDetailInnerWalletAssetCostInner, GetPayTradeHistoryResponseDataInnerPayerInfo, GetPayTradeHistoryResponseDataInnerReceiverInfo, GetPayTradeHistoryResponseDataInnerReceiverInfoExtend, PayApi, PayApiInterface, RestAPI };
637
543
  }
638
-
544
+ //#endregion
545
+ //#region src/pay.d.ts
639
546
  interface ConfigurationPay {
640
- configurationRestAPI?: ConfigurationRestAPI;
547
+ configurationRestAPI?: ConfigurationRestAPI;
641
548
  }
642
549
  declare class Pay {
643
- restAPI: RestAPI;
644
- constructor(config: ConfigurationPay);
550
+ restAPI: RestAPI;
551
+ constructor(config: ConfigurationPay);
645
552
  }
646
-
647
- export { type ConfigurationPay, Pay, index as PayRestAPI };
553
+ //#endregion
554
+ export { BadRequestError, ConfigurationPay, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, PAY_REST_API_PROD_URL, Pay, index_d_exports as PayRestAPI, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
555
+ //# sourceMappingURL=index.d.ts.map