Model changes
This commit is contained in:
parent
845adae414
commit
0f92358772
|
|
@ -81,18 +81,6 @@ const double kTableColumnWidthMax = 120;
|
||||||
const int kTableListWidthCutoff = 500;
|
const int kTableListWidthCutoff = 500;
|
||||||
const int kDefaultAnimationDuration = 500;
|
const int kDefaultAnimationDuration = 500;
|
||||||
|
|
||||||
const int kCardTypeVisa = 1;
|
|
||||||
const int kCardTypeMasterCard = 2;
|
|
||||||
const int kCardTypeAmEx = 4;
|
|
||||||
const int kCardTypeDiners = 8;
|
|
||||||
const int kCardTypeDiscover = 16;
|
|
||||||
|
|
||||||
const String kPaymentTypeVisa = '6';
|
|
||||||
const String kPaymentTypeMasterCard = '7';
|
|
||||||
const String kPaymentTypeAmEx = '8';
|
|
||||||
const String kPaymentTypeDiners = '9';
|
|
||||||
const String kPaymentTypeDiscover = '10';
|
|
||||||
|
|
||||||
const String kPlanFree = '';
|
const String kPlanFree = '';
|
||||||
const String kPlanPro = 'pro';
|
const String kPlanPro = 'pro';
|
||||||
const String kPlanEnterprise = 'enterprise';
|
const String kPlanEnterprise = 'enterprise';
|
||||||
|
|
@ -119,30 +107,6 @@ const String kCurrencyEuro = '3';
|
||||||
|
|
||||||
const String kCountryUnitedStates = '840';
|
const String kCountryUnitedStates = '840';
|
||||||
|
|
||||||
/*
|
|
||||||
const EVENT_CREATE_CLIENT = 1;
|
|
||||||
const EVENT_CREATE_INVOICE = 2;
|
|
||||||
const EVENT_CREATE_QUOTE = 3;
|
|
||||||
const EVENT_CREATE_PAYMENT = 4;
|
|
||||||
const EVENT_CREATE_VENDOR = 5;
|
|
||||||
const EVENT_UPDATE_QUOTE = 6;
|
|
||||||
const EVENT_DELETE_QUOTE = 7;
|
|
||||||
const EVENT_UPDATE_INVOICE = 8;
|
|
||||||
const EVENT_DELETE_INVOICE = 9;
|
|
||||||
const EVENT_UPDATE_CLIENT = 10;
|
|
||||||
const EVENT_DELETE_CLIENT = 11;
|
|
||||||
const EVENT_DELETE_PAYMENT = 12;
|
|
||||||
const EVENT_UPDATE_VENDOR = 13;
|
|
||||||
const EVENT_DELETE_VENDOR = 14;
|
|
||||||
const EVENT_CREATE_EXPENSE = 15;
|
|
||||||
const EVENT_UPDATE_EXPENSE = 16;
|
|
||||||
const EVENT_DELETE_EXPENSE = 17;
|
|
||||||
const EVENT_CREATE_TASK = 18;
|
|
||||||
const EVENT_UPDATE_TASK = 19;
|
|
||||||
const EVENT_DELETE_TASK = 20;
|
|
||||||
const EVENT_APPROVE_QUOTE = 21;
|
|
||||||
*/
|
|
||||||
|
|
||||||
const String kInvoiceStatusPastDue = '-1';
|
const String kInvoiceStatusPastDue = '-1';
|
||||||
const String kInvoiceStatusDraft = '1';
|
const String kInvoiceStatusDraft = '1';
|
||||||
const String kInvoiceStatusSent = '2';
|
const String kInvoiceStatusSent = '2';
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ abstract class GatewayTokenMetaEntity
|
||||||
String get last4;
|
String get last4;
|
||||||
|
|
||||||
@nullable
|
@nullable
|
||||||
String get type;
|
int get type;
|
||||||
|
|
||||||
@nullable
|
@nullable
|
||||||
@BuiltValueField(wireName: 'exp_month')
|
@BuiltValueField(wireName: 'exp_month')
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@ class _$GatewayTokenMetaEntitySerializer
|
||||||
result
|
result
|
||||||
..add('type')
|
..add('type')
|
||||||
..add(serializers.serialize(object.type,
|
..add(serializers.serialize(object.type,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
if (object.expMonth != null) {
|
if (object.expMonth != null) {
|
||||||
result
|
result
|
||||||
|
|
@ -325,7 +325,7 @@ class _$GatewayTokenMetaEntitySerializer
|
||||||
break;
|
break;
|
||||||
case 'type':
|
case 'type':
|
||||||
result.type = serializers.deserialize(value,
|
result.type = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(int)) as int;
|
||||||
break;
|
break;
|
||||||
case 'exp_month':
|
case 'exp_month':
|
||||||
result.expMonth = serializers.deserialize(value,
|
result.expMonth = serializers.deserialize(value,
|
||||||
|
|
@ -847,7 +847,7 @@ class _$GatewayTokenMetaEntity extends GatewayTokenMetaEntity {
|
||||||
@override
|
@override
|
||||||
final String last4;
|
final String last4;
|
||||||
@override
|
@override
|
||||||
final String type;
|
final int type;
|
||||||
@override
|
@override
|
||||||
final String expMonth;
|
final String expMonth;
|
||||||
@override
|
@override
|
||||||
|
|
@ -914,9 +914,9 @@ class GatewayTokenMetaEntityBuilder
|
||||||
String get last4 => _$this._last4;
|
String get last4 => _$this._last4;
|
||||||
set last4(String last4) => _$this._last4 = last4;
|
set last4(String last4) => _$this._last4 = last4;
|
||||||
|
|
||||||
String _type;
|
int _type;
|
||||||
String get type => _$this._type;
|
int get type => _$this._type;
|
||||||
set type(String type) => _$this._type = type;
|
set type(int type) => _$this._type = type;
|
||||||
|
|
||||||
String _expMonth;
|
String _expMonth;
|
||||||
String get expMonth => _$this._expMonth;
|
String get expMonth => _$this._expMonth;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue