Skip to content

Commit 0e48207

Browse files
committed
v3.4.0 updates
1 parent 462e4c2 commit 0e48207

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In your flutter project add the dependency:
1515
``` dart
1616
dependencies:
1717
...
18-
woosignal: ^3.3.0
18+
woosignal: ^3.4.0
1919
```
2020

2121
### Usage example #

lib/models/response/products.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

pubspec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: woosignal
22
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
44
homepage: https://woosignal.com
55
repository: https://github.com/woosignal/flutter-woocommerce-api
66
issue_tracker: https://github.com/woosignal/flutter-woocommerce-api/issues
@@ -10,17 +10,17 @@ environment:
1010
sdk: '>=2.19.0 <3.0.0'
1111

1212
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
1616
uuid: ^3.0.6
1717

1818
flutter:
1919
sdk: flutter
2020

2121
dev_dependencies:
22-
lints: ^2.0.0
23-
test: ^1.19.3
22+
lints: ^2.1.0
23+
test: ^1.24.3
2424

2525
screenshots:
2626
- description: The WooSignal package logo.

0 commit comments

Comments
 (0)