Skip to content

Commit

Permalink
v3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Mar 15, 2024
1 parent 4002829 commit 335b057
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [3.12.0] - 2024-03-15

* Fix shipping zone method
* Change MetaData `value` to dynamic

## [3.11.1] - 2024-03-11

* Dart format
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In your flutter project add the dependency:
``` dart
dependencies:
...
woosignal: ^3.11.1
woosignal: ^3.12.0
```

### Usage example #
Expand Down
2 changes: 1 addition & 1 deletion lib/models/payload/order_wc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class OrderWC {

class MetaData {
String? key;
String? value;
dynamic value;

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

Expand Down
4 changes: 3 additions & 1 deletion lib/models/response/shipping_method.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class FreeShipping {
methodId = json['method_id'];
cost = json['cost'];
if (json['cost'] != null && json['cost'] == 'min_amount') {
minimumOrderAmount = json['kind']['min_amount'];
if (json['kind'] != null && json['kind'] != "") {
minimumOrderAmount = json['kind']['min_amount'];
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/woosignal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import 'package:encrypt/encrypt.dart' as enc;
import 'package:encrypt/encrypt.dart';

/// WooSignal Package version
const String _wooSignalVersion = "3.11.1";
const String _wooSignalVersion = "3.12.0";

class WooSignal {
WooSignal._privateConstructor();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: woosignal
description: WooCommerce REST API for dart, connect a WooCommerce store and start developing with our interface for their API endpoints.
version: 3.11.1
version: 3.12.0
homepage: https://woosignal.com
repository: https://github.com/woosignal/flutter-woocommerce-api
issue_tracker: https://github.com/woosignal/flutter-woocommerce-api/issues
Expand Down

0 comments on commit 335b057

Please sign in to comment.