Subscriptions
This commit is contained in:
parent
c505cb6dd1
commit
fa7e1f7cf8
|
|
@ -65,6 +65,26 @@ abstract class SubscriptionEntity extends Object
|
|||
createdUserId: '',
|
||||
assignedUserId: '',
|
||||
archivedAt: 0,
|
||||
allowCancellation: false,
|
||||
allowPlanChanges: false,
|
||||
allowQueryOverrides: false,
|
||||
autoBill: '',
|
||||
frequencyId: '',
|
||||
groupId: '',
|
||||
isAmountDiscount: false,
|
||||
price: 0,
|
||||
maxSeatsLimit: 0,
|
||||
perSeatEnabled: false,
|
||||
planMap: '',
|
||||
productIds: '',
|
||||
promoCode: '',
|
||||
promoDiscount: 0,
|
||||
purchasePage: '',
|
||||
recurringProductIds: '',
|
||||
refundPeriod: 0,
|
||||
trialDuration: 0,
|
||||
trialEnabled: false,
|
||||
webhookConfiguration: BuiltMap<String, String>(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -98,6 +118,8 @@ abstract class SubscriptionEntity extends Object
|
|||
@BuiltValueField(wireName: 'promo_discount')
|
||||
double get promoDiscount;
|
||||
|
||||
double get price;
|
||||
|
||||
@BuiltValueField(wireName: 'is_amount_discount')
|
||||
bool get isAmountDiscount;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
|||
final _debouncer = Debouncer();
|
||||
|
||||
// STARTER: controllers - do not remove comment
|
||||
final _subscriptionsController = TextEditingController();
|
||||
final _nameController = TextEditingController();
|
||||
|
||||
List<TextEditingController> _controllers = [];
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
|||
void didChangeDependencies() {
|
||||
_controllers = [
|
||||
// STARTER: array - do not remove comment
|
||||
_subscriptionsController,
|
||||
_nameController,
|
||||
];
|
||||
|
||||
_controllers.forEach((controller) => controller.removeListener(_onChanged));
|
||||
|
|
@ -102,9 +102,8 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
|||
children: <Widget>[
|
||||
FormCard(
|
||||
children: <Widget>[
|
||||
// STARTER: widgets - do not remove comment
|
||||
TextFormField(
|
||||
controller: _subscriptionsController,
|
||||
controller: _nameController,
|
||||
autocorrect: false,
|
||||
decoration: InputDecoration(
|
||||
labelText: 'Subscriptions',
|
||||
|
|
|
|||
Loading…
Reference in New Issue