@emilgroup/payment-sdk-node 1.23.1-beta.2 → 1.23.1-beta.20
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/.openapi-generator/FILES +12 -0
- package/README.md +2 -2
- package/api/ibanvalidator-api.ts +169 -0
- package/api/payment-requests-api.ts +697 -0
- package/api.ts +4 -0
- package/dist/api/ibanvalidator-api.d.ts +97 -0
- package/dist/api/ibanvalidator-api.js +228 -0
- package/dist/api/payment-requests-api.d.ts +393 -0
- package/dist/api/payment-requests-api.js +648 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/models/bank-data-class.d.ts +36 -0
- package/dist/models/bank-data-class.js +15 -0
- package/dist/models/create-payment-request-request-dto.d.ts +103 -0
- package/dist/models/create-payment-request-request-dto.js +32 -0
- package/dist/models/create-payment-request-response-class.d.ts +25 -0
- package/dist/models/create-payment-request-response-class.js +15 -0
- package/dist/models/get-payment-request-response-class.d.ts +25 -0
- package/dist/models/get-payment-request-response-class.js +15 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/list-payment-requests-response-class.d.ts +31 -0
- package/dist/models/list-payment-requests-response-class.js +15 -0
- package/dist/models/payment-request-class.d.ts +148 -0
- package/dist/models/payment-request-class.js +40 -0
- package/dist/models/update-payment-request-request-dto.d.ts +39 -0
- package/dist/models/update-payment-request-request-dto.js +24 -0
- package/dist/models/update-payment-request-response-class.d.ts +25 -0
- package/dist/models/update-payment-request-response-class.js +15 -0
- package/dist/models/validate-iban-request-dto.d.ts +24 -0
- package/dist/models/validate-iban-request-dto.js +15 -0
- package/dist/models/validate-iban-response-class.d.ts +31 -0
- package/dist/models/validate-iban-response-class.js +15 -0
- package/models/bank-data-class.ts +42 -0
- package/models/create-payment-request-request-dto.ts +114 -0
- package/models/create-payment-request-response-class.ts +31 -0
- package/models/get-payment-request-response-class.ts +31 -0
- package/models/index.ts +10 -0
- package/models/list-payment-requests-response-class.ts +37 -0
- package/models/payment-request-class.ts +160 -0
- package/models/update-payment-request-request-dto.ts +48 -0
- package/models/update-payment-request-response-class.ts +31 -0
- package/models/validate-iban-request-dto.ts +30 -0
- package/models/validate-iban-response-class.ts +37 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -10,8 +10,10 @@ api/billing-addresses-api.ts
|
|
|
10
10
|
api/credit-allocation-api.ts
|
|
11
11
|
api/exceeding-credits-api.ts
|
|
12
12
|
api/health-check-api.ts
|
|
13
|
+
api/ibanvalidator-api.ts
|
|
13
14
|
api/payment-methods-api.ts
|
|
14
15
|
api/payment-reminders-api.ts
|
|
16
|
+
api/payment-requests-api.ts
|
|
15
17
|
api/payment-setup-api.ts
|
|
16
18
|
api/payments-api.ts
|
|
17
19
|
api/payout-methods-api.ts
|
|
@@ -27,6 +29,7 @@ index.ts
|
|
|
27
29
|
models/activate-policy-payment-method-request-dto.ts
|
|
28
30
|
models/bank-account-class-without-expand-properties.ts
|
|
29
31
|
models/bank-account-class.ts
|
|
32
|
+
models/bank-data-class.ts
|
|
30
33
|
models/bank-order-class.ts
|
|
31
34
|
models/bank-order-entity.ts
|
|
32
35
|
models/bank-order-xml-file-class.ts
|
|
@@ -62,6 +65,8 @@ models/create-payment-order-request-dto.ts
|
|
|
62
65
|
models/create-payment-reminder-request-dto.ts
|
|
63
66
|
models/create-payment-reminder-response-class.ts
|
|
64
67
|
models/create-payment-request-dto.ts
|
|
68
|
+
models/create-payment-request-request-dto.ts
|
|
69
|
+
models/create-payment-request-response-class.ts
|
|
65
70
|
models/create-payment-response-class.ts
|
|
66
71
|
models/create-payout-method-request-dto.ts
|
|
67
72
|
models/create-payout-method-response-class.ts
|
|
@@ -89,6 +94,7 @@ models/get-credit-allocation-response-class.ts
|
|
|
89
94
|
models/get-exceeding-credit-response-class.ts
|
|
90
95
|
models/get-payment-method-response-class.ts
|
|
91
96
|
models/get-payment-reminder-response-class.ts
|
|
97
|
+
models/get-payment-request-response-class.ts
|
|
92
98
|
models/get-payment-response-class.ts
|
|
93
99
|
models/get-payout-method-response-class.ts
|
|
94
100
|
models/get-refund-response-class.ts
|
|
@@ -119,6 +125,7 @@ models/list-credit-allocations-response-class.ts
|
|
|
119
125
|
models/list-exceeding-credits-response-class.ts
|
|
120
126
|
models/list-payment-methods-response-class.ts
|
|
121
127
|
models/list-payment-reminders-response-class.ts
|
|
128
|
+
models/list-payment-requests-response-class.ts
|
|
122
129
|
models/list-payments-response-class.ts
|
|
123
130
|
models/list-payout-methods-response-class.ts
|
|
124
131
|
models/list-policy-payment-methods-response-class.ts
|
|
@@ -132,6 +139,7 @@ models/payment-class.ts
|
|
|
132
139
|
models/payment-entity.ts
|
|
133
140
|
models/payment-method-class.ts
|
|
134
141
|
models/payment-reminder-class.ts
|
|
142
|
+
models/payment-request-class.ts
|
|
135
143
|
models/payout-method-class.ts
|
|
136
144
|
models/policy-payment-method-class.ts
|
|
137
145
|
models/primary-bank-account-response-class.ts
|
|
@@ -156,8 +164,12 @@ models/update-bank-order-request-dto.ts
|
|
|
156
164
|
models/update-bank-order-response-class.ts
|
|
157
165
|
models/update-billing-address-request-dto.ts
|
|
158
166
|
models/update-billing-address-response-class.ts
|
|
167
|
+
models/update-payment-request-request-dto.ts
|
|
168
|
+
models/update-payment-request-response-class.ts
|
|
159
169
|
models/update-tenant-bank-account-response-class.ts
|
|
160
170
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
171
|
+
models/validate-iban-request-dto.ts
|
|
172
|
+
models/validate-iban-response-class.ts
|
|
161
173
|
models/validate-pspconfig-request-dto.ts
|
|
162
174
|
package.json
|
|
163
175
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk-node@1.23.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.23.1-beta.20 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.23.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.23.1-beta.20
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ValidateIbanRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ValidateIbanResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* IBANValidatorApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const IBANValidatorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Validate IBAN and return related bank data **Required Permissions** none
|
|
39
|
+
* @summary Validate IBAN
|
|
40
|
+
* @param {ValidateIbanRequestDto} validateIbanRequestDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
validateIban: async (validateIbanRequestDto: ValidateIbanRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'validateIbanRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('validateIban', 'validateIbanRequestDto', validateIbanRequestDto)
|
|
48
|
+
const localVarPath = `/paymentservice/v1/iban`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validateIbanRequestDto, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* IBANValidatorApi - functional programming interface
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const IBANValidatorApiFp = function(configuration?: Configuration) {
|
|
92
|
+
const localVarAxiosParamCreator = IBANValidatorApiAxiosParamCreator(configuration)
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
* Validate IBAN and return related bank data **Required Permissions** none
|
|
96
|
+
* @summary Validate IBAN
|
|
97
|
+
* @param {ValidateIbanRequestDto} validateIbanRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
async validateIban(validateIbanRequestDto: ValidateIbanRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateIbanResponseClass>> {
|
|
103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateIban(validateIbanRequestDto, authorization, options);
|
|
104
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* IBANValidatorApi - factory interface
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const IBANValidatorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
+
const localVarFp = IBANValidatorApiFp(configuration)
|
|
115
|
+
return {
|
|
116
|
+
/**
|
|
117
|
+
* Validate IBAN and return related bank data **Required Permissions** none
|
|
118
|
+
* @summary Validate IBAN
|
|
119
|
+
* @param {ValidateIbanRequestDto} validateIbanRequestDto
|
|
120
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
validateIban(validateIbanRequestDto: ValidateIbanRequestDto, authorization?: string, options?: any): AxiosPromise<ValidateIbanResponseClass> {
|
|
125
|
+
return localVarFp.validateIban(validateIbanRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Request parameters for validateIban operation in IBANValidatorApi.
|
|
132
|
+
* @export
|
|
133
|
+
* @interface IBANValidatorApiValidateIbanRequest
|
|
134
|
+
*/
|
|
135
|
+
export interface IBANValidatorApiValidateIbanRequest {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {ValidateIbanRequestDto}
|
|
139
|
+
* @memberof IBANValidatorApiValidateIban
|
|
140
|
+
*/
|
|
141
|
+
readonly validateIbanRequestDto: ValidateIbanRequestDto
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof IBANValidatorApiValidateIban
|
|
147
|
+
*/
|
|
148
|
+
readonly authorization?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* IBANValidatorApi - object-oriented interface
|
|
153
|
+
* @export
|
|
154
|
+
* @class IBANValidatorApi
|
|
155
|
+
* @extends {BaseAPI}
|
|
156
|
+
*/
|
|
157
|
+
export class IBANValidatorApi extends BaseAPI {
|
|
158
|
+
/**
|
|
159
|
+
* Validate IBAN and return related bank data **Required Permissions** none
|
|
160
|
+
* @summary Validate IBAN
|
|
161
|
+
* @param {IBANValidatorApiValidateIbanRequest} requestParameters Request parameters.
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
* @memberof IBANValidatorApi
|
|
165
|
+
*/
|
|
166
|
+
public validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig) {
|
|
167
|
+
return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
+
}
|
|
169
|
+
}
|