@finverse/sdk-typescript 0.0.123 → 0.0.124

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +107 -0
  2. package/dist/api.js +124 -0
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1751,6 +1751,31 @@ export interface GetPaymentInstructionsResponse {
1751
1751
  */
1752
1752
  payment_instruction?: PaymentInstruction;
1753
1753
  }
1754
+ /**
1755
+ *
1756
+ * @export
1757
+ * @interface GetPaymentUserResponse
1758
+ */
1759
+ export interface GetPaymentUserResponse {
1760
+ /**
1761
+ *
1762
+ * @type {string}
1763
+ * @memberof GetPaymentUserResponse
1764
+ */
1765
+ payment_user_id: string;
1766
+ /**
1767
+ *
1768
+ * @type {string}
1769
+ * @memberof GetPaymentUserResponse
1770
+ */
1771
+ customer_app_id: string;
1772
+ /**
1773
+ *
1774
+ * @type {boolean}
1775
+ * @memberof GetPaymentUserResponse
1776
+ */
1777
+ autopay_consent: boolean;
1778
+ }
1754
1779
  /**
1755
1780
  *
1756
1781
  * @export
@@ -4393,6 +4418,19 @@ export declare const SenderDetailDetailsTypeEnum: {
4393
4418
  readonly HkCertificateOfIncorporation: "HK_CERTIFICATE_OF_INCORPORATION";
4394
4419
  };
4395
4420
  export declare type SenderDetailDetailsTypeEnum = (typeof SenderDetailDetailsTypeEnum)[keyof typeof SenderDetailDetailsTypeEnum];
4421
+ /**
4422
+ *
4423
+ * @export
4424
+ * @interface SetAutopayConsentRequest
4425
+ */
4426
+ export interface SetAutopayConsentRequest {
4427
+ /**
4428
+ *
4429
+ * @type {boolean}
4430
+ * @memberof SetAutopayConsentRequest
4431
+ */
4432
+ autopay_consent: boolean;
4433
+ }
4396
4434
  /**
4397
4435
  *
4398
4436
  * @export
@@ -5701,6 +5739,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
5701
5739
  * @throws {RequiredError}
5702
5740
  */
5703
5741
  createPaymentLinkMandate: (createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5742
+ /**
5743
+ * Get sender payment user for mandate
5744
+ * @param {*} [options] Override http request option.
5745
+ * @throws {RequiredError}
5746
+ */
5747
+ getSenderPaymentUser: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5704
5748
  /**
5705
5749
  * List mandates
5706
5750
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5732,6 +5776,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
5732
5776
  * @throws {RequiredError}
5733
5777
  */
5734
5778
  listPayments: (dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5779
+ /**
5780
+ * Set autopay consent for payment user
5781
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
5782
+ * @param {*} [options] Override http request option.
5783
+ * @throws {RequiredError}
5784
+ */
5785
+ setAutopayConsent: (setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5735
5786
  };
5736
5787
  /**
5737
5788
  * DefaultApi - functional programming interface
@@ -5751,6 +5802,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
5751
5802
  * @throws {RequiredError}
5752
5803
  */
5753
5804
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentLinkMandateResponse>>;
5805
+ /**
5806
+ * Get sender payment user for mandate
5807
+ * @param {*} [options] Override http request option.
5808
+ * @throws {RequiredError}
5809
+ */
5810
+ getSenderPaymentUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentUserResponse>>;
5754
5811
  /**
5755
5812
  * List mandates
5756
5813
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5782,6 +5839,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
5782
5839
  * @throws {RequiredError}
5783
5840
  */
5784
5841
  listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponse>>;
5842
+ /**
5843
+ * Set autopay consent for payment user
5844
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
5845
+ * @param {*} [options] Override http request option.
5846
+ * @throws {RequiredError}
5847
+ */
5848
+ setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5785
5849
  };
5786
5850
  /**
5787
5851
  * DefaultApi - factory interface
@@ -5801,6 +5865,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5801
5865
  * @throws {RequiredError}
5802
5866
  */
5803
5867
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: any): AxiosPromise<CreatePaymentLinkMandateResponse>;
5868
+ /**
5869
+ * Get sender payment user for mandate
5870
+ * @param {*} [options] Override http request option.
5871
+ * @throws {RequiredError}
5872
+ */
5873
+ getSenderPaymentUser(options?: any): AxiosPromise<GetPaymentUserResponse>;
5804
5874
  /**
5805
5875
  * List mandates
5806
5876
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5832,6 +5902,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5832
5902
  * @throws {RequiredError}
5833
5903
  */
5834
5904
  listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: any): AxiosPromise<ListPaymentsResponse>;
5905
+ /**
5906
+ * Set autopay consent for payment user
5907
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
5908
+ * @param {*} [options] Override http request option.
5909
+ * @throws {RequiredError}
5910
+ */
5911
+ setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: any): AxiosPromise<void>;
5835
5912
  };
5836
5913
  /**
5837
5914
  * DefaultApi - interface
@@ -5854,6 +5931,13 @@ export interface DefaultApiInterface {
5854
5931
  * @memberof DefaultApiInterface
5855
5932
  */
5856
5933
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentLinkMandateResponse>;
5934
+ /**
5935
+ * Get sender payment user for mandate
5936
+ * @param {*} [options] Override http request option.
5937
+ * @throws {RequiredError}
5938
+ * @memberof DefaultApiInterface
5939
+ */
5940
+ getSenderPaymentUser(options?: AxiosRequestConfig): AxiosPromise<GetPaymentUserResponse>;
5857
5941
  /**
5858
5942
  * List mandates
5859
5943
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5887,6 +5971,14 @@ export interface DefaultApiInterface {
5887
5971
  * @memberof DefaultApiInterface
5888
5972
  */
5889
5973
  listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): AxiosPromise<ListPaymentsResponse>;
5974
+ /**
5975
+ * Set autopay consent for payment user
5976
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
5977
+ * @param {*} [options] Override http request option.
5978
+ * @throws {RequiredError}
5979
+ * @memberof DefaultApiInterface
5980
+ */
5981
+ setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
5890
5982
  }
5891
5983
  /**
5892
5984
  * DefaultApi - object-oriented interface
@@ -5910,6 +6002,13 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
5910
6002
  * @memberof DefaultApi
5911
6003
  */
5912
6004
  createPaymentLinkMandate(createPaymentLinkMandateRequest: CreatePaymentLinkMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentLinkMandateResponse>>;
6005
+ /**
6006
+ * Get sender payment user for mandate
6007
+ * @param {*} [options] Override http request option.
6008
+ * @throws {RequiredError}
6009
+ * @memberof DefaultApi
6010
+ */
6011
+ getSenderPaymentUser(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentUserResponse>>;
5913
6012
  /**
5914
6013
  * List mandates
5915
6014
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5943,6 +6042,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
5943
6042
  * @memberof DefaultApi
5944
6043
  */
5945
6044
  listPayments(dateFrom?: string, dateTo?: string, statuses?: Array<'AUTHORIZATION_REQUIRED' | 'AUTHORIZING' | 'PROCESSING' | 'SUBMITTED' | 'EXECUTED' | 'FAILED' | 'REVOKED'>, senderType?: 'INDIVIDUAL' | 'BUSINESS', userId?: string, institutionId?: string, paymentType?: 'MANDATE' | 'SINGLE', mandateId?: string, currency?: string, offset?: number, limit?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponse>>;
6045
+ /**
6046
+ * Set autopay consent for payment user
6047
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
6048
+ * @param {*} [options] Override http request option.
6049
+ * @throws {RequiredError}
6050
+ * @memberof DefaultApi
6051
+ */
6052
+ setAutopayConsent(setAutopayConsentRequest: SetAutopayConsentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
5946
6053
  }
5947
6054
  /**
5948
6055
  * LinkApi - axios parameter creator
package/dist/api.js CHANGED
@@ -1629,6 +1629,33 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
1629
1629
  options: localVarRequestOptions,
1630
1630
  };
1631
1631
  }),
1632
+ /**
1633
+ * Get sender payment user for mandate
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ getSenderPaymentUser: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1638
+ const localVarPath = `/mandates/payment_user/sender`;
1639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1640
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1641
+ let baseOptions;
1642
+ if (configuration) {
1643
+ baseOptions = configuration.baseOptions;
1644
+ }
1645
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1646
+ const localVarHeaderParameter = {};
1647
+ const localVarQueryParameter = {};
1648
+ // authentication Oauth2 required
1649
+ // oauth required
1650
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1651
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1653
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1654
+ return {
1655
+ url: common_1.toPathString(localVarUrlObj),
1656
+ options: localVarRequestOptions,
1657
+ };
1658
+ }),
1632
1659
  /**
1633
1660
  * List mandates
1634
1661
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -1763,6 +1790,38 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
1763
1790
  options: localVarRequestOptions,
1764
1791
  };
1765
1792
  }),
1793
+ /**
1794
+ * Set autopay consent for payment user
1795
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
1796
+ * @param {*} [options] Override http request option.
1797
+ * @throws {RequiredError}
1798
+ */
1799
+ setAutopayConsent: (setAutopayConsentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1800
+ // verify required parameter 'setAutopayConsentRequest' is not null or undefined
1801
+ common_1.assertParamExists('setAutopayConsent', 'setAutopayConsentRequest', setAutopayConsentRequest);
1802
+ const localVarPath = `/mandates/payment_user/autopay`;
1803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1804
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1805
+ let baseOptions;
1806
+ if (configuration) {
1807
+ baseOptions = configuration.baseOptions;
1808
+ }
1809
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1810
+ const localVarHeaderParameter = {};
1811
+ const localVarQueryParameter = {};
1812
+ // authentication Oauth2 required
1813
+ // oauth required
1814
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1815
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1816
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1817
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1818
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1819
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(setAutopayConsentRequest, localVarRequestOptions, configuration);
1820
+ return {
1821
+ url: common_1.toPathString(localVarUrlObj),
1822
+ options: localVarRequestOptions,
1823
+ };
1824
+ }),
1766
1825
  };
1767
1826
  };
1768
1827
  /**
@@ -1795,6 +1854,17 @@ exports.DefaultApiFp = function (configuration) {
1795
1854
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1796
1855
  });
1797
1856
  },
1857
+ /**
1858
+ * Get sender payment user for mandate
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ */
1862
+ getSenderPaymentUser(options) {
1863
+ return __awaiter(this, void 0, void 0, function* () {
1864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSenderPaymentUser(options);
1865
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1866
+ });
1867
+ },
1798
1868
  /**
1799
1869
  * List mandates
1800
1870
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -1836,6 +1906,18 @@ exports.DefaultApiFp = function (configuration) {
1836
1906
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1837
1907
  });
1838
1908
  },
1909
+ /**
1910
+ * Set autopay consent for payment user
1911
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
1912
+ * @param {*} [options] Override http request option.
1913
+ * @throws {RequiredError}
1914
+ */
1915
+ setAutopayConsent(setAutopayConsentRequest, options) {
1916
+ return __awaiter(this, void 0, void 0, function* () {
1917
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutopayConsent(setAutopayConsentRequest, options);
1918
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1919
+ });
1920
+ },
1839
1921
  };
1840
1922
  };
1841
1923
  /**
@@ -1864,6 +1946,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
1864
1946
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
1865
1947
  .then((request) => request(axios, basePath));
1866
1948
  },
1949
+ /**
1950
+ * Get sender payment user for mandate
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ getSenderPaymentUser(options) {
1955
+ return localVarFp.getSenderPaymentUser(options).then((request) => request(axios, basePath));
1956
+ },
1867
1957
  /**
1868
1958
  * List mandates
1869
1959
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -1903,6 +1993,17 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
1903
1993
  .listPayments(dateFrom, dateTo, statuses, senderType, userId, institutionId, paymentType, mandateId, currency, offset, limit, options)
1904
1994
  .then((request) => request(axios, basePath));
1905
1995
  },
1996
+ /**
1997
+ * Set autopay consent for payment user
1998
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ setAutopayConsent(setAutopayConsentRequest, options) {
2003
+ return localVarFp
2004
+ .setAutopayConsent(setAutopayConsentRequest, options)
2005
+ .then((request) => request(axios, basePath));
2006
+ },
1906
2007
  };
1907
2008
  };
1908
2009
  /**
@@ -1935,6 +2036,17 @@ class DefaultApi extends base_1.BaseAPI {
1935
2036
  .createPaymentLinkMandate(createPaymentLinkMandateRequest, options)
1936
2037
  .then((request) => request(this.axios, this.basePath));
1937
2038
  }
2039
+ /**
2040
+ * Get sender payment user for mandate
2041
+ * @param {*} [options] Override http request option.
2042
+ * @throws {RequiredError}
2043
+ * @memberof DefaultApi
2044
+ */
2045
+ getSenderPaymentUser(options) {
2046
+ return exports.DefaultApiFp(this.configuration)
2047
+ .getSenderPaymentUser(options)
2048
+ .then((request) => request(this.axios, this.basePath));
2049
+ }
1938
2050
  /**
1939
2051
  * List mandates
1940
2052
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -1976,6 +2088,18 @@ class DefaultApi extends base_1.BaseAPI {
1976
2088
  .listPayments(dateFrom, dateTo, statuses, senderType, userId, institutionId, paymentType, mandateId, currency, offset, limit, options)
1977
2089
  .then((request) => request(this.axios, this.basePath));
1978
2090
  }
2091
+ /**
2092
+ * Set autopay consent for payment user
2093
+ * @param {SetAutopayConsentRequest} setAutopayConsentRequest
2094
+ * @param {*} [options] Override http request option.
2095
+ * @throws {RequiredError}
2096
+ * @memberof DefaultApi
2097
+ */
2098
+ setAutopayConsent(setAutopayConsentRequest, options) {
2099
+ return exports.DefaultApiFp(this.configuration)
2100
+ .setAutopayConsent(setAutopayConsentRequest, options)
2101
+ .then((request) => request(this.axios, this.basePath));
2102
+ }
1979
2103
  }
1980
2104
  exports.DefaultApi = DefaultApi;
1981
2105
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [