saasus-sdk / Pricing/api / PricingPlansApi
Pricing/api.PricingPlansApi
PricingPlansApi - object-oriented interface
Export
PricingPlansApi
-
↳
PricingPlansApi
- createPricingPlan
- deleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates
- deletePricingPlan
- deleteStripePlan
- getPricingPlan
- getPricingPlans
- linkPlanToStripe
- updatePricingPlan
- updatePricingPlansUsed
• new PricingPlansApi(configuration?
, basePath?
, axios?
): PricingPlansApi
Name | Type | Default value |
---|---|---|
configuration? |
Configuration |
undefined |
basePath |
string |
BASE_PATH |
axios |
AxiosInstance |
globalAxios |
src/generated/Pricing/base.ts:52
• Protected
axios: AxiosInstance
= globalAxios
src/generated/Pricing/base.ts:52
• Protected
basePath: string
= BASE_PATH
src/generated/Pricing/base.ts:52
• Protected
configuration: undefined
| Configuration
src/generated/Pricing/base.ts:50
▸ createPricingPlan(body?
, options?
): Promise
<AxiosResponse
<PricingPlan
, any
>>
Create a pricing plan.
Name | Type | Description |
---|---|---|
body? |
SavePricingPlanParam |
|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<PricingPlan
, any
>>
Summary
Create Pricing Plan
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3882
▸ deleteAllPlansAndMenusAndUnitsAndMetersAndTaxRates(options?
): Promise
<AxiosResponse
<void
, any
>>
Unconditionally remove all rate plans, menus, units, meters and tax rates.
Name | Type | Description |
---|---|---|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Delete all Plans, Menus, Units, Meters and Tax Rates
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3893
▸ deletePricingPlan(planId
, options?
): Promise
<AxiosResponse
<void
, any
>>
Delete a pricing plan.
Name | Type | Description |
---|---|---|
planId |
string |
Pricing Plan ID |
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Delete Pricing Plan
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3905
▸ deleteStripePlan(options?
): Promise
<AxiosResponse
<void
, any
>>
Delete product data from Stripe.
Name | Type | Description |
---|---|---|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Delete Product Data from Stripe
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3916
▸ getPricingPlan(planId
, options?
): Promise
<AxiosResponse
<PricingPlan
, any
>>
Get a pricing plan.
Name | Type | Description |
---|---|---|
planId |
string |
Pricing Plan ID |
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<PricingPlan
, any
>>
Summary
Get Pricing Plan
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3928
▸ getPricingPlans(options?
): Promise
<AxiosResponse
<PricingPlans
, any
>>
Get pricing plans. Multiple feature menus are grouped together and defined as one pricing plan. Each tenant can choose a pricing plan defined here. If you have a specific tenant-specific rate (private pricing), create and connect the pricing plan specifically for that tenant.
Name | Type | Description |
---|---|---|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<PricingPlans
, any
>>
Summary
Get Pricing Plans
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3939
▸ linkPlanToStripe(options?
): Promise
<AxiosResponse
<void
, any
>>
Connect information to Stripe.
Name | Type | Description |
---|---|---|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Connect to Stripe
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3950
▸ updatePricingPlan(planId
, body?
, options?
): Promise
<AxiosResponse
<void
, any
>>
Update a pricing plan.
Name | Type | Description |
---|---|---|
planId |
string |
Pricing Plan ID |
body? |
SavePricingPlanParam |
|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Update Pricing Plan
Throws
Memberof
PricingPlansApi
src/generated/Pricing/api.ts:3963
▸ updatePricingPlansUsed(updatePricingPlansUsedParam?
, options?
): Promise
<AxiosResponse
<void
, any
>>
Update price plan and feature menu/pricing unit to used.
Name | Type | Description |
---|---|---|
updatePricingPlansUsedParam? |
UpdatePricingPlansUsedParam |
|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<void
, any
>>
Summary
Update Used Flag
Throws
Memberof
PricingPlansApi