Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
afce9794b52053b2efda64fd3af04dcf9225eafa
68065dff88008f079e79eb1ef0add5e261b416e1
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2169
v2176
4 changes: 3 additions & 1 deletion lib/Billing/Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @property string $alert_type Defines the type of the alert.
* @property null|(object{filters: null|((object{customer: null|string|\Stripe\Customer, type: string}&\Stripe\StripeObject))[], lte: (object{balance_type: string, custom_pricing_unit?: null|(object{custom_pricing_unit_details: null|(object{created: int, display_name: string, id: string, lookup_key: null|string, metadata: \Stripe\StripeObject, status: string}&\Stripe\StripeObject), id: string, value: string}&\Stripe\StripeObject), monetary: null|(object{currency: string, value: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $credit_balance_threshold Encapsulates configuration of the alert to monitor billing credit balance.
* @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|(object{aggregation_period: string, filters: null|(object{billable_items: null|string[], billing_cadence: null|string, pricing_plan: null|string, pricing_plan_subscription: null|string}&\Stripe\StripeObject), group_by: null|string, gte: (object{amount: null|(object{currency: string, value: int}&\Stripe\StripeObject), custom_pricing_unit: null|(object{custom_pricing_unit_details: null|(object{created: int, display_name: string, id: string, lookup_key: null|string, metadata: \Stripe\StripeObject, status: string}&\Stripe\StripeObject), id: string, value: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $spend_threshold Encapsulates the alert's configuration to monitor spend on pricing plan subscriptions.
* @property null|string $status Status of the alert. This can be active, inactive or archived.
* @property string $title Title of the alert.
* @property null|(object{filters: null|((object{customer: null|string|\Stripe\Customer, type: string}&\Stripe\StripeObject))[], gte: int, meter: Meter|string, recurrence: string}&\Stripe\StripeObject) $usage_threshold Encapsulates configuration of the alert to monitor usage on a specific <a href="https://docs.stripe.com/api/billing/meter">Billing Meter</a>.
Expand All @@ -21,6 +22,7 @@ class Alert extends \Stripe\ApiResource
const OBJECT_NAME = 'billing.alert';

const ALERT_TYPE_CREDIT_BALANCE_THRESHOLD = 'credit_balance_threshold';
const ALERT_TYPE_SPEND_THRESHOLD = 'spend_threshold';
const ALERT_TYPE_USAGE_THRESHOLD = 'usage_threshold';

const STATUS_ACTIVE = 'active';
Expand All @@ -30,7 +32,7 @@ class Alert extends \Stripe\ApiResource
/**
* Creates a billing alert.
*
* @param null|array{alert_type: string, credit_balance_threshold?: array{filters?: array{credit_grants?: array{applicability_config: array{scope: array{billable_items?: array{id: string}[], price_type?: string, prices?: array{id: string}[]}}}, customer?: string, type: string}[], lte: array{balance_type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{currency: string, value: int}}}, expand?: string[], title: string, usage_threshold?: array{filters?: array{customer?: string, type: string}[], gte: int, meter: string, recurrence: string}} $params
* @param null|array{alert_type: string, credit_balance_threshold?: array{filters?: array{credit_grants?: array{applicability_config: array{scope: array{billable_items?: array{id: string}[], price_type?: string, prices?: array{id: string}[]}}}, customer?: string, type: string}[], lte: array{balance_type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{currency: string, value: int}}}, expand?: string[], title: string, usage_threshold?: array{filters?: array{customer?: string, type: string}[], gte: int, meter: string, recurrence: string}, spend_threshold?: array{aggregation_period: string, filters?: array{billable_items?: string[], billing_cadence?: string, pricing_plan?: string, pricing_plan_subscription?: string}, group_by?: string, gte: array{amount?: array{currency: string, value: int}, custom_pricing_unit?: array{id: string, value: string}, type: string}}} $params
* @param null|array|string $options
*
* @return Alert the created resource
Expand Down
2 changes: 1 addition & 1 deletion lib/InvoiceLineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @property null|((object{amount: int, margin: Margin|string}&StripeObject))[] $margin_amounts The amount of margin calculated per margin for this line item.
* @property null|(Margin|string)[] $margins The margins applied to the line item. When set, the <code>default_margins</code> on the invoice do not apply to the line item. Use <code>expand[]=margins</code> to expand each margin.
* @property 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. Note that for line items with <code>type=subscription</code>, <code>metadata</code> reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
* @property null|(object{invoice_item_details: null|(object{invoice_item: string, proration: bool, proration_details: null|(object{credited_items: null|(object{invoice: string, invoice_line_items: string[]}&StripeObject)}&StripeObject), subscription: null|string}&StripeObject), license_fee_subscription_details?: null|(object{invoice_item: string, license_fee_subscription: string, license_fee_version: string, pricing_plan_subscription: string, pricing_plan_version: string}&StripeObject), rate_card_subscription_details?: null|(object{invoice_item: string, pricing_plan_subscription?: null|string, pricing_plan_version?: null|string, rate_card_subscription: string, rate_card_version: string}&StripeObject), schedule_details?: null|(object{schedule: string}&StripeObject), subscription_item_details: null|(object{invoice_item: null|string, proration: bool, proration_details: null|(object{credited_items: null|(object{invoice: string, invoice_line_items: string[]}&StripeObject)}&StripeObject), subscription: null|string, subscription_item: string}&StripeObject), type: string}&StripeObject) $parent The parent that generated this line item.
* @property null|(object{invoice_item_details: null|(object{invoice_item: string, proration: bool, proration_details: null|(object{credited_items: null|(object{invoice: string, invoice_line_items: string[]}&StripeObject)}&StripeObject), subscription: null|string}&StripeObject), license_fee_subscription_details?: null|(object{invoice_item: string, license_fee_subscription: string, license_fee_version: string, pricing_plan_subscription: string, pricing_plan_version: string}&StripeObject), rate_card_subscription_details?: null|(object{invoice_item: string, pricing_plan_subscription?: null|string, pricing_plan_version?: null|string, rate_card_subscription: string, rate_card_version: string}&StripeObject), schedule_details?: null|(object{schedule: string, invoice_item: null|string, proration: bool, proration_details: null|(object{credited_items: null|(object{invoice: string, invoice_line_items: string[]}&StripeObject)}&StripeObject), subscription: null|string}&StripeObject), subscription_item_details: null|(object{invoice_item: null|string, proration: bool, proration_details: null|(object{credited_items: null|(object{invoice: string, invoice_line_items: string[]}&StripeObject)}&StripeObject), subscription: null|string, subscription_item: string}&StripeObject), type: string}&StripeObject) $parent The parent that generated this line item.
* @property (object{end: int, start: int}&StripeObject) $period
* @property null|((object{amount: int, credit_balance_transaction?: null|Billing\CreditBalanceTransaction|string, discount?: Discount|string, margin?: Margin|string, type: string}&StripeObject))[] $pretax_credit_amounts Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item.
* @property null|(object{license_fee_details?: (object{license_fee: string, license_fee_version: string, licensed_item: string}&StripeObject), price_details?: (object{price: Price|string, product: string}&StripeObject), rate_card_rate_details?: (object{metered_item: string, rate_card: string, rate_card_rate: string}&StripeObject), type: string, unit_amount_decimal: null|string, rate_card_custom_pricing_unit_overage_rate_details?: (object{custom_pricing_unit: string, custom_pricing_unit_overage_rate: string, one_time_item: string, rate_card: string}&StripeObject)}&StripeObject) $pricing The pricing information of the line item.
Expand Down
4 changes: 2 additions & 2 deletions lib/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @property null|(object{buyer_id: null|string, cashtag: null|string}&StripeObject) $cashapp
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|(object{}&StripeObject) $crypto
* @property null|(object{display_name: null|string, logo: null|(object{content_type: null|string, url: string}&StripeObject), type: string}&StripeObject) $custom
* @property null|(object{display_name: null|string, logo: null|(object{content_type: null|string, url: string}&StripeObject), type: string, payment_method_reference?: null|string, usage?: null|string}&StripeObject) $custom
* @property null|Customer|string $customer The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
* @property null|string $customer_account
* @property null|(object{}&StripeObject) $customer_balance
Expand Down Expand Up @@ -229,7 +229,7 @@ public static function retrieve($id, $opts = null)
* to be updated.
*
* @param string $id the ID of the resource to update
* @param null|array{allow_redisplay?: string, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, card?: array{exp_month?: int, exp_year?: int, networks?: array{preferred?: null|string}}, expand?: string[], metadata?: null|array<string, string>, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, us_bank_account?: array{account_holder_type?: string, account_type?: string}} $params
* @param null|array{allow_redisplay?: string, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, card?: array{exp_month?: int, exp_year?: int, networks?: array{preferred?: null|string}}, expand?: string[], metadata?: null|array<string, string>, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, us_bank_account?: array{account_holder_type?: string, account_type?: string}, custom?: array{payment_method_reference?: string, usage?: string}} $params
* @param null|array|string $opts
*
* @return PaymentMethod the updated resource
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/Billing/AlertService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function archive($id, $params = null, $opts = null)
/**
* Creates a billing alert.
*
* @param null|array{alert_type: string, credit_balance_threshold?: array{filters?: array{credit_grants?: array{applicability_config: array{scope: array{billable_items?: array{id: string}[], price_type?: string, prices?: array{id: string}[]}}}, customer?: string, type: string}[], lte: array{balance_type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{currency: string, value: int}}}, expand?: string[], title: string, usage_threshold?: array{filters?: array{customer?: string, type: string}[], gte: int, meter: string, recurrence: string}} $params
* @param null|array{alert_type: string, credit_balance_threshold?: array{filters?: array{credit_grants?: array{applicability_config: array{scope: array{billable_items?: array{id: string}[], price_type?: string, prices?: array{id: string}[]}}}, customer?: string, type: string}[], lte: array{balance_type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{currency: string, value: int}}}, expand?: string[], title: string, usage_threshold?: array{filters?: array{customer?: string, type: string}[], gte: int, meter: string, recurrence: string}, spend_threshold?: array{aggregation_period: string, filters?: array{billable_items?: string[], billing_cadence?: string, pricing_plan?: string, pricing_plan_subscription?: string}, group_by?: string, gte: array{amount?: array{currency: string, value: int}, custom_pricing_unit?: array{id: string, value: string}, type: string}}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Billing\Alert
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/PaymentMethodService.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function retrieve($id, $params = null, $opts = null)
* to be updated.
*
* @param string $id
* @param null|array{allow_redisplay?: string, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, card?: array{exp_month?: int, exp_year?: int, networks?: array{preferred?: null|string}}, expand?: string[], metadata?: null|array<string, string>, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, us_bank_account?: array{account_holder_type?: string, account_type?: string}} $params
* @param null|array{allow_redisplay?: string, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, card?: array{exp_month?: int, exp_year?: int, networks?: array{preferred?: null|string}}, expand?: string[], metadata?: null|array<string, string>, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, us_bank_account?: array{account_holder_type?: string, account_type?: string}, custom?: array{payment_method_reference?: string, usage?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\PaymentMethod
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/SubscriptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function migrate($id, $params = null, $opts = null)
* pause subscriptions with attached schedules.
*
* @param string $id
* @param null|array{bill_for?: array{outstanding_usage?: bool, unused_time?: bool}, expand?: string[], invoicing_behavior?: string, type: string} $params
* @param null|array{bill_for?: array{outstanding_usage_through?: array{type: string}, unused_time_from?: array{type: string}}, expand?: string[], invoicing_behavior?: string, type: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Subscription
Expand All @@ -164,7 +164,7 @@ public function pause($id, $params = null, $opts = null)
* invoice will void automatically if not paid by the expiration date.
*
* @param string $id
* @param null|array{billing_cycle_anchor?: string, expand?: string[], proration_behavior?: string, proration_date?: int, payment_behavior?: string} $params
* @param null|array{billing_cycle_anchor?: string, expand?: string[], proration_behavior?: string, proration_date?: int} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Subscription
Expand Down