diff --git a/admin/survey/classes/class.LibraryBranching.php b/admin/survey/classes/class.LibraryBranching.php new file mode 100644 index 000000000..53a296a1f --- /dev/null +++ b/admin/survey/classes/class.LibraryBranching.php @@ -0,0 +1,1243 @@ + library pri datotekah, 0 -> glasovanje, 1 -> forma, 2 -> ankata na več straneh, 3 -> ifi + var $skin = 0; + + private $isSearch = 0; // ali izvajamo search po anektah + private $searchString = ''; // geslo po katerem iscemo po anketah + private $searchStringProcessed = array(); // geslo po katerem iscemo po anketah, obdelano (skrajsano da isce tudi po drugih sklanjatvah) + private $searchSettings = array(); // nastavitve searcha + + + /** + * @desc konstruktor + */ + function __construct ($_options = array()) { + global $surveySkin; + + if (isset($surveySkin)) + $this->skin = $surveySkin; + + $this->SurveyAdmin = new SurveyAdmin(1, -1); + $this->Branching = new Branching($this->SurveyAdmin->anketa); + + if (isset($_options['tab'])) { + $this->tab = $_options['tab']; + if ($this->tab <= 1) + $this->tip = 0; + else + $this->tip = 1; + } + else if (isset($_POST['tab'])) { + $this->tab = ($_POST['tab'] == 0 || $_POST['tab'] == 'undefined') ? 0 : $_POST['tab']; + if ($this->tab <= 1) + $this->tip = 0; + else + $this->tip = 1; + } + else { + $this->tab = 0; + $this->tip = 0; + } + + if (isset($_options['prva'])) { + $this->prva = $_options['prva']; + } + else { + $this->prva = 0; + } + + if (isset($_GET['tab'])) $this->tab = (int)$_GET['tab']; + + // nastavimo mode v odvisnosti od survey_type ( če nismo v anketi je -1) + if (isset($this->SurveyAdmin->anketa) && $this->SurveyAdmin->anketa > 0) { + $_st = $this->SurveyAdmin->getSurvey_type($this->SurveyAdmin->anketa); + + if ($_st > -1) + $this->mode = $_st; + } + + $this->repareTabs(); + + // Preverimo ce gre za search po anketah + if(isset($_GET['search']) && $_GET['search'] != ''){ + $this->isSearch = 1; + $this->searchString = str_replace("\\", "", trim($_GET['search'])); + + // Iscemo po naslovu ali vsebini + $this->searchSettings['stype'] = (isset($_GET['stype'])) ? $_GET['stype'] : '0'; + } + } + + + /** + * @desc prikaze knjiznico znotraj ankete na desni + */ + function display () { + global $admin_type; + global $global_user_id; + global $lang; + + echo '
'; + + $this->display_tabs(); + + echo ''; + echo 'tab==0 || $this->tab==1 ? ' class="highlightTabBlackLeft"' : ' class="nohighlight"') . ' >'; + echo '' . $lang['srv_vprasanja'] . ''; + echo 'tab==2 || $this->tab==3 ? ' class="highlightTabBlackRight"' : ' class="nohighlight"') . ' >'; + echo '' . $lang['srv_ankete'] . ''; + echo '
'; + } + + function display_folders () { + global $global_user_id; + global $lang; + + // Knjiznica znotraj posamezne ankete + if ($this->prva == 0) { + $this->display_contentfolders(0, 0); + $this->display_contentfolders(0, $global_user_id); + + if ($this->tip == 1) { + echo ''.$lang['srv_library_edit'].'
';
+
+ $sql = sisplet_query("SELECT * FROM srv_library_anketa WHERE uid='".$global_user_id."' AND ank_id='".$this->SurveyAdmin->anketa."'");
+ if (mysqli_num_rows($sql) == 0) {
+ echo '
'.$lang['srv_library_q_txt'].'
'; + } + + //echo ''.$lang['srv_zapri'].''; + } + // Knjiznica na prvi strani zraven mojih anket + else { + // Na prvi strani imamo search + if($this->isSearch == 1){ + echo 'This is an object representing a person associated with a Stripe account.
A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
Related guide: Handling Identity Verification with the API.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -184,7 +184,7 @@ class Account extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of persons + * @return \Stripe\Collection<\Stripe\Person> the list of persons */ public function persons($params = null, $opts = null) { @@ -228,7 +228,7 @@ class Account extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of capabilities + * @return \Stripe\Collection<\Stripe\Capability> the list of capabilities */ public static function allCapabilities($id, $params = null, $opts = null) { @@ -273,7 +273,7 @@ class Account extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of external accounts (BankAccount or Card) + * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> the list of external accounts (BankAccount or Card) */ public static function allExternalAccounts($id, $params = null, $opts = null) { @@ -362,7 +362,7 @@ class Account extends ApiResource * * @throws \Stripe\Exception\ApiErrorException if the request fails * - * @return \Stripe\Collection the list of persons + * @return \Stripe\Collection<\Stripe\Person> the list of persons */ public static function allPersons($id, $params = null, $opts = null) { diff --git a/vendor/stripe/stripe-php/lib/ApplicationFee.php b/vendor/stripe/stripe-php/lib/ApplicationFee.php index 88aeed645..2a53204a8 100644 --- a/vendor/stripe/stripe-php/lib/ApplicationFee.php +++ b/vendor/stripe/stripe-php/lib/ApplicationFee.php @@ -18,7 +18,7 @@ namespace Stripe; * @property bool $livemode Has the valuetrue
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the destination
parameter.
* @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
- * @property \Stripe\Collection $refunds A list of refunds that have been applied to the fee.
+ * @property \Stripe\Collection<\Stripe\StripeObject> $refunds A list of refunds that have been applied to the fee.
*/
class ApplicationFee extends ApiResource
{
@@ -37,7 +37,7 @@ class ApplicationFee extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of fee refunds
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of fee refunds
*/
public static function allRefunds($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/BillingPortal/Configuration.php b/vendor/stripe/stripe-php/lib/BillingPortal/Configuration.php
index 7ad1a0398..cb6007796 100644
--- a/vendor/stripe/stripe-php/lib/BillingPortal/Configuration.php
+++ b/vendor/stripe/stripe-php/lib/BillingPortal/Configuration.php
@@ -18,6 +18,7 @@ namespace Stripe\BillingPortal;
* @property \Stripe\StripeObject $features
* @property bool $is_default Whether the configuration is the default. If true
, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
*/
class Configuration extends \Stripe\ApiResource
diff --git a/vendor/stripe/stripe-php/lib/BitcoinReceiver.php b/vendor/stripe/stripe-php/lib/BitcoinReceiver.php
index 208610a0f..1a0353b40 100644
--- a/vendor/stripe/stripe-php/lib/BitcoinReceiver.php
+++ b/vendor/stripe/stripe-php/lib/BitcoinReceiver.php
@@ -27,7 +27,7 @@ namespace Stripe;
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|string $payment The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key.
* @property null|string $refund_address The refund address of this bitcoin receiver.
- * @property \Stripe\Collection $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
+ * @property \Stripe\Collection<\Stripe\BitcoinTransaction> $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
* @property bool $uncaptured_funds This receiver contains uncaptured funds that can be used for a payment or refunded.
* @property null|bool $used_for_payment Indicate if this source is used for payment.
*/
diff --git a/vendor/stripe/stripe-php/lib/Charge.php b/vendor/stripe/stripe-php/lib/Charge.php
index b9fc301c7..0737d20ad 100644
--- a/vendor/stripe/stripe-php/lib/Charge.php
+++ b/vendor/stripe/stripe-php/lib/Charge.php
@@ -49,7 +49,7 @@ namespace Stripe;
* @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this charge. This attribute will be null
until a receipt has been sent.
* @property null|string $receipt_url This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
* @property bool $refunded Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
- * @property \Stripe\Collection $refunds A list of refunds that have been applied to the charge.
+ * @property \Stripe\Collection<\Stripe\Refund> $refunds A list of refunds that have been applied to the charge.
* @property null|string|\Stripe\Review $review ID of the review associated with this charge if one exists.
* @property null|\Stripe\StripeObject $shipping Shipping information for the charge.
* @property null|\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to payment_method
or payment_method_details
instead.
diff --git a/vendor/stripe/stripe-php/lib/Checkout/Session.php b/vendor/stripe/stripe-php/lib/Checkout/Session.php
index 9601dd8d4..c3fbaae37 100644
--- a/vendor/stripe/stripe-php/lib/Checkout/Session.php
+++ b/vendor/stripe/stripe-php/lib/Checkout/Session.php
@@ -37,15 +37,17 @@ namespace Stripe\Checkout;
* @property null|\Stripe\StripeObject $consent_collection When set, provides configuration for the Checkout Session to gather active consent from customers.
* @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
* @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in payment
or subscription
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
+ * @property null|string $customer_creation Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
* @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only present on Sessions in payment
or subscription
mode.
* @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer
attribute.
* @property int $expires_at The timestamp at which the Checkout Session will expire.
- * @property \Stripe\Collection $line_items The line items purchased by the customer.
+ * @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items purchased by the customer.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto
, the browser's locale is used.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property string $mode The mode of the Checkout Session.
* @property null|string|\Stripe\PaymentIntent $payment_intent The ID of the PaymentIntent for Checkout Sessions in payment
mode.
+ * @property null|string|\Stripe\PaymentLink $payment_link The ID of the Payment Link that created this Session.
* @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
* @property string[] $payment_method_types A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
* @property string $payment_status The payment status of the Checkout Session, one of paid
, unpaid
, or no_payment_required
. You can use this value to decide when to fulfill your customer's order.
@@ -76,6 +78,9 @@ class Session extends \Stripe\ApiResource
const BILLING_ADDRESS_COLLECTION_AUTO = 'auto';
const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required';
+ const CUSTOMER_CREATION_ALWAYS = 'always';
+ const CUSTOMER_CREATION_IF_REQUIRED = 'if_required';
+
const MODE_PAYMENT = 'payment';
const MODE_SETUP = 'setup';
const MODE_SUBSCRIPTION = 'subscription';
@@ -99,7 +104,7 @@ class Session extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Session the expired session
+ * @return \Stripe\Checkout\Session the expired session
*/
public function expire($params = null, $opts = null)
{
@@ -119,7 +124,7 @@ class Session extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of items
+ * @return \Stripe\Collection<\Stripe\LineItem> the list of items
*/
public static function allLineItems($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Collection.php b/vendor/stripe/stripe-php/lib/Collection.php
index 294ea9ddf..4de2f9d73 100644
--- a/vendor/stripe/stripe-php/lib/Collection.php
+++ b/vendor/stripe/stripe-php/lib/Collection.php
@@ -5,10 +5,13 @@ namespace Stripe;
/**
* Class Collection.
*
+ * @template TStripeObject of StripeObject
+ * @template-implements \IteratorAggregatetrue
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $memo Customer-facing text that appears on the credit note PDF.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
@@ -102,7 +102,7 @@ class CreditNote extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of credit note line items
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem> the list of credit note line items
*/
public static function allLines($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Customer.php b/vendor/stripe/stripe-php/lib/Customer.php
index c1b6ad72e..6887e4479 100644
--- a/vendor/stripe/stripe-php/lib/Customer.php
+++ b/vendor/stripe/stripe-php/lib/Customer.php
@@ -5,10 +5,8 @@
namespace Stripe;
/**
- * Customer
objects allow you to perform recurring charges, and to
- * track multiple charges, that are associated with the same customer. The API
- * allows you to create, delete, and update your customers. You can retrieve
- * individual customers as well as a list of all your customers.
+ * This object represents a customer of your business. It lets you create recurring
+ * charges and track payments that belong to the same customer.
*
* Related guide: Save a card during
@@ -34,11 +32,11 @@ namespace Stripe;
* @property null|string $phone The customer's phone number.
* @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference.
* @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
- * @property \Stripe\Collection $sources The customer's payment sources, if any.
- * @property \Stripe\Collection $subscriptions The customer's current subscriptions, if any.
+ * @property \Stripe\Collection<\Stripe\Account|\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any.
+ * @property \Stripe\Collection<\Stripe\Subscription> $subscriptions The customer's current subscriptions, if any.
* @property \Stripe\StripeObject $tax
* @property null|string $tax_exempt Describes the customer's tax exemption status. One of none
, exempt
, or reverse
. When set to reverse
, invoice and receipt PDFs include the text "Reverse charge".
- * @property \Stripe\Collection $tax_ids The customer's tax IDs.
+ * @property \Stripe\Collection<\Stripe\TaxId> $tax_ids The customer's tax IDs.
*/
class Customer extends ApiResource
{
@@ -89,7 +87,7 @@ class Customer extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection list of PaymentMethods
+ * @return \Stripe\Collection<\Stripe\Customer> list of PaymentMethods
*/
public static function allPaymentMethods($id, $params = null, $opts = null)
{
@@ -110,7 +108,7 @@ class Customer extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of customer balance transactions
+ * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction> the list of customer balance transactions
*/
public static function allBalanceTransactions($id, $params = null, $opts = null)
{
@@ -169,7 +167,7 @@ class Customer extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source)
+ * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source> the list of payment sources (AlipayAccount, BankAccount, BitcoinReceiver, Card or Source)
*/
public static function allSources($id, $params = null, $opts = null)
{
@@ -243,7 +241,7 @@ class Customer extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of tax ids
+ * @return \Stripe\Collection<\Stripe\TaxId> the list of tax ids
*/
public static function allTaxIds($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/File.php b/vendor/stripe/stripe-php/lib/File.php
index 9f605641e..04646d303 100644
--- a/vendor/stripe/stripe-php/lib/File.php
+++ b/vendor/stripe/stripe-php/lib/File.php
@@ -20,7 +20,7 @@ namespace Stripe;
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds.
* @property null|string $filename A filename for the file, suitable for saving to a filesystem.
- * @property null|\Stripe\Collection $links A list of file links that point at this file.
+ * @property null|\Stripe\Collection<\Stripe\FileLink> $links A list of file links that point at this file.
* @property string $purpose The purpose of the uploaded file.
* @property int $size The size in bytes of the file object.
* @property null|string $title A user friendly title for the document.
diff --git a/vendor/stripe/stripe-php/lib/Identity/VerificationSession.php b/vendor/stripe/stripe-php/lib/Identity/VerificationSession.php
index a84766dfd..501939976 100644
--- a/vendor/stripe/stripe-php/lib/Identity/VerificationSession.php
+++ b/vendor/stripe/stripe-php/lib/Identity/VerificationSession.php
@@ -58,7 +58,7 @@ class VerificationSession extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\VerificationSession the canceled verification session
+ * @return \Stripe\Identity\VerificationSession the canceled verification session
*/
public function cancel($params = null, $opts = null)
{
@@ -75,7 +75,7 @@ class VerificationSession extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\VerificationSession the redacted verification session
+ * @return \Stripe\Identity\VerificationSession the redacted verification session
*/
public function redact($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Invoice.php b/vendor/stripe/stripe-php/lib/Invoice.php
index f632f2a5f..f5360a111 100644
--- a/vendor/stripe/stripe-php/lib/Invoice.php
+++ b/vendor/stripe/stripe-php/lib/Invoice.php
@@ -80,13 +80,14 @@ namespace Stripe;
* @property null|string $hosted_invoice_url The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
* @property null|string $invoice_pdf The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
* @property null|\Stripe\ErrorObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
- * @property \Stripe\Collection $lines The individual line items that make up the invoice. lines
is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
+ * @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. lines
is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|int $next_payment_attempt The time at which payment will next be attempted. This value will be null
for invoices where collection_method=send_invoice
.
* @property null|string $number A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
* @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
* @property bool $paid Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.
+ * @property bool $paid_out_of_band Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe.
* @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.
* @property \Stripe\StripeObject $payment_settings
* @property int $period_end End of the usage period during which invoice items were added to this invoice.
@@ -152,7 +153,7 @@ class Invoice extends ApiResource
*
* @throws StripeExceptionApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of lines (InvoiceLineItem)
+ * @return \Stripe\Collection<\Stripe\InvoiceLineItem> the list of lines (InvoiceLineItem)
*/
public static function allLines($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Issuing/Authorization.php b/vendor/stripe/stripe-php/lib/Issuing/Authorization.php
index f45410517..7e597df52 100644
--- a/vendor/stripe/stripe-php/lib/Issuing/Authorization.php
+++ b/vendor/stripe/stripe-php/lib/Issuing/Authorization.php
@@ -51,7 +51,7 @@ class Authorization extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Authorization the approved authorization
+ * @return \Stripe\Issuing\Authorization the approved authorization
*/
public function approve($params = null, $opts = null)
{
@@ -68,7 +68,7 @@ class Authorization extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Authorization the declined authorization
+ * @return \Stripe\Issuing\Authorization the declined authorization
*/
public function decline($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Issuing/Card.php b/vendor/stripe/stripe-php/lib/Issuing/Card.php
index e0ac774e7..31deaf3f0 100644
--- a/vendor/stripe/stripe-php/lib/Issuing/Card.php
+++ b/vendor/stripe/stripe-php/lib/Issuing/Card.php
@@ -29,6 +29,7 @@ namespace Stripe\Issuing;
* @property \Stripe\StripeObject $spending_controls
* @property string $status Whether authorizations can be approved on this card.
* @property string $type The type of the card.
+ * @property null|\Stripe\StripeObject $wallets Information relating to digital wallets (like Apple Pay and Google Pay).
*/
class Card extends \Stripe\ApiResource
{
diff --git a/vendor/stripe/stripe-php/lib/Issuing/Dispute.php b/vendor/stripe/stripe-php/lib/Issuing/Dispute.php
index 2a80c3b81..1eeb17eea 100644
--- a/vendor/stripe/stripe-php/lib/Issuing/Dispute.php
+++ b/vendor/stripe/stripe-php/lib/Issuing/Dispute.php
@@ -40,7 +40,7 @@ class Dispute extends \Stripe\ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Dispute the submited dispute
+ * @return \Stripe\Issuing\Dispute the submited dispute
*/
public function submit($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Order.php b/vendor/stripe/stripe-php/lib/Order.php
index 52fa2c7de..fbbb90611 100644
--- a/vendor/stripe/stripe-php/lib/Order.php
+++ b/vendor/stripe/stripe-php/lib/Order.php
@@ -28,7 +28,7 @@ namespace Stripe;
* @property \Stripe\OrderItem[] $items List of items constituting the order. An order can have up to 25 items.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- * @property null|\Stripe\Collection $returns A list of returns that have taken place for this order.
+ * @property null|\Stripe\Collection<\Stripe\OrderReturn> $returns A list of returns that have taken place for this order.
* @property null|string $selected_shipping_method The shipping method that is currently selected for this order, if any. If present, it is equal to one of the id
s of shipping methods in the shipping_methods
array. At order creation time, if there are multiple shipping methods, Stripe will automatically selected the first method.
* @property null|\Stripe\StripeObject $shipping The shipping address for the order. Present if the order is for goods to be shipped.
* @property null|\Stripe\StripeObject[] $shipping_methods A list of supported shipping methods for this order. The desired shipping method can be specified either by updating the order, or when paying it.
diff --git a/vendor/stripe/stripe-php/lib/PaymentIntent.php b/vendor/stripe/stripe-php/lib/PaymentIntent.php
index 70d068ec0..ee6f4224a 100644
--- a/vendor/stripe/stripe-php/lib/PaymentIntent.php
+++ b/vendor/stripe/stripe-php/lib/PaymentIntent.php
@@ -29,7 +29,7 @@ namespace Stripe;
* @property null|int $canceled_at Populated when status
is canceled
, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
* @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (duplicate
, fraudulent
, requested_by_customer
, or abandoned
) or generated by Stripe internally (failed_invoice
, void_invoice
, or automatic
).
* @property string $capture_method Controls when the funds will be captured from the customer's account.
- * @property \Stripe\Collection $charges Charges that were created by this PaymentIntent, if any.
+ * @property \Stripe\Collection<\Stripe\Charge> $charges Charges that were created by this PaymentIntent, if any.
* @property null|string $client_secret The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
The client secret can be used to complete a payment from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to accept a payment and learn about how client_secret
should be handled.
receipt_email
is specified for a payment in live mode, a receipt will be sent regardless of your email settings.
* @property null|string|\Stripe\Review $review ID of the review associated with this PaymentIntent, if any.
* @property null|string $setup_future_usage Indicates that you intend to make future payments with this PaymentIntent's payment method.
Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses setup_future_usage
to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
url
is active. If false
, customers visiting the URL will be shown a page saying that the link has been deactivated.
+ * @property \Stripe\StripeObject $after_completion
+ * @property bool $allow_promotion_codes Whether user redeemable promotion codes are enabled.
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ * @property null|float $application_fee_percent This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property string $billing_address_collection Configuration for collecting the customer's billing address.
+ * @property \Stripe\Collection<\Stripe\LineItem> $line_items The line items representing what is being sold.
+ * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the Connect documentation for details.
+ * @property null|string[] $payment_method_types The list of payment method types that customers can use. When null
, Stripe will dynamically show relevant payment methods you've enabled in your payment method settings.
+ * @property \Stripe\StripeObject $phone_number_collection
+ * @property null|\Stripe\StripeObject $shipping_address_collection Configuration for collecting the customer's shipping address.
+ * @property null|\Stripe\StripeObject $subscription_data When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use subscription_data
.
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
+ * @property string $url The public URL that can be shared with customers.
+ */
+class PaymentLink extends ApiResource
+{
+ const OBJECT_NAME = 'payment_link';
+
+ use ApiOperations\All;
+ use ApiOperations\Create;
+ use ApiOperations\Retrieve;
+ use ApiOperations\Update;
+
+ const BILLING_ADDRESS_COLLECTION_AUTO = 'auto';
+ const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required';
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ * @param mixed $id
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentLink> list of LineItems
+ */
+ public static function allLineItems($id, $params = null, $opts = null)
+ {
+ $url = static::resourceUrl($id) . '/line_items';
+ list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
+ $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
+ $obj->setLastResponse($response);
+
+ return $obj;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Plan.php b/vendor/stripe/stripe-php/lib/Plan.php
index 2a818e474..c3621fa6c 100644
--- a/vendor/stripe/stripe-php/lib/Plan.php
+++ b/vendor/stripe/stripe-php/lib/Plan.php
@@ -22,7 +22,7 @@ namespace Stripe;
* Related guides: Set up
* a subscription and more about products and prices.
+ * href="https://stripe.com/docs/products-prices/overview">products and prices.
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
diff --git a/vendor/stripe/stripe-php/lib/Price.php b/vendor/stripe/stripe-php/lib/Price.php
index 878a7a2c4..f2f31b20d 100644
--- a/vendor/stripe/stripe-php/lib/Price.php
+++ b/vendor/stripe/stripe-php/lib/Price.php
@@ -20,8 +20,8 @@ namespace Stripe;
* href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up
* a subscription, create an invoice,
- * and more about products
- * and prices.
+ * and more about products and prices.
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
diff --git a/vendor/stripe/stripe-php/lib/Product.php b/vendor/stripe/stripe-php/lib/Product.php
index 316409692..5ea23eab8 100644
--- a/vendor/stripe/stripe-php/lib/Product.php
+++ b/vendor/stripe/stripe-php/lib/Product.php
@@ -9,14 +9,16 @@ namespace Stripe;
* For example, you might offer a Standard and Premium version of your goods or
* service; each version would be a separate Product. They can be used in
* conjunction with Prices to
- * configure pricing in Checkout and Subscriptions.
+ * configure pricing in Payment Links, Checkout, and Subscriptions.
*
* Related guides: Set up
- * a subscription or accept one-time
- * payments with Checkout and more about Products and Prices
+ * a subscription, share a Payment
+ * Link, accept
+ * payments with Checkout, and more about Products and Prices
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
diff --git a/vendor/stripe/stripe-php/lib/PromotionCode.php b/vendor/stripe/stripe-php/lib/PromotionCode.php
index f4bb0f4f1..2457add49 100644
--- a/vendor/stripe/stripe-php/lib/PromotionCode.php
+++ b/vendor/stripe/stripe-php/lib/PromotionCode.php
@@ -12,7 +12,7 @@ namespace Stripe;
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property bool $active Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
* @property string $code The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
- * @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to invoices or orders. Coupons do not work with conventional one-off charges.
+ * @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to invoices or orders. Coupons do not work with conventional one-off charges.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string|\Stripe\Customer $customer The customer that this promotion code can be used by.
* @property null|int $expires_at Date at which the promotion code can no longer be redeemed.
diff --git a/vendor/stripe/stripe-php/lib/Quote.php b/vendor/stripe/stripe-php/lib/Quote.php
index 67fc62723..fd6b4eee0 100644
--- a/vendor/stripe/stripe-php/lib/Quote.php
+++ b/vendor/stripe/stripe-php/lib/Quote.php
@@ -30,7 +30,7 @@ namespace Stripe;
* @property null|string $header A header that will be displayed on the quote PDF.
* @property null|string|\Stripe\Invoice $invoice The invoice that was created from this quote.
* @property null|\Stripe\StripeObject $invoice_settings All invoices will be billed using the specified settings.
- * @property \Stripe\Collection $line_items A list of items the customer is being quoted for.
+ * @property \Stripe\Collection<\Stripe\LineItem> $line_items A list of items the customer is being quoted for.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|string $number A unique number that identifies this particular quote. This number is assigned once the quote is finalized.
@@ -136,7 +136,7 @@ class Quote extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection list of LineItems
+ * @return \Stripe\Collection<\Stripe\Quote> list of LineItems
*/
public static function allComputedUpfrontLineItems($id, $params = null, $opts = null)
{
@@ -155,7 +155,7 @@ class Quote extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection list of LineItems
+ * @return \Stripe\Collection<\Stripe\Quote> list of LineItems
*/
public static function allLineItems($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Radar/ValueList.php b/vendor/stripe/stripe-php/lib/Radar/ValueList.php
index ad374325d..8cd62236f 100644
--- a/vendor/stripe/stripe-php/lib/Radar/ValueList.php
+++ b/vendor/stripe/stripe-php/lib/Radar/ValueList.php
@@ -18,7 +18,7 @@ namespace Stripe\Radar;
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $created_by The name or email address of the user who created this value list.
* @property string $item_type The type of items in the value list. One of card_fingerprint
, card_bin
, email
, ip_address
, country
, string
, case_sensitive_string
, or customer_id
.
- * @property \Stripe\Collection $list_items List of items contained within this value list.
+ * @property \Stripe\Collection<\Stripe\Radar\ValueListItem> $list_items List of items contained within this value list.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property string $name The name of the value list.
diff --git a/vendor/stripe/stripe-php/lib/Recipient.php b/vendor/stripe/stripe-php/lib/Recipient.php
index 8d5ad4c0a..75155b53b 100644
--- a/vendor/stripe/stripe-php/lib/Recipient.php
+++ b/vendor/stripe/stripe-php/lib/Recipient.php
@@ -19,7 +19,7 @@ namespace Stripe;
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property null|\Stripe\BankAccount $active_account Hash describing the current account on the recipient, if there is one.
- * @property null|\Stripe\Collection $cards
+ * @property null|\Stripe\Collection<\Stripe\Card> $cards
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string|\Stripe\Card $default_card The default card to use for creating transfers to this recipient.
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
diff --git a/vendor/stripe/stripe-php/lib/Refund.php b/vendor/stripe/stripe-php/lib/Refund.php
index f5e975fd8..ddff61658 100644
--- a/vendor/stripe/stripe-php/lib/Refund.php
+++ b/vendor/stripe/stripe-php/lib/Refund.php
@@ -43,6 +43,7 @@ class Refund extends ApiResource
const FAILURE_REASON_UNKNOWN = 'unknown';
const REASON_DUPLICATE = 'duplicate';
+ const REASON_EXPIRED_UNCAPTURED_CHARGE = 'expired_uncaptured_charge';
const REASON_FRAUDULENT = 'fraudulent';
const REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer';
diff --git a/vendor/stripe/stripe-php/lib/Service/AccountService.php b/vendor/stripe/stripe-php/lib/Service/AccountService.php
index e69c5ee90..4ef217d57 100644
--- a/vendor/stripe/stripe-php/lib/Service/AccountService.php
+++ b/vendor/stripe/stripe-php/lib/Service/AccountService.php
@@ -15,7 +15,7 @@ class AccountService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Account>
*/
public function all($params = null, $opts = null)
{
@@ -33,7 +33,7 @@ class AccountService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Capability>
*/
public function allCapabilities($parentId, $params = null, $opts = null)
{
@@ -49,7 +49,7 @@ class AccountService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card>
*/
public function allExternalAccounts($parentId, $params = null, $opts = null)
{
@@ -67,7 +67,7 @@ class AccountService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Person>
*/
public function allPersons($parentId, $params = null, $opts = null)
{
@@ -148,9 +148,10 @@ class AccountService extends \Stripe\Service\AbstractService
/**
* With Connect, you can delete accounts you manage.
*
- * Accounts created using test-mode keys can be deleted at any time. Custom or
- * Express accounts created using live-mode keys can only be deleted once all
- * balances are zero.
+ * Accounts created using test-mode keys can be deleted at any time. Standard
+ * accounts created using live-mode keys cannot be deleted. Custom or Express
+ * accounts created using live-mode keys can only be deleted once all balances are
+ * zero.
*
* If you want to delete your own account, use the account information tab in your
diff --git a/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php b/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
index 6577b6b62..3a076f472 100644
--- a/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
@@ -14,7 +14,7 @@ class ApplePayDomainService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\ApplePayDomain>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php b/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
index c05c3cd59..138c3794e 100644
--- a/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
@@ -15,7 +15,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\ApplicationFee>
*/
public function all($params = null, $opts = null)
{
@@ -35,7 +35,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund>
*/
public function allRefunds($parentId, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php b/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
index fb1da5018..9e6d37c04 100644
--- a/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
@@ -19,7 +19,7 @@ class BalanceTransactionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\BalanceTransaction>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
index 5a0d70db7..11d1a5a3a 100644
--- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
@@ -15,7 +15,7 @@ class ConfigurationService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\BillingPortal\Configuration>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/ChargeService.php b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
index f8960edfb..568254589 100644
--- a/vendor/stripe/stripe-php/lib/Service/ChargeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
@@ -15,7 +15,7 @@ class ChargeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Charge>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
index b42ab8a17..a2938d0a9 100644
--- a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
@@ -14,7 +14,7 @@ class SessionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Checkout\Session>
*/
public function all($params = null, $opts = null)
{
@@ -33,7 +33,7 @@ class SessionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\LineItem>
*/
public function allLineItems($parentId, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
index 540d24d50..edaadd3fa 100644
--- a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
@@ -35,6 +35,7 @@ namespace Stripe\Service;
* @property OrderReturnService $orderReturns
* @property OrderService $orders
* @property PaymentIntentService $paymentIntents
+ * @property PaymentLinkService $paymentLinks
* @property PaymentMethodService $paymentMethods
* @property PayoutService $payouts
* @property PlanService $plans
@@ -97,6 +98,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'orderReturns' => OrderReturnService::class,
'orders' => OrderService::class,
'paymentIntents' => PaymentIntentService::class,
+ 'paymentLinks' => PaymentLinkService::class,
'paymentMethods' => PaymentMethodService::class,
'payouts' => PayoutService::class,
'plans' => PlanService::class,
diff --git a/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php b/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
index 573444fd3..8f3869fee 100644
--- a/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
@@ -14,7 +14,7 @@ class CountrySpecService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\CountrySpec>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/CouponService.php b/vendor/stripe/stripe-php/lib/Service/CouponService.php
index 82a880f53..89eb2c7d1 100644
--- a/vendor/stripe/stripe-php/lib/Service/CouponService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CouponService.php
@@ -14,7 +14,7 @@ class CouponService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Coupon>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php b/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
index 23681402e..5c631328a 100644
--- a/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
@@ -14,7 +14,7 @@ class CreditNoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\CreditNote>
*/
public function all($params = null, $opts = null)
{
@@ -32,7 +32,7 @@ class CreditNoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem>
*/
public function allLines($parentId, $params = null, $opts = null)
{
@@ -98,7 +98,7 @@ class CreditNoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\CreditNote>
*/
public function previewLines($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/CustomerService.php b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
index 50dddec49..fbe3a3d6e 100644
--- a/vendor/stripe/stripe-php/lib/Service/CustomerService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
@@ -15,7 +15,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Customer>
*/
public function all($params = null, $opts = null)
{
@@ -32,7 +32,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction>
*/
public function allBalanceTransactions($parentId, $params = null, $opts = null)
{
@@ -48,7 +48,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Customer>
*/
public function allPaymentMethods($id, $params = null, $opts = null)
{
@@ -64,7 +64,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source>
*/
public function allSources($parentId, $params = null, $opts = null)
{
@@ -80,7 +80,7 @@ class CustomerService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\TaxId>
*/
public function allTaxIds($parentId, $params = null, $opts = null)
{
@@ -223,8 +223,7 @@ class CustomerService extends \Stripe\Service\AbstractService
}
/**
- * Retrieves the details of an existing customer. You need only supply the unique
- * customer identifier that was returned upon customer creation.
+ * Retrieves a Customer object.
*
* @param string $id
* @param null|array $params
diff --git a/vendor/stripe/stripe-php/lib/Service/DisputeService.php b/vendor/stripe/stripe-php/lib/Service/DisputeService.php
index 4eb1542bf..86d3584a0 100644
--- a/vendor/stripe/stripe-php/lib/Service/DisputeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/DisputeService.php
@@ -14,7 +14,7 @@ class DisputeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Dispute>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/EventService.php b/vendor/stripe/stripe-php/lib/Service/EventService.php
index 430b35abf..9e779dd9a 100644
--- a/vendor/stripe/stripe-php/lib/Service/EventService.php
+++ b/vendor/stripe/stripe-php/lib/Service/EventService.php
@@ -18,7 +18,7 @@ class EventService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Event>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php b/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
index fc78410c7..fe010b00d 100644
--- a/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
@@ -15,7 +15,7 @@ class ExchangeRateService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\ExchangeRate>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/FileLinkService.php b/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
index 7a3a435dd..06929a9c6 100644
--- a/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
+++ b/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
@@ -14,7 +14,7 @@ class FileLinkService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\FileLink>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/FileService.php b/vendor/stripe/stripe-php/lib/Service/FileService.php
index 148428849..82ef0e500 100644
--- a/vendor/stripe/stripe-php/lib/Service/FileService.php
+++ b/vendor/stripe/stripe-php/lib/Service/FileService.php
@@ -16,7 +16,7 @@ class FileService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\File>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
index 0393cd565..9289d9dfd 100644
--- a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
@@ -14,7 +14,7 @@ class VerificationReportService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationReport>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
index 1a763bef3..24bb4e063 100644
--- a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
@@ -14,7 +14,7 @@ class VerificationSessionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationSession>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php b/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
index 0f0b9e91f..45e207218 100644
--- a/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
@@ -15,7 +15,7 @@ class InvoiceItemService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\InvoiceItem>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/InvoiceService.php b/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
index 4e2efe696..73c1a8fe2 100644
--- a/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
@@ -16,7 +16,7 @@ class InvoiceService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Invoice>
*/
public function all($params = null, $opts = null)
{
@@ -35,7 +35,7 @@ class InvoiceService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\LineItem>
*/
public function allLines($parentId, $params = null, $opts = null)
{
@@ -221,7 +221,7 @@ class InvoiceService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Invoice>
*/
public function upcomingLines($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
index 6fff70e7e..6517688f6 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
@@ -16,7 +16,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Issuing\Authorization>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
index 346d54afa..22b7e5412 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
@@ -16,7 +16,7 @@ class CardService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Issuing\Card>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
index 5731b1bf1..65e675b36 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
@@ -16,7 +16,7 @@ class CardholderService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Issuing\Cardholder>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
index ab5df5f3e..45c252888 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
@@ -16,7 +16,7 @@ class DisputeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Issuing\Dispute>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
index 8fb0ee2ac..dd83b1820 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
@@ -16,7 +16,7 @@ class TransactionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Issuing\Transaction>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php b/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
index 6183166c5..b98af5f3f 100644
--- a/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
+++ b/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
@@ -15,7 +15,7 @@ class OrderReturnService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\OrderReturn>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/OrderService.php b/vendor/stripe/stripe-php/lib/Service/OrderService.php
index fa658fa7b..9da8a3dbb 100644
--- a/vendor/stripe/stripe-php/lib/Service/OrderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/OrderService.php
@@ -15,7 +15,7 @@ class OrderService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Order>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
index 912cec14d..3bfe708df 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
@@ -14,7 +14,7 @@ class PaymentIntentService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\PaymentIntent>
*/
public function all($params = null, $opts = null)
{
@@ -179,4 +179,20 @@ class PaymentIntentService extends \Stripe\Service\AbstractService
{
return $this->request('post', $this->buildPath('/v1/payment_intents/%s', $id), $params, $opts);
}
+
+ /**
+ * Verifies microdeposits on a PaymentIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/verify_microdeposits', $id), $params, $opts);
+ }
}
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php b/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php
new file mode 100644
index 000000000..902cee09c
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php
@@ -0,0 +1,89 @@
+
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/payment_links', $params, $opts);
+ }
+
+ /**
+ * When retrieving a payment link, there is an includable
+ * line_items property containing the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentLink>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/payment_links/%s/line_items', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a payment link.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/payment_links', $params, $opts);
+ }
+
+ /**
+ * Retrieve a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/payment_links/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_links/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
index e7f341a0b..33ba21179 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
@@ -16,7 +16,7 @@ class PaymentMethodService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\PaymentMethod>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/PayoutService.php b/vendor/stripe/stripe-php/lib/Service/PayoutService.php
index 547e22da6..4ca3561c8 100644
--- a/vendor/stripe/stripe-php/lib/Service/PayoutService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PayoutService.php
@@ -16,7 +16,7 @@ class PayoutService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Payout>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/PlanService.php b/vendor/stripe/stripe-php/lib/Service/PlanService.php
index 16625d27a..6c0a8d47a 100644
--- a/vendor/stripe/stripe-php/lib/Service/PlanService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PlanService.php
@@ -14,7 +14,7 @@ class PlanService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Plan>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/PriceService.php b/vendor/stripe/stripe-php/lib/Service/PriceService.php
index cc44f69c9..e1c850c52 100644
--- a/vendor/stripe/stripe-php/lib/Service/PriceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PriceService.php
@@ -14,7 +14,7 @@ class PriceService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Price>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/ProductService.php b/vendor/stripe/stripe-php/lib/Service/ProductService.php
index 850cea56f..0e2eae7a9 100644
--- a/vendor/stripe/stripe-php/lib/Service/ProductService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ProductService.php
@@ -15,7 +15,7 @@ class ProductService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Product>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php b/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
index 1de5696da..17461b4bf 100644
--- a/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
@@ -14,7 +14,7 @@ class PromotionCodeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\PromotionCode>
*/
public function all($params = null, $opts = null)
{
@@ -38,7 +38,10 @@ class PromotionCodeService extends \Stripe\Service\AbstractService
}
/**
- * Retrieves the promotion code with the given ID.
+ * Retrieves the promotion code with the given ID. In order to retrieve a promotion
+ * code by the customer-facing code
use list with the desired
+ * code
.
*
* @param string $id
* @param null|array $params
diff --git a/vendor/stripe/stripe-php/lib/Service/QuoteService.php b/vendor/stripe/stripe-php/lib/Service/QuoteService.php
index 96f12a5c3..d6d20c0b4 100644
--- a/vendor/stripe/stripe-php/lib/Service/QuoteService.php
+++ b/vendor/stripe/stripe-php/lib/Service/QuoteService.php
@@ -30,7 +30,7 @@ class QuoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Quote>
*/
public function all($params = null, $opts = null)
{
@@ -49,7 +49,7 @@ class QuoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Quote>
*/
public function allComputedUpfrontLineItems($id, $params = null, $opts = null)
{
@@ -67,7 +67,7 @@ class QuoteService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Quote>
*/
public function allLineItems($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
index 7b0973483..be119b4c8 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
@@ -14,7 +14,7 @@ class EarlyFraudWarningService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
index 89eba2a7a..b9da3dd8b 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
@@ -16,7 +16,7 @@ class ValueListItemService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Radar\ValueListItem>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
index 64ac2ee79..70d9b4863 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
@@ -16,7 +16,7 @@ class ValueListService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Radar\ValueList>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/RefundService.php b/vendor/stripe/stripe-php/lib/Service/RefundService.php
index 49b4267e4..cfbef54c5 100644
--- a/vendor/stripe/stripe-php/lib/Service/RefundService.php
+++ b/vendor/stripe/stripe-php/lib/Service/RefundService.php
@@ -17,7 +17,7 @@ class RefundService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Refund>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
index 692420cd4..b62898fdb 100644
--- a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
@@ -14,7 +14,7 @@ class ReportRunService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportRun>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
index e1b4ea521..7fa503821 100644
--- a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
@@ -14,7 +14,7 @@ class ReportTypeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportType>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/ReviewService.php b/vendor/stripe/stripe-php/lib/Service/ReviewService.php
index ea152f23e..3bcd325b6 100644
--- a/vendor/stripe/stripe-php/lib/Service/ReviewService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ReviewService.php
@@ -16,7 +16,7 @@ class ReviewService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Review>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php b/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
index 7376ea13e..8657441ec 100644
--- a/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
@@ -14,7 +14,7 @@ class SetupAttemptService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\SetupAttempt>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
index 3cbec506f..3dea24cbc 100644
--- a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
@@ -14,7 +14,7 @@ class SetupIntentService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\SetupIntent>
*/
public function all($params = null, $opts = null)
{
@@ -124,4 +124,20 @@ class SetupIntentService extends \Stripe\Service\AbstractService
{
return $this->request('post', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
}
+
+ /**
+ * Verifies microdeposits on a SetupIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/verify_microdeposits', $id), $params, $opts);
+ }
}
diff --git a/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
index d7b55a8b3..d141e484e 100644
--- a/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
@@ -14,7 +14,7 @@ class ShippingRateService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\ShippingRate>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php b/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
index 92641751b..0fa8cd9ca 100644
--- a/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
@@ -14,7 +14,7 @@ class ScheduledQueryRunService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Sigma\ScheduledQueryRun>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SkuService.php b/vendor/stripe/stripe-php/lib/Service/SkuService.php
index 8934f2064..c00194ea3 100644
--- a/vendor/stripe/stripe-php/lib/Service/SkuService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SkuService.php
@@ -15,7 +15,7 @@ class SkuService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\SKU>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
index 3b2aa2b12..e18c8de41 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
@@ -14,7 +14,7 @@ class SubscriptionItemService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\SubscriptionItem>
*/
public function all($params = null, $opts = null)
{
@@ -39,7 +39,7 @@ class SubscriptionItemService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\UsageRecordSummary>
*/
public function allUsageRecordSummaries($parentId, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
index 9eed46060..42aaf6bbe 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
@@ -14,7 +14,7 @@ class SubscriptionScheduleService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\SubscriptionSchedule>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
index f3ac768c8..8369e9975 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
@@ -15,7 +15,7 @@ class SubscriptionService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Subscription>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php b/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
index 007b77136..1e5bbfeb4 100644
--- a/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
@@ -15,7 +15,7 @@ class TaxCodeService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\TaxCode>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/TaxRateService.php b/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
index 7cee1fead..0d67eec33 100644
--- a/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
@@ -15,7 +15,7 @@ class TaxRateService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\TaxRate>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
index 8adc7a520..74a776eb9 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
@@ -14,7 +14,7 @@ class LocationService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Terminal\Location>
*/
public function all($params = null, $opts = null)
{
@@ -22,7 +22,9 @@ class LocationService extends \Stripe\Service\AbstractService
}
/**
- * Creates a new Location
object.
+ * Creates a new Location
object. For further details, including which
+ * address fields are required in each country, see the Manage locations guide.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
index 765015c83..413bc8715 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
@@ -14,7 +14,7 @@ class ReaderService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Terminal\Reader>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/TopupService.php b/vendor/stripe/stripe-php/lib/Service/TopupService.php
index 059dc2090..bd486b9e2 100644
--- a/vendor/stripe/stripe-php/lib/Service/TopupService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TopupService.php
@@ -14,7 +14,7 @@ class TopupService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Topup>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/TransferService.php b/vendor/stripe/stripe-php/lib/Service/TransferService.php
index 150bbf731..4a78545e0 100644
--- a/vendor/stripe/stripe-php/lib/Service/TransferService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TransferService.php
@@ -16,7 +16,7 @@ class TransferService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\Transfer>
*/
public function all($params = null, $opts = null)
{
@@ -36,7 +36,7 @@ class TransferService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\TransferReversal>
*/
public function allReversals($parentId, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
index 01e642249..baa15bd24 100644
--- a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
+++ b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
@@ -14,7 +14,7 @@ class WebhookEndpointService extends \Stripe\Service\AbstractService
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection
+ * @return \Stripe\Collection<\Stripe\WebhookEndpoint>
*/
public function all($params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/SetupIntent.php b/vendor/stripe/stripe-php/lib/SetupIntent.php
index 081bb2d47..13ba54193 100644
--- a/vendor/stripe/stripe-php/lib/SetupIntent.php
+++ b/vendor/stripe/stripe-php/lib/SetupIntent.php
@@ -111,4 +111,21 @@ class SetupIntent extends ApiResource
return $this;
}
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent the verified setup intent
+ */
+ public function verifyMicrodeposits($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/verify_microdeposits';
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
+ $this->refreshFrom($response, $opts);
+
+ return $this;
+ }
}
diff --git a/vendor/stripe/stripe-php/lib/Stripe.php b/vendor/stripe/stripe-php/lib/Stripe.php
index 54795c5fc..9eed6295d 100644
--- a/vendor/stripe/stripe-php/lib/Stripe.php
+++ b/vendor/stripe/stripe-php/lib/Stripe.php
@@ -58,7 +58,7 @@ class Stripe
/** @var float Initial delay between retries, in seconds */
private static $initialNetworkRetryDelay = 0.5;
- const VERSION = '7.105.0';
+ const VERSION = '7.114.0';
/**
* @return string the API key used for requests
diff --git a/vendor/stripe/stripe-php/lib/StripeClient.php b/vendor/stripe/stripe-php/lib/StripeClient.php
index 10d324a94..89b4c6be6 100644
--- a/vendor/stripe/stripe-php/lib/StripeClient.php
+++ b/vendor/stripe/stripe-php/lib/StripeClient.php
@@ -35,6 +35,7 @@ namespace Stripe;
* @property \Stripe\Service\OrderReturnService $orderReturns
* @property \Stripe\Service\OrderService $orders
* @property \Stripe\Service\PaymentIntentService $paymentIntents
+ * @property \Stripe\Service\PaymentLinkService $paymentLinks
* @property \Stripe\Service\PaymentMethodService $paymentMethods
* @property \Stripe\Service\PayoutService $payouts
* @property \Stripe\Service\PlanService $plans
diff --git a/vendor/stripe/stripe-php/lib/Subscription.php b/vendor/stripe/stripe-php/lib/Subscription.php
index a96b53bce..1b91e384d 100644
--- a/vendor/stripe/stripe-php/lib/Subscription.php
+++ b/vendor/stripe/stripe-php/lib/Subscription.php
@@ -31,7 +31,7 @@ namespace Stripe;
* @property null|\Stripe\TaxRate[] $default_tax_rates The tax rates that will apply to any subscription item that does not have tax_rates
set. Invoices created will have their default_tax_rates
populated from the subscription.
* @property null|\Stripe\Discount $discount Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.
* @property null|int $ended_at If the subscription has ended, the date the subscription ended.
- * @property \Stripe\Collection $items List of subscription items, each with an attached price.
+ * @property \Stripe\Collection<\Stripe\SubscriptionItem> $items List of subscription items, each with an attached price.
* @property null|string|\Stripe\Invoice $latest_invoice The most recent invoice this subscription has generated.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
diff --git a/vendor/stripe/stripe-php/lib/SubscriptionItem.php b/vendor/stripe/stripe-php/lib/SubscriptionItem.php
index 5bd25b252..36afdf831 100644
--- a/vendor/stripe/stripe-php/lib/SubscriptionItem.php
+++ b/vendor/stripe/stripe-php/lib/SubscriptionItem.php
@@ -13,8 +13,8 @@ namespace Stripe;
* @property null|\Stripe\StripeObject $billing_thresholds Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- * @property \Stripe\Plan $plan You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: Set up a subscription and more about products and prices.
- * @property \Stripe\Price $pricePrices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: Set up a subscription, create an invoice, and more about products and prices.
+ * @property \Stripe\Plan $planYou can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: Set up a subscription and more about products and prices.
+ * @property \Stripe\Price $pricePrices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: Set up a subscription, create an invoice, and more about products and prices.
* @property int $quantity The quantity of the plan to which the customer should be subscribed. * @property string $subscription Thesubscription
this subscription_item
belongs to.
* @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to this subscription_item
. When set, the default_tax_rates
on the subscription do not apply to this subscription_item
.
@@ -75,7 +75,7 @@ class SubscriptionItem extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of usage record summaries
+ * @return \Stripe\Collection<\Stripe\UsageRecordSummary> the list of usage record summaries
*/
public static function allUsageRecordSummaries($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/TaxId.php b/vendor/stripe/stripe-php/lib/TaxId.php
index 3a8b73286..b9ab44ac2 100644
--- a/vendor/stripe/stripe-php/lib/TaxId.php
+++ b/vendor/stripe/stripe-php/lib/TaxId.php
@@ -18,7 +18,7 @@ namespace Stripe;
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string|\Stripe\Customer $customer ID of the customer.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property string $type Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_vat
, gb_vat
, hk_br
, id_npwp
, il_vat
, in_gst
, jp_cn
, jp_rn
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, th_vat
, tw_vat
, us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
+ * @property string $type Type of the tax ID, one of ae_trn
, au_abn
, au_arn
, br_cnpj
, br_cpf
, ca_bn
, ca_gst_hst
, ca_pst_bc
, ca_pst_mb
, ca_pst_sk
, ca_qst
, ch_vat
, cl_tin
, es_cif
, eu_vat
, gb_vat
, ge_vat
, hk_br
, id_npwp
, il_vat
, in_gst
, is_vat
, jp_cn
, jp_rn
, kr_brn
, li_uid
, mx_rfc
, my_frp
, my_itn
, my_sst
, no_vat
, nz_gst
, ru_inn
, ru_kpp
, sa_vat
, sg_gst
, sg_uen
, th_vat
, tw_vat
, ua_vat
, us_ein
, or za_vat
. Note that some legacy tax IDs have type unknown
* @property string $value Value of the tax ID.
* @property null|\Stripe\StripeObject $verification Tax ID verification information.
*/
@@ -44,10 +44,12 @@ class TaxId extends ApiResource
const TYPE_ES_CIF = 'es_cif';
const TYPE_EU_VAT = 'eu_vat';
const TYPE_GB_VAT = 'gb_vat';
+ const TYPE_GE_VAT = 'ge_vat';
const TYPE_HK_BR = 'hk_br';
const TYPE_ID_NPWP = 'id_npwp';
const TYPE_IL_VAT = 'il_vat';
const TYPE_IN_GST = 'in_gst';
+ const TYPE_IS_VAT = 'is_vat';
const TYPE_JP_CN = 'jp_cn';
const TYPE_JP_RN = 'jp_rn';
const TYPE_KR_BRN = 'kr_brn';
@@ -65,6 +67,7 @@ class TaxId extends ApiResource
const TYPE_SG_UEN = 'sg_uen';
const TYPE_TH_VAT = 'th_vat';
const TYPE_TW_VAT = 'tw_vat';
+ const TYPE_UA_VAT = 'ua_vat';
const TYPE_UNKNOWN = 'unknown';
const TYPE_US_EIN = 'us_ein';
const TYPE_ZA_VAT = 'za_vat';
diff --git a/vendor/stripe/stripe-php/lib/Transfer.php b/vendor/stripe/stripe-php/lib/Transfer.php
index 4fb0c6a64..fed09bb97 100644
--- a/vendor/stripe/stripe-php/lib/Transfer.php
+++ b/vendor/stripe/stripe-php/lib/Transfer.php
@@ -30,7 +30,7 @@ namespace Stripe;
* @property string|\Stripe\Charge $destination_payment If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- * @property \Stripe\Collection $reversals A list of reversals that have been applied to the transfer.
+ * @property \Stripe\Collection<\Stripe\TransferReversal> $reversals A list of reversals that have been applied to the transfer.
* @property bool $reversed Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false.
* @property null|string|\Stripe\Charge $source_transaction ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
* @property null|string $source_type The source balance this transfer came from. One of card
, fpx
, or bank_account
.
@@ -77,7 +77,7 @@ class Transfer extends ApiResource
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
- * @return \Stripe\Collection the list of transfer reversals
+ * @return \Stripe\Collection<\Stripe\TransferReversal> the list of transfer reversals
*/
public static function allReversals($id, $params = null, $opts = null)
{
diff --git a/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php b/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
index f60effdd1..4546cff06 100644
--- a/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
+++ b/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php
@@ -60,6 +60,7 @@ class ObjectTypes
\Stripe\OrderItem::OBJECT_NAME => \Stripe\OrderItem::class,
\Stripe\OrderReturn::OBJECT_NAME => \Stripe\OrderReturn::class,
\Stripe\PaymentIntent::OBJECT_NAME => \Stripe\PaymentIntent::class,
+ \Stripe\PaymentLink::OBJECT_NAME => \Stripe\PaymentLink::class,
\Stripe\PaymentMethod::OBJECT_NAME => \Stripe\PaymentMethod::class,
\Stripe\Payout::OBJECT_NAME => \Stripe\Payout::class,
\Stripe\Person::OBJECT_NAME => \Stripe\Person::class,
diff --git a/vendor/symfony/polyfill-intl-idn/bootstrap80.php b/vendor/symfony/polyfill-intl-idn/bootstrap80.php
index a42ab81ac..a62c2d69b 100644
--- a/vendor/symfony/polyfill-intl-idn/bootstrap80.php
+++ b/vendor/symfony/polyfill-intl-idn/bootstrap80.php
@@ -118,8 +118,8 @@ if (!defined('IDNA_ERROR_CONTEXTJ')) {
}
if (!function_exists('idn_to_ascii')) {
- function idn_to_ascii(?string $domain, ?int $flags = 0, ?int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null): string|false { return p\Idn::idn_to_ascii((string) $domain, (int) $flags, (int) $variant, $idna_info); }
+ function idn_to_ascii(?string $domain, ?int $flags = IDNA_DEFAULT, ?int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null): string|false { return p\Idn::idn_to_ascii((string) $domain, (int) $flags, (int) $variant, $idna_info); }
}
if (!function_exists('idn_to_utf8')) {
- function idn_to_utf8(?string $domain, ?int $flags = 0, ?int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null): string|false { return p\Idn::idn_to_utf8((string) $domain, (int) $flags, (int) $variant, $idna_info); }
+ function idn_to_utf8(?string $domain, ?int $flags = IDNA_DEFAULT, ?int $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = null): string|false { return p\Idn::idn_to_utf8((string) $domain, (int) $flags, (int) $variant, $idna_info); }
}