Subscriptions
This commit is contained in:
parent
c505cb6dd1
commit
fa7e1f7cf8
|
|
@ -65,6 +65,26 @@ abstract class SubscriptionEntity extends Object
|
||||||
createdUserId: '',
|
createdUserId: '',
|
||||||
assignedUserId: '',
|
assignedUserId: '',
|
||||||
archivedAt: 0,
|
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')
|
@BuiltValueField(wireName: 'promo_discount')
|
||||||
double get promoDiscount;
|
double get promoDiscount;
|
||||||
|
|
||||||
|
double get price;
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'is_amount_discount')
|
@BuiltValueField(wireName: 'is_amount_discount')
|
||||||
bool get isAmountDiscount;
|
bool get isAmountDiscount;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
||||||
final _debouncer = Debouncer();
|
final _debouncer = Debouncer();
|
||||||
|
|
||||||
// STARTER: controllers - do not remove comment
|
// STARTER: controllers - do not remove comment
|
||||||
final _subscriptionsController = TextEditingController();
|
final _nameController = TextEditingController();
|
||||||
|
|
||||||
List<TextEditingController> _controllers = [];
|
List<TextEditingController> _controllers = [];
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
||||||
void didChangeDependencies() {
|
void didChangeDependencies() {
|
||||||
_controllers = [
|
_controllers = [
|
||||||
// STARTER: array - do not remove comment
|
// STARTER: array - do not remove comment
|
||||||
_subscriptionsController,
|
_nameController,
|
||||||
];
|
];
|
||||||
|
|
||||||
_controllers.forEach((controller) => controller.removeListener(_onChanged));
|
_controllers.forEach((controller) => controller.removeListener(_onChanged));
|
||||||
|
|
@ -102,9 +102,8 @@ class _SubscriptionEditState extends State<SubscriptionEdit> {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FormCard(
|
FormCard(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// STARTER: widgets - do not remove comment
|
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: _subscriptionsController,
|
controller: _nameController,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: 'Subscriptions',
|
labelText: 'Subscriptions',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue