WooSignalShopify class
Methods
-
authCustomer({String? accessToken})
→ Future<AuthCustomerInfo?>
-
Get the customer details
-
authCustomerForgotPassword({required String email})
→ Future<bool>
-
Forgot password
-
authCustomerLogin({required String? email, required String? password, bool? loginUser})
→ Future<AuthCustomer?>
-
Customer Login
-
authCustomerOrders({String? customerAccessToken, int? perPage, String? after})
→ Future<AuthCustomerOrder?>
-
Get the orders by
customerAccessToken
-
authCustomerRegister({required String? email, required String? password, String? firstName, String? lastName, bool? acceptsMarketing, bool? loginUser})
→ Future<AuthCustomer?>
-
Customer Register
-
authCustomerUpdate({String? customerAccessToken, String? firstName, String? lastName})
→ Future<AuthCustomerUpdateResponse?>
-
Update the customer details
customerAccessToken
is optional
firstName
is optional
lastName
is optional
-
authCustomerUpdateAddress({String? customerAccessToken, String? address1, String? city, String? country, String? province, String? zip, String? firstName, String? lastName, String? phone})
→ Future<AuthCustomerAddressUpdated?>
-
Update the customer address
-
cartCheck(List<Map<String, dynamic>> cartLines)
→ Future<List?>
-
Check if the cart items are in stock and returns the users cart
-
checkAppStatus()
→ Future<bool>
-
checks if the app can make orders
-
createOrder(ShopifyOrder shopifyOrder)
→ Future<OrderCreatedResponse?>
-
Create an order
-
decrypt(String text)
→ String
-
Decrypt
text
-
encrypt(String text)
→ String
-
Encrypt
text
-
fetchShippingZones()
→ Future<ShopifyShippingZone?>
-
Fetch the shipping zones
-
getApp({bool encrypted = false})
→ Future<WooSignalApp?>
-
Get app information from WooSignal
-
getCollectionsByIds({required List<String> ids})
→ Future<CollectionItem?>
-
Get the collections by
ids
-
getCountries({String? sinceId})
→ Future<ShopifyCountryResponse?>
-
Get countries
-
getDiscountCodeByLookup({String? code})
→ Future<DiscountCode?>
-
Get the discount code by lookup
code
-
getOrder({required String orderId})
→ Future<OrderResponse?>
-
Get the order by
orderId
-
getPolicies({String? fields})
→ Future<PoliciesResponse?>
-
Get Policies
-
getPriceRuleById({String? priceRuleId})
→ Future<PriceRuleResponse?>
-
Get the Price Rule by
priceRuleId
-
getProduct({required String productId, String? fields})
→ Future<Product?>
-
Get Product
productId
is required
fields
is optional
-
getProductCount({String? productType, String? collectionId, String? createdAtMax, String? createdAtMin, String? publishedAtMax, String? publishedAtMin, String? publishedStatus, String? updatedAtMax, String? updatedAtMin, String? vendor})
→ Future<CountResponse?>
-
Get Product Count
-
getProductImage({required String imageId, required String productId, String? fields})
→ Future<ProductImage?>
-
Get Product Image
-
getProductImageCount({required String? productId, int? sinceId})
→ Future<ProductImageCountResponse?>
-
Get Product Image Count
-
getProductImages({required String productId, String? fields, String? sinceId})
→ Future<ProductImagesResponse?>
-
Get Product Images
-
getProducts({int? first, String? after, String? status = 'active'})
→ Future<ShopifyProductResponse?>
-
Get products
-
getProductsByCollectionId({String? id, int? first, String? after})
→ Future<ProductsByCollectionIdResponse?>
-
Get products by collection ID
-
getProductsRestApi({int? limit, String? productType, int? collectionId, String? createdAtMax, String? createdAtMin, String? fields, String? handle, List<String>? ids, String? presentmentCurrencies, String? publishedAtMax, String? publishedAtMin, String? publishedStatus, int? sinceId, String? status, String? title, String? updatedAtMax, String? updatedAtMin, String? vendor})
→ Future<List<Product>>
-
Get the products using the rest API
-
getProductVariants({required String productId, String? fields, String? sinceId, int? limit})
→ Future<ProductVariantsResponse?>
-
Get Product Variants
-
getProvinces({String? fields, required String id})
→ Future<ProvincesResponse?>
-
Get Provinces
-
getShippingZones({String? fields})
→ Future<ShippingZonesResponse?>
-
Get Shipping Zones
-
getShop({String? fields})
→ Future<ShopResponse?>
-
Get Shop
-
init({required String? appKey, bool debugMode = false, String? encryptKey, String? encryptSecret, Nylo? nylo})
→ Future<void>
-
Initialize the class
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
productSearch({String? query, int first = 100, String? after})
→ Future<ShopifyProductSearch?>
-
Search products
-
setDebugMode(bool debugMode)
→ void
-
Enable debug mode for logging information
-
setFcmToken(String token)
→ void
-
Set the FCM token for notifications
-
setShopifyUserId(String userId)
→ void
-
Set the Shopify customer ID
-
stripePaymentIntent({String? amount, String? desc, String? email, Map<String, dynamic>? shipping, Map<String, dynamic>? customerDetails})
→ Future<Map<String, dynamic>?>
-
Creates a new payment intent and save details
-
toString()
→ String
-
A string representation of this object.
inherited