@rasadov/lumoar-sdk 1.1.7 → 1.1.9
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 +2 -1
- package/api.ts +169 -42
- package/dist/api.d.ts +115 -31
- package/dist/api.js +115 -22
- package/docs/Customer.md +24 -0
- package/docs/PaymentsApi.md +58 -0
- package/docs/SubscriptionResponse.md +28 -0
- package/docs/UserApi.md +16 -8
- package/docs/VerifyEmailSchema.md +0 -4
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,7 @@ docs/ControlWithEvidences.md
|
|
|
24
24
|
docs/ControlWithRelationships.md
|
|
25
25
|
docs/ControlsApi.md
|
|
26
26
|
docs/CreateTaskSchema.md
|
|
27
|
+
docs/Customer.md
|
|
27
28
|
docs/CustomerDoesNotExist.md
|
|
28
29
|
docs/CustomerPortalSession.md
|
|
29
30
|
docs/DeleteTaskSchema.md
|
|
@@ -65,7 +66,7 @@ docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
|
|
|
65
66
|
docs/RolesApi.md
|
|
66
67
|
docs/RolesWithUser.md
|
|
67
68
|
docs/SchedulerRequest.md
|
|
68
|
-
docs/
|
|
69
|
+
docs/SubscriptionResponse.md
|
|
69
70
|
docs/TaskPriority.md
|
|
70
71
|
docs/TaskRead.md
|
|
71
72
|
docs/TaskStatus.md
|
package/api.ts
CHANGED
|
@@ -824,6 +824,31 @@ export interface CreateTaskSchema {
|
|
|
824
824
|
*/
|
|
825
825
|
'assigned_to_id': string;
|
|
826
826
|
}
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @export
|
|
830
|
+
* @interface Customer
|
|
831
|
+
*/
|
|
832
|
+
export interface Customer {
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof Customer
|
|
837
|
+
*/
|
|
838
|
+
'customer_id': string;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {string}
|
|
842
|
+
* @memberof Customer
|
|
843
|
+
*/
|
|
844
|
+
'name': string;
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @type {string}
|
|
848
|
+
* @memberof Customer
|
|
849
|
+
*/
|
|
850
|
+
'email': string;
|
|
851
|
+
}
|
|
827
852
|
/**
|
|
828
853
|
*
|
|
829
854
|
* @export
|
|
@@ -1712,23 +1737,41 @@ export interface SchedulerRequest {
|
|
|
1712
1737
|
'user_ids_to_assign'?: Array<string>;
|
|
1713
1738
|
}
|
|
1714
1739
|
/**
|
|
1715
|
-
*
|
|
1740
|
+
*
|
|
1716
1741
|
* @export
|
|
1717
|
-
* @interface
|
|
1742
|
+
* @interface SubscriptionResponse
|
|
1718
1743
|
*/
|
|
1719
|
-
export interface
|
|
1744
|
+
export interface SubscriptionResponse {
|
|
1720
1745
|
/**
|
|
1721
1746
|
*
|
|
1722
1747
|
* @type {string}
|
|
1723
|
-
* @memberof
|
|
1748
|
+
* @memberof SubscriptionResponse
|
|
1724
1749
|
*/
|
|
1725
|
-
'
|
|
1750
|
+
'subscription_id': string;
|
|
1726
1751
|
/**
|
|
1727
1752
|
*
|
|
1728
1753
|
* @type {string}
|
|
1729
|
-
* @memberof
|
|
1754
|
+
* @memberof SubscriptionResponse
|
|
1730
1755
|
*/
|
|
1731
|
-
'
|
|
1756
|
+
'status': string;
|
|
1757
|
+
/**
|
|
1758
|
+
*
|
|
1759
|
+
* @type {string}
|
|
1760
|
+
* @memberof SubscriptionResponse
|
|
1761
|
+
*/
|
|
1762
|
+
'product_id': string;
|
|
1763
|
+
/**
|
|
1764
|
+
*
|
|
1765
|
+
* @type {Customer}
|
|
1766
|
+
* @memberof SubscriptionResponse
|
|
1767
|
+
*/
|
|
1768
|
+
'customer': Customer;
|
|
1769
|
+
/**
|
|
1770
|
+
*
|
|
1771
|
+
* @type {string}
|
|
1772
|
+
* @memberof SubscriptionResponse
|
|
1773
|
+
*/
|
|
1774
|
+
'subscribed_till': string;
|
|
1732
1775
|
}
|
|
1733
1776
|
/**
|
|
1734
1777
|
*
|
|
@@ -2233,24 +2276,12 @@ export interface ValidationErrorLocInner {
|
|
|
2233
2276
|
* @interface VerifyEmailSchema
|
|
2234
2277
|
*/
|
|
2235
2278
|
export interface VerifyEmailSchema {
|
|
2236
|
-
/**
|
|
2237
|
-
*
|
|
2238
|
-
* @type {string}
|
|
2239
|
-
* @memberof VerifyEmailSchema
|
|
2240
|
-
*/
|
|
2241
|
-
'email': string;
|
|
2242
2279
|
/**
|
|
2243
2280
|
*
|
|
2244
2281
|
* @type {string}
|
|
2245
2282
|
* @memberof VerifyEmailSchema
|
|
2246
2283
|
*/
|
|
2247
2284
|
'otp_code': string;
|
|
2248
|
-
/**
|
|
2249
|
-
*
|
|
2250
|
-
* @type {string}
|
|
2251
|
-
* @memberof VerifyEmailSchema
|
|
2252
|
-
*/
|
|
2253
|
-
'turnstile_token': string;
|
|
2254
2285
|
}
|
|
2255
2286
|
|
|
2256
2287
|
/**
|
|
@@ -4806,6 +4837,48 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4806
4837
|
|
|
4807
4838
|
|
|
4808
4839
|
|
|
4840
|
+
if (authorization != null) {
|
|
4841
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4842
|
+
}
|
|
4843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4846
|
+
|
|
4847
|
+
return {
|
|
4848
|
+
url: toPathString(localVarUrlObj),
|
|
4849
|
+
options: localVarRequestOptions,
|
|
4850
|
+
};
|
|
4851
|
+
},
|
|
4852
|
+
/**
|
|
4853
|
+
*
|
|
4854
|
+
* @summary Get Subscription
|
|
4855
|
+
* @param {string} companyId
|
|
4856
|
+
* @param {string} [authorization]
|
|
4857
|
+
* @param {string} [sessionId]
|
|
4858
|
+
* @param {*} [options] Override http request option.
|
|
4859
|
+
* @throws {RequiredError}
|
|
4860
|
+
*/
|
|
4861
|
+
getSubscriptionV1PaymentsSubscriptionGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4862
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4863
|
+
assertParamExists('getSubscriptionV1PaymentsSubscriptionGet', 'companyId', companyId)
|
|
4864
|
+
const localVarPath = `/v1/payments/subscription`;
|
|
4865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4866
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4867
|
+
let baseOptions;
|
|
4868
|
+
if (configuration) {
|
|
4869
|
+
baseOptions = configuration.baseOptions;
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4872
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4873
|
+
const localVarHeaderParameter = {} as any;
|
|
4874
|
+
const localVarQueryParameter = {} as any;
|
|
4875
|
+
|
|
4876
|
+
if (companyId !== undefined) {
|
|
4877
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
|
|
4881
|
+
|
|
4809
4882
|
if (authorization != null) {
|
|
4810
4883
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4811
4884
|
}
|
|
@@ -4888,6 +4961,21 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
4888
4961
|
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
|
|
4889
4962
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4890
4963
|
},
|
|
4964
|
+
/**
|
|
4965
|
+
*
|
|
4966
|
+
* @summary Get Subscription
|
|
4967
|
+
* @param {string} companyId
|
|
4968
|
+
* @param {string} [authorization]
|
|
4969
|
+
* @param {string} [sessionId]
|
|
4970
|
+
* @param {*} [options] Override http request option.
|
|
4971
|
+
* @throws {RequiredError}
|
|
4972
|
+
*/
|
|
4973
|
+
async getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
|
|
4974
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options);
|
|
4975
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4976
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getSubscriptionV1PaymentsSubscriptionGet']?.[localVarOperationServerIndex]?.url;
|
|
4977
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4978
|
+
},
|
|
4891
4979
|
/**
|
|
4892
4980
|
*
|
|
4893
4981
|
* @summary Webhook
|
|
@@ -4934,6 +5022,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4934
5022
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
|
|
4935
5023
|
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4936
5024
|
},
|
|
5025
|
+
/**
|
|
5026
|
+
*
|
|
5027
|
+
* @summary Get Subscription
|
|
5028
|
+
* @param {string} companyId
|
|
5029
|
+
* @param {string} [authorization]
|
|
5030
|
+
* @param {string} [sessionId]
|
|
5031
|
+
* @param {*} [options] Override http request option.
|
|
5032
|
+
* @throws {RequiredError}
|
|
5033
|
+
*/
|
|
5034
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
|
|
5035
|
+
return localVarFp.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5036
|
+
},
|
|
4937
5037
|
/**
|
|
4938
5038
|
*
|
|
4939
5039
|
* @summary Webhook
|
|
@@ -4981,6 +5081,20 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4981
5081
|
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4982
5082
|
}
|
|
4983
5083
|
|
|
5084
|
+
/**
|
|
5085
|
+
*
|
|
5086
|
+
* @summary Get Subscription
|
|
5087
|
+
* @param {string} companyId
|
|
5088
|
+
* @param {string} [authorization]
|
|
5089
|
+
* @param {string} [sessionId]
|
|
5090
|
+
* @param {*} [options] Override http request option.
|
|
5091
|
+
* @throws {RequiredError}
|
|
5092
|
+
* @memberof PaymentsApi
|
|
5093
|
+
*/
|
|
5094
|
+
public getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5095
|
+
return PaymentsApiFp(this.configuration).getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5096
|
+
}
|
|
5097
|
+
|
|
4984
5098
|
/**
|
|
4985
5099
|
*
|
|
4986
5100
|
* @summary Webhook
|
|
@@ -7231,13 +7345,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7231
7345
|
/**
|
|
7232
7346
|
*
|
|
7233
7347
|
* @summary Send Verification Email
|
|
7234
|
-
* @param {
|
|
7348
|
+
* @param {string} [authorization]
|
|
7349
|
+
* @param {string} [sessionId]
|
|
7235
7350
|
* @param {*} [options] Override http request option.
|
|
7236
7351
|
* @throws {RequiredError}
|
|
7237
7352
|
*/
|
|
7238
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: async (
|
|
7239
|
-
// verify required parameter 'sendOTPSchema' is not null or undefined
|
|
7240
|
-
assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema)
|
|
7353
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7241
7354
|
const localVarPath = `/v1/user/send-verification-email`;
|
|
7242
7355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7243
7356
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7252,12 +7365,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7252
7365
|
|
|
7253
7366
|
|
|
7254
7367
|
|
|
7255
|
-
|
|
7256
|
-
|
|
7368
|
+
if (authorization != null) {
|
|
7369
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7370
|
+
}
|
|
7257
7371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7258
7372
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7259
7373
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7260
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration)
|
|
7261
7374
|
|
|
7262
7375
|
return {
|
|
7263
7376
|
url: toPathString(localVarUrlObj),
|
|
@@ -7305,10 +7418,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7305
7418
|
*
|
|
7306
7419
|
* @summary Verify Email
|
|
7307
7420
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7421
|
+
* @param {string} [authorization]
|
|
7422
|
+
* @param {string} [sessionId]
|
|
7308
7423
|
* @param {*} [options] Override http request option.
|
|
7309
7424
|
* @throws {RequiredError}
|
|
7310
7425
|
*/
|
|
7311
|
-
verifyEmailV1UserVerifyEmailPost: async (verifyEmailSchema: VerifyEmailSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7426
|
+
verifyEmailV1UserVerifyEmailPost: async (verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7312
7427
|
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
7313
7428
|
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema)
|
|
7314
7429
|
const localVarPath = `/v1/user/verify-email`;
|
|
@@ -7327,6 +7442,9 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7327
7442
|
|
|
7328
7443
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7329
7444
|
|
|
7445
|
+
if (authorization != null) {
|
|
7446
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7447
|
+
}
|
|
7330
7448
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7331
7449
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7332
7450
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7442,12 +7560,13 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7442
7560
|
/**
|
|
7443
7561
|
*
|
|
7444
7562
|
* @summary Send Verification Email
|
|
7445
|
-
* @param {
|
|
7563
|
+
* @param {string} [authorization]
|
|
7564
|
+
* @param {string} [sessionId]
|
|
7446
7565
|
* @param {*} [options] Override http request option.
|
|
7447
7566
|
* @throws {RequiredError}
|
|
7448
7567
|
*/
|
|
7449
|
-
async sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7568
|
+
async sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options);
|
|
7451
7570
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7452
7571
|
const localVarOperationServerBasePath = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7453
7572
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7470,11 +7589,13 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7470
7589
|
*
|
|
7471
7590
|
* @summary Verify Email
|
|
7472
7591
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7592
|
+
* @param {string} [authorization]
|
|
7593
|
+
* @param {string} [sessionId]
|
|
7473
7594
|
* @param {*} [options] Override http request option.
|
|
7474
7595
|
* @throws {RequiredError}
|
|
7475
7596
|
*/
|
|
7476
|
-
async verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7477
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
|
|
7597
|
+
async verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options);
|
|
7478
7599
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7479
7600
|
const localVarOperationServerBasePath = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7480
7601
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7563,12 +7684,13 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7563
7684
|
/**
|
|
7564
7685
|
*
|
|
7565
7686
|
* @summary Send Verification Email
|
|
7566
|
-
* @param {
|
|
7687
|
+
* @param {string} [authorization]
|
|
7688
|
+
* @param {string} [sessionId]
|
|
7567
7689
|
* @param {*} [options] Override http request option.
|
|
7568
7690
|
* @throws {RequiredError}
|
|
7569
7691
|
*/
|
|
7570
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7571
|
-
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7692
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7693
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7572
7694
|
},
|
|
7573
7695
|
/**
|
|
7574
7696
|
*
|
|
@@ -7585,11 +7707,13 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7585
7707
|
*
|
|
7586
7708
|
* @summary Verify Email
|
|
7587
7709
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7710
|
+
* @param {string} [authorization]
|
|
7711
|
+
* @param {string} [sessionId]
|
|
7588
7712
|
* @param {*} [options] Override http request option.
|
|
7589
7713
|
* @throws {RequiredError}
|
|
7590
7714
|
*/
|
|
7591
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7592
|
-
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
|
|
7715
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7716
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7593
7717
|
},
|
|
7594
7718
|
};
|
|
7595
7719
|
};
|
|
@@ -7689,13 +7813,14 @@ export class UserApi extends BaseAPI {
|
|
|
7689
7813
|
/**
|
|
7690
7814
|
*
|
|
7691
7815
|
* @summary Send Verification Email
|
|
7692
|
-
* @param {
|
|
7816
|
+
* @param {string} [authorization]
|
|
7817
|
+
* @param {string} [sessionId]
|
|
7693
7818
|
* @param {*} [options] Override http request option.
|
|
7694
7819
|
* @throws {RequiredError}
|
|
7695
7820
|
* @memberof UserApi
|
|
7696
7821
|
*/
|
|
7697
|
-
public sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7698
|
-
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7822
|
+
public sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7823
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
7699
7824
|
}
|
|
7700
7825
|
|
|
7701
7826
|
/**
|
|
@@ -7715,12 +7840,14 @@ export class UserApi extends BaseAPI {
|
|
|
7715
7840
|
*
|
|
7716
7841
|
* @summary Verify Email
|
|
7717
7842
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7843
|
+
* @param {string} [authorization]
|
|
7844
|
+
* @param {string} [sessionId]
|
|
7718
7845
|
* @param {*} [options] Override http request option.
|
|
7719
7846
|
* @throws {RequiredError}
|
|
7720
7847
|
* @memberof UserApi
|
|
7721
7848
|
*/
|
|
7722
|
-
public verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig) {
|
|
7723
|
-
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
|
|
7849
|
+
public verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7850
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
7724
7851
|
}
|
|
7725
7852
|
}
|
|
7726
7853
|
|
package/dist/api.d.ts
CHANGED
|
@@ -799,6 +799,31 @@ export interface CreateTaskSchema {
|
|
|
799
799
|
*/
|
|
800
800
|
'assigned_to_id': string;
|
|
801
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @export
|
|
805
|
+
* @interface Customer
|
|
806
|
+
*/
|
|
807
|
+
export interface Customer {
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof Customer
|
|
812
|
+
*/
|
|
813
|
+
'customer_id': string;
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @type {string}
|
|
817
|
+
* @memberof Customer
|
|
818
|
+
*/
|
|
819
|
+
'name': string;
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @type {string}
|
|
823
|
+
* @memberof Customer
|
|
824
|
+
*/
|
|
825
|
+
'email': string;
|
|
826
|
+
}
|
|
802
827
|
/**
|
|
803
828
|
*
|
|
804
829
|
* @export
|
|
@@ -1680,23 +1705,41 @@ export interface SchedulerRequest {
|
|
|
1680
1705
|
'user_ids_to_assign'?: Array<string>;
|
|
1681
1706
|
}
|
|
1682
1707
|
/**
|
|
1683
|
-
*
|
|
1708
|
+
*
|
|
1684
1709
|
* @export
|
|
1685
|
-
* @interface
|
|
1710
|
+
* @interface SubscriptionResponse
|
|
1686
1711
|
*/
|
|
1687
|
-
export interface
|
|
1712
|
+
export interface SubscriptionResponse {
|
|
1688
1713
|
/**
|
|
1689
1714
|
*
|
|
1690
1715
|
* @type {string}
|
|
1691
|
-
* @memberof
|
|
1716
|
+
* @memberof SubscriptionResponse
|
|
1692
1717
|
*/
|
|
1693
|
-
'
|
|
1718
|
+
'subscription_id': string;
|
|
1694
1719
|
/**
|
|
1695
1720
|
*
|
|
1696
1721
|
* @type {string}
|
|
1697
|
-
* @memberof
|
|
1722
|
+
* @memberof SubscriptionResponse
|
|
1698
1723
|
*/
|
|
1699
|
-
'
|
|
1724
|
+
'status': string;
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof SubscriptionResponse
|
|
1729
|
+
*/
|
|
1730
|
+
'product_id': string;
|
|
1731
|
+
/**
|
|
1732
|
+
*
|
|
1733
|
+
* @type {Customer}
|
|
1734
|
+
* @memberof SubscriptionResponse
|
|
1735
|
+
*/
|
|
1736
|
+
'customer': Customer;
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @type {string}
|
|
1740
|
+
* @memberof SubscriptionResponse
|
|
1741
|
+
*/
|
|
1742
|
+
'subscribed_till': string;
|
|
1700
1743
|
}
|
|
1701
1744
|
/**
|
|
1702
1745
|
*
|
|
@@ -2185,24 +2228,12 @@ export interface ValidationErrorLocInner {
|
|
|
2185
2228
|
* @interface VerifyEmailSchema
|
|
2186
2229
|
*/
|
|
2187
2230
|
export interface VerifyEmailSchema {
|
|
2188
|
-
/**
|
|
2189
|
-
*
|
|
2190
|
-
* @type {string}
|
|
2191
|
-
* @memberof VerifyEmailSchema
|
|
2192
|
-
*/
|
|
2193
|
-
'email': string;
|
|
2194
2231
|
/**
|
|
2195
2232
|
*
|
|
2196
2233
|
* @type {string}
|
|
2197
2234
|
* @memberof VerifyEmailSchema
|
|
2198
2235
|
*/
|
|
2199
2236
|
'otp_code': string;
|
|
2200
|
-
/**
|
|
2201
|
-
*
|
|
2202
|
-
* @type {string}
|
|
2203
|
-
* @memberof VerifyEmailSchema
|
|
2204
|
-
*/
|
|
2205
|
-
'turnstile_token': string;
|
|
2206
2237
|
}
|
|
2207
2238
|
/**
|
|
2208
2239
|
* AuditLogsApi - axios parameter creator
|
|
@@ -3487,6 +3518,16 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3487
3518
|
* @throws {RequiredError}
|
|
3488
3519
|
*/
|
|
3489
3520
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3521
|
+
/**
|
|
3522
|
+
*
|
|
3523
|
+
* @summary Get Subscription
|
|
3524
|
+
* @param {string} companyId
|
|
3525
|
+
* @param {string} [authorization]
|
|
3526
|
+
* @param {string} [sessionId]
|
|
3527
|
+
* @param {*} [options] Override http request option.
|
|
3528
|
+
* @throws {RequiredError}
|
|
3529
|
+
*/
|
|
3530
|
+
getSubscriptionV1PaymentsSubscriptionGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3490
3531
|
/**
|
|
3491
3532
|
*
|
|
3492
3533
|
* @summary Webhook
|
|
@@ -3520,6 +3561,16 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
3520
3561
|
* @throws {RequiredError}
|
|
3521
3562
|
*/
|
|
3522
3563
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>>;
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Get Subscription
|
|
3567
|
+
* @param {string} companyId
|
|
3568
|
+
* @param {string} [authorization]
|
|
3569
|
+
* @param {string} [sessionId]
|
|
3570
|
+
* @param {*} [options] Override http request option.
|
|
3571
|
+
* @throws {RequiredError}
|
|
3572
|
+
*/
|
|
3573
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>>;
|
|
3523
3574
|
/**
|
|
3524
3575
|
*
|
|
3525
3576
|
* @summary Webhook
|
|
@@ -3553,6 +3604,16 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
3553
3604
|
* @throws {RequiredError}
|
|
3554
3605
|
*/
|
|
3555
3606
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>;
|
|
3607
|
+
/**
|
|
3608
|
+
*
|
|
3609
|
+
* @summary Get Subscription
|
|
3610
|
+
* @param {string} companyId
|
|
3611
|
+
* @param {string} [authorization]
|
|
3612
|
+
* @param {string} [sessionId]
|
|
3613
|
+
* @param {*} [options] Override http request option.
|
|
3614
|
+
* @throws {RequiredError}
|
|
3615
|
+
*/
|
|
3616
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse>;
|
|
3556
3617
|
/**
|
|
3557
3618
|
*
|
|
3558
3619
|
* @summary Webhook
|
|
@@ -3590,6 +3651,17 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
3590
3651
|
* @memberof PaymentsApi
|
|
3591
3652
|
*/
|
|
3592
3653
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet, any, {}>>;
|
|
3654
|
+
/**
|
|
3655
|
+
*
|
|
3656
|
+
* @summary Get Subscription
|
|
3657
|
+
* @param {string} companyId
|
|
3658
|
+
* @param {string} [authorization]
|
|
3659
|
+
* @param {string} [sessionId]
|
|
3660
|
+
* @param {*} [options] Override http request option.
|
|
3661
|
+
* @throws {RequiredError}
|
|
3662
|
+
* @memberof PaymentsApi
|
|
3663
|
+
*/
|
|
3664
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionResponse, any, {}>>;
|
|
3593
3665
|
/**
|
|
3594
3666
|
*
|
|
3595
3667
|
* @summary Webhook
|
|
@@ -4700,11 +4772,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4700
4772
|
/**
|
|
4701
4773
|
*
|
|
4702
4774
|
* @summary Send Verification Email
|
|
4703
|
-
* @param {
|
|
4775
|
+
* @param {string} [authorization]
|
|
4776
|
+
* @param {string} [sessionId]
|
|
4704
4777
|
* @param {*} [options] Override http request option.
|
|
4705
4778
|
* @throws {RequiredError}
|
|
4706
4779
|
*/
|
|
4707
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: (
|
|
4780
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4708
4781
|
/**
|
|
4709
4782
|
*
|
|
4710
4783
|
* @summary Update User
|
|
@@ -4718,10 +4791,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4718
4791
|
*
|
|
4719
4792
|
* @summary Verify Email
|
|
4720
4793
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4794
|
+
* @param {string} [authorization]
|
|
4795
|
+
* @param {string} [sessionId]
|
|
4721
4796
|
* @param {*} [options] Override http request option.
|
|
4722
4797
|
* @throws {RequiredError}
|
|
4723
4798
|
*/
|
|
4724
|
-
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4799
|
+
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4725
4800
|
};
|
|
4726
4801
|
/**
|
|
4727
4802
|
* UserApi - functional programming interface
|
|
@@ -4788,11 +4863,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4788
4863
|
/**
|
|
4789
4864
|
*
|
|
4790
4865
|
* @summary Send Verification Email
|
|
4791
|
-
* @param {
|
|
4866
|
+
* @param {string} [authorization]
|
|
4867
|
+
* @param {string} [sessionId]
|
|
4792
4868
|
* @param {*} [options] Override http request option.
|
|
4793
4869
|
* @throws {RequiredError}
|
|
4794
4870
|
*/
|
|
4795
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
4871
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4796
4872
|
/**
|
|
4797
4873
|
*
|
|
4798
4874
|
* @summary Update User
|
|
@@ -4806,10 +4882,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4806
4882
|
*
|
|
4807
4883
|
* @summary Verify Email
|
|
4808
4884
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4885
|
+
* @param {string} [authorization]
|
|
4886
|
+
* @param {string} [sessionId]
|
|
4809
4887
|
* @param {*} [options] Override http request option.
|
|
4810
4888
|
* @throws {RequiredError}
|
|
4811
4889
|
*/
|
|
4812
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4890
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4813
4891
|
};
|
|
4814
4892
|
/**
|
|
4815
4893
|
* UserApi - factory interface
|
|
@@ -4876,11 +4954,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4876
4954
|
/**
|
|
4877
4955
|
*
|
|
4878
4956
|
* @summary Send Verification Email
|
|
4879
|
-
* @param {
|
|
4957
|
+
* @param {string} [authorization]
|
|
4958
|
+
* @param {string} [sessionId]
|
|
4880
4959
|
* @param {*} [options] Override http request option.
|
|
4881
4960
|
* @throws {RequiredError}
|
|
4882
4961
|
*/
|
|
4883
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
4962
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4884
4963
|
/**
|
|
4885
4964
|
*
|
|
4886
4965
|
* @summary Update User
|
|
@@ -4894,10 +4973,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4894
4973
|
*
|
|
4895
4974
|
* @summary Verify Email
|
|
4896
4975
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4976
|
+
* @param {string} [authorization]
|
|
4977
|
+
* @param {string} [sessionId]
|
|
4897
4978
|
* @param {*} [options] Override http request option.
|
|
4898
4979
|
* @throws {RequiredError}
|
|
4899
4980
|
*/
|
|
4900
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4981
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4901
4982
|
};
|
|
4902
4983
|
/**
|
|
4903
4984
|
* UserApi - object-oriented interface
|
|
@@ -4973,12 +5054,13 @@ export declare class UserApi extends BaseAPI {
|
|
|
4973
5054
|
/**
|
|
4974
5055
|
*
|
|
4975
5056
|
* @summary Send Verification Email
|
|
4976
|
-
* @param {
|
|
5057
|
+
* @param {string} [authorization]
|
|
5058
|
+
* @param {string} [sessionId]
|
|
4977
5059
|
* @param {*} [options] Override http request option.
|
|
4978
5060
|
* @throws {RequiredError}
|
|
4979
5061
|
* @memberof UserApi
|
|
4980
5062
|
*/
|
|
4981
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5063
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
4982
5064
|
/**
|
|
4983
5065
|
*
|
|
4984
5066
|
* @summary Update User
|
|
@@ -4993,9 +5075,11 @@ export declare class UserApi extends BaseAPI {
|
|
|
4993
5075
|
*
|
|
4994
5076
|
* @summary Verify Email
|
|
4995
5077
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5078
|
+
* @param {string} [authorization]
|
|
5079
|
+
* @param {string} [sessionId]
|
|
4996
5080
|
* @param {*} [options] Override http request option.
|
|
4997
5081
|
* @throws {RequiredError}
|
|
4998
5082
|
* @memberof UserApi
|
|
4999
5083
|
*/
|
|
5000
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
5084
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
5001
5085
|
}
|
package/dist/api.js
CHANGED
|
@@ -2535,6 +2535,42 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2535
2535
|
options: localVarRequestOptions,
|
|
2536
2536
|
};
|
|
2537
2537
|
}),
|
|
2538
|
+
/**
|
|
2539
|
+
*
|
|
2540
|
+
* @summary Get Subscription
|
|
2541
|
+
* @param {string} companyId
|
|
2542
|
+
* @param {string} [authorization]
|
|
2543
|
+
* @param {string} [sessionId]
|
|
2544
|
+
* @param {*} [options] Override http request option.
|
|
2545
|
+
* @throws {RequiredError}
|
|
2546
|
+
*/
|
|
2547
|
+
getSubscriptionV1PaymentsSubscriptionGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
|
|
2548
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2549
|
+
assertParamExists('getSubscriptionV1PaymentsSubscriptionGet', 'companyId', companyId);
|
|
2550
|
+
const localVarPath = `/v1/payments/subscription`;
|
|
2551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2552
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2553
|
+
let baseOptions;
|
|
2554
|
+
if (configuration) {
|
|
2555
|
+
baseOptions = configuration.baseOptions;
|
|
2556
|
+
}
|
|
2557
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2558
|
+
const localVarHeaderParameter = {};
|
|
2559
|
+
const localVarQueryParameter = {};
|
|
2560
|
+
if (companyId !== undefined) {
|
|
2561
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2562
|
+
}
|
|
2563
|
+
if (authorization != null) {
|
|
2564
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2565
|
+
}
|
|
2566
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2567
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2568
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2569
|
+
return {
|
|
2570
|
+
url: toPathString(localVarUrlObj),
|
|
2571
|
+
options: localVarRequestOptions,
|
|
2572
|
+
};
|
|
2573
|
+
}),
|
|
2538
2574
|
/**
|
|
2539
2575
|
*
|
|
2540
2576
|
* @summary Webhook
|
|
@@ -2605,6 +2641,24 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2605
2641
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
2642
|
});
|
|
2607
2643
|
},
|
|
2644
|
+
/**
|
|
2645
|
+
*
|
|
2646
|
+
* @summary Get Subscription
|
|
2647
|
+
* @param {string} companyId
|
|
2648
|
+
* @param {string} [authorization]
|
|
2649
|
+
* @param {string} [sessionId]
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options) {
|
|
2654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2655
|
+
var _a, _b, _c;
|
|
2656
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options);
|
|
2657
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2658
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getSubscriptionV1PaymentsSubscriptionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2659
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2660
|
+
});
|
|
2661
|
+
},
|
|
2608
2662
|
/**
|
|
2609
2663
|
*
|
|
2610
2664
|
* @summary Webhook
|
|
@@ -2653,6 +2707,18 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2653
2707
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2654
2708
|
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2655
2709
|
},
|
|
2710
|
+
/**
|
|
2711
|
+
*
|
|
2712
|
+
* @summary Get Subscription
|
|
2713
|
+
* @param {string} companyId
|
|
2714
|
+
* @param {string} [authorization]
|
|
2715
|
+
* @param {string} [sessionId]
|
|
2716
|
+
* @param {*} [options] Override http request option.
|
|
2717
|
+
* @throws {RequiredError}
|
|
2718
|
+
*/
|
|
2719
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options) {
|
|
2720
|
+
return localVarFp.getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2721
|
+
},
|
|
2656
2722
|
/**
|
|
2657
2723
|
*
|
|
2658
2724
|
* @summary Webhook
|
|
@@ -2697,6 +2763,19 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2697
2763
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2698
2764
|
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2699
2765
|
}
|
|
2766
|
+
/**
|
|
2767
|
+
*
|
|
2768
|
+
* @summary Get Subscription
|
|
2769
|
+
* @param {string} companyId
|
|
2770
|
+
* @param {string} [authorization]
|
|
2771
|
+
* @param {string} [sessionId]
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
* @memberof PaymentsApi
|
|
2775
|
+
*/
|
|
2776
|
+
getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options) {
|
|
2777
|
+
return PaymentsApiFp(this.configuration).getSubscriptionV1PaymentsSubscriptionGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2778
|
+
}
|
|
2700
2779
|
/**
|
|
2701
2780
|
*
|
|
2702
2781
|
* @summary Webhook
|
|
@@ -4789,13 +4868,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4789
4868
|
/**
|
|
4790
4869
|
*
|
|
4791
4870
|
* @summary Send Verification Email
|
|
4792
|
-
* @param {
|
|
4871
|
+
* @param {string} [authorization]
|
|
4872
|
+
* @param {string} [sessionId]
|
|
4793
4873
|
* @param {*} [options] Override http request option.
|
|
4794
4874
|
* @throws {RequiredError}
|
|
4795
4875
|
*/
|
|
4796
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: (
|
|
4797
|
-
// verify required parameter 'sendOTPSchema' is not null or undefined
|
|
4798
|
-
assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema);
|
|
4876
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
4799
4877
|
const localVarPath = `/v1/user/send-verification-email`;
|
|
4800
4878
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4801
4879
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4806,11 +4884,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4806
4884
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4807
4885
|
const localVarHeaderParameter = {};
|
|
4808
4886
|
const localVarQueryParameter = {};
|
|
4809
|
-
|
|
4887
|
+
if (authorization != null) {
|
|
4888
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4889
|
+
}
|
|
4810
4890
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4811
4891
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4812
4892
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4813
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration);
|
|
4814
4893
|
return {
|
|
4815
4894
|
url: toPathString(localVarUrlObj),
|
|
4816
4895
|
options: localVarRequestOptions,
|
|
@@ -4851,10 +4930,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4851
4930
|
*
|
|
4852
4931
|
* @summary Verify Email
|
|
4853
4932
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4933
|
+
* @param {string} [authorization]
|
|
4934
|
+
* @param {string} [sessionId]
|
|
4854
4935
|
* @param {*} [options] Override http request option.
|
|
4855
4936
|
* @throws {RequiredError}
|
|
4856
4937
|
*/
|
|
4857
|
-
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema_1, ...args_1) => __awaiter(this, [verifyEmailSchema_1, ...args_1], void 0, function* (verifyEmailSchema, options = {}) {
|
|
4938
|
+
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [verifyEmailSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (verifyEmailSchema, authorization, sessionId, options = {}) {
|
|
4858
4939
|
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
4859
4940
|
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema);
|
|
4860
4941
|
const localVarPath = `/v1/user/verify-email`;
|
|
@@ -4868,6 +4949,9 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4868
4949
|
const localVarHeaderParameter = {};
|
|
4869
4950
|
const localVarQueryParameter = {};
|
|
4870
4951
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4952
|
+
if (authorization != null) {
|
|
4953
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4954
|
+
}
|
|
4871
4955
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4872
4956
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4873
4957
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5002,14 +5086,15 @@ export const UserApiFp = function (configuration) {
|
|
|
5002
5086
|
/**
|
|
5003
5087
|
*
|
|
5004
5088
|
* @summary Send Verification Email
|
|
5005
|
-
* @param {
|
|
5089
|
+
* @param {string} [authorization]
|
|
5090
|
+
* @param {string} [sessionId]
|
|
5006
5091
|
* @param {*} [options] Override http request option.
|
|
5007
5092
|
* @throws {RequiredError}
|
|
5008
5093
|
*/
|
|
5009
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5094
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5010
5095
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5011
5096
|
var _a, _b, _c;
|
|
5012
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options);
|
|
5013
5098
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5014
5099
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5015
5100
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5036,13 +5121,15 @@ export const UserApiFp = function (configuration) {
|
|
|
5036
5121
|
*
|
|
5037
5122
|
* @summary Verify Email
|
|
5038
5123
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5124
|
+
* @param {string} [authorization]
|
|
5125
|
+
* @param {string} [sessionId]
|
|
5039
5126
|
* @param {*} [options] Override http request option.
|
|
5040
5127
|
* @throws {RequiredError}
|
|
5041
5128
|
*/
|
|
5042
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5129
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5043
5130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5044
5131
|
var _a, _b, _c;
|
|
5045
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
|
|
5132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options);
|
|
5046
5133
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5047
5134
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5048
5135
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5131,12 +5218,13 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5131
5218
|
/**
|
|
5132
5219
|
*
|
|
5133
5220
|
* @summary Send Verification Email
|
|
5134
|
-
* @param {
|
|
5221
|
+
* @param {string} [authorization]
|
|
5222
|
+
* @param {string} [sessionId]
|
|
5135
5223
|
* @param {*} [options] Override http request option.
|
|
5136
5224
|
* @throws {RequiredError}
|
|
5137
5225
|
*/
|
|
5138
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5139
|
-
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5226
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5227
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5140
5228
|
},
|
|
5141
5229
|
/**
|
|
5142
5230
|
*
|
|
@@ -5153,11 +5241,13 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5153
5241
|
*
|
|
5154
5242
|
* @summary Verify Email
|
|
5155
5243
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5244
|
+
* @param {string} [authorization]
|
|
5245
|
+
* @param {string} [sessionId]
|
|
5156
5246
|
* @param {*} [options] Override http request option.
|
|
5157
5247
|
* @throws {RequiredError}
|
|
5158
5248
|
*/
|
|
5159
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5160
|
-
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
|
|
5249
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5250
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5161
5251
|
},
|
|
5162
5252
|
};
|
|
5163
5253
|
};
|
|
@@ -5249,13 +5339,14 @@ export class UserApi extends BaseAPI {
|
|
|
5249
5339
|
/**
|
|
5250
5340
|
*
|
|
5251
5341
|
* @summary Send Verification Email
|
|
5252
|
-
* @param {
|
|
5342
|
+
* @param {string} [authorization]
|
|
5343
|
+
* @param {string} [sessionId]
|
|
5253
5344
|
* @param {*} [options] Override http request option.
|
|
5254
5345
|
* @throws {RequiredError}
|
|
5255
5346
|
* @memberof UserApi
|
|
5256
5347
|
*/
|
|
5257
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5258
|
-
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5348
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5349
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5259
5350
|
}
|
|
5260
5351
|
/**
|
|
5261
5352
|
*
|
|
@@ -5273,11 +5364,13 @@ export class UserApi extends BaseAPI {
|
|
|
5273
5364
|
*
|
|
5274
5365
|
* @summary Verify Email
|
|
5275
5366
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5367
|
+
* @param {string} [authorization]
|
|
5368
|
+
* @param {string} [sessionId]
|
|
5276
5369
|
* @param {*} [options] Override http request option.
|
|
5277
5370
|
* @throws {RequiredError}
|
|
5278
5371
|
* @memberof UserApi
|
|
5279
5372
|
*/
|
|
5280
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5281
|
-
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5373
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5374
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5282
5375
|
}
|
|
5283
5376
|
}
|
package/docs/Customer.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Customer
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**customer_id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**email** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Customer } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: Customer = {
|
|
18
|
+
customer_id,
|
|
19
|
+
name,
|
|
20
|
+
email,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/PaymentsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getCheckoutSessionV1PaymentsCheckoutGet**](#getcheckoutsessionv1paymentscheckoutget) | **GET** /v1/payments/checkout | Get Checkout Session|
|
|
8
8
|
|[**getCustomerManagementSessionV1PaymentsCustomerManagementGet**](#getcustomermanagementsessionv1paymentscustomermanagementget) | **GET** /v1/payments/customer/management | Get Customer Management Session|
|
|
9
|
+
|[**getSubscriptionV1PaymentsSubscriptionGet**](#getsubscriptionv1paymentssubscriptionget) | **GET** /v1/payments/subscription | Get Subscription|
|
|
9
10
|
|[**webhookV1PaymentsWebhookPost**](#webhookv1paymentswebhookpost) | **POST** /v1/payments/webhook | Webhook|
|
|
10
11
|
|
|
11
12
|
# **getCheckoutSessionV1PaymentsCheckoutGet**
|
|
@@ -114,6 +115,63 @@ No authorization required
|
|
|
114
115
|
- **Accept**: application/json
|
|
115
116
|
|
|
116
117
|
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Successful Response | - |
|
|
122
|
+
|**422** | Validation Error | - |
|
|
123
|
+
|
|
124
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
125
|
+
|
|
126
|
+
# **getSubscriptionV1PaymentsSubscriptionGet**
|
|
127
|
+
> SubscriptionResponse getSubscriptionV1PaymentsSubscriptionGet()
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import {
|
|
134
|
+
PaymentsApi,
|
|
135
|
+
Configuration
|
|
136
|
+
} from './api';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new PaymentsApi(configuration);
|
|
140
|
+
|
|
141
|
+
let companyId: string; // (default to undefined)
|
|
142
|
+
let authorization: string; // (optional) (default to undefined)
|
|
143
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
144
|
+
|
|
145
|
+
const { status, data } = await apiInstance.getSubscriptionV1PaymentsSubscriptionGet(
|
|
146
|
+
companyId,
|
|
147
|
+
authorization,
|
|
148
|
+
sessionId
|
|
149
|
+
);
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Parameters
|
|
153
|
+
|
|
154
|
+
|Name | Type | Description | Notes|
|
|
155
|
+
|------------- | ------------- | ------------- | -------------|
|
|
156
|
+
| **companyId** | [**string**] | | defaults to undefined|
|
|
157
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
158
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
**SubscriptionResponse**
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
No authorization required
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: Not defined
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
117
175
|
### HTTP response details
|
|
118
176
|
| Status code | Description | Response headers |
|
|
119
177
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SubscriptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscription_id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | **string** | | [default to undefined]
|
|
10
|
+
**product_id** | **string** | | [default to undefined]
|
|
11
|
+
**customer** | [**Customer**](Customer.md) | | [default to undefined]
|
|
12
|
+
**subscribed_till** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SubscriptionResponse } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: SubscriptionResponse = {
|
|
20
|
+
subscription_id,
|
|
21
|
+
status,
|
|
22
|
+
product_id,
|
|
23
|
+
customer,
|
|
24
|
+
subscribed_till,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserApi.md
CHANGED
|
@@ -380,7 +380,7 @@ No authorization required
|
|
|
380
380
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
381
381
|
|
|
382
382
|
# **sendVerificationEmailV1UserSendVerificationEmailPost**
|
|
383
|
-
> Details sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
383
|
+
> Details sendVerificationEmailV1UserSendVerificationEmailPost()
|
|
384
384
|
|
|
385
385
|
|
|
386
386
|
### Example
|
|
@@ -388,17 +388,18 @@ No authorization required
|
|
|
388
388
|
```typescript
|
|
389
389
|
import {
|
|
390
390
|
UserApi,
|
|
391
|
-
Configuration
|
|
392
|
-
SendOTPSchema
|
|
391
|
+
Configuration
|
|
393
392
|
} from './api';
|
|
394
393
|
|
|
395
394
|
const configuration = new Configuration();
|
|
396
395
|
const apiInstance = new UserApi(configuration);
|
|
397
396
|
|
|
398
|
-
let
|
|
397
|
+
let authorization: string; // (optional) (default to undefined)
|
|
398
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
399
399
|
|
|
400
400
|
const { status, data } = await apiInstance.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
401
|
-
|
|
401
|
+
authorization,
|
|
402
|
+
sessionId
|
|
402
403
|
);
|
|
403
404
|
```
|
|
404
405
|
|
|
@@ -406,7 +407,8 @@ const { status, data } = await apiInstance.sendVerificationEmailV1UserSendVerifi
|
|
|
406
407
|
|
|
407
408
|
|Name | Type | Description | Notes|
|
|
408
409
|
|------------- | ------------- | ------------- | -------------|
|
|
409
|
-
| **
|
|
410
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
411
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
410
412
|
|
|
411
413
|
|
|
412
414
|
### Return type
|
|
@@ -419,7 +421,7 @@ No authorization required
|
|
|
419
421
|
|
|
420
422
|
### HTTP request headers
|
|
421
423
|
|
|
422
|
-
- **Content-Type**:
|
|
424
|
+
- **Content-Type**: Not defined
|
|
423
425
|
- **Accept**: application/json
|
|
424
426
|
|
|
425
427
|
|
|
@@ -503,9 +505,13 @@ const configuration = new Configuration();
|
|
|
503
505
|
const apiInstance = new UserApi(configuration);
|
|
504
506
|
|
|
505
507
|
let verifyEmailSchema: VerifyEmailSchema; //
|
|
508
|
+
let authorization: string; // (optional) (default to undefined)
|
|
509
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
506
510
|
|
|
507
511
|
const { status, data } = await apiInstance.verifyEmailV1UserVerifyEmailPost(
|
|
508
|
-
verifyEmailSchema
|
|
512
|
+
verifyEmailSchema,
|
|
513
|
+
authorization,
|
|
514
|
+
sessionId
|
|
509
515
|
);
|
|
510
516
|
```
|
|
511
517
|
|
|
@@ -514,6 +520,8 @@ const { status, data } = await apiInstance.verifyEmailV1UserVerifyEmailPost(
|
|
|
514
520
|
|Name | Type | Description | Notes|
|
|
515
521
|
|------------- | ------------- | ------------- | -------------|
|
|
516
522
|
| **verifyEmailSchema** | **VerifyEmailSchema**| | |
|
|
523
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
524
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
517
525
|
|
|
518
526
|
|
|
519
527
|
### Return type
|
|
@@ -6,9 +6,7 @@ Schema for email verification
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**email** | **string** | | [default to undefined]
|
|
10
9
|
**otp_code** | **string** | | [default to undefined]
|
|
11
|
-
**turnstile_token** | **string** | | [default to undefined]
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
@@ -16,9 +14,7 @@ Name | Type | Description | Notes
|
|
|
16
14
|
import { VerifyEmailSchema } from './api';
|
|
17
15
|
|
|
18
16
|
const instance: VerifyEmailSchema = {
|
|
19
|
-
email,
|
|
20
17
|
otp_code,
|
|
21
|
-
turnstile_token,
|
|
22
18
|
};
|
|
23
19
|
```
|
|
24
20
|
|