mirror of
https://github.com/itflow-org/itflow
synced 2026-03-12 00:34:52 +00:00
Bump stripe-php from 19.0.0 to 19.4.1
This commit is contained in:
@@ -8,19 +8,20 @@ namespace Stripe;
|
||||
* A Promotion Code represents a customer-redeemable code for an underlying promotion.
|
||||
* You can create multiple codes for a single promotion.
|
||||
*
|
||||
* If you enable promotion codes in your <a href="https://stripe.com/docs/customer-management/configure-portal">customer portal configuration</a>, then customers can redeem a code themselves when updating a subscription in the portal.
|
||||
* If you enable promotion codes in your <a href="https://docs.stripe.com/customer-management/configure-portal">customer portal configuration</a>, then customers can redeem a code themselves when updating a subscription in the portal.
|
||||
* Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal.
|
||||
*
|
||||
* @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 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. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9).
|
||||
* @property string $code The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), digits (0-9), and dashes (-).
|
||||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
* @property null|Customer|string $customer The customer that this promotion code can be used by.
|
||||
* @property null|Customer|string $customer The customer who can use this promotion code.
|
||||
* @property null|string $customer_account The account representing the customer who can use this promotion code.
|
||||
* @property null|int $expires_at Date at which the promotion code can no longer be redeemed.
|
||||
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
|
||||
* @property null|int $max_redemptions Maximum number of times this promotion code can be redeemed.
|
||||
* @property null|StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property null|StripeObject $metadata Set of <a href="https://docs.stripe.com/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property (object{coupon: null|Coupon|string, type: string}&StripeObject) $promotion
|
||||
* @property (object{currency_options?: StripeObject, first_time_transaction: bool, minimum_amount: null|int, minimum_amount_currency: null|string}&StripeObject) $restrictions
|
||||
* @property int $times_redeemed Number of times this promotion code has been used.
|
||||
@@ -35,7 +36,7 @@ class PromotionCode extends ApiResource
|
||||
* A promotion code points to an underlying promotion. You can optionally restrict
|
||||
* the code to a specific customer, redemption limit, and expiration date.
|
||||
*
|
||||
* @param null|array{active?: bool, code?: string, customer?: string, expand?: string[], expires_at?: int, max_redemptions?: int, metadata?: array<string, string>, promotion: array{coupon?: string, type: string}, restrictions?: array{currency_options?: array<string, array{minimum_amount?: int}>, first_time_transaction?: bool, minimum_amount?: int, minimum_amount_currency?: string}} $params
|
||||
* @param null|array{active?: bool, code?: string, customer?: string, customer_account?: string, expand?: string[], expires_at?: int, max_redemptions?: int, metadata?: array<string, string>, promotion: array{coupon?: string, type: string}, restrictions?: array{currency_options?: array<string, array{minimum_amount?: int}>, first_time_transaction?: bool, minimum_amount?: int, minimum_amount_currency?: string}} $params
|
||||
* @param null|array|string $options
|
||||
*
|
||||
* @return PromotionCode the created resource
|
||||
@@ -57,7 +58,7 @@ class PromotionCode extends ApiResource
|
||||
/**
|
||||
* Returns a list of your promotion codes.
|
||||
*
|
||||
* @param null|array{active?: bool, code?: string, coupon?: string, created?: array|int, customer?: string, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array{active?: bool, code?: string, coupon?: string, created?: array|int, customer?: string, customer_account?: string, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @return Collection<PromotionCode> of ApiResources
|
||||
|
||||
Reference in New Issue
Block a user