Skip to content

Commit

Permalink
v3.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Mar 11, 2024
1 parent 1714966 commit 4002829
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 83 deletions.
8 changes: 4 additions & 4 deletions .idea/libraries/Dart_Packages.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.11.1] - 2024-03-11

* Dart format

## [3.11.0] - 2024-03-11

* Ability to set the users WP User ID in the networking class
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.0
woosignal: ^3.11.1
```

### Usage example #
Expand Down
6 changes: 2 additions & 4 deletions lib/models/response/order_batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,8 @@ class Orders {
"payment_method_title": paymentMethodTitle,
"transaction_id": transactionId,
"date_paid": datePaid?.toIso8601String(),
"date_paid_gmt":
datePaidGmt?.toIso8601String(),
"date_completed":
dateCompleted?.toIso8601String(),
"date_paid_gmt": datePaidGmt?.toIso8601String(),
"date_completed": dateCompleted?.toIso8601String(),
"date_completed_gmt": dateCompletedGmt?.toIso8601String(),
"cart_hash": cartHash,
"meta_data": List<dynamic>.from(metaData!.map((x) => x.toJson())),
Expand Down
102 changes: 34 additions & 68 deletions lib/models/response/payment_gateway.dart
Original file line number Diff line number Diff line change
Expand Up @@ -515,81 +515,58 @@ class Settings {
Map<String, dynamic> toJson() => {
"title": title!.toJson(),
"instructions": instructions?.toJson(),
"enable_for_methods":
enableForMethods?.toJson(),
"enable_for_virtual":
enableForVirtual?.toJson(),
"enable_for_methods": enableForMethods?.toJson(),
"enable_for_virtual": enableForVirtual?.toJson(),
"email": email?.toJson(),
"advanced": advanced?.toJson(),
"testmode": testmode?.toJson(),
"debug": debug?.toJson(),
"ipn_notification":
ipnNotification?.toJson(),
"receiver_email":
receiverEmail?.toJson(),
"identity_token":
identityToken?.toJson(),
"invoice_prefix":
invoicePrefix?.toJson(),
"ipn_notification": ipnNotification?.toJson(),
"receiver_email": receiverEmail?.toJson(),
"identity_token": identityToken?.toJson(),
"invoice_prefix": invoicePrefix?.toJson(),
"send_shipping": sendShipping?.toJson(),
"address_override":
addressOverride?.toJson(),
"address_override": addressOverride?.toJson(),
"paymentaction": paymentaction?.toJson(),
"page_style": pageStyle?.toJson(),
"image_url": imageUrl?.toJson(),
"api_details": apiDetails?.toJson(),
"api_username": apiUsername?.toJson(),
"api_password": apiPassword?.toJson(),
"api_signature": apiSignature?.toJson(),
"sandbox_api_username":
sandboxApiUsername?.toJson(),
"sandbox_api_password":
sandboxApiPassword?.toJson(),
"sandbox_api_signature":
sandboxApiSignature?.toJson(),
"account_settings":
accountSettings?.toJson(),
"sandbox_api_username": sandboxApiUsername?.toJson(),
"sandbox_api_password": sandboxApiPassword?.toJson(),
"sandbox_api_signature": sandboxApiSignature?.toJson(),
"account_settings": accountSettings?.toJson(),
"environment": environment?.toJson(),
"api_credentials":
apiCredentials?.toJson(),
"api_certificate":
apiCertificate?.toJson(),
"api_credentials": apiCredentials?.toJson(),
"api_certificate": apiCertificate?.toJson(),
"api_subject": apiSubject?.toJson(),
"sandbox_api_credentials": sandboxApiCredentials?.toJson(),
"sandbox_api_certificate": sandboxApiCertificate?.toJson(),
"sandbox_api_subject": sandboxApiSubject?.toJson(),
"paypal_hosted_settings": paypalHostedSettings?.toJson(),
"brand_name": brandName?.toJson(),
"logo_image_url": logoImageUrl?.toJson(),
"header_image_url":
headerImageUrl?.toJson(),
"header_image_url": headerImageUrl?.toJson(),
"landing_page": landingPage?.toJson(),
"require_billing":
requireBilling?.toJson(),
"require_phone_number":
requirePhoneNumber?.toJson(),
"instant_payments":
instantPayments?.toJson(),
"require_billing": requireBilling?.toJson(),
"require_phone_number": requirePhoneNumber?.toJson(),
"instant_payments": instantPayments?.toJson(),
"subtotal_mismatch_behavior": subtotalMismatchBehavior?.toJson(),
"button_settings":
buttonSettings?.toJson(),
"button_settings": buttonSettings?.toJson(),
"use_spb": useSpb?.toJson(),
"button_color": buttonColor?.toJson(),
"button_shape": buttonShape?.toJson(),
"button_layout": buttonLayout?.toJson(),
"button_size": buttonSize?.toJson(),
"hide_funding_methods":
hideFundingMethods?.toJson(),
"credit_enabled":
creditEnabled?.toJson(),
"cart_checkout_enabled":
cartCheckoutEnabled?.toJson(),
"mini_cart_settings":
miniCartSettings?.toJson(),
"hide_funding_methods": hideFundingMethods?.toJson(),
"credit_enabled": creditEnabled?.toJson(),
"cart_checkout_enabled": cartCheckoutEnabled?.toJson(),
"mini_cart_settings": miniCartSettings?.toJson(),
"mini_cart_settings_toggle": miniCartSettingsToggle?.toJson(),
"mini_cart_button_layout": miniCartButtonLayout?.toJson(),
"mini_cart_button_size":
miniCartButtonSize?.toJson(),
"mini_cart_button_size": miniCartButtonSize?.toJson(),
"mini_cart_hide_funding_methods": miniCartHideFundingMethods?.toJson(),
"mini_cart_credit_enabled": miniCartCreditEnabled?.toJson(),
"single_product_settings": singleProductSettings?.toJson(),
Expand All @@ -603,33 +580,22 @@ class Settings {
"single_product_credit_enabled": singleProductCreditEnabled?.toJson(),
"mark_settings": markSettings?.toJson(),
"mark_enabled": markEnabled?.toJson(),
"mark_settings_toggle":
markSettingsToggle?.toJson(),
"mark_button_layout":
markButtonLayout?.toJson(),
"mark_button_size":
markButtonSize?.toJson(),
"mark_settings_toggle": markSettingsToggle?.toJson(),
"mark_button_layout": markButtonLayout?.toJson(),
"mark_button_size": markButtonSize?.toJson(),
"mark_hide_funding_methods": markHideFundingMethods?.toJson(),
"mark_credit_enabled":
markCreditEnabled?.toJson(),
"mark_credit_enabled": markCreditEnabled?.toJson(),
"webhook": webhook?.toJson(),
"test_publishable_key":
testPublishableKey?.toJson(),
"test_secret_key":
testSecretKey?.toJson(),
"test_webhook_secret":
testWebhookSecret?.toJson(),
"publishable_key":
publishableKey?.toJson(),
"test_publishable_key": testPublishableKey?.toJson(),
"test_secret_key": testSecretKey?.toJson(),
"test_webhook_secret": testWebhookSecret?.toJson(),
"publishable_key": publishableKey?.toJson(),
"secret_key": secretKey?.toJson(),
"webhook_secret":
webhookSecret?.toJson(),
"webhook_secret": webhookSecret?.toJson(),
"inline_cc_form": inlineCcForm?.toJson(),
"statement_descriptor":
statementDescriptor?.toJson(),
"statement_descriptor": statementDescriptor?.toJson(),
"capture": capture?.toJson(),
"payment_request":
paymentRequest?.toJson(),
"payment_request": paymentRequest?.toJson(),
"payment_request_button_type": paymentRequestButtonType?.toJson(),
"payment_request_button_theme": paymentRequestButtonTheme?.toJson(),
"payment_request_button_height": paymentRequestButtonHeight?.toJson(),
Expand Down
2 changes: 1 addition & 1 deletion lib/models/response/woosignal_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class WooSignalApp {
this.socialLinks,
this.menuLinks = const [],
this.themeColors,
this.productCategoryCollections = const [],
this.productCategoryCollections = const [],
this.firebaseOptionsIos = const {},
this.firebaseOptionsAndroid = const {}});

Expand Down
2 changes: 1 addition & 1 deletion lib/networking/api_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ApiProvider {
/// Set the device meta
Future<void> setDeviceMeta() async {
DeviceMeta deviceMeta =
await DeviceMeta.init(storageKey: "woosignal_woocommerce");
await DeviceMeta.init(storageKey: "woosignal_woocommerce");

if (kIsWeb) {
_deviceMeta = {
Expand Down
6 changes: 3 additions & 3 deletions 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.0";
const String _wooSignalVersion = "3.11.1";

class WooSignal {
WooSignal._privateConstructor();
Expand All @@ -77,8 +77,8 @@ class WooSignal {
String? encryptSecret}) async {
assert(appKey != null && appKey != "",
"Provide a valid app key. Visit https://woosignal.com");
_apiProvider = ApiProvider(
appKey: appKey!, debugMode: debugMode, version: version);
_apiProvider =
ApiProvider(appKey: appKey!, debugMode: debugMode, version: version);
setDebugMode(debugMode);
if (encryptKey != null) {
_encryptKey = encryptKey;
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.0
version: 3.11.1
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 4002829

Please sign in to comment.