VatRegistrationCountryEntity
in package
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
- $availableEndDate : DateTime|null
- $country : Country
- $hasFiscalRepresentationRestriction : bool
- $hasSubscription : bool
- $isHomeCountry : bool
- $monthlyMandatoryAddons : array<string|int, AddonEntity>|null
- $monthlyPlans : array<string|int, ChargeBeePlanEntity>|null
- $standaloveVatRegistrationEnabled : mixed
- $subscriptionStartDate : string|null
- $suggestVatRegistration : bool
- $thresholdDate : string|null
- $vatCalculationStartDate : string|null
- $vatRegistered : bool
- $yearlyMandatoryAddons : array<string|int, AddonEntity>|null
- $yearlyPlans : array<string|int, ChargeBeePlanEntity>|null
Methods
- getAvailableEndDate() : DateTime|null
- getCountry() : Country
- Get the value of country
- getEnableVatRegistration() : bool
- getForceThresholdDate() : mixed
- getHasFiscalRepresentationRestriction() : bool
- getHasSubscription() : bool
- Get the value of hasSubscription
- getIsEnabledVatRegistration() : bool
- Get the value of suggestVatRegistration
- getIsHomeCountry() : bool
- Get the value of isHomeCountry
- getIsSuggested() : bool
- Get the value of isSuggested
- getMandatoryAddonsByPeriodUnitId() : array<string|int, AddonEntity>
- getMaxDate() : mixed
- getMinDate() : mixed
- getMonthlyMandatoryAddons() : array<string|int, AddonEntity>|null
- Get the value of monthlyMandatoryAddons
- getMonthlyPlans() : array<string|int, ChargeBeePlanEntity>|null
- Get the value of monthlyPlans
- getPlanValues() : mixed
- getStartDate() : string|null
- Get the value of startDate
- getSubscriptionStartDate() : string|null
- Get the value of subscriptionStartDate
- getThresholdDate() : string|null
- getVatCalculationStartDate() : string|null
- Get the value of vatCalculationStartDate
- getYearlyMandatoryAddons() : array<string|int, AddonEntity>|null
- Get the value of yearlyMandatoryAddons
- getYearlyPlans() : array<string|int, ChargeBeePlanEntity>|null
- Get the value of yearlyPlans
- isDisabled() : mixed
- isStandaloneVatRegistrationEnabled() : bool
- isVatRegistered() : bool
- jsonSerialize() : array<string|int, mixed>
- setAvailableEndDate() : void
- setCountry() : self
- Set the value of country
- setHasFiscalRepresentationRestriction() : void
- setHasSubscription() : self
- Set the value of hasSubscription
- setIsHomeCountry() : self
- Set the value of isHomeCountry
- setMandatoryAddonsMonthly() : self
- Set the value of monthlyMandatoryAddons
- setMandatoryAddonsYearly() : self
- Set the value of yearlyMandatoryAddon
- setPlanMonthly() : self
- Set the value of monthlyPlans
- setPlanYearly() : self
- Set the value of yearlyPlans
- setStandaloneVatRegistrationEnabled() : mixed
- setSubscriptionStartDate() : self
- Set the value of subscriptionStartDate
- setSuggestVatRegistration() : self
- Set the value of suggestVatRegistration
- setThresholdDate() : self
- setVatCalculationStartDate() : self
- Set the value of vatCalculationStartDate
- setVatRegistered() : void
- formatPlan() : array<string|int, mixed>|null
- getFirstDateOf() : mixed
- getLastDateOf() : mixed
Properties
$availableEndDate
private
DateTime|null
$availableEndDate
$country
private
Country
$country
$hasFiscalRepresentationRestriction
private
bool
$hasFiscalRepresentationRestriction
$hasSubscription
private
bool
$hasSubscription
= false
$isHomeCountry
private
bool
$isHomeCountry
= false
$monthlyMandatoryAddons
private
array<string|int, AddonEntity>|null
$monthlyMandatoryAddons
$monthlyPlans
private
array<string|int, ChargeBeePlanEntity>|null
$monthlyPlans
$standaloveVatRegistrationEnabled
private
mixed
$standaloveVatRegistrationEnabled
$subscriptionStartDate
private
string|null
$subscriptionStartDate
$suggestVatRegistration
private
bool
$suggestVatRegistration
= false
$thresholdDate
private
string|null
$thresholdDate
$vatCalculationStartDate
private
string|null
$vatCalculationStartDate
$vatRegistered
private
bool
$vatRegistered
$yearlyMandatoryAddons
private
array<string|int, AddonEntity>|null
$yearlyMandatoryAddons
$yearlyPlans
private
array<string|int, ChargeBeePlanEntity>|null
$yearlyPlans
Methods
getAvailableEndDate()
public
getAvailableEndDate() : DateTime|null
Return values
DateTime|nullgetCountry()
Get the value of country
public
getCountry() : Country
Return values
CountrygetEnableVatRegistration()
public
getEnableVatRegistration() : bool
Return values
boolgetForceThresholdDate()
public
getForceThresholdDate() : mixed
getHasFiscalRepresentationRestriction()
public
getHasFiscalRepresentationRestriction() : bool
Return values
boolgetHasSubscription()
Get the value of hasSubscription
public
getHasSubscription() : bool
Return values
boolgetIsEnabledVatRegistration()
Get the value of suggestVatRegistration
public
getIsEnabledVatRegistration() : bool
Return values
boolgetIsHomeCountry()
Get the value of isHomeCountry
public
getIsHomeCountry() : bool
Return values
boolgetIsSuggested()
Get the value of isSuggested
public
getIsSuggested() : bool
Return values
boolgetMandatoryAddonsByPeriodUnitId()
public
getMandatoryAddonsByPeriodUnitId(string $group, int $periodUnitId) : array<string|int, AddonEntity>
Parameters
- $group : string
- $periodUnitId : int
Return values
array<string|int, AddonEntity>getMaxDate()
public
getMaxDate() : mixed
getMinDate()
public
getMinDate() : mixed
getMonthlyMandatoryAddons()
Get the value of monthlyMandatoryAddons
public
getMonthlyMandatoryAddons() : array<string|int, AddonEntity>|null
Return values
array<string|int, AddonEntity>|nullgetMonthlyPlans()
Get the value of monthlyPlans
public
getMonthlyPlans() : array<string|int, ChargeBeePlanEntity>|null
Return values
array<string|int, ChargeBeePlanEntity>|nullgetPlanValues()
public
getPlanValues() : mixed
getStartDate()
Get the value of startDate
public
getStartDate() : string|null
Return values
string|nullgetSubscriptionStartDate()
Get the value of subscriptionStartDate
public
getSubscriptionStartDate() : string|null
Return values
string|nullgetThresholdDate()
public
getThresholdDate() : string|null
Return values
string|nullgetVatCalculationStartDate()
Get the value of vatCalculationStartDate
public
getVatCalculationStartDate() : string|null
Return values
string|nullgetYearlyMandatoryAddons()
Get the value of yearlyMandatoryAddons
public
getYearlyMandatoryAddons() : array<string|int, AddonEntity>|null
Return values
array<string|int, AddonEntity>|nullgetYearlyPlans()
Get the value of yearlyPlans
public
getYearlyPlans() : array<string|int, ChargeBeePlanEntity>|null
Return values
array<string|int, ChargeBeePlanEntity>|nullisDisabled()
public
isDisabled() : mixed
isStandaloneVatRegistrationEnabled()
public
isStandaloneVatRegistrationEnabled() : bool
Return values
boolisVatRegistered()
public
isVatRegistered() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setAvailableEndDate()
public
setAvailableEndDate(DateTime|null $availableEndDate) : void
Parameters
- $availableEndDate : DateTime|null
setCountry()
Set the value of country
public
setCountry(Country $country) : self
Parameters
- $country : Country
Return values
selfsetHasFiscalRepresentationRestriction()
public
setHasFiscalRepresentationRestriction(bool $hasFiscalRepresentationRestriction) : void
Parameters
- $hasFiscalRepresentationRestriction : bool
setHasSubscription()
Set the value of hasSubscription
public
setHasSubscription(bool $hasSubscription) : self
Parameters
- $hasSubscription : bool
Return values
selfsetIsHomeCountry()
Set the value of isHomeCountry
public
setIsHomeCountry(bool $isHomeCountry) : self
Parameters
- $isHomeCountry : bool
Return values
selfsetMandatoryAddonsMonthly()
Set the value of monthlyMandatoryAddons
public
setMandatoryAddonsMonthly(string|null $group, array<string|int, AddonEntity>|null $monthlyMandatoryAddons) : self
Parameters
- $group : string|null
- $monthlyMandatoryAddons : array<string|int, AddonEntity>|null
Return values
selfsetMandatoryAddonsYearly()
Set the value of yearlyMandatoryAddon
public
setMandatoryAddonsYearly(string|null $group, mixed $yearlyMandatoryAddon) : self
Parameters
- $group : string|null
- $yearlyMandatoryAddon : mixed
Return values
selfsetPlanMonthly()
Set the value of monthlyPlans
public
setPlanMonthly(string $group, ChargeBeePlanEntity $monthlyPlan) : self
Parameters
- $group : string
- $monthlyPlan : ChargeBeePlanEntity
Return values
selfsetPlanYearly()
Set the value of yearlyPlans
public
setPlanYearly(string $group, ChargeBeePlanEntity|null $yearlyPlan) : self
Parameters
- $group : string
- $yearlyPlan : ChargeBeePlanEntity|null
Return values
selfsetStandaloneVatRegistrationEnabled()
public
setStandaloneVatRegistrationEnabled(bool $enabled) : mixed
Parameters
- $enabled : bool
setSubscriptionStartDate()
Set the value of subscriptionStartDate
public
setSubscriptionStartDate(string|null $subscriptionStartDate) : self
Parameters
- $subscriptionStartDate : string|null
Return values
selfsetSuggestVatRegistration()
Set the value of suggestVatRegistration
public
setSuggestVatRegistration(bool $suggestVatRegistration) : self
Parameters
- $suggestVatRegistration : bool
Return values
selfsetThresholdDate()
public
setThresholdDate(string|null $thresholdDate) : self
Parameters
- $thresholdDate : string|null
Return values
selfsetVatCalculationStartDate()
Set the value of vatCalculationStartDate
public
setVatCalculationStartDate(string|null $vatCalculationStartDate) : self
Parameters
- $vatCalculationStartDate : string|null
Return values
selfsetVatRegistered()
public
setVatRegistered(bool $vatRegistered) : void
Parameters
- $vatRegistered : bool
formatPlan()
private
formatPlan(mixed $plan, mixed $mandatoryAddon) : array<string|int, mixed>|null
Parameters
- $plan : mixed
- $mandatoryAddon : mixed
Return values
array<string|int, mixed>|nullgetFirstDateOf()
private
getFirstDateOf(mixed ...$dates) : mixed
Parameters
- $dates : mixed
getLastDateOf()
private
getLastDateOf(mixed ...$dates) : mixed
Parameters
- $dates : mixed