Billing Type¶
BillingPlan¶
BillingPlan = “free” or “starter” or “scale”
BillingAddOn¶
**BillingAddOn**= “mobile” or “custom_dns”
BillingService¶
- BillingService =
“input” or “output”or “analysis”or “data_records” or “sms” or “email” or “run_users” or “push_notification” or “file_storage”
BillingServicePrice¶
Attributes:
amount: int or floatAmount available in the service tier.price: int or floatPrice for the service tier.
BillingAllServicePrices¶
BillingAllServicePrices = dict[BillingService, list[BillingServicePrice]]
BillingPlanPrices¶
Attributes:
name: BillingPlanPlan name.price: int or floatPlan price.
BillingPlanPrices¶
BillingPlanPrices = list[BillingPlanPrices]
BillingAddOnPrices¶
Attributes:
name: BillingAddOnAdd-on name.price: int or floatAdd-on price.
BillingAddOnPrices¶
BillingAddOnPrices = list[BillingAddOnPrices]
BillingPrices¶
Attributes:
plans: BillingPlanPricesPrices for each plan.addons: BillingAddOnPricesPrices for each add-on.BillingAllServicePrices: BillingAllServicePrices
current_cycle¶
Attributes:
start: strDate when the current cycle started.end: strDate when the current cycle ends.
BillingServiceSubscription¶
Attributes:
limit: int or float
BillingSubscriptionServices¶
BillingSubscriptionServices = dict[BillingService, BillingServiceSubscription]
BillingSubscriptionAddOns¶
BillingSubscriptionAddOns = dict[BillingAddOn, list[GenericID]]
BillingPaymentError¶
Attributes:
message: str or NonePayment error message.
details: str or NoneMore details on the payment error.
BillingPaymentPastDue¶
Attributes:
amount_due: int or floatAmount due that was not paid in a recurring payment.attempt_count: int or floatAmount of attempts for the retried recurring payment.invoice_url: strURL for the invoice related to the failed recurring payment.
BillingSubscription¶
Attributes:
account: GenericIDAccount ID.plan: BillingPlanAccount plan.services: BillingSubscriptionServicesLimits for each service in the account’s subscription.addons: BillingSubscriptionAddOnsAdd-ons in the account’s subscription.current_cycle: current_cycleCurrent cycle for the account’s subscription.processing: boolWhether changes are still being processed and awaiting response from Stripe.payment_error: Optional[BillingPaymentError]Payment errors in the account’s subscription.past_due: Optional[BillingPaymentPastDue]Past due information for recurring payment errors.upcoming_invoice_total: int or floatValue of the upcoming invoice.trial_end: str or NoneTimestamp when the trial for the subscription ends if the subscription has a trial active.
BillingEditSubscription¶
Attributes:
services: Optional[BillingSubscriptionServices]New limits for each service in the account’s subscription.Only one of plan, services and addons is accepted.addons: Optional[BillingSubscriptionAddOns]Only one of plan, services and addons is accepted.New add-ons in the account’s subscription.coupon: Optional[str]Coupon code.
BillingResourceAllocationServices¶
BillingResourceAllocationServices = dict[BillingService, Union[int, float]]
BillingProfileResourceAllocation¶
Attributes:
profile: GenericIDProfile ID.updated_at: strTimestamp when the resource allocation for the profile was last updated.BillingResourceAllocationServices: BillingResourceAllocationServices
BillingProfileEditResourceAllocation¶
Attributes:
profile: Optional[GenericID]Profile ID.BillingResourceAllocationServices: Optional[BillingResourceAllocationServices]
BillingEditResourceAllocation¶
BillingEditResourceAllocation = list[BillingProfileEditResourceAllocation]