SubscriptionSchedulePhaseConfiguration class final
SubscriptionSchedulePhaseConfiguration
A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period.
Constructors
-
SubscriptionSchedulePhaseConfiguration({required List<
SubscriptionScheduleAddInvoiceItem> addInvoiceItems, double? applicationFeePercent, SchedulesPhaseAutomaticTax? automaticTax, SubscriptionSchedulePhaseConfigurationBillingCycleAnchor? billingCycleAnchor, SubscriptionBillingThresholds? billingThresholds, SubscriptionSchedulePhaseConfigurationCollectionMethod? collectionMethod, SubscriptionSchedulePhaseConfigurationCouponOrId? coupon, required String currency, PaymentMethodOrId? defaultPaymentMethod, List<TaxRate> ? defaultTaxRates, String? description, required DateTime endDate, InvoiceSettingSubscriptionSchedulePhaseSetting? invoiceSettings, required List<SubscriptionScheduleConfigurationItem> items, Map<String, String> ? metadata, AccountOrId? onBehalfOf, required PortalSubscriptionCancelProrationBehavior prorationBehavior, required DateTime startDate, SubscriptionTransferData? transferData, DateTime? trialEnd}) -
SubscriptionSchedulePhaseConfiguration
const
- SubscriptionSchedulePhaseConfiguration.fromJson(Object? json)
-
factory
Properties
-
addInvoiceItems
→ List<
SubscriptionScheduleAddInvoiceItem> -
final
- applicationFeePercent → double?
-
final
- automaticTax → SchedulesPhaseAutomaticTax?
-
final
- billingCycleAnchor → SubscriptionSchedulePhaseConfigurationBillingCycleAnchor?
-
final
- billingThresholds → SubscriptionBillingThresholds?
-
final
- collectionMethod → SubscriptionSchedulePhaseConfigurationCollectionMethod?
-
final
- coupon → SubscriptionSchedulePhaseConfigurationCouponOrId?
-
final
- currency → String
-
final
- defaultPaymentMethod → PaymentMethodOrId?
-
final
-
defaultTaxRates
→ List<
TaxRate> ? -
final
- description → String?
-
final
- endDate → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invoiceSettings → InvoiceSettingSubscriptionSchedulePhaseSetting?
-
final
-
items
→ List<
SubscriptionScheduleConfigurationItem> -
final
-
metadata
→ Map<
String, String> ? -
final
- onBehalfOf → AccountOrId?
-
final
- prorationBehavior → PortalSubscriptionCancelProrationBehavior
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate → DateTime
-
final
- transferData → SubscriptionTransferData?
-
final
- trialEnd → DateTime?
-
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode<
V> (SubscriptionSchedulePhaseConfiguration instance, Encoder< V> encoder) → V