Class Cart
java.lang.Object
de.codebarista.shopware.model.core.Cart
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-10T11:26:02.541008353+02:00[Europe/Berlin]",
comments="Generator version: 7.5.0")
public class Cart
extends Object
Cart
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddErrorsItem(CartAllOfErrors errorsItem) addLineItemsItem(LineItem lineItemsItem) addTransactionsItem(CartAllOfTransactions transactionsItem) affiliateCode(String affiliateCode) campaignCode(String campaignCode) customerComment(String customerComment) booleanerrors(List<CartAllOfErrors> errors) An affiliate tracking codeAlias which can be used to restrict response fields.A campaign tracking codeA comment that can be added to the cart.A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.All items within the cartGet modifiedgetName()Name of the cart - for example `guest-cart`getPrice()Get pricegetToken()Context token identifying the cart and the user sessionA list of all payment transactions associated with the current cart.inthashCode()price(CartAllOfPrice price) voidsetAffiliateCode(String affiliateCode) voidsetApiAlias(String apiAlias) voidsetCampaignCode(String campaignCode) voidsetCustomerComment(String customerComment) voidsetErrors(List<CartAllOfErrors> errors) voidsetLineItems(List<LineItem> lineItems) voidsetModified(Boolean modified) voidvoidsetPrice(CartAllOfPrice price) voidvoidsetTransactions(List<CartAllOfTransactions> transactions) toString()transactions(List<CartAllOfTransactions> transactions)
-
Field Details
-
JSON_PROPERTY_API_ALIAS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TOKEN
- See Also:
-
JSON_PROPERTY_PRICE
- See Also:
-
JSON_PROPERTY_LINE_ITEMS
- See Also:
-
JSON_PROPERTY_ERRORS
- See Also:
-
JSON_PROPERTY_TRANSACTIONS
- See Also:
-
JSON_PROPERTY_MODIFIED
- See Also:
-
JSON_PROPERTY_CUSTOMER_COMMENT
- See Also:
-
JSON_PROPERTY_AFFILIATE_CODE
- See Also:
-
JSON_PROPERTY_CAMPAIGN_CODE
- See Also:
-
-
Constructor Details
-
Cart
public Cart()
-
-
Method Details
-
apiAlias
-
getApiAlias
Alias which can be used to restrict response fields. For more information see [includes](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#includes-apialias).- Returns:
- apiAlias
-
setApiAlias
-
name
-
getName
Name of the cart - for example `guest-cart`- Returns:
- name
-
setName
-
token
-
getToken
Context token identifying the cart and the user session- Returns:
- token
-
setToken
-
price
-
getPrice
Get price- Returns:
- price
-
setPrice
-
lineItems
-
addLineItemsItem
-
getLineItems
All items within the cart- Returns:
- lineItems
-
setLineItems
-
errors
-
addErrorsItem
-
getErrors
A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.- Returns:
- errors
-
setErrors
-
transactions
-
addTransactionsItem
-
getTransactions
A list of all payment transactions associated with the current cart.- Returns:
- transactions
-
setTransactions
-
modified
-
getModified
Get modified- Returns:
- modified
-
setModified
-
customerComment
-
getCustomerComment
A comment that can be added to the cart.- Returns:
- customerComment
-
setCustomerComment
-
affiliateCode
-
getAffiliateCode
An affiliate tracking code- Returns:
- affiliateCode
-
setAffiliateCode
-
campaignCode
-
getCampaignCode
A campaign tracking code- Returns:
- campaignCode
-
setCampaignCode
-
equals
-
hashCode
public int hashCode() -
toString
-