@rasadov/lumoar-sdk 1.1.8 → 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 -0
- package/api.ts +145 -0
- package/dist/api.d.ts +103 -0
- package/dist/api.js +79 -0
- package/docs/Customer.md +24 -0
- package/docs/PaymentsApi.md +58 -0
- package/docs/SubscriptionResponse.md +28 -0
- 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,6 +66,7 @@ docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
|
|
|
65
66
|
docs/RolesApi.md
|
|
66
67
|
docs/RolesWithUser.md
|
|
67
68
|
docs/SchedulerRequest.md
|
|
69
|
+
docs/SubscriptionResponse.md
|
|
68
70
|
docs/TaskPriority.md
|
|
69
71
|
docs/TaskRead.md
|
|
70
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
|
|
@@ -1711,6 +1736,43 @@ export interface SchedulerRequest {
|
|
|
1711
1736
|
*/
|
|
1712
1737
|
'user_ids_to_assign'?: Array<string>;
|
|
1713
1738
|
}
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @export
|
|
1742
|
+
* @interface SubscriptionResponse
|
|
1743
|
+
*/
|
|
1744
|
+
export interface SubscriptionResponse {
|
|
1745
|
+
/**
|
|
1746
|
+
*
|
|
1747
|
+
* @type {string}
|
|
1748
|
+
* @memberof SubscriptionResponse
|
|
1749
|
+
*/
|
|
1750
|
+
'subscription_id': string;
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @type {string}
|
|
1754
|
+
* @memberof SubscriptionResponse
|
|
1755
|
+
*/
|
|
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;
|
|
1775
|
+
}
|
|
1714
1776
|
/**
|
|
1715
1777
|
*
|
|
1716
1778
|
* @export
|
|
@@ -4775,6 +4837,48 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4775
4837
|
|
|
4776
4838
|
|
|
4777
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
|
+
|
|
4778
4882
|
if (authorization != null) {
|
|
4779
4883
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4780
4884
|
}
|
|
@@ -4857,6 +4961,21 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
4857
4961
|
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
|
|
4858
4962
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4859
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
|
+
},
|
|
4860
4979
|
/**
|
|
4861
4980
|
*
|
|
4862
4981
|
* @summary Webhook
|
|
@@ -4903,6 +5022,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4903
5022
|
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
|
|
4904
5023
|
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4905
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
|
+
},
|
|
4906
5037
|
/**
|
|
4907
5038
|
*
|
|
4908
5039
|
* @summary Webhook
|
|
@@ -4950,6 +5081,20 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4950
5081
|
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4951
5082
|
}
|
|
4952
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
|
+
|
|
4953
5098
|
/**
|
|
4954
5099
|
*
|
|
4955
5100
|
* @summary Webhook
|
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
|
|
@@ -1679,6 +1704,43 @@ export interface SchedulerRequest {
|
|
|
1679
1704
|
*/
|
|
1680
1705
|
'user_ids_to_assign'?: Array<string>;
|
|
1681
1706
|
}
|
|
1707
|
+
/**
|
|
1708
|
+
*
|
|
1709
|
+
* @export
|
|
1710
|
+
* @interface SubscriptionResponse
|
|
1711
|
+
*/
|
|
1712
|
+
export interface SubscriptionResponse {
|
|
1713
|
+
/**
|
|
1714
|
+
*
|
|
1715
|
+
* @type {string}
|
|
1716
|
+
* @memberof SubscriptionResponse
|
|
1717
|
+
*/
|
|
1718
|
+
'subscription_id': string;
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @type {string}
|
|
1722
|
+
* @memberof SubscriptionResponse
|
|
1723
|
+
*/
|
|
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;
|
|
1743
|
+
}
|
|
1682
1744
|
/**
|
|
1683
1745
|
*
|
|
1684
1746
|
* @export
|
|
@@ -3456,6 +3518,16 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
3456
3518
|
* @throws {RequiredError}
|
|
3457
3519
|
*/
|
|
3458
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>;
|
|
3459
3531
|
/**
|
|
3460
3532
|
*
|
|
3461
3533
|
* @summary Webhook
|
|
@@ -3489,6 +3561,16 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
3489
3561
|
* @throws {RequiredError}
|
|
3490
3562
|
*/
|
|
3491
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>>;
|
|
3492
3574
|
/**
|
|
3493
3575
|
*
|
|
3494
3576
|
* @summary Webhook
|
|
@@ -3522,6 +3604,16 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
3522
3604
|
* @throws {RequiredError}
|
|
3523
3605
|
*/
|
|
3524
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>;
|
|
3525
3617
|
/**
|
|
3526
3618
|
*
|
|
3527
3619
|
* @summary Webhook
|
|
@@ -3559,6 +3651,17 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
3559
3651
|
* @memberof PaymentsApi
|
|
3560
3652
|
*/
|
|
3561
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, {}>>;
|
|
3562
3665
|
/**
|
|
3563
3666
|
*
|
|
3564
3667
|
* @summary Webhook
|
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
|
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)
|