@finverse/sdk-typescript 0.0.25 → 0.0.28

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 +25 -107
  2. package/dist/api.js +1 -168
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1806,6 +1806,12 @@ export interface LoginIdentity {
1806
1806
  * @memberof LoginIdentity
1807
1807
  */
1808
1808
  webhook?: string;
1809
+ /**
1810
+ *
1811
+ * @type {string}
1812
+ * @memberof LoginIdentity
1813
+ */
1814
+ session_status?: string;
1809
1815
  /**
1810
1816
  *
1811
1817
  * @type {string}
@@ -2013,6 +2019,19 @@ export interface OtherInfo {
2013
2019
  */
2014
2020
  bank_code?: string;
2015
2021
  }
2022
+ /**
2023
+ *
2024
+ * @export
2025
+ * @interface PaymentAccount
2026
+ */
2027
+ export interface PaymentAccount {
2028
+ /**
2029
+ * The raw value for the account the user selected when making payment request
2030
+ * @type {string}
2031
+ * @memberof PaymentAccount
2032
+ */
2033
+ raw?: string;
2034
+ }
2016
2035
  /**
2017
2036
  *
2018
2037
  * @export
@@ -2104,6 +2123,12 @@ export interface PaymentInstruction {
2104
2123
  * @memberof PaymentInstruction
2105
2124
  */
2106
2125
  sender_name?: string;
2126
+ /**
2127
+ *
2128
+ * @type {PaymentAccount}
2129
+ * @memberof PaymentInstruction
2130
+ */
2131
+ sender_account?: PaymentAccount;
2107
2132
  /**
2108
2133
  * The sender account Id
2109
2134
  * @type {string}
@@ -3707,113 +3732,6 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
3707
3732
  */
3708
3733
  refreshLoginIdentity(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
3709
3734
  }
3710
- /**
3711
- * PaymentApi - axios parameter creator
3712
- * @export
3713
- */
3714
- export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
3715
- /**
3716
- * Create a new payment instruction to be used when linking to perform new payment
3717
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
3718
- * @param {*} [options] Override http request option.
3719
- * @throws {RequiredError}
3720
- */
3721
- createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3722
- /**
3723
- * Get payment instructions by payment_instruction_id
3724
- * @param {string} paymentInstructionId The id of a payment instruction
3725
- * @param {*} [options] Override http request option.
3726
- * @throws {RequiredError}
3727
- */
3728
- getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3729
- };
3730
- /**
3731
- * PaymentApi - functional programming interface
3732
- * @export
3733
- */
3734
- export declare const PaymentApiFp: (configuration?: Configuration) => {
3735
- /**
3736
- * Create a new payment instruction to be used when linking to perform new payment
3737
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
3738
- * @param {*} [options] Override http request option.
3739
- * @throws {RequiredError}
3740
- */
3741
- createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
3742
- /**
3743
- * Get payment instructions by payment_instruction_id
3744
- * @param {string} paymentInstructionId The id of a payment instruction
3745
- * @param {*} [options] Override http request option.
3746
- * @throws {RequiredError}
3747
- */
3748
- getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
3749
- };
3750
- /**
3751
- * PaymentApi - factory interface
3752
- * @export
3753
- */
3754
- export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3755
- /**
3756
- * Create a new payment instruction to be used when linking to perform new payment
3757
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
3758
- * @param {*} [options] Override http request option.
3759
- * @throws {RequiredError}
3760
- */
3761
- createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
3762
- /**
3763
- * Get payment instructions by payment_instruction_id
3764
- * @param {string} paymentInstructionId The id of a payment instruction
3765
- * @param {*} [options] Override http request option.
3766
- * @throws {RequiredError}
3767
- */
3768
- getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
3769
- };
3770
- /**
3771
- * PaymentApi - interface
3772
- * @export
3773
- * @interface PaymentApi
3774
- */
3775
- export interface PaymentApiInterface {
3776
- /**
3777
- * Create a new payment instruction to be used when linking to perform new payment
3778
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
3779
- * @param {*} [options] Override http request option.
3780
- * @throws {RequiredError}
3781
- * @memberof PaymentApiInterface
3782
- */
3783
- createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
3784
- /**
3785
- * Get payment instructions by payment_instruction_id
3786
- * @param {string} paymentInstructionId The id of a payment instruction
3787
- * @param {*} [options] Override http request option.
3788
- * @throws {RequiredError}
3789
- * @memberof PaymentApiInterface
3790
- */
3791
- getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
3792
- }
3793
- /**
3794
- * PaymentApi - object-oriented interface
3795
- * @export
3796
- * @class PaymentApi
3797
- * @extends {BaseAPI}
3798
- */
3799
- export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
3800
- /**
3801
- * Create a new payment instruction to be used when linking to perform new payment
3802
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
3803
- * @param {*} [options] Override http request option.
3804
- * @throws {RequiredError}
3805
- * @memberof PaymentApi
3806
- */
3807
- createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
3808
- /**
3809
- * Get payment instructions by payment_instruction_id
3810
- * @param {string} paymentInstructionId The id of a payment instruction
3811
- * @param {*} [options] Override http request option.
3812
- * @throws {RequiredError}
3813
- * @memberof PaymentApi
3814
- */
3815
- getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
3816
- }
3817
3735
  /**
3818
3736
  * PublicApi - axios parameter creator
3819
3737
  * @export
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
25
+ exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -1991,173 +1991,6 @@ class LoginIdentityApi extends base_1.BaseAPI {
1991
1991
  }
1992
1992
  }
1993
1993
  exports.LoginIdentityApi = LoginIdentityApi;
1994
- /**
1995
- * PaymentApi - axios parameter creator
1996
- * @export
1997
- */
1998
- exports.PaymentApiAxiosParamCreator = function (configuration) {
1999
- return {
2000
- /**
2001
- * Create a new payment instruction to be used when linking to perform new payment
2002
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
2003
- * @param {*} [options] Override http request option.
2004
- * @throws {RequiredError}
2005
- */
2006
- createPaymentInstruction: (paymentInstruction, options = {}) => __awaiter(this, void 0, void 0, function* () {
2007
- // verify required parameter 'paymentInstruction' is not null or undefined
2008
- common_1.assertParamExists('createPaymentInstruction', 'paymentInstruction', paymentInstruction);
2009
- const localVarPath = `/payments/instruction`;
2010
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2011
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2012
- let baseOptions;
2013
- if (configuration) {
2014
- baseOptions = configuration.baseOptions;
2015
- }
2016
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2017
- const localVarHeaderParameter = {};
2018
- const localVarQueryParameter = {};
2019
- // authentication Oauth2 required
2020
- // oauth required
2021
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2022
- localVarHeaderParameter['Content-Type'] = 'application/json';
2023
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2024
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2025
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2026
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(paymentInstruction, localVarRequestOptions, configuration);
2027
- return {
2028
- url: common_1.toPathString(localVarUrlObj),
2029
- options: localVarRequestOptions,
2030
- };
2031
- }),
2032
- /**
2033
- * Get payment instructions by payment_instruction_id
2034
- * @param {string} paymentInstructionId The id of a payment instruction
2035
- * @param {*} [options] Override http request option.
2036
- * @throws {RequiredError}
2037
- */
2038
- getPaymentInstruction: (paymentInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2039
- // verify required parameter 'paymentInstructionId' is not null or undefined
2040
- common_1.assertParamExists('getPaymentInstruction', 'paymentInstructionId', paymentInstructionId);
2041
- const localVarPath = `/payments/instruction/{paymentInstructionId}`.replace(`{${'paymentInstructionId'}}`, encodeURIComponent(String(paymentInstructionId)));
2042
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2043
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2044
- let baseOptions;
2045
- if (configuration) {
2046
- baseOptions = configuration.baseOptions;
2047
- }
2048
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2049
- const localVarHeaderParameter = {};
2050
- const localVarQueryParameter = {};
2051
- // authentication Oauth2 required
2052
- // oauth required
2053
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2054
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
2055
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2056
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2057
- return {
2058
- url: common_1.toPathString(localVarUrlObj),
2059
- options: localVarRequestOptions,
2060
- };
2061
- }),
2062
- };
2063
- };
2064
- /**
2065
- * PaymentApi - functional programming interface
2066
- * @export
2067
- */
2068
- exports.PaymentApiFp = function (configuration) {
2069
- const localVarAxiosParamCreator = exports.PaymentApiAxiosParamCreator(configuration);
2070
- return {
2071
- /**
2072
- * Create a new payment instruction to be used when linking to perform new payment
2073
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
2074
- * @param {*} [options] Override http request option.
2075
- * @throws {RequiredError}
2076
- */
2077
- createPaymentInstruction(paymentInstruction, options) {
2078
- return __awaiter(this, void 0, void 0, function* () {
2079
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentInstruction(paymentInstruction, options);
2080
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2081
- });
2082
- },
2083
- /**
2084
- * Get payment instructions by payment_instruction_id
2085
- * @param {string} paymentInstructionId The id of a payment instruction
2086
- * @param {*} [options] Override http request option.
2087
- * @throws {RequiredError}
2088
- */
2089
- getPaymentInstruction(paymentInstructionId, options) {
2090
- return __awaiter(this, void 0, void 0, function* () {
2091
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentInstruction(paymentInstructionId, options);
2092
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2093
- });
2094
- },
2095
- };
2096
- };
2097
- /**
2098
- * PaymentApi - factory interface
2099
- * @export
2100
- */
2101
- exports.PaymentApiFactory = function (configuration, basePath, axios) {
2102
- const localVarFp = exports.PaymentApiFp(configuration);
2103
- return {
2104
- /**
2105
- * Create a new payment instruction to be used when linking to perform new payment
2106
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
2107
- * @param {*} [options] Override http request option.
2108
- * @throws {RequiredError}
2109
- */
2110
- createPaymentInstruction(paymentInstruction, options) {
2111
- return localVarFp
2112
- .createPaymentInstruction(paymentInstruction, options)
2113
- .then((request) => request(axios, basePath));
2114
- },
2115
- /**
2116
- * Get payment instructions by payment_instruction_id
2117
- * @param {string} paymentInstructionId The id of a payment instruction
2118
- * @param {*} [options] Override http request option.
2119
- * @throws {RequiredError}
2120
- */
2121
- getPaymentInstruction(paymentInstructionId, options) {
2122
- return localVarFp
2123
- .getPaymentInstruction(paymentInstructionId, options)
2124
- .then((request) => request(axios, basePath));
2125
- },
2126
- };
2127
- };
2128
- /**
2129
- * PaymentApi - object-oriented interface
2130
- * @export
2131
- * @class PaymentApi
2132
- * @extends {BaseAPI}
2133
- */
2134
- class PaymentApi extends base_1.BaseAPI {
2135
- /**
2136
- * Create a new payment instruction to be used when linking to perform new payment
2137
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
2138
- * @param {*} [options] Override http request option.
2139
- * @throws {RequiredError}
2140
- * @memberof PaymentApi
2141
- */
2142
- createPaymentInstruction(paymentInstruction, options) {
2143
- return exports.PaymentApiFp(this.configuration)
2144
- .createPaymentInstruction(paymentInstruction, options)
2145
- .then((request) => request(this.axios, this.basePath));
2146
- }
2147
- /**
2148
- * Get payment instructions by payment_instruction_id
2149
- * @param {string} paymentInstructionId The id of a payment instruction
2150
- * @param {*} [options] Override http request option.
2151
- * @throws {RequiredError}
2152
- * @memberof PaymentApi
2153
- */
2154
- getPaymentInstruction(paymentInstructionId, options) {
2155
- return exports.PaymentApiFp(this.configuration)
2156
- .getPaymentInstruction(paymentInstructionId, options)
2157
- .then((request) => request(this.axios, this.basePath));
2158
- }
2159
- }
2160
- exports.PaymentApi = PaymentApi;
2161
1994
  /**
2162
1995
  * PublicApi - axios parameter creator
2163
1996
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.25",
3
+ "version": "0.0.28",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [