Skip to content

Commit a12946e

Browse files
committed
v3.13.0
1 parent 335b057 commit a12946e

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [3.13.0] - 2024-03-15
2+
3+
* New network method `personalizationCategories` to store personalization categories
4+
15
## [3.12.0] - 2024-03-15
26

37
* Fix shipping zone method

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

2121
### Usage example #

lib/woosignal.dart

Lines changed: 18 additions & 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.12.0";
60+
const String _wooSignalVersion = "3.13.0";
6161

6262
class WooSignal {
6363
WooSignal._privateConstructor();
@@ -1584,4 +1584,21 @@ class WooSignal {
15841584
jsonResponse: (json) => ProductTag.fromJson(json),
15851585
);
15861586
}
1587+
1588+
/// Used for personalization of the app around the user's interests
1589+
Future<bool?> personalizationCategories(
1590+
{required List<int> categoryIds}) async {
1591+
Map<String, dynamic> payload = {
1592+
"category_ids": categoryIds,
1593+
};
1594+
Map<String, dynamic>? payloadRsp =
1595+
await _apiProvider.post("/personalization/categories", payload);
1596+
1597+
_printLog(payloadRsp.toString());
1598+
if (payloadRsp == null) {
1599+
return false;
1600+
}
1601+
1602+
return payloadRsp['status'] == 200;
1603+
}
15871604
}

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.12.0
3+
version: 3.13.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)