File tree Expand file tree Collapse file tree 4 files changed +20
-11
lines changed Expand file tree Collapse file tree 4 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 1- ## [ 3.3.0] - 2022-03-04
1+ ## [ 3.4.0] - 2023-05-18
2+
3+ * Add new attributes to ` Product ` class
4+
5+ * ## [ 3.3.0] - 2023-03-04
26
37* New endpoint for Stripe Payment Intents.
48* Pubspec.yaml dependency updates.
59
6- ## [ 3.2.3] - 2022 -02-22
10+ ## [ 3.2.3] - 2023 -02-22
711
812* Flutter version bump
913
10- ## [ 3.2.2] - 2022 -02-20
14+ ## [ 3.2.2] - 2023 -02-20
1115
1216* Add logo to package
1317* Pubspec.yaml dependency updates.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ In your flutter project add the dependency:
1515``` dart
1616dependencies:
1717 ...
18- woosignal: ^3.3 .0
18+ woosignal: ^3.4 .0
1919```
2020
2121### Usage example #
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class Product {
7676 final List <int >? groupedProducts;
7777 final int ? menuOrder;
7878 final List <MetaData > metaData;
79+ final String ? dateCreated, dateCreatedGMT;
7980
8081 Product (
8182 this .id,
@@ -134,7 +135,9 @@ class Product {
134135 this .variations,
135136 this .groupedProducts,
136137 this .menuOrder,
137- this .metaData);
138+ this .metaData,
139+ this .dateCreated,
140+ this .dateCreatedGMT);
138141
139142 Product .fromJson (Map <String , dynamic > json)
140143 : id = json['id' ],
@@ -206,6 +209,8 @@ class Product {
206209 variations = json['variations' ].cast <int >(),
207210 groupedProducts = json['grouped_products' ].cast <int >(),
208211 menuOrder = json['menu_order' ],
212+ dateCreated = json['date_created' ],
213+ dateCreatedGMT = json['date_created_gmt' ],
209214 metaData = (json['meta_data' ] as List )
210215 .map ((i) => MetaData .fromJson (i))
211216 .toList ();
Original file line number Diff line number Diff line change 11name : woosignal
22description : WooCommerce REST API for dart, connect a WooCommerce store and start developing with our interface for their API endpoints.
3- version : 3.3 .0
3+ version : 3.4 .0
44homepage : https://woosignal.com
55repository : https://github.com/woosignal/flutter-woocommerce-api
66issue_tracker : https://github.com/woosignal/flutter-woocommerce-api/issues
@@ -10,17 +10,17 @@ environment:
1010 sdk : ' >=2.19.0 <3.0.0'
1111
1212dependencies :
13- dio : ^5.0.1
14- device_info_plus : ^8 .0.0
15- shared_preferences : ^2.0.18
13+ dio : ^5.1.2
14+ device_info_plus : ^9 .0.0
15+ shared_preferences : ^2.1.1
1616 uuid : ^3.0.6
1717
1818 flutter :
1919 sdk : flutter
2020
2121dev_dependencies :
22- lints : ^2.0 .0
23- test : ^1.19 .3
22+ lints : ^2.1 .0
23+ test : ^1.24 .3
2424
2525screenshots :
2626 - description : The WooSignal package logo.
You can’t perform that action at this time.
0 commit comments