SalesCommerceCartsApi class

Constructors

SalesCommerceCartsApi({@required Dio requester})

Properties

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

deleteSeller({String cartId}) Future<ApiCallback<void>>
deleteVoucher({String cartId}) Future<ApiCallback<void>>
downgradeItem({String skuId, int quantity, bool isGift = false, String cartId, String channel, bool saveAsDefault = true}) Future<ApiCallback<void>>
finalize({String cartId}) Future<ApiCallback<Order>>
getBonus({String cartId}) Future<ApiCallback<Bonus>>
getCart({String cartId, String channel, bool saveAsDefault = true}) Future<ApiCallback<Cart>>
getFreights({String cartId}) Future<ApiCallback<List<Freight>>>
getInstallments({String cartId}) Future<ApiCallback<List<Installment>>>
getModalities({String latitude, String longitude, String cartId}) Future<ApiCallback<List<SellerModality>>>
getPaymentMethods({String cartId}) Future<ApiCallback<List<PaymentMethod>>>
getSellerItems({String cartId, String sellerId}) Future<ApiCallback<List<CartItem>>>
getSellers({String latitude, String longitude, String cartId}) Future<ApiCallback<List<Seller>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
patchBonus({Bonus bonus, String cartId}) Future<ApiCallback<void>>
putAddress({String addressId, String cartId}) Future<ApiCallback<void>>
putBuyer({String cartId}) Future<ApiCallback<void>>
putCep({String cep, String cartId}) Future<ApiCallback<void>>
putCPFPickup({String cpf, String cartId}) Future<ApiCallback<void>>
putCvv({String cvv, String cartId}) Future<ApiCallback<void>>
putDealerCode({String dealerCode, String cartId}) Future<ApiCallback<void>>
putDeviceFingerprint({String fingerprintToken, String cartId}) Future<ApiCallback<void>>
putFreight({String freightReference, String cartId}) Future<ApiCallback<void>>
putInstallments({String installments, String cartId}) Future<ApiCallback<void>>
putLocation({String latitude, String longitude, String cartId}) Future<ApiCallback<void>>
putModality({String modalityId, String cartId}) Future<ApiCallback<void>>
putPaymentMethod({String paymentMethodId, String cartId}) Future<ApiCallback<void>>
putSeller({String sellerId, String cartId, bool updateLocalCart = true}) Future<ApiCallback<void>>
putVoucher({String voucherCode, String cartId}) Future<ApiCallback<void>>
toString() String
A string representation of this object. [...]
inherited
upgradeItem({String skuId, int quantity, bool isGift = false, String cartId, String channel, bool saveAsDefault = true}) Future<ApiCallback<void>>
validateCart() Future<ApiCallback<void>>

Operators

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

Constants

BONUS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/bonus'
DELETE_SELLER → const String
'sales/commerce/carts/$PARAMETER_CART_ID/seller'
DELETE_VOUCHER → const String
'sales/commerce/carts/$PARAMETER_CART_ID/voucher'
FINALIZE → const String
'sales/commerce/carts/$PARAMETER_CART_ID/finalize'
GET_CART → const String
'sales/commerce/carts/$PARAMETER_CART_ID'
GET_FREIGHTS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/freights'
GET_INSTALLMENTS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/installments'
GET_MODALITIES → const String
'sales/commerce/carts/$PARAMETER_CART_ID/modalities'
GET_PAYMENT_METHODS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/paymentmethods'
GET_SELLERS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/sellers'
GET_SELLERS_ITEMS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/sellers/$PARAMETER_SELLER_ID/items'
PARAMETER_ADDRESS_ID → const String
'#address_id#'
PARAMETER_CART_ID → const String
'#cart_id#'
PARAMETER_CEP → const String
'#cep#'
PARAMETER_CPF → const String
'#cpf#'
PARAMETER_CVV → const String
'#cvv#'
PARAMETER_DEALER_CODE → const String
'#dealer_code#'
PARAMETER_FINGERPRINT_TOKEN → const String
'#fingerprint_token#'
PARAMETER_FREIGHT_REFERENCE → const String
'#freight_reference#'
PARAMETER_MODALITY_ID → const String
'#modality_id#'
PARAMETER_NUMBER_INSTALLMENTS → const String
'#number_installments#'
PARAMETER_PAYMENT_METHOD_ID → const String
'#payment_method_id#'
PARAMETER_SELLER_ID → const String
'#seller_id#'
PARAMETER_VOUCHER_CODE → const String
'#voucher_code#'
PUT_ADDRESS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/address/$PARAMETER_ADDRESS_ID'
PUT_BUYER → const String
'sales/commerce/carts/$PARAMETER_CART_ID/buyer'
PUT_CEP → const String
'sales/commerce/carts/$PARAMETER_CART_ID/cep/$PARAMETER_CEP'
PUT_CPF_PICKUP → const String
'sales/commerce/carts/$PARAMETER_CART_ID/cpfpickup/$PARAMETER_CPF'
PUT_CVV → const String
'sales/commerce/carts/$PARAMETER_CART_ID/cvv/$PARAMETER_CVV'
PUT_DEALER_CODE → const String
'sales/commerce/carts/$PARAMETER_CART_ID/dealercode/$PARAMETER_DEALER_CODE'
PUT_DEVICE_FINGERPRINT → const String
'sales/commerce/carts/$PARAMETER_CART_ID/devicefingerprint/$PARAMETER_FINGERPRINT_TOKEN'
PUT_FREIGHT → const String
'sales/commerce/carts/$PARAMETER_CART_ID/freight/$PARAMETER_FREIGHT_REFERENCE'
PUT_INSTALLMENTS → const String
'sales/commerce/carts/$PARAMETER_CART_ID/installments/$PARAMETER_NUMBER_INSTALLMENTS'
PUT_LOCATION → const String
'sales/commerce/carts/$PARAMETER_CART_ID/location'
PUT_MODALITY → const String
'sales/commerce/carts/$PARAMETER_CART_ID/modality/$PARAMETER_MODALITY_ID'
PUT_PAYMENT_METHOD → const String
'sales/commerce/carts/$PARAMETER_CART_ID/paymentmethod/$PARAMETER_PAYMENT_METHOD_ID'
PUT_SELLER → const String
'sales/commerce/carts/$PARAMETER_CART_ID/seller/$PARAMETER_SELLER_ID'
PUT_VOUCHER → const String
'sales/commerce/carts/$PARAMETER_CART_ID/voucher/$PARAMETER_VOUCHER_CODE'
UPDATE_CART_ITEM → const String
'sales/commerce/carts/$PARAMETER_CART_ID/items'
UPDATE_GIFT_ITEM → const String
'sales/commerce/carts/$PARAMETER_CART_ID/items/gift'