CheckOutServicesImp class Null safety

Inheritance
Implemented types

Constructors

CheckOutServicesImp({String defaultPath = ''})

Properties

defaultPath String
final, inherited
dio Dio
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

checkoutReview({required int customerId, int? paymentOptionId, int? addressId, int? loyaltyPoints, int? pickStoreID}) Future<CheckoutReviewModel>
It's used to get final stage in checkout cycle, It's just a review contains order Items - selected payment - selected address
override
chehckoutCartSummary({required int customerId, required int storeId, required int addressId}) Future<CheckouCartSummaryModel>
It's return checkout summary (total - sub total - discount value)
override
confirm({required int customerId, int? paymentOptionId, int? addressId, required int loyaltyPoints, required double finalAmount, int? storeId}) Future<String>
It's used to confirm the order if the payment is Cash on delivery. [...]
override
confirmOneClickOrder({required int customerId, int? addressId, required int qty, required int skuId}) Future<String>
It's used to confirm the order with one click. [...]
override
confirmOrder({required int customerId, int? paymentOptionId, int? addressId, required int loyaltyPoints, required double finalAmount, int? storeId}) Future<PaymentFrameModel>
It's used to confirm the order if the payment is Credit card. [...]
override
couponClear({required String couponCode, required int addressId, required int loyaltyPoints, required int customerId, int? storeId}) Future<CheckouCartSummaryModel>
It's used to remove coupon value
override
couponRedeem({required String couponCode, required int addressId, required int loyaltyPoints, required int customerId, int? storeId}) Future<CheckouCartSummaryModel>
It's used to apply coupon value
override
deleteData({String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
getData({String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
getDefaultAddress({required int customerId}) Future<AddressModel>
It's return the default address of the user.
override
getPaymentOptions() Future<List<PaymentOptionsModel>>
It's return all Payment options available (COD - CC - Apple pay) [...]
override
getShipmentAddresses({required int customerId}) Future<List<AddressModel>>
It's return user shipmentAddresses. [...]
override
loyaltyPointsClear({required int customerId, required int addressId, required int loyaltyPoints, int? storeId}) Future<CheckouCartSummaryModel>
It's used to remove points
override
loyaltyPointsRedeem({required int customerId, required int addressId, required int loyaltyPoints, int? storeId}) Future<CheckouCartSummaryModel>
It's used to apply points
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
oneClickOrderDetails({required int customerId, required int qty, required int skuId}) Future<OneClickOrderDetailsModel>
It's used to return details like default address - total - shipment fees to use when making one click order.
override
oneClickOrderTriggeredDiscount({required int customerId, required int qty, required int skuId}) Future<OneClickOrderDetailsModel>
It will notify the user if he will have a discount while making one click order.
override
postData({dynamic data, String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
putData(dynamic data, {String? path, Map<String, dynamic> queryParameters = const {}, Map<String, dynamic>? headers}) Future<Response>
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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