GoKwikClient class

Properties

hashCode int
The hash code for this object.
no setterinherited
props InitializeSdkProps
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAddress(Map<String, dynamic> body) Future<Result>
Save a new address for the current user.
checkKwikpassHealth() Future<Result<HealthCheckResponseData?>>
Check whether Kwikpass is healthy and reachable.
createUser({required String email, required String name, String? dob, String? gender}) Future<Result<Map<String, dynamic>?>>
Create or update the authenticated user's profile.
customerIntelligence() Future<Result>
Fetch customer intelligence data for the current user.
customerShopifySession({required String email, required String shopifyCustomerId, required bool isMarketingEventSubscribed}) Future<Result<Map<String, dynamic>>>
Check whether a Shopify customer with email already exists.
getAddressByPhone(String phone) Future<Result>
Retrieve saved addresses associated with phone.
getGeoInfo(String pincode) Future<Result>
Fetch geographic information (city, state, etc.) for a given pincode.
getKfAssetsProperties() Future<Result>
Fetch KwikForms asset/property configuration for the current merchant.
getKwikFormData() Future<Result>
Fetch the KwikForm schema/data for the current merchant.
initializeSDK(InitializeSdkProps props) Future<void>
logout() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverseLogin({required String token, required String phone, required String email, required String shopifyCustomerId}) Future<Result<Map<String, dynamic>>>
Perform reverse login with Kwikpass token
sendShopifyEmailVerificationCode(String email) Future<Result>
Send an email OTP verification code to email.
sendVerificationCode({required String phoneNumber, bool notifications = false}) Future<Result<OtpSentResponseData?>>
Send an OTP verification code to phoneNumber.
submitKwikFormData({required String phone, required String countryCode, required String address, required String name, required String gender, required String firstName, required String lastName, required String email, required bool consent}) Future<Result>
Submit a filled KwikForm.
toString() String
A string representation of this object.
inherited
validateDisposableEmail(String email) Future<bool>
Validate whether email is a disposable/invalid email address.
validateUserToken() Future<Result<String>>
Validate the currently stored user token.
verifyCode({required String phoneNumber, required String code}) Future<Result>
Verify the OTP code for phoneNumber.
verifyShopifyEmail(String email, String otp) Future<Result<Map<String, dynamic>>>
Verify the Shopify email OTP otp for email.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance GoKwikClient
no setter