Class ServiceChangeBuilder
-
Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions
implements
Blesta\Core\Pricing\Presenter\Build\Options\OptionsInterface
-
Blesta\Core\Pricing\Presenter\Build\ServiceChange\AbstractServiceChangeBuilder
implements
Blesta\Core\Pricing\Presenter\Build\ServiceChange\ServiceChangeBuilderInterface
-
Blesta\Core\Pricing\Presenter\Build\ServiceChange\ServiceChangeBuilder
uses
Blesta\Core\Pricing\MetaItem\Meta
Methods summary
public
Blesta\Core\Pricing\Presenter\Type\ServiceChangePresenter
|
#
build( stdClass $service, array $vars, stdClass $package, stdClass $pricing, array $options )
Retrieve a ServiceChangePresenter
Retrieve a ServiceChangePresenter
Parameters
- $service
An stdClass object representing the original service, including:
- name The service's name
- qty The service quantity
- override_price The service's override price
- override_currency The service's override currency
- date_renews The service renew date
- options An array of service options, each option an stdClass object containing:
- id The option value ID
- service_id The service ID
- option_pricing_id The option's pricing ID
- qty The option quantity
- option_value The option value
- option_value_name The option value name
- option_id The option's ID
- option_label The option's label
- option_name The name of the option
- option_type The type of option
- option_pricing_term The option's pricing term
- option_pricing_period The option's pricing period
- option_pricing_price The option's pricing price
- option_pricing_setup_fee The option's pricing setup fee
- option_pricing_currency The option's pricing currency
- package_pricing An stdClass object representing the service's package pricing, including:
- id The package pricing ID
- package_id The package ID
- term The pricing term
- period The pricing period
- setup_fee The pricing setup fee
- cancel_fee The pricing cancelation fee
- currency The pricing currency
- package An stdClass object representing the service's package, including:
- name The package name
- taxable 1 or 0, whether the package is taxable
- prorata_day The package pro rata day
- prorata_cutoff The package pro rata cutoff day
- $vars
An array of input data, including:
- pricing_id The ID of the selected package pricing
- qty The new service quantity - default's to current service quantity if not specified
- override_price The new override price
- override_currency The new override currency
- configoptions An array of new config options where each key is the option ID
and the value is the selected option value
- $package
An stdClass object representing the new package being changed to, including:
- id The package ID
- name The package's name
- taxable 1 or 0, whether the package is taxable
- prorata_day The package pro rata day
- prorata_cutoff The package pro rata cutoff day
- $pricing
An stdClass object representing the new
service's package pricing, including:
- id The package pricing ID
- package_id The package ID
- term The pricing term
- period The pricing period
- setup_fee The pricing setup fee
- cancel_fee The pricing cancelation fee
- currency The pricing currency
- $options
An array of stdClass objects representing
all new service package options, each including:
- id The option ID
- label The option label
- name The option name
- type The option type
- values An array of stdClass objects representing each option value, including:
- id The option value ID
- option_id The option ID
- value The option value
- min The minimum value
- max The maximum value
- step The step value
- pricing An array whose first index contains an stdClass object representing
the option value pricing, including:
- id The option value pricing ID
- pricing_id The pricing ID
- option_value_id The option value ID
- term The pricing term
- period The pricing period
- price The option value price
- setup_fee The option value setup fee
- cancel_fee The option value cancelation fee
- currency The option value currency
Returns
|