Skip to content

Commit 335b057

Browse files
committed
v3.12.0
1 parent 4002829 commit 335b057

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [3.12.0] - 2024-03-15
2+
3+
* Fix shipping zone method
4+
* Change MetaData `value` to dynamic
5+
16
## [3.11.1] - 2024-03-11
27

38
* Dart format

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.11.1
18+
woosignal: ^3.12.0
1919
```
2020

2121
### Usage example #

lib/models/payload/order_wc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class OrderWC {
147147

148148
class MetaData {
149149
String? key;
150-
String? value;
150+
dynamic value;
151151

152152
MetaData({this.key, this.value});
153153

lib/models/response/shipping_method.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ class FreeShipping {
126126
methodId = json['method_id'];
127127
cost = json['cost'];
128128
if (json['cost'] != null && json['cost'] == 'min_amount') {
129-
minimumOrderAmount = json['kind']['min_amount'];
129+
if (json['kind'] != null && json['kind'] != "") {
130+
minimumOrderAmount = json['kind']['min_amount'];
131+
}
130132
}
131133
}
132134

lib/woosignal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import 'package:encrypt/encrypt.dart' as enc;
5757
import 'package:encrypt/encrypt.dart';
5858

5959
/// WooSignal Package version
60-
const String _wooSignalVersion = "3.11.1";
60+
const String _wooSignalVersion = "3.12.0";
6161

6262
class WooSignal {
6363
WooSignal._privateConstructor();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.11.1
3+
version: 3.12.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

0 commit comments

Comments
 (0)