Skip to content

Commit 4002829

Browse files
committed
v3.11.1
1 parent 1714966 commit 4002829

File tree

9 files changed

+51
-83
lines changed

9 files changed

+51
-83
lines changed

.idea/libraries/Dart_Packages.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [3.11.1] - 2024-03-11
2+
3+
* Dart format
4+
15
## [3.11.0] - 2024-03-11
26

37
* Ability to set the users WP User ID in the networking class

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

2121
### Usage example #

lib/models/response/order_batch.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,8 @@ class Orders {
219219
"payment_method_title": paymentMethodTitle,
220220
"transaction_id": transactionId,
221221
"date_paid": datePaid?.toIso8601String(),
222-
"date_paid_gmt":
223-
datePaidGmt?.toIso8601String(),
224-
"date_completed":
225-
dateCompleted?.toIso8601String(),
222+
"date_paid_gmt": datePaidGmt?.toIso8601String(),
223+
"date_completed": dateCompleted?.toIso8601String(),
226224
"date_completed_gmt": dateCompletedGmt?.toIso8601String(),
227225
"cart_hash": cartHash,
228226
"meta_data": List<dynamic>.from(metaData!.map((x) => x.toJson())),

lib/models/response/payment_gateway.dart

Lines changed: 34 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -515,81 +515,58 @@ class Settings {
515515
Map<String, dynamic> toJson() => {
516516
"title": title!.toJson(),
517517
"instructions": instructions?.toJson(),
518-
"enable_for_methods":
519-
enableForMethods?.toJson(),
520-
"enable_for_virtual":
521-
enableForVirtual?.toJson(),
518+
"enable_for_methods": enableForMethods?.toJson(),
519+
"enable_for_virtual": enableForVirtual?.toJson(),
522520
"email": email?.toJson(),
523521
"advanced": advanced?.toJson(),
524522
"testmode": testmode?.toJson(),
525523
"debug": debug?.toJson(),
526-
"ipn_notification":
527-
ipnNotification?.toJson(),
528-
"receiver_email":
529-
receiverEmail?.toJson(),
530-
"identity_token":
531-
identityToken?.toJson(),
532-
"invoice_prefix":
533-
invoicePrefix?.toJson(),
524+
"ipn_notification": ipnNotification?.toJson(),
525+
"receiver_email": receiverEmail?.toJson(),
526+
"identity_token": identityToken?.toJson(),
527+
"invoice_prefix": invoicePrefix?.toJson(),
534528
"send_shipping": sendShipping?.toJson(),
535-
"address_override":
536-
addressOverride?.toJson(),
529+
"address_override": addressOverride?.toJson(),
537530
"paymentaction": paymentaction?.toJson(),
538531
"page_style": pageStyle?.toJson(),
539532
"image_url": imageUrl?.toJson(),
540533
"api_details": apiDetails?.toJson(),
541534
"api_username": apiUsername?.toJson(),
542535
"api_password": apiPassword?.toJson(),
543536
"api_signature": apiSignature?.toJson(),
544-
"sandbox_api_username":
545-
sandboxApiUsername?.toJson(),
546-
"sandbox_api_password":
547-
sandboxApiPassword?.toJson(),
548-
"sandbox_api_signature":
549-
sandboxApiSignature?.toJson(),
550-
"account_settings":
551-
accountSettings?.toJson(),
537+
"sandbox_api_username": sandboxApiUsername?.toJson(),
538+
"sandbox_api_password": sandboxApiPassword?.toJson(),
539+
"sandbox_api_signature": sandboxApiSignature?.toJson(),
540+
"account_settings": accountSettings?.toJson(),
552541
"environment": environment?.toJson(),
553-
"api_credentials":
554-
apiCredentials?.toJson(),
555-
"api_certificate":
556-
apiCertificate?.toJson(),
542+
"api_credentials": apiCredentials?.toJson(),
543+
"api_certificate": apiCertificate?.toJson(),
557544
"api_subject": apiSubject?.toJson(),
558545
"sandbox_api_credentials": sandboxApiCredentials?.toJson(),
559546
"sandbox_api_certificate": sandboxApiCertificate?.toJson(),
560547
"sandbox_api_subject": sandboxApiSubject?.toJson(),
561548
"paypal_hosted_settings": paypalHostedSettings?.toJson(),
562549
"brand_name": brandName?.toJson(),
563550
"logo_image_url": logoImageUrl?.toJson(),
564-
"header_image_url":
565-
headerImageUrl?.toJson(),
551+
"header_image_url": headerImageUrl?.toJson(),
566552
"landing_page": landingPage?.toJson(),
567-
"require_billing":
568-
requireBilling?.toJson(),
569-
"require_phone_number":
570-
requirePhoneNumber?.toJson(),
571-
"instant_payments":
572-
instantPayments?.toJson(),
553+
"require_billing": requireBilling?.toJson(),
554+
"require_phone_number": requirePhoneNumber?.toJson(),
555+
"instant_payments": instantPayments?.toJson(),
573556
"subtotal_mismatch_behavior": subtotalMismatchBehavior?.toJson(),
574-
"button_settings":
575-
buttonSettings?.toJson(),
557+
"button_settings": buttonSettings?.toJson(),
576558
"use_spb": useSpb?.toJson(),
577559
"button_color": buttonColor?.toJson(),
578560
"button_shape": buttonShape?.toJson(),
579561
"button_layout": buttonLayout?.toJson(),
580562
"button_size": buttonSize?.toJson(),
581-
"hide_funding_methods":
582-
hideFundingMethods?.toJson(),
583-
"credit_enabled":
584-
creditEnabled?.toJson(),
585-
"cart_checkout_enabled":
586-
cartCheckoutEnabled?.toJson(),
587-
"mini_cart_settings":
588-
miniCartSettings?.toJson(),
563+
"hide_funding_methods": hideFundingMethods?.toJson(),
564+
"credit_enabled": creditEnabled?.toJson(),
565+
"cart_checkout_enabled": cartCheckoutEnabled?.toJson(),
566+
"mini_cart_settings": miniCartSettings?.toJson(),
589567
"mini_cart_settings_toggle": miniCartSettingsToggle?.toJson(),
590568
"mini_cart_button_layout": miniCartButtonLayout?.toJson(),
591-
"mini_cart_button_size":
592-
miniCartButtonSize?.toJson(),
569+
"mini_cart_button_size": miniCartButtonSize?.toJson(),
593570
"mini_cart_hide_funding_methods": miniCartHideFundingMethods?.toJson(),
594571
"mini_cart_credit_enabled": miniCartCreditEnabled?.toJson(),
595572
"single_product_settings": singleProductSettings?.toJson(),
@@ -603,33 +580,22 @@ class Settings {
603580
"single_product_credit_enabled": singleProductCreditEnabled?.toJson(),
604581
"mark_settings": markSettings?.toJson(),
605582
"mark_enabled": markEnabled?.toJson(),
606-
"mark_settings_toggle":
607-
markSettingsToggle?.toJson(),
608-
"mark_button_layout":
609-
markButtonLayout?.toJson(),
610-
"mark_button_size":
611-
markButtonSize?.toJson(),
583+
"mark_settings_toggle": markSettingsToggle?.toJson(),
584+
"mark_button_layout": markButtonLayout?.toJson(),
585+
"mark_button_size": markButtonSize?.toJson(),
612586
"mark_hide_funding_methods": markHideFundingMethods?.toJson(),
613-
"mark_credit_enabled":
614-
markCreditEnabled?.toJson(),
587+
"mark_credit_enabled": markCreditEnabled?.toJson(),
615588
"webhook": webhook?.toJson(),
616-
"test_publishable_key":
617-
testPublishableKey?.toJson(),
618-
"test_secret_key":
619-
testSecretKey?.toJson(),
620-
"test_webhook_secret":
621-
testWebhookSecret?.toJson(),
622-
"publishable_key":
623-
publishableKey?.toJson(),
589+
"test_publishable_key": testPublishableKey?.toJson(),
590+
"test_secret_key": testSecretKey?.toJson(),
591+
"test_webhook_secret": testWebhookSecret?.toJson(),
592+
"publishable_key": publishableKey?.toJson(),
624593
"secret_key": secretKey?.toJson(),
625-
"webhook_secret":
626-
webhookSecret?.toJson(),
594+
"webhook_secret": webhookSecret?.toJson(),
627595
"inline_cc_form": inlineCcForm?.toJson(),
628-
"statement_descriptor":
629-
statementDescriptor?.toJson(),
596+
"statement_descriptor": statementDescriptor?.toJson(),
630597
"capture": capture?.toJson(),
631-
"payment_request":
632-
paymentRequest?.toJson(),
598+
"payment_request": paymentRequest?.toJson(),
633599
"payment_request_button_type": paymentRequestButtonType?.toJson(),
634600
"payment_request_button_theme": paymentRequestButtonTheme?.toJson(),
635601
"payment_request_button_height": paymentRequestButtonHeight?.toJson(),

lib/models/response/woosignal_app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class WooSignalApp {
8888
this.socialLinks,
8989
this.menuLinks = const [],
9090
this.themeColors,
91-
this.productCategoryCollections = const [],
91+
this.productCategoryCollections = const [],
9292
this.firebaseOptionsIos = const {},
9393
this.firebaseOptionsAndroid = const {}});
9494

lib/networking/api_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ApiProvider {
2929
/// Set the device meta
3030
Future<void> setDeviceMeta() async {
3131
DeviceMeta deviceMeta =
32-
await DeviceMeta.init(storageKey: "woosignal_woocommerce");
32+
await DeviceMeta.init(storageKey: "woosignal_woocommerce");
3333

3434
if (kIsWeb) {
3535
_deviceMeta = {

lib/woosignal.dart

Lines changed: 3 additions & 3 deletions
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.0";
60+
const String _wooSignalVersion = "3.11.1";
6161

6262
class WooSignal {
6363
WooSignal._privateConstructor();
@@ -77,8 +77,8 @@ class WooSignal {
7777
String? encryptSecret}) async {
7878
assert(appKey != null && appKey != "",
7979
"Provide a valid app key. Visit https://woosignal.com");
80-
_apiProvider = ApiProvider(
81-
appKey: appKey!, debugMode: debugMode, version: version);
80+
_apiProvider =
81+
ApiProvider(appKey: appKey!, debugMode: debugMode, version: version);
8282
setDebugMode(debugMode);
8383
if (encryptKey != null) {
8484
_encryptKey = encryptKey;

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.0
3+
version: 3.11.1
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)