ShoppingSession
in package
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
- $cart : Cart
- $clientId : int
- $createTime : int
- $customer : Customer
- $estimate : Estimate|null
- $orderId : string|null
- $userAccountId : int
Methods
- __construct() : mixed
- getAddons() : array<string|int, CartAddon>
- getAmazonSlotSubscription() : AmazonSlotSubscription
- Get the value of vatRegSubscriptions
- getCart() : Cart
- getClientId() : int
- getCoupons() : array<string|int, Coupon>
- Get the value of coupons
- getCouponsAreValid() : bool|null
- getCreateTime() : int
- Get timestamp
- getCustomer() : Customer
- getDatevSubscription() : mixed
- getEstimate() : Estimate|null
- Get the value of estimate
- getOffer() : Offer|null
- getOrderId() : string|null
- Get the value of orderId
- getOssSubscription() : OssSubscription
- Get the value of proformaSubscription
- getProformaSubscription() : ProformaSubscription
- Get the value of proformaSubscription
- getShopifySlotSubscription() : ShopifySlotSubscription
- Get the value of shopifySlotSubscription
- getSubscriptions() : array<string|int, VatRegSubscription|ProformaSubscription|OssSubscription>
- getUserAccountId() : int
- getVatRegSubscriptions() : array<string|int, VatRegSubscription>
- Get the value of vatRegSubscriptions
- jsonSerialize() : mixed
- setCoupons() : mixed
- setEstimate() : self
- Set the value of estimate
- setOffer() : mixed
- setOrderId() : self
- Set the value of orderId
- toArray() : mixed
- toValidatorArray() : array<string|int, mixed>
Properties
$cart
private
Cart
$cart
$clientId
private
int
$clientId
$createTime
private
int
$createTime
timestamp
$customer
private
Customer
$customer
$estimate
private
Estimate|null
$estimate
$orderId
private
string|null
$orderId
$userAccountId
private
int
$userAccountId
Methods
__construct()
public
__construct(int $clientId, int $userAccountId, Customer $customer, Cart $cart) : mixed
Parameters
getAddons()
public
getAddons() : array<string|int, CartAddon>
Return values
array<string|int, CartAddon>getAmazonSlotSubscription()
Get the value of vatRegSubscriptions
public
getAmazonSlotSubscription() : AmazonSlotSubscription
Return values
AmazonSlotSubscriptiongetCart()
public
getCart() : Cart
Return values
CartgetClientId()
public
getClientId() : int
Return values
intgetCoupons()
Get the value of coupons
public
getCoupons() : array<string|int, Coupon>
Return values
array<string|int, Coupon>getCouponsAreValid()
public
getCouponsAreValid() : bool|null
Return values
bool|nullgetCreateTime()
Get timestamp
public
getCreateTime() : int
Return values
intgetCustomer()
public
getCustomer() : Customer
Return values
CustomergetDatevSubscription()
public
getDatevSubscription() : mixed
getEstimate()
Get the value of estimate
public
getEstimate() : Estimate|null
Return values
Estimate|nullgetOffer()
public
getOffer() : Offer|null
Return values
Offer|nullgetOrderId()
Get the value of orderId
public
getOrderId() : string|null
Return values
string|nullgetOssSubscription()
Get the value of proformaSubscription
public
getOssSubscription() : OssSubscription
Return values
OssSubscriptiongetProformaSubscription()
Get the value of proformaSubscription
public
getProformaSubscription() : ProformaSubscription
Return values
ProformaSubscriptiongetShopifySlotSubscription()
Get the value of shopifySlotSubscription
public
getShopifySlotSubscription() : ShopifySlotSubscription
Return values
ShopifySlotSubscriptiongetSubscriptions()
public
getSubscriptions() : array<string|int, VatRegSubscription|ProformaSubscription|OssSubscription>
Return values
array<string|int, VatRegSubscription|ProformaSubscription|OssSubscription>getUserAccountId()
public
getUserAccountId() : int
Return values
intgetVatRegSubscriptions()
Get the value of vatRegSubscriptions
public
getVatRegSubscriptions() : array<string|int, VatRegSubscription>
Return values
array<string|int, VatRegSubscription>jsonSerialize()
public
jsonSerialize() : mixed
setCoupons()
public
setCoupons(array<string|int, mixed> $coupons) : mixed
Parameters
- $coupons : array<string|int, mixed>
setEstimate()
Set the value of estimate
public
setEstimate(Estimate|null $estimate) : self
Parameters
- $estimate : Estimate|null
Return values
selfsetOffer()
public
setOffer(Offer|null $offer) : mixed
Parameters
- $offer : Offer|null
setOrderId()
Set the value of orderId
public
setOrderId(string|null $orderId) : self
Parameters
- $orderId : string|null
Return values
selftoArray()
public
toArray() : mixed
toValidatorArray()
public
toValidatorArray() : array<string|int, mixed>