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;
}
}
So it’s taken that pressure off, this has to be a friendship interaction, and this has to be a romantic interaction. The platforms highlighted below are legal, so you don’t have to worry about getting scammed. OurTime.com is a dating site that caters to singles 50 years and older. Registration is free, and you can view profiles of singles in your area. The app is easy to use, and you can connect with local singles that interest you. Starting a conversation here is very easy because your potential matches are meant to comment on a specific piece of information on your profile.
They are oriented on varied countries and on the varied nationalities. There hookupguru the sites with the diverse prices and the diverse functionalities. You will need a premium membership to use the site’s full potential. For example, messaging people as a free member lets you only use the message feature to send site-generated icebreakers, while Standard members can only send winks and add folks to their favorites.
So until then, I’m delighted and would like to say thank you towards the present software for providing usa together. I got most positive and negative experiences previously, and many consumers actually shattered the emotions.
The date can be online or physical, with the latter costing the paying party any expenses incurred during the meet-up. If the date is to take place in a venue that requires an entry fee, your partner should pay for that too. As to how much you get to take home, the going rate averages $80 to $100 per date. Also, as an attractive member, you have an option to negotiate the bid if you feel the amount is too. After submitting your request, you’ll receive a confirmation email giving you access to the site. This is an adult dating website where bids are placed to win a date.
Reverting to characteristics of traditional sexual scripts, women may find themselves further entrenched in unwanted gender roles. Feminist Gail Dines has opined that pornography is “a cultural force that is shaping the sexual attitudes of an entire generation” and a “major form of sex ed today for boys.”
Most importantly, you get to set the budget for the entire date. What this means is that you get to keep the full-price amount. Finally, you don’t have to disclose your personal identity if you are not comfortable with a bidder. For the chance to get paid to date a millionaire or just the average Joe, you pay a subscription fee of $59.99 for 30 days.
Basically, you’re given a random profile with the option to either “like” them or “X” cross them out – sort of like Tinder’s swipe feature. Most of the members on SearchingforSingles are from the US, but you can still find users worldwide! Plus, there are also more women than men on this hookup site, if that’s what you’re after. Tinder has been called the harbinger of the hookup-fueled “dating apocalypse.” But the truth of the matter is, hooking up isn’t anything new . And as for Tinder, sure, it can be used for swiftly finding a one-night stand, but there are plenty of other apps that are better suited for that task. You don’t have to travel thousands of miles away to meet your date when you find the perfect match – as Tinder lets you only access singles near your location.
]]>So it’s taken that pressure off, this has to be a friendship interaction, and this has to be a romantic interaction. The platforms highlighted below are legal, so you don’t have to worry about getting scammed. OurTime.com is a dating site that caters to singles 50 years and older. Registration is free, and you can view profiles of singles in your area. The app is easy to use, and you can connect with local singles that interest you. Starting a conversation here is very easy because your potential matches are meant to comment on a specific piece of information on your profile.
They are oriented on varied countries and on the varied nationalities. There hookupguru the sites with the diverse prices and the diverse functionalities. You will need a premium membership to use the site’s full potential. For example, messaging people as a free member lets you only use the message feature to send site-generated icebreakers, while Standard members can only send winks and add folks to their favorites.
So until then, I’m delighted and would like to say thank you towards the present software for providing usa together. I got most positive and negative experiences previously, and many consumers actually shattered the emotions.
The date can be online or physical, with the latter costing the paying party any expenses incurred during the meet-up. If the date is to take place in a venue that requires an entry fee, your partner should pay for that too. As to how much you get to take home, the going rate averages $80 to $100 per date. Also, as an attractive member, you have an option to negotiate the bid if you feel the amount is too. After submitting your request, you’ll receive a confirmation email giving you access to the site. This is an adult dating website where bids are placed to win a date.
Reverting to characteristics of traditional sexual scripts, women may find themselves further entrenched in unwanted gender roles. Feminist Gail Dines has opined that pornography is “a cultural force that is shaping the sexual attitudes of an entire generation” and a “major form of sex ed today for boys.”
Most importantly, you get to set the budget for the entire date. What this means is that you get to keep the full-price amount. Finally, you don’t have to disclose your personal identity if you are not comfortable with a bidder. For the chance to get paid to date a millionaire or just the average Joe, you pay a subscription fee of $59.99 for 30 days.
Basically, you’re given a random profile with the option to either “like” them or “X” cross them out – sort of like Tinder’s swipe feature. Most of the members on SearchingforSingles are from the US, but you can still find users worldwide! Plus, there are also more women than men on this hookup site, if that’s what you’re after. Tinder has been called the harbinger of the hookup-fueled “dating apocalypse.” But the truth of the matter is, hooking up isn’t anything new . And as for Tinder, sure, it can be used for swiftly finding a one-night stand, but there are plenty of other apps that are better suited for that task. You don’t have to travel thousands of miles away to meet your date when you find the perfect match – as Tinder lets you only access singles near your location.
]]>