SalesPriceService

Namespace

IO\Services

Properties
Type Name Description

``

$app

``

$salesPriceSearchRepo

``

$customerService

``

$checkoutService

``

$basketService

``

$classId

``

$singleAccess

``

$currency

``

$plentyId

``

$shippingCountryId

``

$referrerId

Methods
public __construct($app, $salesPriceSearchRepo, $customerService, $checkoutService)

SalesPriceService constructor.

Parameters

Type

Name

Description

Application

$app

SalesPriceSearchRepositoryContract

$salesPriceSearchRepo

CustomerService

$customerService

CheckoutService

$checkoutService

public setClassId($classId):Services
Parameters

Type

Name

Description

null

$classId

public setCurrency($currency):Services
Parameters

Type

Name

Description

null

$currency

public setShippingCountryId($shippingCountryId):Services
Parameters

Type

Name

Description

null

$shippingCountryId

public getSalesPriceForVariation($variationId, $type = "default", $quantity = 1):SalesPriceSearchResponse
Parameters

Type

Name

Description

int

$variationId

string

$type

int

$quantity

public getAllSalesPricesForVariation($variationId, $type = "default", $quantity):array
Parameters

Type

Name

Description

int

$variationId

string

$type

int

$quantity

public applyCurrencyConversion($salesPrice)
Parameters

Type

Name

Description

``

$salesPrice