@finverse/sdk-typescript 0.0.259 → 0.0.260

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/api.d.ts CHANGED
@@ -8473,10 +8473,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
8473
8473
  createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8474
8474
  /**
8475
8475
  * Download the balance statement for the ledger (CSV)
8476
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
8477
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
8478
+ * @param {Array<string>} [currencies] The currencies to filter for
8476
8479
  * @param {*} [options] Override http request option.
8477
8480
  * @throws {RequiredError}
8478
8481
  */
8479
- downloadBalanceStatement: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
8482
+ downloadBalanceStatement: (dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8480
8483
  /**
8481
8484
  * Get the FPS QR code
8482
8485
  * @param {*} [options] Override http request option.
@@ -8671,10 +8674,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
8671
8674
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
8672
8675
  /**
8673
8676
  * Download the balance statement for the ledger (CSV)
8677
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
8678
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
8679
+ * @param {Array<string>} [currencies] The currencies to filter for
8674
8680
  * @param {*} [options] Override http request option.
8675
8681
  * @throws {RequiredError}
8676
8682
  */
8677
- downloadBalanceStatement(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadBalanceStatementResponse>>;
8683
+ downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadBalanceStatementResponse>>;
8678
8684
  /**
8679
8685
  * Get the FPS QR code
8680
8686
  * @param {*} [options] Override http request option.
@@ -8869,10 +8875,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
8869
8875
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
8870
8876
  /**
8871
8877
  * Download the balance statement for the ledger (CSV)
8878
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
8879
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
8880
+ * @param {Array<string>} [currencies] The currencies to filter for
8872
8881
  * @param {*} [options] Override http request option.
8873
8882
  * @throws {RequiredError}
8874
8883
  */
8875
- downloadBalanceStatement(options?: any): AxiosPromise<DownloadBalanceStatementResponse>;
8884
+ downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: any): AxiosPromise<DownloadBalanceStatementResponse>;
8876
8885
  /**
8877
8886
  * Get the FPS QR code
8878
8887
  * @param {*} [options] Override http request option.
@@ -9080,11 +9089,14 @@ export interface DefaultApiInterface {
9080
9089
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
9081
9090
  /**
9082
9091
  * Download the balance statement for the ledger (CSV)
9092
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
9093
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
9094
+ * @param {Array<string>} [currencies] The currencies to filter for
9083
9095
  * @param {*} [options] Override http request option.
9084
9096
  * @throws {RequiredError}
9085
9097
  * @memberof DefaultApiInterface
9086
9098
  */
9087
- downloadBalanceStatement(options?: AxiosRequestConfig): AxiosPromise<DownloadBalanceStatementResponse>;
9099
+ downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): AxiosPromise<DownloadBalanceStatementResponse>;
9088
9100
  /**
9089
9101
  * Get the FPS QR code
9090
9102
  * @param {*} [options] Override http request option.
@@ -9305,11 +9317,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
9305
9317
  createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
9306
9318
  /**
9307
9319
  * Download the balance statement for the ledger (CSV)
9320
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
9321
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
9322
+ * @param {Array<string>} [currencies] The currencies to filter for
9308
9323
  * @param {*} [options] Override http request option.
9309
9324
  * @throws {RequiredError}
9310
9325
  * @memberof DefaultApi
9311
9326
  */
9312
- downloadBalanceStatement(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadBalanceStatementResponse>>;
9327
+ downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadBalanceStatementResponse>>;
9313
9328
  /**
9314
9329
  * Get the FPS QR code
9315
9330
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -2388,10 +2388,13 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2388
2388
  }),
2389
2389
  /**
2390
2390
  * Download the balance statement for the ledger (CSV)
2391
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
2392
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
2393
+ * @param {Array<string>} [currencies] The currencies to filter for
2391
2394
  * @param {*} [options] Override http request option.
2392
2395
  * @throws {RequiredError}
2393
2396
  */
2394
- downloadBalanceStatement: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2397
+ downloadBalanceStatement: (dateFrom, dateTo, currencies, options = {}) => __awaiter(this, void 0, void 0, function* () {
2395
2398
  const localVarPath = `/ledger/statement`;
2396
2399
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2397
2400
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2405,6 +2408,17 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
2405
2408
  // authentication Oauth2 required
2406
2409
  // oauth required
2407
2410
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2411
+ if (dateFrom !== undefined) {
2412
+ localVarQueryParameter['date_from'] =
2413
+ dateFrom instanceof Date ? dateFrom.toISOString().substr(0, 10) : dateFrom;
2414
+ }
2415
+ if (dateTo !== undefined) {
2416
+ localVarQueryParameter['date_to'] =
2417
+ dateTo instanceof Date ? dateTo.toISOString().substr(0, 10) : dateTo;
2418
+ }
2419
+ if (currencies) {
2420
+ localVarQueryParameter['currencies'] = currencies.join(base_1.COLLECTION_FORMATS.csv);
2421
+ }
2408
2422
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2409
2423
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2410
2424
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3019,12 +3033,15 @@ exports.DefaultApiFp = function (configuration) {
3019
3033
  },
3020
3034
  /**
3021
3035
  * Download the balance statement for the ledger (CSV)
3036
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
3037
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
3038
+ * @param {Array<string>} [currencies] The currencies to filter for
3022
3039
  * @param {*} [options] Override http request option.
3023
3040
  * @throws {RequiredError}
3024
3041
  */
3025
- downloadBalanceStatement(options) {
3042
+ downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
3026
3043
  return __awaiter(this, void 0, void 0, function* () {
3027
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadBalanceStatement(options);
3044
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadBalanceStatement(dateFrom, dateTo, currencies, options);
3028
3045
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3029
3046
  });
3030
3047
  },
@@ -3321,11 +3338,16 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
3321
3338
  },
3322
3339
  /**
3323
3340
  * Download the balance statement for the ledger (CSV)
3341
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
3342
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
3343
+ * @param {Array<string>} [currencies] The currencies to filter for
3324
3344
  * @param {*} [options] Override http request option.
3325
3345
  * @throws {RequiredError}
3326
3346
  */
3327
- downloadBalanceStatement(options) {
3328
- return localVarFp.downloadBalanceStatement(options).then((request) => request(axios, basePath));
3347
+ downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
3348
+ return localVarFp
3349
+ .downloadBalanceStatement(dateFrom, dateTo, currencies, options)
3350
+ .then((request) => request(axios, basePath));
3329
3351
  },
3330
3352
  /**
3331
3353
  * Get the FPS QR code
@@ -3616,13 +3638,16 @@ class DefaultApi extends base_1.BaseAPI {
3616
3638
  }
3617
3639
  /**
3618
3640
  * Download the balance statement for the ledger (CSV)
3641
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
3642
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
3643
+ * @param {Array<string>} [currencies] The currencies to filter for
3619
3644
  * @param {*} [options] Override http request option.
3620
3645
  * @throws {RequiredError}
3621
3646
  * @memberof DefaultApi
3622
3647
  */
3623
- downloadBalanceStatement(options) {
3648
+ downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
3624
3649
  return exports.DefaultApiFp(this.configuration)
3625
- .downloadBalanceStatement(options)
3650
+ .downloadBalanceStatement(dateFrom, dateTo, currencies, options)
3626
3651
  .then((request) => request(this.axios, this.basePath));
3627
3652
  }
3628
3653
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.259",
3
+ "version": "0.0.260",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [