Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • AbstractServiceChangeBuilder
  • ServiceChangeBuilder

Interfaces

  • ServiceChangeBuilderInterface
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class AbstractServiceChangeBuilder

Abstract service change builder

Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions implements Blesta\Core\Pricing\Presenter\Build\Options\OptionsInterface
Extended by Blesta\Core\Pricing\Presenter\Build\ServiceChange\AbstractServiceChangeBuilder implements Blesta\Core\Pricing\Presenter\Build\ServiceChange\ServiceChangeBuilderInterface

Direct known subclasses

Blesta\Core\Pricing\Presenter\Build\ServiceChange\ServiceChangeBuilder
Abstract
Namespace: Blesta\Core\Pricing\Presenter\Build\ServiceChange
Package: blesta\core\Pricing\Presenter\Build\ServiceChange
Copyright: Copyright (c) 2019, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Pricing/Presenter/Build/ServiceChange/AbstractServiceChangeBuilder.php
Methods summary
public
# __construct( Blesta\Core\Pricing\Presenter\Items\ServiceFactory $serviceFactory, Blesta\Core\Pricing\Presenter\Format\FormatFactory $formatFactory, Blesta\Core\Pricing\PricingFactory $pricingFactory, Blesta\Core\Pricing\Presenter\PresenterFactory $presenterFactory, Blesta\Items\ItemFactory $itemFactory )

Init

Init

Parameters

$serviceFactory
An instance of the ServiceFactory
$formatFactory
An instance of the FormatFactory
$pricingFactory
An instance of the PricingFactory
$presenterFactory
An instance of the PresenterFactory
$itemFactory
An instance of the ItemFactory
public this
# discounts( array $discounts )

Sets all discounts

Sets all discounts

Parameters

$discounts

A list of two arrays ('old' and 'new') each with stdClass objects representing each coupon that apply either before or after the service change, containing:

  • id The coupon ID
  • code The coupon code
  • used_qty The number of times the coupon has been used
  • max_qty The max number of coupon uses
  • start_date The date the coupon begins
  • end_date The date the coupon ends
  • status The coupon status
  • type The type of coupon as it applies to packages (exclusive, inclusive)
  • recurring 1 or 0, whether the coupon applies to recurring services
  • limit_recurring 1 or 0, whether the coupon limitations apply to recurring services
  • apply_package_options 1 or 0, whether the coupon applies to a service's package options
  • amounts An array of stdClass objects representing each coupon amount, containing:
    • coupon_id The coupon ID
    • currency The coupon amount currency
    • amount The coupon amount
    • type The coupon amount type (percent, amount)
  • packages An array of stdClass objects representing each assigned coupon package, containing:
    • coupon_id The coupon ID
    • package_id The assigned package ID

Returns

this

Overrides

Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions::discounts()
Methods inherited from Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions
formatDiscounts(), formatOptions(), formatSettings(), formatTaxes(), options(), settings(), taxes()
Methods inherited from Blesta\Core\Pricing\Presenter\Build\ServiceChange\ServiceChangeBuilderInterface
build()
Properties summary
protected Instance $formatFactory

of FormatFactory

of FormatFactory

#
protected Instance $presenterFactory

of PresenterFactory

of PresenterFactory

#
protected Instance $pricingFactory

of PricingFactory

of PricingFactory

#
protected Instance $serviceFactory

of ServiceFactory

of ServiceFactory

#
protected Instance $itemFactory

of ItemFactory

of ItemFactory

#
Properties inherited from Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions
$discounts, $options, $settings, $taxes
Blesta API documentation generated by ApiGen