@emilgroup/public-api-sdk-node 1.12.0 → 1.13.0
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 +5 -0
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +38 -10
- package/api/documents-api.ts +116 -0
- package/api/notifications-api.ts +218 -4
- package/dist/api/address-completions-validations-api.d.ts +25 -7
- package/dist/api/address-completions-validations-api.js +21 -9
- package/dist/api/documents-api.d.ts +65 -0
- package/dist/api/documents-api.js +98 -0
- package/dist/api/notifications-api.d.ts +118 -4
- package/dist/api/notifications-api.js +190 -4
- package/dist/models/complete-email-verification-dto.d.ts +30 -0
- package/dist/models/complete-email-verification-dto.js +15 -0
- package/dist/models/complete-email-verification-response-class.d.ts +24 -0
- package/dist/models/complete-email-verification-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +6 -0
- package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/initiate-email-verification-dto.d.ts +30 -0
- package/dist/models/initiate-email-verification-dto.js +15 -0
- package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
- package/dist/models/initiate-email-verification-response-class.js +15 -0
- package/models/complete-email-verification-dto.ts +36 -0
- package/models/complete-email-verification-response-class.ts +30 -0
- package/models/create-document-request-dto.ts +6 -0
- package/models/get-product-document-download-url-response-class.ts +30 -0
- package/models/index.ts +5 -0
- package/models/initiate-email-verification-dto.ts +36 -0
- package/models/initiate-email-verification-response-class.ts +30 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,6 +18,8 @@ models/address-completion-item-class.ts
|
|
|
18
18
|
models/address-completion-response-class.ts
|
|
19
19
|
models/address-field-score-class.ts
|
|
20
20
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
21
|
+
models/complete-email-verification-dto.ts
|
|
22
|
+
models/complete-email-verification-response-class.ts
|
|
21
23
|
models/complete-payment-setup-request-dto.ts
|
|
22
24
|
models/complete-payment-setup-response-class.ts
|
|
23
25
|
models/complete-stripe-payment-setup-request-dto.ts
|
|
@@ -33,10 +35,13 @@ models/create-lead-response-class.ts
|
|
|
33
35
|
models/document-class.ts
|
|
34
36
|
models/get-custom-css-response-class.ts
|
|
35
37
|
models/get-lead-response-class.ts
|
|
38
|
+
models/get-product-document-download-url-response-class.ts
|
|
36
39
|
models/get-public-psp-settings-response-class.ts
|
|
37
40
|
models/index.ts
|
|
38
41
|
models/initiate-braintree-payment-setup-request-dto.ts
|
|
39
42
|
models/initiate-braintree-payment-setup-response-class.ts
|
|
43
|
+
models/initiate-email-verification-dto.ts
|
|
44
|
+
models/initiate-email-verification-response-class.ts
|
|
40
45
|
models/initiate-lead-response-class.ts
|
|
41
46
|
models/initiate-payment-setup-request-dto.ts
|
|
42
47
|
models/initiate-payment-setup-response-class.ts
|
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/public-api-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.13.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.13.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -37,12 +37,14 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
37
37
|
/**
|
|
38
38
|
* This will return a list of address completions based on the provided partial address.
|
|
39
39
|
* @summary Retrieve the address
|
|
40
|
-
* @param {string} partialAddress
|
|
40
|
+
* @param {string} partialAddress Partial address for completion
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
43
|
+
* @param {number} [limit] The number of results to fetch
|
|
42
44
|
* @param {*} [options] Override http request option.
|
|
43
45
|
* @throws {RequiredError}
|
|
44
46
|
*/
|
|
45
|
-
listAddressCompletions: async (partialAddress: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
listAddressCompletions: async (partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
48
|
// verify required parameter 'partialAddress' is not null or undefined
|
|
47
49
|
assertParamExists('listAddressCompletions', 'partialAddress', partialAddress)
|
|
48
50
|
const localVarPath = `/publicapi/v1/addresses/completions`;
|
|
@@ -67,6 +69,14 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
67
69
|
localVarQueryParameter['partialAddress'] = partialAddress;
|
|
68
70
|
}
|
|
69
71
|
|
|
72
|
+
if (country !== undefined) {
|
|
73
|
+
localVarQueryParameter['country'] = country;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (limit !== undefined) {
|
|
77
|
+
localVarQueryParameter['limit'] = limit;
|
|
78
|
+
}
|
|
79
|
+
|
|
70
80
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
81
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
82
|
}
|
|
@@ -176,13 +186,15 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
|
|
|
176
186
|
/**
|
|
177
187
|
* This will return a list of address completions based on the provided partial address.
|
|
178
188
|
* @summary Retrieve the address
|
|
179
|
-
* @param {string} partialAddress
|
|
189
|
+
* @param {string} partialAddress Partial address for completion
|
|
180
190
|
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
192
|
+
* @param {number} [limit] The number of results to fetch
|
|
181
193
|
* @param {*} [options] Override http request option.
|
|
182
194
|
* @throws {RequiredError}
|
|
183
195
|
*/
|
|
184
|
-
async listAddressCompletions(partialAddress: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddressCompletionResponseClass>> {
|
|
185
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAddressCompletions(partialAddress, authorization, options);
|
|
196
|
+
async listAddressCompletions(partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddressCompletionResponseClass>> {
|
|
197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAddressCompletions(partialAddress, authorization, country, limit, options);
|
|
186
198
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
187
199
|
},
|
|
188
200
|
/**
|
|
@@ -215,13 +227,15 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
215
227
|
/**
|
|
216
228
|
* This will return a list of address completions based on the provided partial address.
|
|
217
229
|
* @summary Retrieve the address
|
|
218
|
-
* @param {string} partialAddress
|
|
230
|
+
* @param {string} partialAddress Partial address for completion
|
|
219
231
|
* @param {string} [authorization] Bearer Token
|
|
232
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
233
|
+
* @param {number} [limit] The number of results to fetch
|
|
220
234
|
* @param {*} [options] Override http request option.
|
|
221
235
|
* @throws {RequiredError}
|
|
222
236
|
*/
|
|
223
|
-
listAddressCompletions(partialAddress: string, authorization?: string, options?: any): AxiosPromise<AddressCompletionResponseClass> {
|
|
224
|
-
return localVarFp.listAddressCompletions(partialAddress, authorization, options).then((request) => request(axios, basePath));
|
|
237
|
+
listAddressCompletions(partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options?: any): AxiosPromise<AddressCompletionResponseClass> {
|
|
238
|
+
return localVarFp.listAddressCompletions(partialAddress, authorization, country, limit, options).then((request) => request(axios, basePath));
|
|
225
239
|
},
|
|
226
240
|
/**
|
|
227
241
|
* This will return a response whether the provided address is valid or not.
|
|
@@ -249,7 +263,7 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
249
263
|
*/
|
|
250
264
|
export interface AddressCompletionsValidationsApiListAddressCompletionsRequest {
|
|
251
265
|
/**
|
|
252
|
-
*
|
|
266
|
+
* Partial address for completion
|
|
253
267
|
* @type {string}
|
|
254
268
|
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
255
269
|
*/
|
|
@@ -261,6 +275,20 @@ export interface AddressCompletionsValidationsApiListAddressCompletionsRequest {
|
|
|
261
275
|
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
262
276
|
*/
|
|
263
277
|
readonly authorization?: string
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* This property can be used to filter addresses by country
|
|
281
|
+
* @type {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'}
|
|
282
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
283
|
+
*/
|
|
284
|
+
readonly country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The number of results to fetch
|
|
288
|
+
* @type {number}
|
|
289
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
290
|
+
*/
|
|
291
|
+
readonly limit?: number
|
|
264
292
|
}
|
|
265
293
|
|
|
266
294
|
/**
|
|
@@ -335,7 +363,7 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
|
335
363
|
* @memberof AddressCompletionsValidationsApi
|
|
336
364
|
*/
|
|
337
365
|
public listAddressCompletions(requestParameters: AddressCompletionsValidationsApiListAddressCompletionsRequest, options?: AxiosRequestConfig) {
|
|
338
|
-
return AddressCompletionsValidationsApiFp(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
366
|
+
return AddressCompletionsValidationsApiFp(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, requestParameters.country, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
339
367
|
}
|
|
340
368
|
|
|
341
369
|
/**
|
package/api/documents-api.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateDocumentRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { ListDocumentsResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -119,6 +121,55 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary Get pre-signed url for downloading product document
|
|
136
|
+
* @param {string} productCode
|
|
137
|
+
* @param {string} code
|
|
138
|
+
* @param {string} [authorization] Bearer Token
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
144
|
+
assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
|
|
145
|
+
// verify required parameter 'code' is not null or undefined
|
|
146
|
+
assertParamExists('downloadProductDocumentUrl', 'code', code)
|
|
147
|
+
const localVarPath = `/publicapi/v1/documents/product/{productCode}/{code}/download-url`
|
|
148
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
149
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
|
+
let baseOptions;
|
|
153
|
+
let baseAccessToken;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
baseAccessToken = configuration.accessToken;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
160
|
+
const localVarHeaderParameter = {} as any;
|
|
161
|
+
const localVarQueryParameter = {} as any;
|
|
162
|
+
|
|
163
|
+
// authentication bearer required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
|
+
|
|
167
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
122
173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -305,6 +356,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
305
356
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocument(code, authorization, options);
|
|
306
357
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
358
|
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Get pre-signed url for downloading product document
|
|
362
|
+
* @param {string} productCode
|
|
363
|
+
* @param {string} code
|
|
364
|
+
* @param {string} [authorization] Bearer Token
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, options);
|
|
370
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
|
+
},
|
|
308
372
|
/**
|
|
309
373
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
310
374
|
* @summary List documents
|
|
@@ -371,6 +435,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
371
435
|
downloadDocument(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
372
436
|
return localVarFp.downloadDocument(code, authorization, options).then((request) => request(axios, basePath));
|
|
373
437
|
},
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @summary Get pre-signed url for downloading product document
|
|
441
|
+
* @param {string} productCode
|
|
442
|
+
* @param {string} code
|
|
443
|
+
* @param {string} [authorization] Bearer Token
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
448
|
+
return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, options).then((request) => request(axios, basePath));
|
|
449
|
+
},
|
|
374
450
|
/**
|
|
375
451
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
376
452
|
* @summary List documents
|
|
@@ -448,6 +524,34 @@ export interface DocumentsApiDownloadDocumentRequest {
|
|
|
448
524
|
readonly authorization?: string
|
|
449
525
|
}
|
|
450
526
|
|
|
527
|
+
/**
|
|
528
|
+
* Request parameters for downloadProductDocumentUrl operation in DocumentsApi.
|
|
529
|
+
* @export
|
|
530
|
+
* @interface DocumentsApiDownloadProductDocumentUrlRequest
|
|
531
|
+
*/
|
|
532
|
+
export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
537
|
+
*/
|
|
538
|
+
readonly productCode: string
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
544
|
+
*/
|
|
545
|
+
readonly code: string
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Bearer Token
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
551
|
+
*/
|
|
552
|
+
readonly authorization?: string
|
|
553
|
+
}
|
|
554
|
+
|
|
451
555
|
/**
|
|
452
556
|
* Request parameters for listDocuments operation in DocumentsApi.
|
|
453
557
|
* @export
|
|
@@ -591,6 +695,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
591
695
|
return DocumentsApiFp(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
592
696
|
}
|
|
593
697
|
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @summary Get pre-signed url for downloading product document
|
|
701
|
+
* @param {DocumentsApiDownloadProductDocumentUrlRequest} requestParameters Request parameters.
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
* @memberof DocumentsApi
|
|
705
|
+
*/
|
|
706
|
+
public downloadProductDocumentUrl(requestParameters: DocumentsApiDownloadProductDocumentUrlRequest, options?: AxiosRequestConfig) {
|
|
707
|
+
return DocumentsApiFp(this.configuration).downloadProductDocumentUrl(requestParameters.productCode, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
708
|
+
}
|
|
709
|
+
|
|
594
710
|
/**
|
|
595
711
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
596
712
|
* @summary List documents
|
package/api/notifications-api.ts
CHANGED
|
@@ -21,6 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CompleteEmailVerificationDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CompleteEmailVerificationResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { InitiateEmailVerificationDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { InitiateEmailVerificationResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
24
32
|
import { SendNotificationRequestDto } from '../models';
|
|
25
33
|
// @ts-ignore
|
|
26
34
|
import { SendNotificationResponseClass } from '../models';
|
|
@@ -35,7 +43,101 @@ const FormData = require('form-data');
|
|
|
35
43
|
export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
44
|
return {
|
|
37
45
|
/**
|
|
38
|
-
* This
|
|
46
|
+
* This validates a token provided by customer.
|
|
47
|
+
* @summary Complete Email Verification.
|
|
48
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
49
|
+
* @param {string} [authorization] Bearer Token
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
completeEmailVerification: async (completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'completeEmailVerificationDto' is not null or undefined
|
|
55
|
+
assertParamExists('completeEmailVerification', 'completeEmailVerificationDto', completeEmailVerificationDto)
|
|
56
|
+
const localVarPath = `/publicapi/v1/email-verification/complete`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
let baseAccessToken;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
baseAccessToken = configuration.accessToken;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication bearer required
|
|
71
|
+
// http bearer authentication required
|
|
72
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
+
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeEmailVerificationDto, localVarRequestOptions, configuration)
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* This sends an email to the specific recipient set to receive verification code.
|
|
94
|
+
* @summary Initiate Email Verification.
|
|
95
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
initiateEmailVerification: async (initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'initiateEmailVerificationDto' is not null or undefined
|
|
102
|
+
assertParamExists('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto)
|
|
103
|
+
const localVarPath = `/publicapi/v1/email-verification/initiate`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateEmailVerificationDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* This sends an email to the specific recipient set to receive customers\' messages.
|
|
39
141
|
* @summary Send an email.
|
|
40
142
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
41
143
|
* @param {string} [authorization] Bearer Token
|
|
@@ -92,7 +194,31 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
|
92
194
|
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
93
195
|
return {
|
|
94
196
|
/**
|
|
95
|
-
* This
|
|
197
|
+
* This validates a token provided by customer.
|
|
198
|
+
* @summary Complete Email Verification.
|
|
199
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
200
|
+
* @param {string} [authorization] Bearer Token
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
async completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompleteEmailVerificationResponseClass>> {
|
|
205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completeEmailVerification(completeEmailVerificationDto, authorization, options);
|
|
206
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
207
|
+
},
|
|
208
|
+
/**
|
|
209
|
+
* This sends an email to the specific recipient set to receive verification code.
|
|
210
|
+
* @summary Initiate Email Verification.
|
|
211
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
212
|
+
* @param {string} [authorization] Bearer Token
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
async initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateEmailVerificationResponseClass>> {
|
|
217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateEmailVerification(initiateEmailVerificationDto, authorization, options);
|
|
218
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* This sends an email to the specific recipient set to receive customers\' messages.
|
|
96
222
|
* @summary Send an email.
|
|
97
223
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
98
224
|
* @param {string} [authorization] Bearer Token
|
|
@@ -114,7 +240,29 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
114
240
|
const localVarFp = NotificationsApiFp(configuration)
|
|
115
241
|
return {
|
|
116
242
|
/**
|
|
117
|
-
* This
|
|
243
|
+
* This validates a token provided by customer.
|
|
244
|
+
* @summary Complete Email Verification.
|
|
245
|
+
* @param {CompleteEmailVerificationDto} completeEmailVerificationDto
|
|
246
|
+
* @param {string} [authorization] Bearer Token
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
completeEmailVerification(completeEmailVerificationDto: CompleteEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<CompleteEmailVerificationResponseClass> {
|
|
251
|
+
return localVarFp.completeEmailVerification(completeEmailVerificationDto, authorization, options).then((request) => request(axios, basePath));
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* This sends an email to the specific recipient set to receive verification code.
|
|
255
|
+
* @summary Initiate Email Verification.
|
|
256
|
+
* @param {InitiateEmailVerificationDto} initiateEmailVerificationDto
|
|
257
|
+
* @param {string} [authorization] Bearer Token
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
initiateEmailVerification(initiateEmailVerificationDto: InitiateEmailVerificationDto, authorization?: string, options?: any): AxiosPromise<InitiateEmailVerificationResponseClass> {
|
|
262
|
+
return localVarFp.initiateEmailVerification(initiateEmailVerificationDto, authorization, options).then((request) => request(axios, basePath));
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* This sends an email to the specific recipient set to receive customers\' messages.
|
|
118
266
|
* @summary Send an email.
|
|
119
267
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
120
268
|
* @param {string} [authorization] Bearer Token
|
|
@@ -127,6 +275,48 @@ export const NotificationsApiFactory = function (configuration?: Configuration,
|
|
|
127
275
|
};
|
|
128
276
|
};
|
|
129
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Request parameters for completeEmailVerification operation in NotificationsApi.
|
|
280
|
+
* @export
|
|
281
|
+
* @interface NotificationsApiCompleteEmailVerificationRequest
|
|
282
|
+
*/
|
|
283
|
+
export interface NotificationsApiCompleteEmailVerificationRequest {
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {CompleteEmailVerificationDto}
|
|
287
|
+
* @memberof NotificationsApiCompleteEmailVerification
|
|
288
|
+
*/
|
|
289
|
+
readonly completeEmailVerificationDto: CompleteEmailVerificationDto
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Bearer Token
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof NotificationsApiCompleteEmailVerification
|
|
295
|
+
*/
|
|
296
|
+
readonly authorization?: string
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Request parameters for initiateEmailVerification operation in NotificationsApi.
|
|
301
|
+
* @export
|
|
302
|
+
* @interface NotificationsApiInitiateEmailVerificationRequest
|
|
303
|
+
*/
|
|
304
|
+
export interface NotificationsApiInitiateEmailVerificationRequest {
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @type {InitiateEmailVerificationDto}
|
|
308
|
+
* @memberof NotificationsApiInitiateEmailVerification
|
|
309
|
+
*/
|
|
310
|
+
readonly initiateEmailVerificationDto: InitiateEmailVerificationDto
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Bearer Token
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof NotificationsApiInitiateEmailVerification
|
|
316
|
+
*/
|
|
317
|
+
readonly authorization?: string
|
|
318
|
+
}
|
|
319
|
+
|
|
130
320
|
/**
|
|
131
321
|
* Request parameters for sendNotification operation in NotificationsApi.
|
|
132
322
|
* @export
|
|
@@ -156,7 +346,31 @@ export interface NotificationsApiSendNotificationRequest {
|
|
|
156
346
|
*/
|
|
157
347
|
export class NotificationsApi extends BaseAPI {
|
|
158
348
|
/**
|
|
159
|
-
* This
|
|
349
|
+
* This validates a token provided by customer.
|
|
350
|
+
* @summary Complete Email Verification.
|
|
351
|
+
* @param {NotificationsApiCompleteEmailVerificationRequest} requestParameters Request parameters.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
* @memberof NotificationsApi
|
|
355
|
+
*/
|
|
356
|
+
public completeEmailVerification(requestParameters: NotificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
357
|
+
return NotificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* This sends an email to the specific recipient set to receive verification code.
|
|
362
|
+
* @summary Initiate Email Verification.
|
|
363
|
+
* @param {NotificationsApiInitiateEmailVerificationRequest} requestParameters Request parameters.
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
* @memberof NotificationsApi
|
|
367
|
+
*/
|
|
368
|
+
public initiateEmailVerification(requestParameters: NotificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
369
|
+
return NotificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* This sends an email to the specific recipient set to receive customers\' messages.
|
|
160
374
|
* @summary Send an email.
|
|
161
375
|
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
162
376
|
* @param {*} [options] Override http request option.
|
|
@@ -22,12 +22,14 @@ export declare const AddressCompletionsValidationsApiAxiosParamCreator: (configu
|
|
|
22
22
|
/**
|
|
23
23
|
* This will return a list of address completions based on the provided partial address.
|
|
24
24
|
* @summary Retrieve the address
|
|
25
|
-
* @param {string} partialAddress
|
|
25
|
+
* @param {string} partialAddress Partial address for completion
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
28
|
+
* @param {number} [limit] The number of results to fetch
|
|
27
29
|
* @param {*} [options] Override http request option.
|
|
28
30
|
* @throws {RequiredError}
|
|
29
31
|
*/
|
|
30
|
-
listAddressCompletions: (partialAddress: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
listAddressCompletions: (partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
33
|
/**
|
|
32
34
|
* This will return a response whether the provided address is valid or not.
|
|
33
35
|
* @summary Retrieve the Address validation
|
|
@@ -51,12 +53,14 @@ export declare const AddressCompletionsValidationsApiFp: (configuration?: Config
|
|
|
51
53
|
/**
|
|
52
54
|
* This will return a list of address completions based on the provided partial address.
|
|
53
55
|
* @summary Retrieve the address
|
|
54
|
-
* @param {string} partialAddress
|
|
56
|
+
* @param {string} partialAddress Partial address for completion
|
|
55
57
|
* @param {string} [authorization] Bearer Token
|
|
58
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
59
|
+
* @param {number} [limit] The number of results to fetch
|
|
56
60
|
* @param {*} [options] Override http request option.
|
|
57
61
|
* @throws {RequiredError}
|
|
58
62
|
*/
|
|
59
|
-
listAddressCompletions(partialAddress: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddressCompletionResponseClass>>;
|
|
63
|
+
listAddressCompletions(partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddressCompletionResponseClass>>;
|
|
60
64
|
/**
|
|
61
65
|
* This will return a response whether the provided address is valid or not.
|
|
62
66
|
* @summary Retrieve the Address validation
|
|
@@ -80,12 +84,14 @@ export declare const AddressCompletionsValidationsApiFactory: (configuration?: C
|
|
|
80
84
|
/**
|
|
81
85
|
* This will return a list of address completions based on the provided partial address.
|
|
82
86
|
* @summary Retrieve the address
|
|
83
|
-
* @param {string} partialAddress
|
|
87
|
+
* @param {string} partialAddress Partial address for completion
|
|
84
88
|
* @param {string} [authorization] Bearer Token
|
|
89
|
+
* @param {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'} [country] This property can be used to filter addresses by country
|
|
90
|
+
* @param {number} [limit] The number of results to fetch
|
|
85
91
|
* @param {*} [options] Override http request option.
|
|
86
92
|
* @throws {RequiredError}
|
|
87
93
|
*/
|
|
88
|
-
listAddressCompletions(partialAddress: string, authorization?: string, options?: any): AxiosPromise<AddressCompletionResponseClass>;
|
|
94
|
+
listAddressCompletions(partialAddress: string, authorization?: string, country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia', limit?: number, options?: any): AxiosPromise<AddressCompletionResponseClass>;
|
|
89
95
|
/**
|
|
90
96
|
* This will return a response whether the provided address is valid or not.
|
|
91
97
|
* @summary Retrieve the Address validation
|
|
@@ -108,7 +114,7 @@ export declare const AddressCompletionsValidationsApiFactory: (configuration?: C
|
|
|
108
114
|
*/
|
|
109
115
|
export interface AddressCompletionsValidationsApiListAddressCompletionsRequest {
|
|
110
116
|
/**
|
|
111
|
-
*
|
|
117
|
+
* Partial address for completion
|
|
112
118
|
* @type {string}
|
|
113
119
|
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
114
120
|
*/
|
|
@@ -119,6 +125,18 @@ export interface AddressCompletionsValidationsApiListAddressCompletionsRequest {
|
|
|
119
125
|
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
120
126
|
*/
|
|
121
127
|
readonly authorization?: string;
|
|
128
|
+
/**
|
|
129
|
+
* This property can be used to filter addresses by country
|
|
130
|
+
* @type {'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia'}
|
|
131
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
132
|
+
*/
|
|
133
|
+
readonly country?: 'Germany' | 'Spain' | 'Austria' | 'Switzerland' | 'UnitedStates' | 'Italy' | 'Norway' | 'CzechRepublic' | 'Australia';
|
|
134
|
+
/**
|
|
135
|
+
* The number of results to fetch
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
138
|
+
*/
|
|
139
|
+
readonly limit?: number;
|
|
122
140
|
}
|
|
123
141
|
/**
|
|
124
142
|
* Request parameters for validateAddress operation in AddressCompletionsValidationsApi.
|