@finverse/sdk-typescript 0.0.171 → 0.0.173

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
@@ -484,6 +484,19 @@ export declare const AuthChecklistOptionsSubmittedByEnum: {
484
484
  readonly FinverseLink: "FINVERSE_LINK";
485
485
  };
486
486
  export declare type AuthChecklistOptionsSubmittedByEnum = (typeof AuthChecklistOptionsSubmittedByEnum)[keyof typeof AuthChecklistOptionsSubmittedByEnum];
487
+ /**
488
+ *
489
+ * @export
490
+ * @interface AuthorizeMandateRequest
491
+ */
492
+ export interface AuthorizeMandateRequest {
493
+ /**
494
+ * Whether a consent was provided by the enduser to authorize a mandate
495
+ * @type {boolean}
496
+ * @memberof AuthorizeMandateRequest
497
+ */
498
+ enduser_consent: boolean;
499
+ }
487
500
  /**
488
501
  *
489
502
  * @export
@@ -4793,6 +4806,12 @@ export interface PaymentLinkTokenResponse {
4793
4806
  * @memberof PaymentLinkTokenResponse
4794
4807
  */
4795
4808
  link_url: string;
4809
+ /**
4810
+ * The FPS QR code in base64
4811
+ * @type {string}
4812
+ * @memberof PaymentLinkTokenResponse
4813
+ */
4814
+ qr_code?: string;
4796
4815
  /**
4797
4816
  *
4798
4817
  * @type {string}
@@ -6039,6 +6058,14 @@ export interface UserMessage {
6039
6058
  * @export
6040
6059
  */
6041
6060
  export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
6061
+ /**
6062
+ * Allows a customer to authorize a specific mandate
6063
+ * @param {string} mandateId The mandate_id that is being authorized
6064
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
6065
+ * @param {*} [options] Override http request option.
6066
+ * @throws {RequiredError}
6067
+ */
6068
+ authorizeMandate: (mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6042
6069
  /**
6043
6070
  * Cancel Payout Instruction by payout_instruction_id
6044
6071
  * @param {string} payoutInstructionId payout instruction id
@@ -6225,6 +6252,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
6225
6252
  * @export
6226
6253
  */
6227
6254
  export declare const CustomerApiFp: (configuration?: Configuration) => {
6255
+ /**
6256
+ * Allows a customer to authorize a specific mandate
6257
+ * @param {string} mandateId The mandate_id that is being authorized
6258
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
6259
+ * @param {*} [options] Override http request option.
6260
+ * @throws {RequiredError}
6261
+ */
6262
+ authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
6228
6263
  /**
6229
6264
  * Cancel Payout Instruction by payout_instruction_id
6230
6265
  * @param {string} payoutInstructionId payout instruction id
@@ -6411,6 +6446,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
6411
6446
  * @export
6412
6447
  */
6413
6448
  export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6449
+ /**
6450
+ * Allows a customer to authorize a specific mandate
6451
+ * @param {string} mandateId The mandate_id that is being authorized
6452
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
6453
+ * @param {*} [options] Override http request option.
6454
+ * @throws {RequiredError}
6455
+ */
6456
+ authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
6414
6457
  /**
6415
6458
  * Cancel Payout Instruction by payout_instruction_id
6416
6459
  * @param {string} payoutInstructionId payout instruction id
@@ -6598,6 +6641,15 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
6598
6641
  * @interface CustomerApi
6599
6642
  */
6600
6643
  export interface CustomerApiInterface {
6644
+ /**
6645
+ * Allows a customer to authorize a specific mandate
6646
+ * @param {string} mandateId The mandate_id that is being authorized
6647
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
6648
+ * @param {*} [options] Override http request option.
6649
+ * @throws {RequiredError}
6650
+ * @memberof CustomerApiInterface
6651
+ */
6652
+ authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
6601
6653
  /**
6602
6654
  * Cancel Payout Instruction by payout_instruction_id
6603
6655
  * @param {string} payoutInstructionId payout instruction id
@@ -6811,6 +6863,15 @@ export interface CustomerApiInterface {
6811
6863
  * @extends {BaseAPI}
6812
6864
  */
6813
6865
  export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
6866
+ /**
6867
+ * Allows a customer to authorize a specific mandate
6868
+ * @param {string} mandateId The mandate_id that is being authorized
6869
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
6870
+ * @param {*} [options] Override http request option.
6871
+ * @throws {RequiredError}
6872
+ * @memberof CustomerApi
6873
+ */
6874
+ authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
6814
6875
  /**
6815
6876
  * Cancel Payout Instruction by payout_instruction_id
6816
6877
  * @param {string} payoutInstructionId payout instruction id
package/dist/api.js CHANGED
@@ -306,6 +306,41 @@ exports.TransactionLimitsPeriodEnum = {
306
306
  */
307
307
  exports.CustomerApiAxiosParamCreator = function (configuration) {
308
308
  return {
309
+ /**
310
+ * Allows a customer to authorize a specific mandate
311
+ * @param {string} mandateId The mandate_id that is being authorized
312
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ authorizeMandate: (mandateId, authorizeMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
317
+ // verify required parameter 'mandateId' is not null or undefined
318
+ common_1.assertParamExists('authorizeMandate', 'mandateId', mandateId);
319
+ // verify required parameter 'authorizeMandateRequest' is not null or undefined
320
+ common_1.assertParamExists('authorizeMandate', 'authorizeMandateRequest', authorizeMandateRequest);
321
+ const localVarPath = `/mandates/{mandateId}/authorize`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
324
+ let baseOptions;
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ }
328
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
329
+ const localVarHeaderParameter = {};
330
+ const localVarQueryParameter = {};
331
+ // authentication Oauth2 required
332
+ // oauth required
333
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
335
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(authorizeMandateRequest, localVarRequestOptions, configuration);
339
+ return {
340
+ url: common_1.toPathString(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ };
343
+ }),
309
344
  /**
310
345
  * Cancel Payout Instruction by payout_instruction_id
311
346
  * @param {string} payoutInstructionId payout instruction id
@@ -1109,6 +1144,19 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
1109
1144
  exports.CustomerApiFp = function (configuration) {
1110
1145
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
1111
1146
  return {
1147
+ /**
1148
+ * Allows a customer to authorize a specific mandate
1149
+ * @param {string} mandateId The mandate_id that is being authorized
1150
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ authorizeMandate(mandateId, authorizeMandateRequest, options) {
1155
+ return __awaiter(this, void 0, void 0, function* () {
1156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeMandate(mandateId, authorizeMandateRequest, options);
1157
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1158
+ });
1159
+ },
1112
1160
  /**
1113
1161
  * Cancel Payout Instruction by payout_instruction_id
1114
1162
  * @param {string} payoutInstructionId payout instruction id
@@ -1423,6 +1471,18 @@ exports.CustomerApiFp = function (configuration) {
1423
1471
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
1424
1472
  const localVarFp = exports.CustomerApiFp(configuration);
1425
1473
  return {
1474
+ /**
1475
+ * Allows a customer to authorize a specific mandate
1476
+ * @param {string} mandateId The mandate_id that is being authorized
1477
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
1478
+ * @param {*} [options] Override http request option.
1479
+ * @throws {RequiredError}
1480
+ */
1481
+ authorizeMandate(mandateId, authorizeMandateRequest, options) {
1482
+ return localVarFp
1483
+ .authorizeMandate(mandateId, authorizeMandateRequest, options)
1484
+ .then((request) => request(axios, basePath));
1485
+ },
1426
1486
  /**
1427
1487
  * Cancel Payout Instruction by payout_instruction_id
1428
1488
  * @param {string} payoutInstructionId payout instruction id
@@ -1684,6 +1744,19 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1684
1744
  * @extends {BaseAPI}
1685
1745
  */
1686
1746
  class CustomerApi extends base_1.BaseAPI {
1747
+ /**
1748
+ * Allows a customer to authorize a specific mandate
1749
+ * @param {string} mandateId The mandate_id that is being authorized
1750
+ * @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
1751
+ * @param {*} [options] Override http request option.
1752
+ * @throws {RequiredError}
1753
+ * @memberof CustomerApi
1754
+ */
1755
+ authorizeMandate(mandateId, authorizeMandateRequest, options) {
1756
+ return exports.CustomerApiFp(this.configuration)
1757
+ .authorizeMandate(mandateId, authorizeMandateRequest, options)
1758
+ .then((request) => request(this.axios, this.basePath));
1759
+ }
1687
1760
  /**
1688
1761
  * Cancel Payout Instruction by payout_instruction_id
1689
1762
  * @param {string} payoutInstructionId payout instruction id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.171",
3
+ "version": "0.0.173",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/chai": "^4.3.6",
25
- "@types/mocha": "^10.0.1",
25
+ "@types/mocha": "^10.0.2",
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",
28
- "chai": "^4.3.8",
28
+ "chai": "^4.3.9",
29
29
  "mocha": "^10.2.0",
30
30
  "ts-node": "^10.9.1",
31
31
  "typescript": "^3.6.4"