File tree Expand file tree Collapse file tree
services/shopinbit/src/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import "../../providers/global/shopin_bit_service_provider.dart";
1010import "../../services/shopinbit/src/models/car_research.dart" ;
1111import "../../themes/stack_colors.dart" ;
1212import "../../utilities/assets.dart" ;
13+ import "../../utilities/logger.dart" ;
1314import "../../utilities/text_styles.dart" ;
1415import "../../utilities/util.dart" ;
1516import "../../widgets/background.dart" ;
@@ -88,7 +89,12 @@ class _ShopInBitTicketsViewState extends ConsumerState<ShopInBitTicketsView> {
8889 }
8990 }
9091 }
91- } catch (_) {
92+ } catch (e, s) {
93+ Logging .instance.e (
94+ "_loadResumableInvoice failed" ,
95+ error: e,
96+ stackTrace: s,
97+ );
9298 // Leave _resumableInvoice unchanged on failure.
9399 return ;
94100 }
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ class TicketFull {
115115 final String ? netPurchasePrice;
116116 final String ? netShippingCosts;
117117 final String deliveryCountry;
118- final int vatRate;
118+ final int ? vatRate;
119119
120120 TicketFull ({
121121 required this .id,
@@ -143,7 +143,7 @@ class TicketFull {
143143 deliveryCountry:
144144 json['delivery_country' ] as String ? ??
145145 (json['deliverycountry' ] as String ),
146- vatRate: _toInt (json['vat_rate' ]),
146+ vatRate: int . tryParse (json['vat_rate' ]. toString () ),
147147 );
148148 }
149149
You can’t perform that action at this time.
0 commit comments