Services

Type
Trait
Namespace
craft\commerce\plugin
Implemented by
craft\commerce\Plugin
Since
2.0

Trait Services

View source

# Public Methods

Method Description
getAddresses() Returns the address service
getCarts() Returns the cart service
getCountries() Returns the countries service
getCurrencies() Returns the currencies service
getCustomers() Returns the customers service
getDiscounts() Returns the discounts service
getEmails() Returns the emails service
getFormulas() Returns the formulas service
getGateways() Returns the gateways service
getLineItemStatuses() Returns the lineItems statuses service
getLineItems() Returns the lineItems service
getOrderAdjustments() Returns the orderAdjustments service
getOrderHistories() Returns the orderHistories service
getOrderStatuses() Returns the orderStatuses service
getOrders() Returns the orders service
getPaymentCurrencies() Returns the paymentCurrencies service
getPaymentSources() Returns the payment sources service
getPayments() Returns the payments service
getPdf() Returns the PDF service
getPlans() Returns the payment sources service
getProductTypes() Returns the productTypes service
getProducts() Returns the products service
getPurchasables() Returns the purchasables service
getSales() Returns the sales service
getShippingCategories() Returns the shippingCategories service
getShippingMethods() Returns the shippingMethods service
getShippingRuleCategories() Returns the shippingRules service
getShippingRules() Returns the shippingRules service
getShippingZones() Returns the shippingZones service
getStates() Returns the states service
getSubscriptions() Returns the subscriptions service
getTaxCategories() Returns the taxCategories service
getTaxRates() Returns the taxRates service
getTaxZones() Returns the taxZones service
getTaxes() Returns the taxes service
getTransactions() Returns the transactions service
getVariants() Returns the variants service
getWebhooks() Returns the webhooks service

# getAddresses()

Returns the address service

View source

Returns

craft\commerce\services\Addresses – The address service

# getCarts()

Returns the cart service

View source

Returns

craft\commerce\services\Carts – The cart service

# getCountries()

Returns the countries service

View source

Returns

craft\commerce\services\Countries – The countries service

# getCurrencies()

Returns the currencies service

View source

Returns

craft\commerce\services\Currencies – The currencies service

# getCustomers()

Returns the customers service

View source

Returns

craft\commerce\services\Customers – The customers service

# getDiscounts()

Returns the discounts service

View source

Returns

craft\commerce\services\Discounts – The discounts service

# getEmails()

Returns the emails service

View source

Returns

craft\commerce\services\Emails – The emails service

# getFormulas()

Since
2.2

Returns the formulas service

View source

Returns

craft\commerce\services\Formulas – The formulas service

# getGateways()

Returns the gateways service

View source

Returns

craft\commerce\services\Gateways – The gateways service

# getLineItemStatuses()

Returns the lineItems statuses service

View source

Returns

craft\commerce\services\LineItemStatuses – The lineItems service

# getLineItems()

Returns the lineItems service

View source

Returns

craft\commerce\services\LineItems – The lineItems service

# getOrderAdjustments()

Returns the orderAdjustments service

View source

Returns

craft\commerce\services\OrderAdjustments – The orderAdjustments service

# getOrderHistories()

Returns the orderHistories service

View source

Returns

craft\commerce\services\OrderHistories – The orderHistories service

# getOrderStatuses()

Returns the orderStatuses service

View source

Returns

craft\commerce\services\OrderStatuses – The orderStatuses service

# getOrders()

Returns the orders service

View source

Returns

craft\commerce\services\Orders – The orders service

# getPaymentCurrencies()

Returns the paymentCurrencies service

View source

Returns

craft\commerce\services\PaymentCurrencies – The paymentCurrencies service

# getPaymentSources()

Returns the payment sources service

View source

Returns

craft\commerce\services\PaymentSources – The payment sources service

# getPayments()

Returns the payments service

View source

Returns

craft\commerce\services\Payments – The payments service

# getPdf()

Returns the PDF service

View source

Returns

craft\commerce\services\Pdf – The PDF service

# getPlans()

Returns the payment sources service

View source

Returns

craft\commerce\services\Plans – The subscription plans service

# getProductTypes()

Returns the productTypes service

View source

Returns

craft\commerce\services\ProductTypes – The productTypes service

# getProducts()

Returns the products service

View source

Returns

craft\commerce\services\Products – The products service

# getPurchasables()

Returns the purchasables service

View source

Returns

craft\commerce\services\Purchasables – The purchasables service

# getSales()

Returns the sales service

View source

Returns

craft\commerce\services\Sales – The sales service

# getShippingCategories()

Returns the shippingCategories service

View source

Returns

craft\commerce\services\ShippingCategories – The shippingCategories service

# getShippingMethods()

Returns the shippingMethods service

View source

Returns

craft\commerce\services\ShippingMethods – The shippingMethods service

# getShippingRuleCategories()

Returns the shippingRules service

View source

Returns

craft\commerce\services\ShippingRuleCategories – The shippingRuleCategories service

# getShippingRules()

Returns the shippingRules service

View source

Returns

craft\commerce\services\ShippingRules – The shippingRules service

# getShippingZones()

Returns the shippingZones service

View source

Returns

craft\commerce\services\ShippingZones – The shippingZones service

# getStates()

Returns the states service

View source

Returns

craft\commerce\services\States – The states service

# getSubscriptions()

Returns the subscriptions service

View source

Returns

craft\commerce\services\Subscriptions – The subscriptions service

# getTaxCategories()

Returns the taxCategories service

View source

Returns

craft\commerce\services\TaxCategories – The taxCategories service

# getTaxRates()

Returns the taxRates service

View source

Returns

craft\commerce\services\TaxRates – The taxRates service

# getTaxZones()

Returns the taxZones service

View source

Returns

craft\commerce\services\TaxZones – The taxZones service

# getTaxes()

Returns the taxes service

View source

Returns

craft\commerce\services\Taxes – The taxes service

# getTransactions()

Returns the transactions service

View source

Returns

craft\commerce\services\Transactions – The transactions service

# getVariants()

Returns the variants service

View source

Returns

craft\commerce\services\Variants – The variants service

# getWebhooks()

Since
3.1.9

Returns the webhooks service

View source

Returns

craft\commerce\services\Webhooks – The variants service