@finverse/sdk-typescript 0.0.278 → 0.0.280

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
@@ -5224,6 +5224,12 @@ export interface PaymentDetailsReferences {
5224
5224
  * @memberof PaymentDetailsReferences
5225
5225
  */
5226
5226
  finverse_transaction_reference?: string;
5227
+ /**
5228
+ *
5229
+ * @type {string}
5230
+ * @memberof PaymentDetailsReferences
5231
+ */
5232
+ dda_reference?: string;
5227
5233
  }
5228
5234
  /**
5229
5235
  *
@@ -7488,6 +7494,21 @@ export declare const TransactionLimitsPeriodEnum: {
7488
7494
  readonly Yearly: "YEARLY";
7489
7495
  };
7490
7496
  export declare type TransactionLimitsPeriodEnum = (typeof TransactionLimitsPeriodEnum)[keyof typeof TransactionLimitsPeriodEnum];
7497
+ /**
7498
+ *
7499
+ * @export
7500
+ * @interface UpdatePaymentRequest
7501
+ */
7502
+ export interface UpdatePaymentRequest {
7503
+ /**
7504
+ *
7505
+ * @type {{ [key: string]: string; }}
7506
+ * @memberof UpdatePaymentRequest
7507
+ */
7508
+ metadata?: {
7509
+ [key: string]: string;
7510
+ };
7511
+ }
7491
7512
  /**
7492
7513
  *
7493
7514
  * @export
@@ -7832,6 +7853,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
7832
7853
  * @throws {RequiredError}
7833
7854
  */
7834
7855
  submitAuthChecklist: (submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7856
+ /**
7857
+ * Update payment
7858
+ * @param {string} paymentId payment id
7859
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
7860
+ * @param {*} [options] Override http request option.
7861
+ * @throws {RequiredError}
7862
+ */
7863
+ updatePayment: (paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
7835
7864
  /**
7836
7865
  * Update the status of a test manual payment
7837
7866
  * @param {string} paymentId The test payment ID
@@ -8012,6 +8041,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
8012
8041
  * @throws {RequiredError}
8013
8042
  */
8014
8043
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
8044
+ /**
8045
+ * Update payment
8046
+ * @param {string} paymentId payment id
8047
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8048
+ * @param {*} [options] Override http request option.
8049
+ * @throws {RequiredError}
8050
+ */
8051
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponse>>;
8015
8052
  /**
8016
8053
  * Update the status of a test manual payment
8017
8054
  * @param {string} paymentId The test payment ID
@@ -8192,6 +8229,14 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
8192
8229
  * @throws {RequiredError}
8193
8230
  */
8194
8231
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
8232
+ /**
8233
+ * Update payment
8234
+ * @param {string} paymentId payment id
8235
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8236
+ * @param {*} [options] Override http request option.
8237
+ * @throws {RequiredError}
8238
+ */
8239
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: any): AxiosPromise<PaymentResponse>;
8195
8240
  /**
8196
8241
  * Update the status of a test manual payment
8197
8242
  * @param {string} paymentId The test payment ID
@@ -8396,6 +8441,15 @@ export interface CustomerApiInterface {
8396
8441
  * @memberof CustomerApiInterface
8397
8442
  */
8398
8443
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
8444
+ /**
8445
+ * Update payment
8446
+ * @param {string} paymentId payment id
8447
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8448
+ * @param {*} [options] Override http request option.
8449
+ * @throws {RequiredError}
8450
+ * @memberof CustomerApiInterface
8451
+ */
8452
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentResponse>;
8399
8453
  /**
8400
8454
  * Update the status of a test manual payment
8401
8455
  * @param {string} paymentId The test payment ID
@@ -8602,6 +8656,15 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
8602
8656
  * @memberof CustomerApi
8603
8657
  */
8604
8658
  submitAuthChecklist(submitAuthChecklistRequest: SubmitAuthChecklistRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
8659
+ /**
8660
+ * Update payment
8661
+ * @param {string} paymentId payment id
8662
+ * @param {UpdatePaymentRequest} updatePaymentRequest request body for updating payment
8663
+ * @param {*} [options] Override http request option.
8664
+ * @throws {RequiredError}
8665
+ * @memberof CustomerApi
8666
+ */
8667
+ updatePayment(paymentId: string, updatePaymentRequest: UpdatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentResponse>>;
8605
8668
  /**
8606
8669
  * Update the status of a test manual payment
8607
8670
  * @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.278",
3
+ "version": "0.0.280",
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
  },