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
2
6
3
7
* New endpoint for Stripe Payment Intents.
4
8
* Pubspec.yaml dependency updates.
5
9
6
- ## [ 3.2.3] - 2022 -02-22
10
+ ## [ 3.2.3] - 2023 -02-22
7
11
8
12
* Flutter version bump
9
13
10
- ## [ 3.2.2] - 2022 -02-20
14
+ ## [ 3.2.2] - 2023 -02-20
11
15
12
16
* Add logo to package
13
17
* 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:
15
15
``` dart
16
16
dependencies:
17
17
...
18
- woosignal: ^3.3 .0
18
+ woosignal: ^3.4 .0
19
19
```
20
20
21
21
### Usage example #
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class Product {
76
76
final List <int >? groupedProducts;
77
77
final int ? menuOrder;
78
78
final List <MetaData > metaData;
79
+ final String ? dateCreated, dateCreatedGMT;
79
80
80
81
Product (
81
82
this .id,
@@ -134,7 +135,9 @@ class Product {
134
135
this .variations,
135
136
this .groupedProducts,
136
137
this .menuOrder,
137
- this .metaData);
138
+ this .metaData,
139
+ this .dateCreated,
140
+ this .dateCreatedGMT);
138
141
139
142
Product .fromJson (Map <String , dynamic > json)
140
143
: id = json['id' ],
@@ -206,6 +209,8 @@ class Product {
206
209
variations = json['variations' ].cast <int >(),
207
210
groupedProducts = json['grouped_products' ].cast <int >(),
208
211
menuOrder = json['menu_order' ],
212
+ dateCreated = json['date_created' ],
213
+ dateCreatedGMT = json['date_created_gmt' ],
209
214
metaData = (json['meta_data' ] as List )
210
215
.map ((i) => MetaData .fromJson (i))
211
216
.toList ();
Original file line number Diff line number Diff line change 1
1
name : woosignal
2
2
description : 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
4
4
homepage : https://woosignal.com
5
5
repository : https://github.com/woosignal/flutter-woocommerce-api
6
6
issue_tracker : https://github.com/woosignal/flutter-woocommerce-api/issues
@@ -10,17 +10,17 @@ environment:
10
10
sdk : ' >=2.19.0 <3.0.0'
11
11
12
12
dependencies :
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
16
16
uuid : ^3.0.6
17
17
18
18
flutter :
19
19
sdk : flutter
20
20
21
21
dev_dependencies :
22
- lints : ^2.0 .0
23
- test : ^1.19 .3
22
+ lints : ^2.1 .0
23
+ test : ^1.24 .3
24
24
25
25
screenshots :
26
26
- description : The WooSignal package logo.
You can’t perform that action at this time.
0 commit comments