declare (strict_types=1);
namespace WPForms\Vendor\Square\Models;
use stdClass;
/**
* Represents an accrual rule, which defines how buyers can earn points from the base [loyalty
* program]($m/LoyaltyProgram).
*/
class LoyaltyProgramAccrualRule implements \JsonSerializable
{
/**
* @var string
*/
private $accrualType;
/**
* @var array
*/
private $points = [];
/**
* @var LoyaltyProgramAccrualRuleVisitData|null
*/
private $visitData;
/**
* @var LoyaltyProgramAccrualRuleSpendData|null
*/
private $spendData;
/**
* @var LoyaltyProgramAccrualRuleItemVariationData|null
*/
private $itemVariationData;
/**
* @var LoyaltyProgramAccrualRuleCategoryData|null
*/
private $categoryData;
/**
* @param string $accrualType
*/
public function __construct(string $accrualType)
{
$this->accrualType = $accrualType;
}
/**
* Returns Accrual Type.
* The type of the accrual rule that defines how buyers can earn points.
*/
public function getAccrualType() : string
{
return $this->accrualType;
}
/**
* Sets Accrual Type.
* The type of the accrual rule that defines how buyers can earn points.
*
* @required
* @maps accrual_type
*/
public function setAccrualType(string $accrualType) : void
{
$this->accrualType = $accrualType;
}
/**
* Returns Points.
* The number of points that
* buyers earn based on the `accrual_type`.
*/
public function getPoints() : ?int
{
if (\count($this->points) == 0) {
return null;
}
return $this->points['value'];
}
/**
* Sets Points.
* The number of points that
* buyers earn based on the `accrual_type`.
*
* @maps points
*/
public function setPoints(?int $points) : void
{
$this->points['value'] = $points;
}
/**
* Unsets Points.
* The number of points that
* buyers earn based on the `accrual_type`.
*/
public function unsetPoints() : void
{
$this->points = [];
}
/**
* Returns Visit Data.
* Represents additional data for rules with the `VISIT` accrual type.
*/
public function getVisitData() : ?LoyaltyProgramAccrualRuleVisitData
{
return $this->visitData;
}
/**
* Sets Visit Data.
* Represents additional data for rules with the `VISIT` accrual type.
*
* @maps visit_data
*/
public function setVisitData(?LoyaltyProgramAccrualRuleVisitData $visitData) : void
{
$this->visitData = $visitData;
}
/**
* Returns Spend Data.
* Represents additional data for rules with the `SPEND` accrual type.
*/
public function getSpendData() : ?LoyaltyProgramAccrualRuleSpendData
{
return $this->spendData;
}
/**
* Sets Spend Data.
* Represents additional data for rules with the `SPEND` accrual type.
*
* @maps spend_data
*/
public function setSpendData(?LoyaltyProgramAccrualRuleSpendData $spendData) : void
{
$this->spendData = $spendData;
}
/**
* Returns Item Variation Data.
* Represents additional data for rules with the `ITEM_VARIATION` accrual type.
*/
public function getItemVariationData() : ?LoyaltyProgramAccrualRuleItemVariationData
{
return $this->itemVariationData;
}
/**
* Sets Item Variation Data.
* Represents additional data for rules with the `ITEM_VARIATION` accrual type.
*
* @maps item_variation_data
*/
public function setItemVariationData(?LoyaltyProgramAccrualRuleItemVariationData $itemVariationData) : void
{
$this->itemVariationData = $itemVariationData;
}
/**
* Returns Category Data.
* Represents additional data for rules with the `CATEGORY` accrual type.
*/
public function getCategoryData() : ?LoyaltyProgramAccrualRuleCategoryData
{
return $this->categoryData;
}
/**
* Sets Category Data.
* Represents additional data for rules with the `CATEGORY` accrual type.
*
* @maps category_data
*/
public function setCategoryData(?LoyaltyProgramAccrualRuleCategoryData $categoryData) : void
{
$this->categoryData = $categoryData;
}
/**
* Encode this object to JSON
*
* @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields
* are set. (default: false)
*
* @return array|stdClass
*/
#[\ReturnTypeWillChange] // @phan-suppress-current-line PhanUndeclaredClassAttribute for (php < 8.1)
public function jsonSerialize(bool $asArrayWhenEmpty = \false)
{
$json = [];
$json['accrual_type'] = $this->accrualType;
if (!empty($this->points)) {
$json['points'] = $this->points['value'];
}
if (isset($this->visitData)) {
$json['visit_data'] = $this->visitData;
}
if (isset($this->spendData)) {
$json['spend_data'] = $this->spendData;
}
if (isset($this->itemVariationData)) {
$json['item_variation_data'] = $this->itemVariationData;
}
if (isset($this->categoryData)) {
$json['category_data'] = $this->categoryData;
}
$json = \array_filter($json, function ($val) {
return $val !== null;
});
return !$asArrayWhenEmpty && empty($json) ? new stdClass() : $json;
}
}
Over time, these shared victories strengthen the connection, illustrating that long-term sobriety is achievable and sustainable. We maintain partnerships with reputable healthcare professionals and recovery experts, emphasizing community, mentorship, and relapse prevention, ensuring continuity of care. For clients requiring halfway houses, we collaborate with facilities prioritizing dignity and recovery-oriented programming. Sober living houses support longer-term stabilization, typically involving stays of six months to a year or more.
The term “halfway house” sometimes refers to a place that accommodates people who have just been released from prison and are not yet able to live alone. However, more often than not, it refers to a place for ordinary individuals who are recovering from drug or alcohol addiction. It is also known as a sober living facility, sober home, or halfway house transitional home. Halfway houses and sober living homes can be beneficial for those trying to get acclimated to life in recovery. Both halfway houses and three-fourth houses provide a recovery-supportive environment.
Through counseling, peer support, and vocational training, residents can rebuild their lives and reclaim their independence in the heart of Dorchester. Sobriety houses, also referred to as sober living or sober homes, are residential environments where individuals in recovery from substance use disorders live together. These facilities are typically certified or governed by Sober Living Coalitions or networks and are structured around 12-step programs and ideologies. The supportive structure provided by sober housing helps those new to recovery prioritize their sobriety. Halfway houses in Birmingham help give a safe living environment for recovering addicts transitioning back into society. This reduces the risk of relapse by keeping them away from triggers they might face in their old environment.
Consider factors like your substance abuse history, mental health, employment situation, and strength of your existing support systems. Some people need highly structured environments, while others thrive with more independence. Living in recovery residences while attending outpatient care provides a supportive environment to process what they learn in therapy.
Understanding the difference between sober living and halfway houses empowers you to choose a path that protects your sobriety investment. Sober living offers freedom within fellowship; halfway houses provide structure with oversight. At Steps RC, we believe the right environment transforms recovery from a challenge into an opportunity.
Ultimately, aligning housing choice with seasonal awareness equips individuals to navigate dynamic circumstances without jeopardizing their recovery momentum. In a well-run house, residents complete chores, attend mandatory or voluntary support groups, and follow curfew rules that keep everyone on track. The presence of a trained house manager provides real-time guidance and conflict resolution, ensuring disagreements never derail the group’s focus on sobriety. Regular meetings-whether Alcoholics Anonymous, Narcotics Anonymous, or other 12-step programs-give members clear milestones to celebrate, nurturing hope during inevitable emotional dips.
You’ll also have the opportunity to connect with our licensed Reframe coaches for more personalized guidance. Let’s sum up the similarities and differences between these two forms of recovery housing. We deliver various solutions depending on business requirements, including MVPs, scalable SaaS products, configurable white label solutions, and no-code extensions.
In 2017, there were 188 overdose deaths related to opioids in Arkansas, resulting in a rate of 6.5 deaths per 100,000 persons. Wherein 125 come from prescription opioids, 68 related to synthetic opioids (mainly fentanyl), and 15 related to heroin. When someone is homeless and using, “just get help” can be an unrealistic instruction — especially in winter.
However, beneath its bustling facade lies a community grappling with the challenges of addiction. The prevalence of alcohol consumption in Boston contributes to a significant need for recovery services. Baltimore, Maryland’s largest city and a vibrant cultural hub, is known for its historic landmarks, thriving arts scene, and diverse neighborhoods.
]]>