@emilgroup/public-api-sdk-node 1.1.0 → 1.2.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/README.md +5 -3
- package/api/payments-setup-api.ts +40 -12
- package/dist/api/payments-setup-api.d.ts +24 -6
- package/dist/api/payments-setup-api.js +24 -12
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +4 -4
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +12 -6
- package/dist/models/create-estimated-invoice-request-dto.d.ts +8 -8
- package/dist/models/create-estimated-invoice-response-class.d.ts +7 -1
- package/dist/models/create-lead-request-dto.d.ts +3 -3
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +7 -1
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +7 -1
- package/dist/models/lead-policy-class.d.ts +2 -3
- package/dist/models/product-factor-class.d.ts +6 -0
- package/dist/models/update-lead-request-dto.d.ts +2 -2
- package/models/complete-braintree-payment-setup-request-dto.ts +4 -4
- package/models/complete-stripe-payment-setup-request-dto.ts +12 -6
- package/models/create-estimated-invoice-request-dto.ts +8 -8
- package/models/create-estimated-invoice-response-class.ts +7 -1
- package/models/create-lead-request-dto.ts +3 -3
- package/models/initiate-braintree-payment-setup-request-dto.ts +7 -1
- package/models/initiate-stripe-payment-setup-request-dto.ts +7 -1
- package/models/lead-policy-class.ts +2 -3
- package/models/product-factor-class.ts +6 -0
- package/models/update-lead-request-dto.ts +2 -2
- package/package.json +1 -1
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.2.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.2.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -56,7 +56,9 @@ async function listDocuments(): Promise<Void> {
|
|
|
56
56
|
try {
|
|
57
57
|
const publicApi = new PublicApi();
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
await publicApi.initialize(); // should be called only once per Api.
|
|
60
|
+
|
|
61
|
+
const { data: { items } } = await publicApi.listDocuments();
|
|
60
62
|
|
|
61
63
|
console.log(items);
|
|
62
64
|
} catch(error) {
|
|
@@ -42,11 +42,12 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
42
42
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
43
43
|
* @summary Complete a payment setup
|
|
44
44
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
45
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
45
46
|
* @param {string} [authorization] Bearer Token
|
|
46
47
|
* @param {*} [options] Override http request option.
|
|
47
48
|
* @throws {RequiredError}
|
|
48
49
|
*/
|
|
49
|
-
completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
51
|
// verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
|
|
51
52
|
assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
|
|
52
53
|
const localVarPath = `/publicapi/v1/payment-setup/complete`;
|
|
@@ -67,6 +68,10 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
67
68
|
// http bearer authentication required
|
|
68
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
70
|
|
|
71
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
76
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
77
|
}
|
|
@@ -89,11 +94,12 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
89
94
|
* 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.
|
|
90
95
|
* @summary Initiate a payment setup
|
|
91
96
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
97
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
92
98
|
* @param {string} [authorization] Bearer Token
|
|
93
99
|
* @param {*} [options] Override http request option.
|
|
94
100
|
* @throws {RequiredError}
|
|
95
101
|
*/
|
|
96
|
-
initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
|
+
initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
103
|
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
98
104
|
assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
|
|
99
105
|
const localVarPath = `/publicapi/v1/payment-setup/initiate`;
|
|
@@ -114,6 +120,10 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
114
120
|
// http bearer authentication required
|
|
115
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
116
122
|
|
|
123
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
124
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
125
|
+
}
|
|
126
|
+
|
|
117
127
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
128
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
129
|
}
|
|
@@ -146,24 +156,26 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
146
156
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
147
157
|
* @summary Complete a payment setup
|
|
148
158
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
159
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
149
160
|
* @param {string} [authorization] Bearer Token
|
|
150
161
|
* @param {*} [options] Override http request option.
|
|
151
162
|
* @throws {RequiredError}
|
|
152
163
|
*/
|
|
153
|
-
async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
154
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
|
|
164
|
+
async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options);
|
|
155
166
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
156
167
|
},
|
|
157
168
|
/**
|
|
158
169
|
* 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.
|
|
159
170
|
* @summary Initiate a payment setup
|
|
160
171
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
172
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
161
173
|
* @param {string} [authorization] Bearer Token
|
|
162
174
|
* @param {*} [options] Override http request option.
|
|
163
175
|
* @throws {RequiredError}
|
|
164
176
|
*/
|
|
165
|
-
async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
166
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
|
|
177
|
+
async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, idempotencyKey, authorization, options);
|
|
167
179
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
180
|
},
|
|
169
181
|
}
|
|
@@ -180,23 +192,25 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
180
192
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
181
193
|
* @summary Complete a payment setup
|
|
182
194
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
195
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
183
196
|
* @param {string} [authorization] Bearer Token
|
|
184
197
|
* @param {*} [options] Override http request option.
|
|
185
198
|
* @throws {RequiredError}
|
|
186
199
|
*/
|
|
187
|
-
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
188
|
-
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
200
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
201
|
+
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
189
202
|
},
|
|
190
203
|
/**
|
|
191
204
|
* 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.
|
|
192
205
|
* @summary Initiate a payment setup
|
|
193
206
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
207
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
194
208
|
* @param {string} [authorization] Bearer Token
|
|
195
209
|
* @param {*} [options] Override http request option.
|
|
196
210
|
* @throws {RequiredError}
|
|
197
211
|
*/
|
|
198
|
-
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
199
|
-
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
212
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
213
|
+
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
200
214
|
},
|
|
201
215
|
};
|
|
202
216
|
};
|
|
@@ -214,6 +228,13 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
214
228
|
*/
|
|
215
229
|
readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
|
|
216
230
|
|
|
231
|
+
/**
|
|
232
|
+
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof PaymentsSetupApiCompletePaymentSetup
|
|
235
|
+
*/
|
|
236
|
+
readonly idempotencyKey?: string
|
|
237
|
+
|
|
217
238
|
/**
|
|
218
239
|
* Bearer Token
|
|
219
240
|
* @type {string}
|
|
@@ -235,6 +256,13 @@ export interface PaymentsSetupApiInitiatePaymentSetupRequest {
|
|
|
235
256
|
*/
|
|
236
257
|
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
|
|
237
258
|
|
|
259
|
+
/**
|
|
260
|
+
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @memberof PaymentsSetupApiInitiatePaymentSetup
|
|
263
|
+
*/
|
|
264
|
+
readonly idempotencyKey?: string
|
|
265
|
+
|
|
238
266
|
/**
|
|
239
267
|
* Bearer Token
|
|
240
268
|
* @type {string}
|
|
@@ -259,7 +287,7 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
259
287
|
* @memberof PaymentsSetupApi
|
|
260
288
|
*/
|
|
261
289
|
public completePaymentSetup(requestParameters: PaymentsSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return PaymentsSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
290
|
+
return PaymentsSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
263
291
|
}
|
|
264
292
|
|
|
265
293
|
/**
|
|
@@ -271,6 +299,6 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
271
299
|
* @memberof PaymentsSetupApi
|
|
272
300
|
*/
|
|
273
301
|
public initiatePaymentSetup(requestParameters: PaymentsSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
274
|
-
return PaymentsSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
302
|
+
return PaymentsSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
275
303
|
}
|
|
276
304
|
}
|
|
@@ -25,20 +25,22 @@ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configu
|
|
|
25
25
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
26
26
|
* @summary Complete a payment setup
|
|
27
27
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
28
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
28
29
|
* @param {string} [authorization] Bearer Token
|
|
29
30
|
* @param {*} [options] Override http request option.
|
|
30
31
|
* @throws {RequiredError}
|
|
31
32
|
*/
|
|
32
|
-
completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
34
|
/**
|
|
34
35
|
* 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
36
|
* @summary Initiate a payment setup
|
|
36
37
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
38
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
37
39
|
* @param {string} [authorization] Bearer Token
|
|
38
40
|
* @param {*} [options] Override http request option.
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
41
|
-
initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
44
|
};
|
|
43
45
|
/**
|
|
44
46
|
* PaymentsSetupApi - functional programming interface
|
|
@@ -49,20 +51,22 @@ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
|
|
|
49
51
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
50
52
|
* @summary Complete a payment setup
|
|
51
53
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
54
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
52
55
|
* @param {string} [authorization] Bearer Token
|
|
53
56
|
* @param {*} [options] Override http request option.
|
|
54
57
|
* @throws {RequiredError}
|
|
55
58
|
*/
|
|
56
|
-
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
59
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
57
60
|
/**
|
|
58
61
|
* 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
62
|
* @summary Initiate a payment setup
|
|
60
63
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
64
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
61
65
|
* @param {string} [authorization] Bearer Token
|
|
62
66
|
* @param {*} [options] Override http request option.
|
|
63
67
|
* @throws {RequiredError}
|
|
64
68
|
*/
|
|
65
|
-
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
69
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
66
70
|
};
|
|
67
71
|
/**
|
|
68
72
|
* PaymentsSetupApi - factory interface
|
|
@@ -73,20 +77,22 @@ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, ba
|
|
|
73
77
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
74
78
|
* @summary Complete a payment setup
|
|
75
79
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
80
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
76
81
|
* @param {string} [authorization] Bearer Token
|
|
77
82
|
* @param {*} [options] Override http request option.
|
|
78
83
|
* @throws {RequiredError}
|
|
79
84
|
*/
|
|
80
|
-
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
85
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
81
86
|
/**
|
|
82
87
|
* 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
88
|
* @summary Initiate a payment setup
|
|
84
89
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
90
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
85
91
|
* @param {string} [authorization] Bearer Token
|
|
86
92
|
* @param {*} [options] Override http request option.
|
|
87
93
|
* @throws {RequiredError}
|
|
88
94
|
*/
|
|
89
|
-
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
95
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
90
96
|
};
|
|
91
97
|
/**
|
|
92
98
|
* Request parameters for completePaymentSetup operation in PaymentsSetupApi.
|
|
@@ -100,6 +106,12 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
100
106
|
* @memberof PaymentsSetupApiCompletePaymentSetup
|
|
101
107
|
*/
|
|
102
108
|
readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto;
|
|
109
|
+
/**
|
|
110
|
+
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof PaymentsSetupApiCompletePaymentSetup
|
|
113
|
+
*/
|
|
114
|
+
readonly idempotencyKey?: string;
|
|
103
115
|
/**
|
|
104
116
|
* Bearer Token
|
|
105
117
|
* @type {string}
|
|
@@ -119,6 +131,12 @@ export interface PaymentsSetupApiInitiatePaymentSetupRequest {
|
|
|
119
131
|
* @memberof PaymentsSetupApiInitiatePaymentSetup
|
|
120
132
|
*/
|
|
121
133
|
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
|
|
134
|
+
/**
|
|
135
|
+
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof PaymentsSetupApiInitiatePaymentSetup
|
|
138
|
+
*/
|
|
139
|
+
readonly idempotencyKey?: string;
|
|
122
140
|
/**
|
|
123
141
|
* Bearer Token
|
|
124
142
|
* @type {string}
|
|
@@ -100,11 +100,12 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
101
101
|
* @summary Complete a payment setup
|
|
102
102
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
103
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
103
104
|
* @param {string} [authorization] Bearer Token
|
|
104
105
|
* @param {*} [options] Override http request option.
|
|
105
106
|
* @throws {RequiredError}
|
|
106
107
|
*/
|
|
107
|
-
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
108
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
108
109
|
if (options === void 0) { options = {}; }
|
|
109
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -129,6 +130,9 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
129
130
|
// authentication bearer required
|
|
130
131
|
// http bearer authentication required
|
|
131
132
|
_a.sent();
|
|
133
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
135
|
+
}
|
|
132
136
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
137
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
138
|
}
|
|
@@ -149,11 +153,12 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
149
153
|
* 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
154
|
* @summary Initiate a payment setup
|
|
151
155
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
156
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
152
157
|
* @param {string} [authorization] Bearer Token
|
|
153
158
|
* @param {*} [options] Override http request option.
|
|
154
159
|
* @throws {RequiredError}
|
|
155
160
|
*/
|
|
156
|
-
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
161
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
157
162
|
if (options === void 0) { options = {}; }
|
|
158
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -178,6 +183,9 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
_a.sent();
|
|
186
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
187
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
188
|
+
}
|
|
181
189
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
190
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
191
|
}
|
|
@@ -208,16 +216,17 @@ var PaymentsSetupApiFp = function (configuration) {
|
|
|
208
216
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
209
217
|
* @summary Complete a payment setup
|
|
210
218
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
219
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
211
220
|
* @param {string} [authorization] Bearer Token
|
|
212
221
|
* @param {*} [options] Override http request option.
|
|
213
222
|
* @throws {RequiredError}
|
|
214
223
|
*/
|
|
215
|
-
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
224
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
216
225
|
return __awaiter(this, void 0, void 0, function () {
|
|
217
226
|
var localVarAxiosArgs;
|
|
218
227
|
return __generator(this, function (_a) {
|
|
219
228
|
switch (_a.label) {
|
|
220
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
|
|
229
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options)];
|
|
221
230
|
case 1:
|
|
222
231
|
localVarAxiosArgs = _a.sent();
|
|
223
232
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -229,16 +238,17 @@ var PaymentsSetupApiFp = function (configuration) {
|
|
|
229
238
|
* 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
239
|
* @summary Initiate a payment setup
|
|
231
240
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
241
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
232
242
|
* @param {string} [authorization] Bearer Token
|
|
233
243
|
* @param {*} [options] Override http request option.
|
|
234
244
|
* @throws {RequiredError}
|
|
235
245
|
*/
|
|
236
|
-
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
246
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
237
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
238
248
|
var localVarAxiosArgs;
|
|
239
249
|
return __generator(this, function (_a) {
|
|
240
250
|
switch (_a.label) {
|
|
241
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
|
|
251
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, idempotencyKey, authorization, options)];
|
|
242
252
|
case 1:
|
|
243
253
|
localVarAxiosArgs = _a.sent();
|
|
244
254
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -260,23 +270,25 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
260
270
|
* This will send the customer payment info from stripe or paypal to the backend.
|
|
261
271
|
* @summary Complete a payment setup
|
|
262
272
|
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
273
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
263
274
|
* @param {string} [authorization] Bearer Token
|
|
264
275
|
* @param {*} [options] Override http request option.
|
|
265
276
|
* @throws {RequiredError}
|
|
266
277
|
*/
|
|
267
|
-
completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
|
|
268
|
-
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
278
|
+
completePaymentSetup: function (completePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
279
|
+
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
269
280
|
},
|
|
270
281
|
/**
|
|
271
282
|
* 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
283
|
* @summary Initiate a payment setup
|
|
273
284
|
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
285
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
274
286
|
* @param {string} [authorization] Bearer Token
|
|
275
287
|
* @param {*} [options] Override http request option.
|
|
276
288
|
* @throws {RequiredError}
|
|
277
289
|
*/
|
|
278
|
-
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
|
|
279
|
-
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
290
|
+
initiatePaymentSetup: function (initiatePaymentSetupRequestDto, idempotencyKey, authorization, options) {
|
|
291
|
+
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
280
292
|
},
|
|
281
293
|
};
|
|
282
294
|
};
|
|
@@ -302,7 +314,7 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
|
|
|
302
314
|
*/
|
|
303
315
|
PaymentsSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
304
316
|
var _this = this;
|
|
305
|
-
return (0, exports.PaymentsSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
317
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
306
318
|
};
|
|
307
319
|
/**
|
|
308
320
|
* 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.
|
|
@@ -314,7 +326,7 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
|
|
|
314
326
|
*/
|
|
315
327
|
PaymentsSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
316
328
|
var _this = this;
|
|
317
|
-
return (0, exports.PaymentsSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
329
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
318
330
|
};
|
|
319
331
|
return PaymentsSetupApi;
|
|
320
332
|
}(base_1.BaseAPI));
|
|
@@ -34,15 +34,15 @@ export interface CompleteBraintreePaymentSetupRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'lastName': string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Braintree nonce generated by client.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CompleteBraintreePaymentSetupRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'nonce': string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Unique identifier of the lead that this object belongs to.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CompleteBraintreePaymentSetupRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'leadCode': string;
|
|
48
48
|
}
|
|
@@ -34,21 +34,27 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'lastName': string;
|
|
36
36
|
/**
|
|
37
|
-
* Unique identifier
|
|
37
|
+
* Unique identifier for the customer on Stripe.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'pspCustomerId': string;
|
|
42
42
|
/**
|
|
43
|
-
* Unique identifier for the
|
|
43
|
+
* Unique identifier for the payment method on Stripe.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'pspPaymentMethodId'?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The payment method type on Stripe.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'paymentMethodType'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier of the lead that this object belongs to.
|
|
50
56
|
* @type {string}
|
|
51
57
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
52
58
|
*/
|
|
53
|
-
'
|
|
59
|
+
'leadCode'?: string;
|
|
54
60
|
}
|
|
@@ -18,29 +18,29 @@ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CreateEstimatedInvoiceRequestDto {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The policy objects to calculate premium.
|
|
22
22
|
* @type {Array<PolicyObjectRequestDto>}
|
|
23
23
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
24
24
|
*/
|
|
25
|
-
'policyObjects'
|
|
25
|
+
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
26
26
|
/**
|
|
27
|
-
* Customer custom data for premium calculation.
|
|
27
|
+
* Customer custom data for premium calculation. Necessary when no policyObjects are provided.
|
|
28
28
|
* @type {object}
|
|
29
29
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
30
30
|
*/
|
|
31
|
-
'data'
|
|
31
|
+
'data'?: object;
|
|
32
32
|
/**
|
|
33
|
-
* Custom provider name.
|
|
33
|
+
* Custom provider name. Necessary if data is provided.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
36
36
|
*/
|
|
37
|
-
'provider'
|
|
37
|
+
'provider'?: CreateEstimatedInvoiceRequestDtoProviderEnum;
|
|
38
38
|
/**
|
|
39
39
|
* Premium Override.
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {PremiumOverrideRequestDto}
|
|
41
41
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
42
42
|
*/
|
|
43
|
-
'premiumOverride'?:
|
|
43
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
44
44
|
}
|
|
45
45
|
export declare const CreateEstimatedInvoiceRequestDtoProviderEnum: {
|
|
46
46
|
readonly Squarelife: "squarelife";
|
|
@@ -21,5 +21,11 @@ export interface CreateEstimatedInvoiceResponseClass {
|
|
|
21
21
|
* @type {InvoiceClass}
|
|
22
22
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoice'
|
|
24
|
+
'invoice'?: InvoiceClass;
|
|
25
|
+
/**
|
|
26
|
+
* This value will not be null when using a custom premium calculation. For more information, check the general documentation.
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'custom'?: object;
|
|
25
31
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
13
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
14
14
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
15
|
-
import {
|
|
15
|
+
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
16
16
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -64,10 +64,10 @@ export interface CreateLeadRequestDto {
|
|
|
64
64
|
'status'?: CreateLeadRequestDtoStatusEnum;
|
|
65
65
|
/**
|
|
66
66
|
* Premium Override.
|
|
67
|
-
* @type {
|
|
67
|
+
* @type {PremiumOverrideRequestDto}
|
|
68
68
|
* @memberof CreateLeadRequestDto
|
|
69
69
|
*/
|
|
70
|
-
'premiumOverride'
|
|
70
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {CreateAccountRequestDto}
|
|
@@ -20,5 +20,11 @@ export interface InitiateBraintreePaymentSetupRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof InitiateBraintreePaymentSetupRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'leadCode'
|
|
23
|
+
'leadCode'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the account that this object belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiateBraintreePaymentSetupRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'accountCode'?: string;
|
|
24
30
|
}
|
|
@@ -20,5 +20,11 @@ export interface InitiateStripePaymentSetupRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof InitiateStripePaymentSetupRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'leadCode'
|
|
23
|
+
'leadCode'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the account that this object belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiateStripePaymentSetupRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'accountCode'?: string;
|
|
24
30
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { LeadPolicyObjectClass } from './lead-policy-object-class';
|
|
13
|
-
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -31,10 +30,10 @@ export interface LeadPolicyClass {
|
|
|
31
30
|
'account': string;
|
|
32
31
|
/**
|
|
33
32
|
* Premium override.
|
|
34
|
-
* @type {
|
|
33
|
+
* @type {Array<string>}
|
|
35
34
|
* @memberof LeadPolicyClass
|
|
36
35
|
*/
|
|
37
|
-
'
|
|
36
|
+
'premiumOverrides': Array<string>;
|
|
38
37
|
/**
|
|
39
38
|
* Policy objects.
|
|
40
39
|
* @type {Array<LeadPolicyObjectClass>}
|
|
@@ -58,10 +58,10 @@ export interface UpdateLeadRequestDto {
|
|
|
58
58
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
59
59
|
/**
|
|
60
60
|
* Premium Override
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {PremiumOverrideRequestDto}
|
|
62
62
|
* @memberof UpdateLeadRequestDto
|
|
63
63
|
*/
|
|
64
|
-
'premiumOverride'?:
|
|
64
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {CreateAccountRequestDto}
|
|
@@ -39,16 +39,16 @@ export interface CompleteBraintreePaymentSetupRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'lastName': string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Braintree nonce generated by client.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CompleteBraintreePaymentSetupRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'nonce': string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Unique identifier of the lead that this object belongs to.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CompleteBraintreePaymentSetupRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'leadCode': string;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -39,22 +39,28 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'lastName': string;
|
|
41
41
|
/**
|
|
42
|
-
* Unique identifier
|
|
42
|
+
* Unique identifier for the customer on Stripe.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'pspCustomerId': string;
|
|
47
47
|
/**
|
|
48
|
-
* Unique identifier for the
|
|
48
|
+
* Unique identifier for the payment method on Stripe.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'pspPaymentMethodId'?: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The payment method type on Stripe.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'paymentMethodType'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier of the lead that this object belongs to.
|
|
55
61
|
* @type {string}
|
|
56
62
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
57
63
|
*/
|
|
58
|
-
'
|
|
64
|
+
'leadCode'?: string;
|
|
59
65
|
}
|
|
60
66
|
|
|
@@ -23,29 +23,29 @@ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
|
23
23
|
*/
|
|
24
24
|
export interface CreateEstimatedInvoiceRequestDto {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The policy objects to calculate premium.
|
|
27
27
|
* @type {Array<PolicyObjectRequestDto>}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
29
|
*/
|
|
30
|
-
'policyObjects'
|
|
30
|
+
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
31
31
|
/**
|
|
32
|
-
* Customer custom data for premium calculation.
|
|
32
|
+
* Customer custom data for premium calculation. Necessary when no policyObjects are provided.
|
|
33
33
|
* @type {object}
|
|
34
34
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
35
35
|
*/
|
|
36
|
-
'data'
|
|
36
|
+
'data'?: object;
|
|
37
37
|
/**
|
|
38
|
-
* Custom provider name.
|
|
38
|
+
* Custom provider name. Necessary if data is provided.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
41
41
|
*/
|
|
42
|
-
'provider'
|
|
42
|
+
'provider'?: CreateEstimatedInvoiceRequestDtoProviderEnum;
|
|
43
43
|
/**
|
|
44
44
|
* Premium Override.
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {PremiumOverrideRequestDto}
|
|
46
46
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
47
47
|
*/
|
|
48
|
-
'premiumOverride'?:
|
|
48
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export const CreateEstimatedInvoiceRequestDtoProviderEnum = {
|
|
@@ -26,6 +26,12 @@ export interface CreateEstimatedInvoiceResponseClass {
|
|
|
26
26
|
* @type {InvoiceClass}
|
|
27
27
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'invoice'
|
|
29
|
+
'invoice'?: InvoiceClass;
|
|
30
|
+
/**
|
|
31
|
+
* This value will not be null when using a custom premium calculation. For more information, check the general documentation.
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'custom'?: object;
|
|
30
36
|
}
|
|
31
37
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
17
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
18
18
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
19
|
-
import {
|
|
19
|
+
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
20
20
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -69,10 +69,10 @@ export interface CreateLeadRequestDto {
|
|
|
69
69
|
'status'?: CreateLeadRequestDtoStatusEnum;
|
|
70
70
|
/**
|
|
71
71
|
* Premium Override.
|
|
72
|
-
* @type {
|
|
72
|
+
* @type {PremiumOverrideRequestDto}
|
|
73
73
|
* @memberof CreateLeadRequestDto
|
|
74
74
|
*/
|
|
75
|
-
'premiumOverride'
|
|
75
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {CreateAccountRequestDto}
|
|
@@ -25,6 +25,12 @@ export interface InitiateBraintreePaymentSetupRequestDto {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof InitiateBraintreePaymentSetupRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'leadCode'
|
|
28
|
+
'leadCode'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier of the account that this object belongs to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InitiateBraintreePaymentSetupRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'accountCode'?: string;
|
|
29
35
|
}
|
|
30
36
|
|
|
@@ -25,6 +25,12 @@ export interface InitiateStripePaymentSetupRequestDto {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof InitiateStripePaymentSetupRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'leadCode'
|
|
28
|
+
'leadCode'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier of the account that this object belongs to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InitiateStripePaymentSetupRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'accountCode'?: string;
|
|
29
35
|
}
|
|
30
36
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { LeadPolicyObjectClass } from './lead-policy-object-class';
|
|
17
|
-
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
@@ -36,10 +35,10 @@ export interface LeadPolicyClass {
|
|
|
36
35
|
'account': string;
|
|
37
36
|
/**
|
|
38
37
|
* Premium override.
|
|
39
|
-
* @type {
|
|
38
|
+
* @type {Array<string>}
|
|
40
39
|
* @memberof LeadPolicyClass
|
|
41
40
|
*/
|
|
42
|
-
'
|
|
41
|
+
'premiumOverrides': Array<string>;
|
|
43
42
|
/**
|
|
44
43
|
* Policy objects.
|
|
45
44
|
* @type {Array<LeadPolicyObjectClass>}
|
|
@@ -63,10 +63,10 @@ export interface UpdateLeadRequestDto {
|
|
|
63
63
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
64
64
|
/**
|
|
65
65
|
* Premium Override
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {PremiumOverrideRequestDto}
|
|
67
67
|
* @memberof UpdateLeadRequestDto
|
|
68
68
|
*/
|
|
69
|
-
'premiumOverride'?:
|
|
69
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {CreateAccountRequestDto}
|