@emilgroup/public-api-sdk-node 1.0.2 → 1.1.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 +30 -1
- package/README.md +3 -5
- package/api/documents-api.ts +31 -17
- package/api/leads-api.ts +482 -0
- package/api/notifications-api.ts +15 -9
- package/api/{payment-setup-api.ts → payments-setup-api.ts} +56 -44
- package/api/products-api.ts +73 -433
- package/api.ts +7 -5
- package/base.ts +3 -3
- package/common.ts +6 -6
- package/configuration.ts +3 -3
- package/dist/api/documents-api.d.ts +31 -18
- package/dist/api/documents-api.js +28 -16
- package/dist/api/leads-api.d.ts +266 -0
- package/dist/api/leads-api.js +506 -0
- package/dist/api/notifications-api.d.ts +15 -10
- package/dist/api/notifications-api.js +12 -8
- package/dist/api/{payment-setup-api.d.ts → payments-setup-api.d.ts} +50 -40
- package/dist/api/{payment-setup-api.js → payments-setup-api.js} +47 -39
- package/dist/api/products-api.d.ts +75 -251
- package/dist/api/products-api.js +52 -383
- package/dist/api.d.ts +5 -4
- package/dist/api.js +5 -4
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +6 -6
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +8 -8
- package/dist/models/complete-braintree-payment-setup-request-dto.js +3 -3
- package/dist/models/complete-payment-setup-request-dto.d.ts +3 -3
- package/dist/models/complete-payment-setup-request-dto.js +3 -3
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -9
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -3
- package/dist/models/create-account-request-dto.d.ts +19 -6
- package/dist/models/create-account-request-dto.js +10 -4
- package/dist/models/create-bank-account-request-dto.d.ts +7 -7
- package/dist/models/create-bank-account-request-dto.js +3 -3
- package/dist/models/create-custom-application-request-dto.d.ts +6 -6
- package/dist/models/create-custom-application-request-dto.js +3 -3
- package/dist/models/create-custom-application-response-class.d.ts +24 -0
- package/dist/models/create-custom-application-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +21 -15
- package/dist/models/create-document-request-dto.js +3 -3
- package/dist/models/create-estimated-invoice-request-dto.d.ts +11 -11
- package/dist/models/create-estimated-invoice-request-dto.js +3 -3
- package/dist/models/create-estimated-invoice-response-class.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +23 -23
- package/dist/models/create-lead-request-dto.js +3 -3
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/create-lead-response-class.js +15 -0
- package/dist/models/document-class.d.ts +130 -0
- package/dist/models/document-class.js +41 -0
- package/dist/models/get-custom-css-response-class.d.ts +24 -0
- package/dist/models/get-custom-css-response-class.js +15 -0
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/get-lead-response-class.js +15 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +4 -4
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-lead-response-class.d.ts +24 -0
- package/dist/models/initiate-lead-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -3
- package/dist/models/initiate-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +4 -4
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/insured-object-class.d.ts +67 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/invoice-class.d.ts +128 -0
- package/dist/models/invoice-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +108 -0
- package/dist/models/invoice-item-class.js +15 -0
- package/dist/models/invoice-status-class.d.ts +42 -0
- package/dist/models/invoice-status-class.js +15 -0
- package/dist/models/lead-account-class.d.ts +109 -0
- package/dist/models/lead-account-class.js +22 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +77 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/lead-policy-class.d.ts +44 -0
- package/dist/models/lead-policy-class.js +15 -0
- package/dist/models/lead-policy-object-class.d.ts +30 -0
- package/dist/models/lead-policy-object-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +60 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/policy-object-request-dto.d.ts +5 -5
- package/dist/models/policy-object-request-dto.js +3 -3
- package/dist/models/premium-override-dto.d.ts +8 -8
- package/dist/models/premium-override-dto.js +3 -3
- package/dist/models/premium-override-request-dto.d.ts +4 -4
- package/dist/models/premium-override-request-dto.js +3 -3
- package/dist/models/product-factor-class.d.ts +54 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-field-class.d.ts +120 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +5 -5
- package/dist/models/send-notification-request-dto.js +3 -3
- package/dist/models/send-notification-response-class.d.ts +24 -0
- package/dist/models/send-notification-response-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +18 -18
- package/dist/models/update-lead-request-dto.js +3 -3
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +4 -4
- package/dist/models/uploaded-document-dto.js +3 -3
- package/index.ts +3 -3
- package/models/complete-braintree-payment-setup-request-dto.ts +8 -8
- package/models/complete-payment-setup-request-dto.ts +3 -3
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +9 -9
- package/models/create-account-request-dto.ts +19 -5
- package/models/create-bank-account-request-dto.ts +7 -7
- package/models/create-custom-application-request-dto.ts +5 -5
- package/models/create-custom-application-response-class.ts +30 -0
- package/models/create-document-request-dto.ts +19 -13
- package/models/create-estimated-invoice-request-dto.ts +10 -10
- package/models/create-estimated-invoice-response-class.ts +31 -0
- package/models/create-lead-request-dto.ts +22 -22
- package/models/create-lead-response-class.ts +31 -0
- package/models/document-class.ts +141 -0
- package/models/get-custom-css-response-class.ts +30 -0
- package/models/get-lead-response-class.ts +31 -0
- package/models/index.ts +27 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +4 -4
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-lead-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -3
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +4 -4
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/insured-object-class.ts +73 -0
- package/models/insured-object-type-class.ts +54 -0
- package/models/invoice-class.ts +134 -0
- package/models/invoice-item-class.ts +114 -0
- package/models/invoice-status-class.ts +48 -0
- package/models/lead-account-class.ts +118 -0
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +83 -0
- package/models/lead-policy-class.ts +50 -0
- package/models/lead-policy-object-class.ts +36 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/payment-method-class.ts +66 -0
- package/models/policy-object-request-dto.ts +5 -5
- package/models/premium-override-dto.ts +6 -6
- package/models/premium-override-request-dto.ts +4 -4
- package/models/product-factor-class.ts +60 -0
- package/models/product-field-class.ts +126 -0
- package/models/send-notification-request-dto.ts +5 -5
- package/models/send-notification-response-class.ts +30 -0
- package/models/update-lead-request-dto.ts +17 -17
- package/models/update-lead-response-class.ts +31 -0
- package/models/uploaded-document-dto.ts +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* The
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -13,14 +13,17 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CompletePaymentSetupRequestDto } from '../models';
|
|
16
|
+
import { CompletePaymentSetupResponseClass } from '../models';
|
|
16
17
|
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
18
|
+
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* PaymentsSetupApi - axios parameter creator
|
|
19
21
|
* @export
|
|
20
22
|
*/
|
|
21
|
-
export declare const
|
|
23
|
+
export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
26
|
+
* @summary Complete a payment setup
|
|
24
27
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
25
28
|
* @param {string} [authorization] Bearer Token
|
|
26
29
|
* @param {*} [options] Override http request option.
|
|
@@ -28,7 +31,8 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
|
|
|
28
31
|
*/
|
|
29
32
|
completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
34
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
35
|
+
* @summary Initiate a payment setup
|
|
32
36
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
33
37
|
* @param {string} [authorization] Bearer Token
|
|
34
38
|
* @param {*} [options] Override http request option.
|
|
@@ -37,108 +41,114 @@ export declare const PaymentSetupApiAxiosParamCreator: (configuration?: Configur
|
|
|
37
41
|
initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* PaymentsSetupApi - functional programming interface
|
|
41
45
|
* @export
|
|
42
46
|
*/
|
|
43
|
-
export declare const
|
|
47
|
+
export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
50
|
+
* @summary Complete a payment setup
|
|
46
51
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
47
52
|
* @param {string} [authorization] Bearer Token
|
|
48
53
|
* @param {*} [options] Override http request option.
|
|
49
54
|
* @throws {RequiredError}
|
|
50
55
|
*/
|
|
51
|
-
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
56
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
52
57
|
/**
|
|
53
|
-
*
|
|
58
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
59
|
+
* @summary Initiate a payment setup
|
|
54
60
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
55
61
|
* @param {string} [authorization] Bearer Token
|
|
56
62
|
* @param {*} [options] Override http request option.
|
|
57
63
|
* @throws {RequiredError}
|
|
58
64
|
*/
|
|
59
|
-
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
65
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
60
66
|
};
|
|
61
67
|
/**
|
|
62
|
-
*
|
|
68
|
+
* PaymentsSetupApi - factory interface
|
|
63
69
|
* @export
|
|
64
70
|
*/
|
|
65
|
-
export declare const
|
|
71
|
+
export declare const PaymentsSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
74
|
+
* @summary Complete a payment setup
|
|
68
75
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
69
76
|
* @param {string} [authorization] Bearer Token
|
|
70
77
|
* @param {*} [options] Override http request option.
|
|
71
78
|
* @throws {RequiredError}
|
|
72
79
|
*/
|
|
73
|
-
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
80
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
82
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
83
|
+
* @summary Initiate a payment setup
|
|
76
84
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
77
85
|
* @param {string} [authorization] Bearer Token
|
|
78
86
|
* @param {*} [options] Override http request option.
|
|
79
87
|
* @throws {RequiredError}
|
|
80
88
|
*/
|
|
81
|
-
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
89
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
82
90
|
};
|
|
83
91
|
/**
|
|
84
|
-
* Request parameters for completePaymentSetup operation in
|
|
92
|
+
* Request parameters for completePaymentSetup operation in PaymentsSetupApi.
|
|
85
93
|
* @export
|
|
86
|
-
* @interface
|
|
94
|
+
* @interface PaymentsSetupApiCompletePaymentSetupRequest
|
|
87
95
|
*/
|
|
88
|
-
export interface
|
|
96
|
+
export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
89
97
|
/**
|
|
90
98
|
*
|
|
91
99
|
* @type {CompletePaymentSetupRequestDto}
|
|
92
|
-
* @memberof
|
|
100
|
+
* @memberof PaymentsSetupApiCompletePaymentSetup
|
|
93
101
|
*/
|
|
94
102
|
readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto;
|
|
95
103
|
/**
|
|
96
104
|
* Bearer Token
|
|
97
105
|
* @type {string}
|
|
98
|
-
* @memberof
|
|
106
|
+
* @memberof PaymentsSetupApiCompletePaymentSetup
|
|
99
107
|
*/
|
|
100
108
|
readonly authorization?: string;
|
|
101
109
|
}
|
|
102
110
|
/**
|
|
103
|
-
* Request parameters for initiatePaymentSetup operation in
|
|
111
|
+
* Request parameters for initiatePaymentSetup operation in PaymentsSetupApi.
|
|
104
112
|
* @export
|
|
105
|
-
* @interface
|
|
113
|
+
* @interface PaymentsSetupApiInitiatePaymentSetupRequest
|
|
106
114
|
*/
|
|
107
|
-
export interface
|
|
115
|
+
export interface PaymentsSetupApiInitiatePaymentSetupRequest {
|
|
108
116
|
/**
|
|
109
117
|
*
|
|
110
118
|
* @type {InitiatePaymentSetupRequestDto}
|
|
111
|
-
* @memberof
|
|
119
|
+
* @memberof PaymentsSetupApiInitiatePaymentSetup
|
|
112
120
|
*/
|
|
113
121
|
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
|
|
114
122
|
/**
|
|
115
123
|
* Bearer Token
|
|
116
124
|
* @type {string}
|
|
117
|
-
* @memberof
|
|
125
|
+
* @memberof PaymentsSetupApiInitiatePaymentSetup
|
|
118
126
|
*/
|
|
119
127
|
readonly authorization?: string;
|
|
120
128
|
}
|
|
121
129
|
/**
|
|
122
|
-
*
|
|
130
|
+
* PaymentsSetupApi - object-oriented interface
|
|
123
131
|
* @export
|
|
124
|
-
* @class
|
|
132
|
+
* @class PaymentsSetupApi
|
|
125
133
|
* @extends {BaseAPI}
|
|
126
134
|
*/
|
|
127
|
-
export declare class
|
|
135
|
+
export declare class PaymentsSetupApi extends BaseAPI {
|
|
128
136
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @
|
|
137
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
138
|
+
* @summary Complete a payment setup
|
|
139
|
+
* @param {PaymentsSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
131
140
|
* @param {*} [options] Override http request option.
|
|
132
141
|
* @throws {RequiredError}
|
|
133
|
-
* @memberof
|
|
142
|
+
* @memberof PaymentsSetupApi
|
|
134
143
|
*/
|
|
135
|
-
completePaymentSetup(requestParameters:
|
|
144
|
+
completePaymentSetup(requestParameters: PaymentsSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
|
|
136
145
|
/**
|
|
137
|
-
*
|
|
138
|
-
* @
|
|
146
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
147
|
+
* @summary Initiate a payment setup
|
|
148
|
+
* @param {PaymentsSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
139
149
|
* @param {*} [options] Override http request option.
|
|
140
150
|
* @throws {RequiredError}
|
|
141
|
-
* @memberof
|
|
151
|
+
* @memberof PaymentsSetupApi
|
|
142
152
|
*/
|
|
143
|
-
initiatePaymentSetup(requestParameters:
|
|
153
|
+
initiatePaymentSetup(requestParameters: PaymentsSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
|
|
144
154
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* The
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.PaymentsSetupApi = exports.PaymentsSetupApiFactory = exports.PaymentsSetupApiFp = exports.PaymentsSetupApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,14 +90,15 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PaymentsSetupApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
101
|
+
* @summary Complete a payment setup
|
|
101
102
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
102
103
|
* @param {string} [authorization] Bearer Token
|
|
103
104
|
* @param {*} [options] Override http request option.
|
|
@@ -145,7 +146,8 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
145
146
|
});
|
|
146
147
|
},
|
|
147
148
|
/**
|
|
148
|
-
*
|
|
149
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
150
|
+
* @summary Initiate a payment setup
|
|
149
151
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
150
152
|
* @param {string} [authorization] Bearer Token
|
|
151
153
|
* @param {*} [options] Override http request option.
|
|
@@ -194,16 +196,17 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
194
196
|
},
|
|
195
197
|
};
|
|
196
198
|
};
|
|
197
|
-
exports.
|
|
199
|
+
exports.PaymentsSetupApiAxiosParamCreator = PaymentsSetupApiAxiosParamCreator;
|
|
198
200
|
/**
|
|
199
|
-
*
|
|
201
|
+
* PaymentsSetupApi - functional programming interface
|
|
200
202
|
* @export
|
|
201
203
|
*/
|
|
202
|
-
var
|
|
203
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
204
|
+
var PaymentsSetupApiFp = function (configuration) {
|
|
205
|
+
var localVarAxiosParamCreator = (0, exports.PaymentsSetupApiAxiosParamCreator)(configuration);
|
|
204
206
|
return {
|
|
205
207
|
/**
|
|
206
|
-
*
|
|
208
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
209
|
+
* @summary Complete a payment setup
|
|
207
210
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
208
211
|
* @param {string} [authorization] Bearer Token
|
|
209
212
|
* @param {*} [options] Override http request option.
|
|
@@ -223,7 +226,8 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
223
226
|
});
|
|
224
227
|
},
|
|
225
228
|
/**
|
|
226
|
-
*
|
|
229
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
230
|
+
* @summary Initiate a payment setup
|
|
227
231
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
228
232
|
* @param {string} [authorization] Bearer Token
|
|
229
233
|
* @param {*} [options] Override http request option.
|
|
@@ -244,16 +248,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
244
248
|
},
|
|
245
249
|
};
|
|
246
250
|
};
|
|
247
|
-
exports.
|
|
251
|
+
exports.PaymentsSetupApiFp = PaymentsSetupApiFp;
|
|
248
252
|
/**
|
|
249
|
-
*
|
|
253
|
+
* PaymentsSetupApi - factory interface
|
|
250
254
|
* @export
|
|
251
255
|
*/
|
|
252
|
-
var
|
|
253
|
-
var localVarFp = (0, exports.
|
|
256
|
+
var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
|
|
257
|
+
var localVarFp = (0, exports.PaymentsSetupApiFp)(configuration);
|
|
254
258
|
return {
|
|
255
259
|
/**
|
|
256
|
-
*
|
|
260
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
261
|
+
* @summary Complete a payment setup
|
|
257
262
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
258
263
|
* @param {string} [authorization] Bearer Token
|
|
259
264
|
* @param {*} [options] Override http request option.
|
|
@@ -263,7 +268,8 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
263
268
|
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
264
269
|
},
|
|
265
270
|
/**
|
|
266
|
-
*
|
|
271
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
272
|
+
* @summary Initiate a payment setup
|
|
267
273
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
268
274
|
* @param {string} [authorization] Bearer Token
|
|
269
275
|
* @param {*} [options] Override http request option.
|
|
@@ -274,40 +280,42 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
274
280
|
},
|
|
275
281
|
};
|
|
276
282
|
};
|
|
277
|
-
exports.
|
|
283
|
+
exports.PaymentsSetupApiFactory = PaymentsSetupApiFactory;
|
|
278
284
|
/**
|
|
279
|
-
*
|
|
285
|
+
* PaymentsSetupApi - object-oriented interface
|
|
280
286
|
* @export
|
|
281
|
-
* @class
|
|
287
|
+
* @class PaymentsSetupApi
|
|
282
288
|
* @extends {BaseAPI}
|
|
283
289
|
*/
|
|
284
|
-
var
|
|
285
|
-
__extends(
|
|
286
|
-
function
|
|
290
|
+
var PaymentsSetupApi = /** @class */ (function (_super) {
|
|
291
|
+
__extends(PaymentsSetupApi, _super);
|
|
292
|
+
function PaymentsSetupApi() {
|
|
287
293
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
288
294
|
}
|
|
289
295
|
/**
|
|
290
|
-
*
|
|
291
|
-
* @
|
|
296
|
+
* This will send the customer payment info from stripe or paypal to the backend.
|
|
297
|
+
* @summary Complete a payment setup
|
|
298
|
+
* @param {PaymentsSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
292
299
|
* @param {*} [options] Override http request option.
|
|
293
300
|
* @throws {RequiredError}
|
|
294
|
-
* @memberof
|
|
301
|
+
* @memberof PaymentsSetupApi
|
|
295
302
|
*/
|
|
296
|
-
|
|
303
|
+
PaymentsSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
297
304
|
var _this = this;
|
|
298
|
-
return (0, exports.
|
|
305
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
299
306
|
};
|
|
300
307
|
/**
|
|
301
|
-
*
|
|
302
|
-
* @
|
|
308
|
+
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
309
|
+
* @summary Initiate a payment setup
|
|
310
|
+
* @param {PaymentsSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
303
311
|
* @param {*} [options] Override http request option.
|
|
304
312
|
* @throws {RequiredError}
|
|
305
|
-
* @memberof
|
|
313
|
+
* @memberof PaymentsSetupApi
|
|
306
314
|
*/
|
|
307
|
-
|
|
315
|
+
PaymentsSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
308
316
|
var _this = this;
|
|
309
|
-
return (0, exports.
|
|
317
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
310
318
|
};
|
|
311
|
-
return
|
|
319
|
+
return PaymentsSetupApi;
|
|
312
320
|
}(base_1.BaseAPI));
|
|
313
|
-
exports.
|
|
321
|
+
exports.PaymentsSetupApi = PaymentsSetupApi;
|