Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • Cart
  • CartCollection
  • CartDiscountCodeState
  • CartDraft
  • CartReference
  • CartState
  • ClassificationShippingRateInput
  • ClassificationShippingRateInputDraft
  • CustomLineItem
  • CustomLineItemCollection
  • CustomLineItemDraft
  • CustomLineItemDraftCollection
  • DiscountCodeInfo
  • DiscountCodeInfoCollection
  • DiscountedLineItemPortion
  • DiscountedLineItemPortionCollection
  • DiscountedLineItemPrice
  • DiscountedPricePerQuantity
  • DiscountedPricePerQuantityCollection
  • ExternalLineItemTotalPrice
  • ExternalTaxAmountDraft
  • InventoryMode
  • ItemShippingDetails
  • ItemShippingDetailsDraft
  • ItemShippingTarget
  • ItemShippingTargetCollection
  • LineItem
  • LineItemCollection
  • LineItemDraft
  • LineItemDraftCollection
  • MyCartDraft
  • MyLineItemDraft
  • MyLineItemDraftCollection
  • ReplicaCartDraft
  • ScoreShippingRateInput
  • ScoreShippingRateInputDraft
  • ShippingInfo
  • ShippingRateInput
  • ShippingRateInputDraft

Class ShippingInfo

Commercetools\Core\Model\Common\AbstractJsonDeserializeObject implements Commercetools\Core\Model\Common\JsonDeserializeInterface, Commercetools\Core\Model\Common\ObjectTreeInterface uses Commercetools\Core\Model\Common\ObjectTreeTrait
Extended by Commercetools\Core\Model\Common\JsonObject implements JsonSerializable uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Model\Order\ShippingInfoImportDraft
Extended by Commercetools\Core\Model\Cart\ShippingInfo
Namespace: Commercetools\Core\Model\Cart
API documentation: https://docs.commercetools.com/http-api-projects-carts.html#shippinginfo
Located at Core/Model/Cart/ShippingInfo.php

Methods summary

Methods inherited from Commercetools\Core\Model\Order\ShippingInfoImportDraft

ofNamePriceRateAndState()

Methods inherited from Commercetools\Core\Model\Common\JsonObject

__construct(), __get(), hasField(), isOptional()

Methods inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

__sleep(), fromArray(), jsonSerialize(), of(), toArray()

Methods inherited from Commercetools\Core\Model\Common\ObjectTreeInterface

parentSet(), rootGet(), rootSet()

Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ContextTrait

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ObjectTreeTrait

parentSet(), rootGet(), rootSet()

Magic methods summary

public string
# getShippingMethodName( )

Returns

string
public Commercetools\Core\Model\Cart\ShippingInfo
# setShippingMethodName( string $shippingMethodName = null )

Parameters

$shippingMethodName

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\Common\Money
# getPrice( )

Returns

Commercetools\Core\Model\Common\Money
public Commercetools\Core\Model\Cart\ShippingInfo
# setPrice( Commercetools\Core\Model\Common\Money $price = null )

Parameters

$price

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\ShippingMethod\ShippingRate
# getShippingRate( )

Returns

Commercetools\Core\Model\ShippingMethod\ShippingRate
public Commercetools\Core\Model\Cart\ShippingInfo
# setShippingRate( Commercetools\Core\Model\ShippingMethod\ShippingRate $shippingRate = null )

Parameters

$shippingRate

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\TaxCategory\TaxRate
# getTaxRate( )

Returns

Commercetools\Core\Model\TaxCategory\TaxRate
public Commercetools\Core\Model\Cart\ShippingInfo
# setTaxRate( Commercetools\Core\Model\TaxCategory\TaxRate $taxRate = null )

Parameters

$taxRate

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\TaxCategory\TaxCategoryReference
# getTaxCategory( )

Returns

Commercetools\Core\Model\TaxCategory\TaxCategoryReference
public Commercetools\Core\Model\Cart\ShippingInfo
# setTaxCategory( Commercetools\Core\Model\TaxCategory\TaxCategoryReference $taxCategory = null )

Parameters

$taxCategory

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\ShippingMethod\ShippingMethodReference
# getShippingMethod( )

Returns

Commercetools\Core\Model\ShippingMethod\ShippingMethodReference
public Commercetools\Core\Model\Cart\ShippingInfo
# setShippingMethod( Commercetools\Core\Model\ShippingMethod\ShippingMethodReference $shippingMethod = null )

Parameters

$shippingMethod

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\Order\DeliveryCollection
# getDeliveries( )

Returns

Commercetools\Core\Model\Order\DeliveryCollection
public Commercetools\Core\Model\Cart\ShippingInfo
# setDeliveries( Commercetools\Core\Model\Order\DeliveryCollection $deliveries = null )

Parameters

$deliveries

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\Cart\DiscountedLineItemPrice
# getDiscountedPrice( )

Returns

Commercetools\Core\Model\Cart\DiscountedLineItemPrice
public Commercetools\Core\Model\Cart\ShippingInfo
# setDiscountedPrice( Commercetools\Core\Model\Cart\DiscountedLineItemPrice $discountedPrice = null )

Parameters

$discountedPrice

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public string
# getShippingMethodState( )

Returns

string
public Commercetools\Core\Model\Cart\ShippingInfo
# setShippingMethodState( string $shippingMethodState = null )

Parameters

$shippingMethodState

Returns

Commercetools\Core\Model\Cart\ShippingInfo
public Commercetools\Core\Model\Common\TaxedItemPrice
# getTaxedPrice( )

Returns

Commercetools\Core\Model\Common\TaxedItemPrice
public Commercetools\Core\Model\Cart\ShippingInfo
# setTaxedPrice( Commercetools\Core\Model\Common\TaxedItemPrice $taxedPrice = null )

Parameters

$taxedPrice

Returns

Commercetools\Core\Model\Cart\ShippingInfo

Constants summary

Constants inherited from Commercetools\Core\Model\Order\ShippingInfoImportDraft

SHIPPING_METHOD_DONT_MATCH, SHIPPING_METHOD_MATCH

Constants inherited from Commercetools\Core\Model\Common\JsonObject

DECORATOR, ELEMENT_TYPE, INITIALIZED, OPTIONAL, TYPE

Constants inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

JSON_DESERIALIZE_INTERFACE, TYPEABLE_INTERFACE

PHP SDK API documentation generated by ApiGen