BillingCapabilities class final

What the billing provider can do; a client draws only the flows listed here.

Constructors

BillingCapabilities({required BillingCapabilitiesCheckout checkout, required bool embeddedCheckout, bool? checkoutBranding, required BillingCapabilitiesManage manage, required bool resets, required bool scheduledChanges})
const
BillingCapabilities.fromJson(Map<String, Object?> json)
factory

Properties

checkout → BillingCapabilitiesCheckout
How a new subscription is paid for by default. embedded: Embedded Checkout inside drip (checkout’s client secret). redirect: Stripe’s hosted checkout page (redirect’s session id), unless embeddedCheckout is true and the plan change asks for embedded.
final
checkoutBranding → bool?
A plan change takes PlanChangeBody.branding (a provider whose checkout cannot take drip’s colors ignores them). Absent from an API older than it, which refuses the field: a client sends branding only when this is true.
final
embeddedCheckout → bool
A plan change can ask for Embedded Checkout inside drip (PlanChangeBody.checkout embedded) and get checkout’s client secret instead of a redirect.
final
hashCode → int
The hash code for this object.
no setterinherited
manage → BillingCapabilitiesManage
Where the card and invoices are managed. inApp: drip’s own screens (setupPaymentMethod, listInvoices). portal: Stripe’s customer portal (openBillingPortal).
final
resets → bool
Paid resets are on sale; false: reset.cap is 0 on every plan.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduledChanges → bool
A move to a lower paid plan can wait for the end of the billing month; false: it is unavailable (downgrade), so the user cancels and chooses it once the plan ends.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited