@iblai/iblai-api 3.35.3-core → 3.35.4-core
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/dist/index.cjs.js +13134 -3071
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13128 -3072
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +13134 -3071
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +80 -1
- package/dist/types/models/AWSTenantLaunchRequest.d.ts +20 -0
- package/dist/types/models/ActivateUserFreeTrial.d.ts +11 -0
- package/dist/types/models/App.d.ts +10 -0
- package/dist/types/models/AppleSubscriptionStatusRequest.d.ts +3 -0
- package/dist/types/models/AppleSubscriptionStatusView.d.ts +3 -0
- package/dist/types/models/AppleVerifyTransactionId.d.ts +3 -0
- package/dist/types/models/AssociateAccountResponse.d.ts +5 -0
- package/dist/types/models/AssociateAppleAccount.d.ts +3 -0
- package/dist/types/models/AuthToken.d.ts +10 -0
- package/dist/types/models/BaseErrorResponse.d.ts +5 -0
- package/dist/types/models/BaseResponse.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeat.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeatFail.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeatFailStatusEnum.d.ts +8 -0
- package/dist/types/models/CeleryHeartbeatStatusEnum.d.ts +8 -0
- package/dist/types/models/DesiredRole.d.ts +4 -0
- package/dist/types/models/EdxSignalReceiverRequest.d.ts +4 -0
- package/dist/types/models/GCPTenantLaunchRequest.d.ts +24 -0
- package/dist/types/models/GooglePayAccountResponse.d.ts +15 -0
- package/dist/types/models/GooglePayAccountResponseStatusEnum.d.ts +8 -0
- package/dist/types/models/GooglePayVerifyToken.d.ts +6 -0
- package/dist/types/models/ItemTypeEnum.d.ts +18 -0
- package/dist/types/models/LauncherViewPostRequest.d.ts +9 -0
- package/dist/types/models/ManagerAuthToken.d.ts +13 -0
- package/dist/types/models/MediaResource.d.ts +71 -0
- package/dist/types/models/MediaTypeEnum.d.ts +14 -0
- package/dist/types/models/ModeEnum.d.ts +10 -0
- package/dist/types/models/Notification.d.ts +2 -2
- package/dist/types/models/{StatusEnum.d.ts → NotificationStatusEnum.d.ts} +1 -1
- package/dist/types/models/OnboardingStatusUpdate.d.ts +7 -0
- package/dist/types/models/PaginatedUserAppList.d.ts +7 -0
- package/dist/types/models/PatchedMediaResource.d.ts +71 -0
- package/dist/types/models/PatchedNotification.d.ts +2 -2
- package/dist/types/models/Platform.d.ts +29 -0
- package/dist/types/models/PlatformApiKey.d.ts +30 -0
- package/dist/types/models/PlatformList.d.ts +29 -0
- package/dist/types/models/PlatformListStatusEnum.d.ts +22 -0
- package/dist/types/models/PlatformUpdatePostRequest.d.ts +9 -0
- package/dist/types/models/ReportedRole.d.ts +4 -0
- package/dist/types/models/Resource.d.ts +22 -0
- package/dist/types/models/ResourceCreateUpdate.d.ts +42 -0
- package/dist/types/models/Role.d.ts +7 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +54 -0
- package/dist/types/models/StripeCheckoutSessionResponse.d.ts +6 -0
- package/dist/types/models/StripeCustomerPortalRequest.d.ts +3 -0
- package/dist/types/models/StripeCustomerPortalResponse.d.ts +3 -0
- package/dist/types/models/StripeLocalProduct.d.ts +8 -0
- package/dist/types/models/StripeSubscriptionRenewalRequest.d.ts +4 -0
- package/dist/types/models/StripeSubscriptionRenewalResponse.d.ts +3 -0
- package/dist/types/models/TenantLaunchError.d.ts +10 -0
- package/dist/types/models/TenantLaunchFailed.d.ts +15 -0
- package/dist/types/models/TenantLaunchRequest.d.ts +16 -0
- package/dist/types/models/TenantLaunchResponse.d.ts +15 -0
- package/dist/types/models/TokenProxyInput.d.ts +21 -0
- package/dist/types/models/TokenProxyOutput.d.ts +7 -0
- package/dist/types/models/TokenProxyOutputSerializerData.d.ts +20 -0
- package/dist/types/models/TokenProxyUser.d.ts +25 -0
- package/dist/types/models/UserApp.d.ts +27 -0
- package/dist/types/models/UserDeleteAPIError.d.ts +3 -0
- package/dist/types/models/UserDeleteAPIRequest.d.ts +3 -0
- package/dist/types/models/UserDeleteAPIResponse.d.ts +3 -0
- package/dist/types/models/UserPlatformLink.d.ts +17 -0
- package/dist/types/models/UserPlatformManagementListViewGetResponse.d.ts +6 -0
- package/dist/types/models/UserPlatformViewPostRequest.d.ts +8 -0
- package/dist/types/models/UserProxyBulkRequest.d.ts +3 -0
- package/dist/types/models/UserProxyGetResponse.d.ts +8 -0
- package/dist/types/models/UserProxyPostRequest.d.ts +7 -0
- package/dist/types/models/UserProxyPostResponse.d.ts +8 -0
- package/dist/types/models/UserSearchViewGetResponse.d.ts +6 -0
- package/dist/types/models/VerifyGCPMarketPlaceFailedResponse.d.ts +11 -0
- package/dist/types/models/VerifyGCPMarketPlaceRequest.d.ts +3 -0
- package/dist/types/models/VerifyGCPMarketPlaceResponse.d.ts +11 -0
- package/dist/types/models/WatchedVideosPerCourse.d.ts +8 -0
- package/dist/types/models/WatchedVideosPerCourseData.d.ts +18 -0
- package/dist/types/models/WhitelistedDomain.d.ts +4 -0
- package/dist/types/services/CatalogService.d.ts +6904 -0
- package/dist/types/services/CoreService.d.ts +442 -0
- package/dist/types/services/FeaturesService.d.ts +75 -0
- package/dist/types/services/MediaResourcesService.d.ts +112 -0
- package/dist/types/services/PlatformService.d.ts +314 -0
- package/dist/types/services/ProvidersService.d.ts +142 -0
- package/dist/types/services/ProvisionService.d.ts +14 -0
- package/dist/types/services/RolesService.d.ts +57 -0
- package/dist/types/services/ServiceService.d.ts +170 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +80 -1
- package/src/models/AWSTenantLaunchRequest.ts +25 -0
- package/src/models/ActivateUserFreeTrial.ts +16 -0
- package/src/models/App.ts +15 -0
- package/src/models/AppleSubscriptionStatusRequest.ts +8 -0
- package/src/models/AppleSubscriptionStatusView.ts +8 -0
- package/src/models/AppleVerifyTransactionId.ts +8 -0
- package/src/models/AssociateAccountResponse.ts +10 -0
- package/src/models/AssociateAppleAccount.ts +8 -0
- package/src/models/AuthToken.ts +15 -0
- package/src/models/BaseErrorResponse.ts +10 -0
- package/src/models/BaseResponse.ts +10 -0
- package/src/models/CeleryHeartbeat.ts +10 -0
- package/src/models/CeleryHeartbeatFail.ts +10 -0
- package/src/models/CeleryHeartbeatFailStatusEnum.ts +12 -0
- package/src/models/CeleryHeartbeatStatusEnum.ts +12 -0
- package/src/models/DesiredRole.ts +9 -0
- package/src/models/EdxSignalReceiverRequest.ts +9 -0
- package/src/models/GCPTenantLaunchRequest.ts +29 -0
- package/src/models/GooglePayAccountResponse.ts +20 -0
- package/src/models/GooglePayAccountResponseStatusEnum.ts +12 -0
- package/src/models/GooglePayVerifyToken.ts +11 -0
- package/src/models/ItemTypeEnum.ts +22 -0
- package/src/models/LauncherViewPostRequest.ts +14 -0
- package/src/models/ManagerAuthToken.ts +18 -0
- package/src/models/MediaResource.ts +76 -0
- package/src/models/MediaTypeEnum.ts +18 -0
- package/src/models/ModeEnum.ts +14 -0
- package/src/models/Notification.ts +2 -2
- package/src/models/{StatusEnum.ts → NotificationStatusEnum.ts} +1 -1
- package/src/models/OnboardingStatusUpdate.ts +12 -0
- package/src/models/PaginatedUserAppList.ts +12 -0
- package/src/models/PatchedMediaResource.ts +76 -0
- package/src/models/PatchedNotification.ts +2 -2
- package/src/models/Platform.ts +34 -0
- package/src/models/PlatformApiKey.ts +35 -0
- package/src/models/PlatformList.ts +34 -0
- package/src/models/PlatformListStatusEnum.ts +26 -0
- package/src/models/PlatformUpdatePostRequest.ts +14 -0
- package/src/models/ReportedRole.ts +9 -0
- package/src/models/Resource.ts +27 -0
- package/src/models/ResourceCreateUpdate.ts +47 -0
- package/src/models/Role.ts +12 -0
- package/src/models/StripeCheckoutSessionRequest.ts +59 -0
- package/src/models/StripeCheckoutSessionResponse.ts +11 -0
- package/src/models/StripeCustomerPortalRequest.ts +8 -0
- package/src/models/StripeCustomerPortalResponse.ts +8 -0
- package/src/models/StripeLocalProduct.ts +13 -0
- package/src/models/StripeSubscriptionRenewalRequest.ts +9 -0
- package/src/models/StripeSubscriptionRenewalResponse.ts +8 -0
- package/src/models/TenantLaunchError.ts +15 -0
- package/src/models/TenantLaunchFailed.ts +20 -0
- package/src/models/TenantLaunchRequest.ts +21 -0
- package/src/models/TenantLaunchResponse.ts +20 -0
- package/src/models/TokenProxyInput.ts +26 -0
- package/src/models/TokenProxyOutput.ts +12 -0
- package/src/models/TokenProxyOutputSerializerData.ts +25 -0
- package/src/models/TokenProxyUser.ts +30 -0
- package/src/models/UserApp.ts +32 -0
- package/src/models/UserDeleteAPIError.ts +8 -0
- package/src/models/UserDeleteAPIRequest.ts +8 -0
- package/src/models/UserDeleteAPIResponse.ts +8 -0
- package/src/models/UserPlatformLink.ts +22 -0
- package/src/models/UserPlatformManagementListViewGetResponse.ts +11 -0
- package/src/models/UserPlatformViewPostRequest.ts +13 -0
- package/src/models/UserProxyBulkRequest.ts +8 -0
- package/src/models/UserProxyGetResponse.ts +13 -0
- package/src/models/UserProxyPostRequest.ts +12 -0
- package/src/models/UserProxyPostResponse.ts +13 -0
- package/src/models/UserSearchViewGetResponse.ts +11 -0
- package/src/models/VerifyGCPMarketPlaceFailedResponse.ts +16 -0
- package/src/models/VerifyGCPMarketPlaceRequest.ts +8 -0
- package/src/models/VerifyGCPMarketPlaceResponse.ts +16 -0
- package/src/models/WatchedVideosPerCourse.ts +13 -0
- package/src/models/WatchedVideosPerCourseData.ts +23 -0
- package/src/models/WhitelistedDomain.ts +9 -0
- package/src/services/CatalogService.ts +7769 -0
- package/src/services/CoreService.ts +792 -1
- package/src/services/FeaturesService.ts +126 -0
- package/src/services/MediaResourcesService.ts +319 -0
- package/src/services/PlatformService.ts +582 -0
- package/src/services/ProvidersService.ts +271 -0
- package/src/services/ProvisionService.ts +30 -0
- package/src/services/RolesService.ts +87 -0
- package/src/services/ServiceService.ts +320 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { StripeCheckoutSessionRequest } from '../models/StripeCheckoutSessionRequest';
|
|
6
|
+
import type { StripeCheckoutSessionResponse } from '../models/StripeCheckoutSessionResponse';
|
|
7
|
+
import type { StripeCustomerPortalRequest } from '../models/StripeCustomerPortalRequest';
|
|
8
|
+
import type { StripeCustomerPortalResponse } from '../models/StripeCustomerPortalResponse';
|
|
9
|
+
import type { StripeLocalProduct } from '../models/StripeLocalProduct';
|
|
10
|
+
import type { StripeSubscriptionRenewalRequest } from '../models/StripeSubscriptionRenewalRequest';
|
|
11
|
+
import type { StripeSubscriptionRenewalResponse } from '../models/StripeSubscriptionRenewalResponse';
|
|
12
|
+
import type { TenantLaunchRequest } from '../models/TenantLaunchRequest';
|
|
13
|
+
import type { TenantLaunchResponse } from '../models/TenantLaunchResponse';
|
|
14
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
15
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
16
|
+
import { request as __request } from '../core/request';
|
|
17
|
+
export class ServiceService {
|
|
18
|
+
/**
|
|
19
|
+
* User/tenant creation API
|
|
20
|
+
*
|
|
21
|
+
* To create using any payment provider, ensure you use the StudentToken Authentication Mechanism
|
|
22
|
+
* and also include the correct `provider_key` in the request body:
|
|
23
|
+
*
|
|
24
|
+
* ```
|
|
25
|
+
* apple_transaction_id: str
|
|
26
|
+
* stripe_checkout_id: str
|
|
27
|
+
* x_gcp_marketplace_token: str
|
|
28
|
+
* aws_transaction_id: str
|
|
29
|
+
* google_pay_transaction_id: str
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* To create a tenant without a payment provider, call the API without ny of the above provider keys in the request body
|
|
33
|
+
* @param requestBody
|
|
34
|
+
* @returns TenantLaunchResponse
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
public static serviceLaunchTenantCreate(
|
|
38
|
+
requestBody: TenantLaunchRequest,
|
|
39
|
+
): CancelablePromise<TenantLaunchResponse> {
|
|
40
|
+
return __request(OpenAPI, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
url: '/api/service/launch/tenant/',
|
|
43
|
+
body: requestBody,
|
|
44
|
+
mediaType: 'application/json',
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* User creation flow
|
|
49
|
+
* @returns any No response body
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
public static serviceManageUserCreate(): CancelablePromise<any> {
|
|
53
|
+
return __request(OpenAPI, {
|
|
54
|
+
method: 'POST',
|
|
55
|
+
url: '/api/service/manage/user/',
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Make user tenant admin
|
|
60
|
+
* @returns any No response body
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
public static serviceManageUserRoleCreate(): CancelablePromise<any> {
|
|
64
|
+
return __request(OpenAPI, {
|
|
65
|
+
method: 'POST',
|
|
66
|
+
url: '/api/service/manage/user/role/',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Stripe checkout session API View for user upgrade
|
|
71
|
+
*
|
|
72
|
+
* Request the following fields:
|
|
73
|
+
*
|
|
74
|
+
* - tenant
|
|
75
|
+
* - sku
|
|
76
|
+
* - mode
|
|
77
|
+
* - success_url
|
|
78
|
+
* - cancel_url
|
|
79
|
+
*
|
|
80
|
+
* Response:
|
|
81
|
+
* {
|
|
82
|
+
* "redirect_to": "https://checkout.stripe.com/xxx/xxxx/xxxx",
|
|
83
|
+
* }
|
|
84
|
+
* @param org
|
|
85
|
+
* @param userId
|
|
86
|
+
* @param requestBody
|
|
87
|
+
* @returns StripeCheckoutSessionResponse
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
public static serviceOrgsUsersStripeCheckoutSessionCreate(
|
|
91
|
+
org: string,
|
|
92
|
+
userId: string,
|
|
93
|
+
requestBody: StripeCheckoutSessionRequest,
|
|
94
|
+
): CancelablePromise<StripeCheckoutSessionResponse> {
|
|
95
|
+
return __request(OpenAPI, {
|
|
96
|
+
method: 'POST',
|
|
97
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/checkout-session/',
|
|
98
|
+
path: {
|
|
99
|
+
'org': org,
|
|
100
|
+
'user_id': userId,
|
|
101
|
+
},
|
|
102
|
+
body: requestBody,
|
|
103
|
+
mediaType: 'application/json',
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
108
|
+
* @param org
|
|
109
|
+
* @param userId
|
|
110
|
+
* @param requestBody
|
|
111
|
+
* @returns StripeCustomerPortalResponse
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
public static serviceOrgsUsersStripeCustomerPortalCreate(
|
|
115
|
+
org: string,
|
|
116
|
+
userId: string,
|
|
117
|
+
requestBody: StripeCustomerPortalRequest,
|
|
118
|
+
): CancelablePromise<StripeCustomerPortalResponse> {
|
|
119
|
+
return __request(OpenAPI, {
|
|
120
|
+
method: 'POST',
|
|
121
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/customer-portal/',
|
|
122
|
+
path: {
|
|
123
|
+
'org': org,
|
|
124
|
+
'user_id': userId,
|
|
125
|
+
},
|
|
126
|
+
body: requestBody,
|
|
127
|
+
mediaType: 'application/json',
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
132
|
+
* @param org
|
|
133
|
+
* @param userId
|
|
134
|
+
* @returns StripeLocalProduct
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
public static serviceOrgsUsersStripeProductsRetrieve(
|
|
138
|
+
org: string,
|
|
139
|
+
userId: string,
|
|
140
|
+
): CancelablePromise<StripeLocalProduct> {
|
|
141
|
+
return __request(OpenAPI, {
|
|
142
|
+
method: 'GET',
|
|
143
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/products/',
|
|
144
|
+
path: {
|
|
145
|
+
'org': org,
|
|
146
|
+
'user_id': userId,
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
|
|
152
|
+
* @param org
|
|
153
|
+
* @param userId
|
|
154
|
+
* @returns any No response body
|
|
155
|
+
* @throws ApiError
|
|
156
|
+
*/
|
|
157
|
+
public static serviceOrgsUsersStripeProductsManageCreate(
|
|
158
|
+
org: string,
|
|
159
|
+
userId: string,
|
|
160
|
+
): CancelablePromise<any> {
|
|
161
|
+
return __request(OpenAPI, {
|
|
162
|
+
method: 'POST',
|
|
163
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/products/manage/',
|
|
164
|
+
path: {
|
|
165
|
+
'org': org,
|
|
166
|
+
'user_id': userId,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
172
|
+
* @param org
|
|
173
|
+
* @param userId
|
|
174
|
+
* @param requestBody
|
|
175
|
+
* @returns StripeSubscriptionRenewalResponse
|
|
176
|
+
* @throws ApiError
|
|
177
|
+
*/
|
|
178
|
+
public static serviceOrgsUsersStripeSubscriptionRenewalCreate(
|
|
179
|
+
org: string,
|
|
180
|
+
userId: string,
|
|
181
|
+
requestBody: StripeSubscriptionRenewalRequest,
|
|
182
|
+
): CancelablePromise<StripeSubscriptionRenewalResponse> {
|
|
183
|
+
return __request(OpenAPI, {
|
|
184
|
+
method: 'POST',
|
|
185
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/subscription-renewal/',
|
|
186
|
+
path: {
|
|
187
|
+
'org': org,
|
|
188
|
+
'user_id': userId,
|
|
189
|
+
},
|
|
190
|
+
body: requestBody,
|
|
191
|
+
mediaType: 'application/json',
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
196
|
+
* @param org
|
|
197
|
+
* @param userId
|
|
198
|
+
* @returns any No response body
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
public static serviceOrgsUsersStripeSubscriptionsRetrieve(
|
|
202
|
+
org: string,
|
|
203
|
+
userId: string,
|
|
204
|
+
): CancelablePromise<any> {
|
|
205
|
+
return __request(OpenAPI, {
|
|
206
|
+
method: 'GET',
|
|
207
|
+
url: '/api/service/orgs/{org}/users/{user_id}/stripe/subscriptions/',
|
|
208
|
+
path: {
|
|
209
|
+
'org': org,
|
|
210
|
+
'user_id': userId,
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Handle course payment callback after successful Stripe checkout.
|
|
216
|
+
* Enrolls the user in the purchased course.
|
|
217
|
+
*
|
|
218
|
+
* URL Parameters:
|
|
219
|
+
* - stripe_checkout_id: The local Checkout Session UUID
|
|
220
|
+
*
|
|
221
|
+
* Response:
|
|
222
|
+
* - Redirect: Successfully processed course enrollment
|
|
223
|
+
* - 404: Checkout session not found
|
|
224
|
+
* - 400: Invalid checkout session or product
|
|
225
|
+
* - 500: Server error during processing
|
|
226
|
+
* @param platformKey
|
|
227
|
+
* @returns any No response body
|
|
228
|
+
* @throws ApiError
|
|
229
|
+
*/
|
|
230
|
+
public static serviceOrgsStripeCoursePaymentCallbackRetrieve(
|
|
231
|
+
platformKey: string,
|
|
232
|
+
): CancelablePromise<any> {
|
|
233
|
+
return __request(OpenAPI, {
|
|
234
|
+
method: 'GET',
|
|
235
|
+
url: '/api/service/orgs/{platform_key}/stripe/course-payment-callback/',
|
|
236
|
+
path: {
|
|
237
|
+
'platform_key': platformKey,
|
|
238
|
+
},
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param checkoutUuid
|
|
243
|
+
* @returns any No response body
|
|
244
|
+
* @throws ApiError
|
|
245
|
+
*/
|
|
246
|
+
public static serviceStripeCheckoutRetrieve(
|
|
247
|
+
checkoutUuid: string,
|
|
248
|
+
): CancelablePromise<any> {
|
|
249
|
+
return __request(OpenAPI, {
|
|
250
|
+
method: 'GET',
|
|
251
|
+
url: '/api/service/stripe/checkout/{checkout_uuid}/',
|
|
252
|
+
path: {
|
|
253
|
+
'checkout_uuid': checkoutUuid,
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Stripe free trial checkout session. No user auth
|
|
259
|
+
*
|
|
260
|
+
* Request the following fields:
|
|
261
|
+
*
|
|
262
|
+
* - success_url
|
|
263
|
+
* - cancel_url
|
|
264
|
+
* - product
|
|
265
|
+
*
|
|
266
|
+
* Response:
|
|
267
|
+
* {
|
|
268
|
+
* "redirect_to": "https://checkout.stripe.com/xxx/xxxx/xxxx",
|
|
269
|
+
* }
|
|
270
|
+
* @param requestBody
|
|
271
|
+
* @returns StripeCheckoutSessionResponse
|
|
272
|
+
* @throws ApiError
|
|
273
|
+
*/
|
|
274
|
+
public static serviceStripeCheckoutFreeTrialCreate(
|
|
275
|
+
requestBody: StripeCheckoutSessionResponse,
|
|
276
|
+
): CancelablePromise<StripeCheckoutSessionResponse> {
|
|
277
|
+
return __request(OpenAPI, {
|
|
278
|
+
method: 'POST',
|
|
279
|
+
url: '/api/service/stripe/checkout/free-trial/',
|
|
280
|
+
body: requestBody,
|
|
281
|
+
mediaType: 'application/json',
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Check if tenant exists or not
|
|
286
|
+
* @returns any No response body
|
|
287
|
+
* @throws ApiError
|
|
288
|
+
*/
|
|
289
|
+
public static serviceTenantValidationCreate(): CancelablePromise<any> {
|
|
290
|
+
return __request(OpenAPI, {
|
|
291
|
+
method: 'POST',
|
|
292
|
+
url: '/api/service/tenant/validation/',
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* GET
|
|
297
|
+
* Gets site hash_key from
|
|
298
|
+
* or
|
|
299
|
+
* Gets site_id form hash_key
|
|
300
|
+
* @returns any No response body
|
|
301
|
+
* @throws ApiError
|
|
302
|
+
*/
|
|
303
|
+
public static serviceTokenRetrieve(): CancelablePromise<any> {
|
|
304
|
+
return __request(OpenAPI, {
|
|
305
|
+
method: 'GET',
|
|
306
|
+
url: '/api/service/token/',
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Check if tenant exists or not
|
|
311
|
+
* @returns any No response body
|
|
312
|
+
* @throws ApiError
|
|
313
|
+
*/
|
|
314
|
+
public static serviceUserValidationCreate(): CancelablePromise<any> {
|
|
315
|
+
return __request(OpenAPI, {
|
|
316
|
+
method: 'POST',
|
|
317
|
+
url: '/api/service/user/validation/',
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|