Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Handle 8.2 depreciation warnings in the Donation SessionObjects #7617

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/Session/SessionDonation/SessionObjects/Donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,30 @@ class Donation implements Objects
*/
public $paymentGateway;

/**
* Donation-related objects.
*
* @unreleased
* @var FormEntry
*/
public $formEntry;

/**
* Donor information.
*
* @unreleased
* @var DonorInfo
*/
public $donorInfo;

/**
* Card information.
*
* @unreleased
* @var CardInfo
*/
public $cardInfo;

/**
* Array of properties and their cast type.
*
Expand Down
97 changes: 97 additions & 0 deletions src/Session/SessionDonation/SessionObjects/FormEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use Give\Framework\Exceptions\Primitives\InvalidArgumentException;
use Give\Helpers\ArrayDataSet;
use Give\Session\Objects;
use Give\ValueObjects\CardInfo;
use Give\ValueObjects\DonorInfo;

/**
* Class FormEntry
Expand Down Expand Up @@ -92,6 +94,101 @@ class FormEntry implements Objects
*/
public $paymentGateway;

/**
* Donation-related session objects.
*
* @unreleased
* @var FormEntry
*/
public $formEntry;

/**
* Donor information.
*
* @unreleased
* @var DonorInfo
*/
public $donorInfo;

/**
* Card information.
*
* @unreleased
* @var CardInfo
*/
public $cardInfo;

/**
* Honeypot value to detect spam submissions.
*
* @var string|null
*/
public $honeypot;

/**
* Form ID prefix.
*
* @var string|null
*/
public $formIdPrefix;

/**
* Form URL.
*
* @var string|null
*/
public $formUrl;

/**
* Minimum donation amount.
*
* @var float|null
*/
public $formMinimum;

/**
* Maximum donation amount.
*
* @var float|null
*/
public $formMaximum;

/**
* Form hash.
*
* @var string|null
*/
public $formHash;

/**
* Payment mode.
*
* @var string|null
*/
public $paymentMode;

/**
* Stripe Payment Method.
*
* @var string|null
*/
public $stripePaymentMethod;
/*

/**
* Constant Contact signup status.
*
* @var bool|null
*/
public $constantContactSignup;

/**
* Action property.
*
* @var string|null
*/
public $action;

/**
* Take array and return object.
*
Expand Down
Loading