feat: integrate enakgame and voucher
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -112,20 +112,6 @@ _WalletExpiringDto _$WalletExpiringDtoFromJson(Map<String, dynamic> json) =>
|
||||
Map<String, dynamic> _$WalletExpiringDtoToJson(_WalletExpiringDto instance) =>
|
||||
<String, dynamic>{'point': instance.point, 'coin': instance.coin};
|
||||
|
||||
_PaymentCodeDto _$PaymentCodeDtoFromJson(Map<String, dynamic> json) =>
|
||||
_PaymentCodeDto(
|
||||
code: json['code'] as String?,
|
||||
qrPayload: json['qr_payload'] as String?,
|
||||
expiresAt: json['expires_at'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$PaymentCodeDtoToJson(_PaymentCodeDto instance) =>
|
||||
<String, dynamic>{
|
||||
'code': instance.code,
|
||||
'qr_payload': instance.qrPayload,
|
||||
'expires_at': instance.expiresAt,
|
||||
};
|
||||
|
||||
_ExchangePreviewDto _$ExchangePreviewDtoFromJson(Map<String, dynamic> json) =>
|
||||
_ExchangePreviewDto(
|
||||
coinAmount: (json['coin_amount'] as num?)?.toInt(),
|
||||
@@ -253,7 +239,6 @@ _OutletDto _$OutletDtoFromJson(Map<String, dynamic> json) => _OutletDto(
|
||||
id: json['id'] as String?,
|
||||
name: json['name'] as String?,
|
||||
address: json['address'] as String?,
|
||||
acceptsPointPayment: json['accepts_point_payment'] as bool?,
|
||||
earnsPoints: json['earns_points'] as bool?,
|
||||
earnsCoins: json['earns_coins'] as bool?,
|
||||
);
|
||||
@@ -263,7 +248,6 @@ Map<String, dynamic> _$OutletDtoToJson(_OutletDto instance) =>
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'address': instance.address,
|
||||
'accepts_point_payment': instance.acceptsPointPayment,
|
||||
'earns_points': instance.earnsPoints,
|
||||
'earns_coins': instance.earnsCoins,
|
||||
};
|
||||
@@ -358,7 +342,6 @@ _CustomerOrderPaymentDto _$CustomerOrderPaymentDtoFromJson(
|
||||
methodType: json['method_type'] as String?,
|
||||
amount: (json['amount'] as num?)?.toInt(),
|
||||
refundAmount: (json['refund_amount'] as num?)?.toInt(),
|
||||
pointsUsed: (json['points_used'] as num?)?.toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$CustomerOrderPaymentDtoToJson(
|
||||
@@ -369,5 +352,69 @@ Map<String, dynamic> _$CustomerOrderPaymentDtoToJson(
|
||||
'method_type': instance.methodType,
|
||||
'amount': instance.amount,
|
||||
'refund_amount': instance.refundAmount,
|
||||
'points_used': instance.pointsUsed,
|
||||
};
|
||||
|
||||
_VoucherDto _$VoucherDtoFromJson(Map<String, dynamic> json) => _VoucherDto(
|
||||
id: json['id'] as String?,
|
||||
name: json['name'] as String?,
|
||||
description: json['description'] as String?,
|
||||
imageUrl: json['image_url'] as String?,
|
||||
voucherType: json['voucher_type'] as String?,
|
||||
faceValue: (json['face_value'] as num?)?.toInt(),
|
||||
pointCost: (json['point_cost'] as num?)?.toInt(),
|
||||
maxPerCustomer: (json['max_per_customer'] as num?)?.toInt(),
|
||||
validUntil: json['valid_until'] as String?,
|
||||
available: (json['available'] as num?)?.toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$VoucherDtoToJson(_VoucherDto instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'description': instance.description,
|
||||
'image_url': instance.imageUrl,
|
||||
'voucher_type': instance.voucherType,
|
||||
'face_value': instance.faceValue,
|
||||
'point_cost': instance.pointCost,
|
||||
'max_per_customer': instance.maxPerCustomer,
|
||||
'valid_until': instance.validUntil,
|
||||
'available': instance.available,
|
||||
};
|
||||
|
||||
_VoucherRedemptionDto _$VoucherRedemptionDtoFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _VoucherRedemptionDto(
|
||||
id: json['id'] as String?,
|
||||
voucherId: json['voucher_id'] as String?,
|
||||
voucherName: json['voucher_name'] as String?,
|
||||
voucherImageUrl: json['voucher_image_url'] as String?,
|
||||
voucherType: json['voucher_type'] as String?,
|
||||
status: json['status'] as String?,
|
||||
faceValue: (json['face_value'] as num?)?.toInt(),
|
||||
pointCost: (json['point_cost'] as num?)?.toInt(),
|
||||
code: json['code'] as String?,
|
||||
codeExpiresAt: json['code_expires_at'] as String?,
|
||||
completedAt: json['completed_at'] as String?,
|
||||
createdAt: json['created_at'] as String?,
|
||||
pointBalance: (json['point_balance'] as num?)?.toInt(),
|
||||
replayed: json['replayed'] as bool?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$VoucherRedemptionDtoToJson(
|
||||
_VoucherRedemptionDto instance,
|
||||
) => <String, dynamic>{
|
||||
'id': instance.id,
|
||||
'voucher_id': instance.voucherId,
|
||||
'voucher_name': instance.voucherName,
|
||||
'voucher_image_url': instance.voucherImageUrl,
|
||||
'voucher_type': instance.voucherType,
|
||||
'status': instance.status,
|
||||
'face_value': instance.faceValue,
|
||||
'point_cost': instance.pointCost,
|
||||
'code': instance.code,
|
||||
'code_expires_at': instance.codeExpiresAt,
|
||||
'completed_at': instance.completedAt,
|
||||
'created_at': instance.createdAt,
|
||||
'point_balance': instance.pointBalance,
|
||||
'replayed': instance.replayed,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user