@finverse/sdk-typescript 0.0.277 → 0.0.279

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
@@ -6652,7 +6652,7 @@ export interface RapidstorMetadataRequest {
6652
6652
  * @type {string}
6653
6653
  * @memberof RapidstorMetadataRequest
6654
6654
  */
6655
- account_token?: string;
6655
+ account_token: string;
6656
6656
  }
6657
6657
  /**
6658
6658
  *
@@ -7488,6 +7488,21 @@ export declare const TransactionLimitsPeriodEnum: {
7488
7488
  readonly Yearly: "YEARLY";
7489
7489
  };
7490
7490
  export declare type TransactionLimitsPeriodEnum = (typeof TransactionLimitsPeriodEnum)[keyof typeof TransactionLimitsPeriodEnum];
7491
+ /**
7492
+ *
7493
+ * @export
7494
+ * @interface UpdatePaymentRequest
7495
+ */
7496
+ export interface UpdatePaymentRequest {
7497
+ /**
7498
+ *
7499
+ * @type {{ [key: string]: string; }}
7500
+ * @memberof UpdatePaymentRequest
7501
+ */
7502
+ metadata?: {
7503
+ [key: string]: string;
7504
+ };
7505
+ }
7491
7506
  /**
7492
7507
  *
7493
7508
  * @export
@@ -7832,6 +7847,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
7832
7847
  * @throws {RequiredError}
7833
7848
  */
7834
7849
  submitAuthChecklist: (submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7850
+ /**
7851
+ * Update payment
7852
+ * @param {string} paymentId payment id
7853
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
7854
+ * @param {*} [options] Override http request option.
7855
+ * @throws {RequiredError}
7856
+ */
7857
+ updatePayment: (paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7835
7858
  /**
7836
7859
  * Update the status of a test manual payment
7837
7860
  * @param {string} paymentId The test payment ID
@@ -8012,6 +8035,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
8012
8035
  * @throws {RequiredError}
8013
8036
  */
8014
8037
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
8038
+ /**
8039
+ * Update payment
8040
+ * @param {string} paymentId payment id
8041
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8042
+ * @param {*} [options] Override http request option.
8043
+ * @throws {RequiredError}
8044
+ */
8045
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponse>>;
8015
8046
  /**
8016
8047
  * Update the status of a test manual payment
8017
8048
  * @param {string} paymentId The test payment ID
@@ -8192,6 +8223,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
8192
8223
  * @throws {RequiredError}
8193
8224
  */
8194
8225
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
8226
+ /**
8227
+ * Update payment
8228
+ * @param {string} paymentId payment id
8229
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8230
+ * @param {*} [options] Override http request option.
8231
+ * @throws {RequiredError}
8232
+ */
8233
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: any): AxiosPromise<PaymentResponse>;
8195
8234
  /**
8196
8235
  * Update the status of a test manual payment
8197
8236
  * @param {string} paymentId The test payment ID
@@ -8396,6 +8435,15 @@ export interface CustomerApiInterface {
8396
8435
  * @memberof CustomerApiInterface
8397
8436
  */
8398
8437
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
8438
+ /**
8439
+ * Update payment
8440
+ * @param {string} paymentId payment id
8441
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8442
+ * @param {*} [options] Override http request option.
8443
+ * @throws {RequiredError}
8444
+ * @memberof CustomerApiInterface
8445
+ */
8446
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentResponse>;
8399
8447
  /**
8400
8448
  * Update the status of a test manual payment
8401
8449
  * @param {string} paymentId The test payment ID
@@ -8602,6 +8650,15 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
8602
8650
  * @memberof CustomerApi
8603
8651
  */
8604
8652
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
8653
+ /**
8654
+ * Update payment
8655
+ * @param {string} paymentId payment id
8656
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8657
+ * @param {*} [options] Override http request option.
8658
+ * @throws {RequiredError}
8659
+ * @memberof CustomerApi
8660
+ */
8661
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentResponse>>;
8605
8662
  /**
8606
8663
  * Update the status of a test manual payment
8607
8664
  * @param {string} paymentId The test payment ID
package/dist/api.js CHANGED
@@ -1140,6 +1140,41 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
1140
1140
  options: localVarRequestOptions,
1141
1141
  };
1142
1142
  }),
1143
+ /**
1144
+ * Update payment
1145
+ * @param {string} paymentId payment id
1146
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ updatePayment: (paymentId, updatePaymentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1151
+ // verify required parameter 'paymentId' is not null or undefined
1152
+ common_1.assertParamExists('updatePayment', 'paymentId', paymentId);
1153
+ // verify required parameter 'updatePaymentRequest' is not null or undefined
1154
+ common_1.assertParamExists('updatePayment', 'updatePaymentRequest', updatePaymentRequest);
1155
+ const localVarPath = `/payments/{paymentId}`.replace(`{${'paymentId'}}`, encodeURIComponent(String(paymentId)));
1156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1158
+ let baseOptions;
1159
+ if (configuration) {
1160
+ baseOptions = configuration.baseOptions;
1161
+ }
1162
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1163
+ const localVarHeaderParameter = {};
1164
+ const localVarQueryParameter = {};
1165
+ // authentication Oauth2 required
1166
+ // oauth required
1167
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1168
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1169
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1171
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1172
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePaymentRequest, localVarRequestOptions, configuration);
1173
+ return {
1174
+ url: common_1.toPathString(localVarUrlObj),
1175
+ options: localVarRequestOptions,
1176
+ };
1177
+ }),
1143
1178
  /**
1144
1179
  * Update the status of a test manual payment
1145
1180
  * @param {string} paymentId The test payment ID
@@ -1465,6 +1500,19 @@ exports.CustomerApiFp = function (configuration) {
1465
1500
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1466
1501
  });
1467
1502
  },
1503
+ /**
1504
+ * Update payment
1505
+ * @param {string} paymentId payment id
1506
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ updatePayment(paymentId, updatePaymentRequest, options) {
1511
+ return __awaiter(this, void 0, void 0, function* () {
1512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePayment(paymentId, updatePaymentRequest, options);
1513
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1514
+ });
1515
+ },
1468
1516
  /**
1469
1517
  * Update the status of a test manual payment
1470
1518
  * @param {string} paymentId The test payment ID
@@ -1719,6 +1767,18 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1719
1767
  .submitAuthChecklist(submitAuthChecklistRequest, options)
1720
1768
  .then((request) => request(axios, basePath));
1721
1769
  },
1770
+ /**
1771
+ * Update payment
1772
+ * @param {string} paymentId payment id
1773
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ */
1777
+ updatePayment(paymentId, updatePaymentRequest, options) {
1778
+ return localVarFp
1779
+ .updatePayment(paymentId, updatePaymentRequest, options)
1780
+ .then((request) => request(axios, basePath));
1781
+ },
1722
1782
  /**
1723
1783
  * Update the status of a test manual payment
1724
1784
  * @param {string} paymentId The test payment ID
@@ -2021,6 +2081,19 @@ class CustomerApi extends base_1.BaseAPI {
2021
2081
  .submitAuthChecklist(submitAuthChecklistRequest, options)
2022
2082
  .then((request) => request(this.axios, this.basePath));
2023
2083
  }
2084
+ /**
2085
+ * Update payment
2086
+ * @param {string} paymentId payment id
2087
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
2088
+ * @param {*} [options] Override http request option.
2089
+ * @throws {RequiredError}
2090
+ * @memberof CustomerApi
2091
+ */
2092
+ updatePayment(paymentId, updatePaymentRequest, options) {
2093
+ return exports.CustomerApiFp(this.configuration)
2094
+ .updatePayment(paymentId, updatePaymentRequest, options)
2095
+ .then((request) => request(this.axios, this.basePath));
2096
+ }
2024
2097
  /**
2025
2098
  * Update the status of a test manual payment
2026
2099
  * @param {string} paymentId The test payment ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.277",
3
+ "version": "0.0.279",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",
28
28
  "chai": "^5.1.2",
29
- "mocha": "^11.0.1",
29
+ "mocha": "^11.1.0",
30
30
  "ts-node": "^10.9.2",
31
31
  "typescript": "^3.6.4"
32
32
  },