From 8d38dc7a5ca5643f333578e85640cba66eaa0675 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 4 Feb 2026 19:14:27 +0000
Subject: [PATCH 1/6] Update generated code for v2165 and
---
OPENAPI_VERSION | 2 +-
lib/FrMealVouchersOnboarding.php | 31 +++++++++++++++----
.../FrMealVouchersOnboardingService.php | 23 +++++++++++---
3 files changed, 44 insertions(+), 12 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 195c486d2..f0a245f77 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2164
\ No newline at end of file
+v2165
\ No newline at end of file
diff --git a/lib/FrMealVouchersOnboarding.php b/lib/FrMealVouchersOnboarding.php
index a1e0eec5f..b41bd51bc 100644
--- a/lib/FrMealVouchersOnboarding.php
+++ b/lib/FrMealVouchersOnboarding.php
@@ -5,9 +5,15 @@
namespace Stripe;
/**
- * The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
+ * The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
* for a single restaurant (SIRET number) in the context of the French Meal Vouchers program.
*
+ * To onboard a restaurant for the French Meal Vouchers program, you create a French Meal Vouchers Onboarding object.
+ * You can retrieve individual objects, list all such objects, or update objects to correct the postal code of the restaurant.
+ * We identify French Meal Vouchers Onboarding objects with a unique, random ID.
+ *
+ * Related guide: Set up a restaurant for titres-restaurant payments
+ *
* @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 $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
@@ -24,8 +30,8 @@ class FrMealVouchersOnboarding extends ApiResource
use ApiOperations\Update;
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s
- * onboarding status and starts the onboarding process.
+ * Creates a French Meal Vouchers Onboarding object that represents a
+ * restaurant’s onboarding status and starts the onboarding process.
*
* @param null|array{expand?: string[], metadata?: array, name: string, postal_code: string, siret: string} $params
* @param null|array|string $options
@@ -47,7 +53,9 @@ public static function create($params = null, $options = null)
}
/**
- * Lists French Meal Vouchers Onboarding objects.
+ * Lists French Meal Vouchers Onboarding objects. The objects are
+ * returned in sorted order, with the most recently created objects appearing
+ * first.
*
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
* @param null|array|string $opts
@@ -64,7 +72,12 @@ public static function all($params = null, $opts = null)
}
/**
- * Retrieves the details of a French Meal Vouchers Onboarding object.
+ * Retrieves the details of a previously created French Meal Vouchers
+ * Onboarding object.
+ *
+ * Supply the unique French Meal Vouchers Onboarding ID that was
+ * returned from your previous request, and Stripe returns the corresponding
+ * onboarding information.
*
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
* @param null|array|string $opts
@@ -83,7 +96,13 @@ public static function retrieve($id, $opts = null)
}
/**
- * Updates the details of a restaurant’s French Meal Vouchers Onboarding object.
+ * Updates the details of a restaurant’s French Meal Vouchers
+ * Onboarding object by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged. After you update the object, the
+ * onboarding process automatically restarts.
+ *
+ * You can only update French Meal Vouchers Onboarding objects with
+ * the postal_code field requirement in past_due.
*
* @param string $id the ID of the resource to update
* @param null|array{expand?: string[], postal_code: string} $params
diff --git a/lib/Service/FrMealVouchersOnboardingService.php b/lib/Service/FrMealVouchersOnboardingService.php
index 41845a9cd..863d038de 100644
--- a/lib/Service/FrMealVouchersOnboardingService.php
+++ b/lib/Service/FrMealVouchersOnboardingService.php
@@ -12,7 +12,9 @@
class FrMealVouchersOnboardingService extends AbstractService
{
/**
- * Lists French Meal Vouchers Onboarding objects.
+ * Lists French Meal Vouchers Onboarding objects. The objects are
+ * returned in sorted order, with the most recently created objects appearing
+ * first.
*
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
@@ -27,8 +29,8 @@ public function all($params = null, $opts = null)
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s
- * onboarding status and starts the onboarding process.
+ * Creates a French Meal Vouchers Onboarding object that represents a
+ * restaurant’s onboarding status and starts the onboarding process.
*
* @param null|array{expand?: string[], metadata?: array, name: string, postal_code: string, siret: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
@@ -43,7 +45,12 @@ public function create($params = null, $opts = null)
}
/**
- * Retrieves the details of a French Meal Vouchers Onboarding object.
+ * Retrieves the details of a previously created French Meal Vouchers
+ * Onboarding object.
+ *
+ * Supply the unique French Meal Vouchers Onboarding ID that was
+ * returned from your previous request, and Stripe returns the corresponding
+ * onboarding information.
*
* @param string $id
* @param null|array{expand?: string[]} $params
@@ -59,7 +66,13 @@ public function retrieve($id, $params = null, $opts = null)
}
/**
- * Updates the details of a restaurant’s French Meal Vouchers Onboarding object.
+ * Updates the details of a restaurant’s French Meal Vouchers
+ * Onboarding object by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged. After you update the object, the
+ * onboarding process automatically restarts.
+ *
+ * You can only update French Meal Vouchers Onboarding objects with
+ * the postal_code field requirement in past_due.
*
* @param string $id
* @param null|array{expand?: string[], postal_code: string} $params
From 6669bb3784cbbfd06f6c12b1266314314da95867 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 4 Feb 2026 21:31:43 +0000
Subject: [PATCH 2/6] Update generated code for v2166 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
lib/ApplicationFee.php | 4 ++++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index eabc6731b..e07bdb3f6 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-74913070eb5bc81c058d07ad167346b6d68d8b0b
\ No newline at end of file
+fdf122e4b61dc70b21ef5bf40715dfc76ad477f7
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index f0a245f77..5a45f31c2 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2165
\ No newline at end of file
+v2166
\ No newline at end of file
diff --git a/lib/ApplicationFee.php b/lib/ApplicationFee.php
index dbd485e35..32e554625 100644
--- a/lib/ApplicationFee.php
+++ b/lib/ApplicationFee.php
@@ -20,6 +20,7 @@
* @property null|Charge|string $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 Collection $refunds A list of refunds that have been applied to the fee.
+ * @property null|string $settlement_type Type of settlement for the application fee. One of net_settled or gross_settled.
*/
class ApplicationFee extends ApiResource
{
@@ -27,6 +28,9 @@ class ApplicationFee extends ApiResource
use ApiOperations\NestedResource;
+ const SETTLEMENT_TYPE_GROSS_SETTLED = 'gross_settled';
+ const SETTLEMENT_TYPE_NET_SETTLED = 'net_settled';
+
/**
* Returns a list of application fees you’ve previously collected. The application
* fees are returned in sorted order, with the most recent fees appearing first.
From 148164551039c566e08c6ff567ade20c3fc2584d Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 10 Feb 2026 18:48:14 +0000
Subject: [PATCH 3/6] Update generated code for v2167 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
lib/InvoiceItem.php | 2 +-
lib/InvoiceLineItem.php | 2 +-
lib/Service/InvoiceService.php | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index e07bdb3f6..7a8155d6b 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-fdf122e4b61dc70b21ef5bf40715dfc76ad477f7
\ No newline at end of file
+17638ef28504204dc4f355a6b853fc12522bb2ca
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5a45f31c2..299f454e9 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2166
\ No newline at end of file
+v2167
\ No newline at end of file
diff --git a/lib/InvoiceItem.php b/lib/InvoiceItem.php
index edefb81f1..0f425e649 100644
--- a/lib/InvoiceItem.php
+++ b/lib/InvoiceItem.php
@@ -31,7 +31,7 @@
* @property null|int $net_amount The amount after discounts, but before credits and taxes. This field is null for discountable=true items.
* @property null|(object{license_fee_subscription_details?: null|(object{license_fee_subscription: string, license_fee_version: string, pricing_plan_subscription: string, pricing_plan_version: string}&StripeObject), rate_card_subscription_details?: null|(object{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_details: null|(object{subscription: string, subscription_item?: string}&StripeObject), type: string}&StripeObject) $parent The parent that generated this invoice item.
* @property (object{end: int, start: int}&StripeObject) $period
- * @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}&StripeObject) $pricing The pricing information of the invoice 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 invoice item.
* @property bool $proration Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
* @property null|(object{discount_amounts: ((object{amount: int, discount: Discount|string}&StripeObject))[]}&StripeObject) $proration_details
* @property int $quantity Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php
index 87d86c510..99fc5bd27 100644
--- a/lib/InvoiceLineItem.php
+++ b/lib/InvoiceLineItem.php
@@ -25,7 +25,7 @@
* @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 (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}&StripeObject) $pricing The pricing information of the 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.
* @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration.
* @property null|string|Subscription $subscription
* @property int $subtotal The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.
diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php
index 0ec9b8fc0..1bf4ce80f 100644
--- a/lib/Service/InvoiceService.php
+++ b/lib/Service/InvoiceService.php
@@ -139,7 +139,7 @@ public function create($params = null, $opts = null)
* invoice creation. Learn
* more
*
- * @param null|array{automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_cadence?: string, currency?: string, customer?: string, customer_account?: string, customer_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name: string, phone?: string}, tax?: array{ip_address?: null|string}, tax_exempt?: null|string, tax_ids?: array{type: string, value: string}[]}, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], expand?: string[], invoice_items?: (array{amount?: int, currency?: string, description?: string, discountable?: bool, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], invoiceitem?: string, metadata?: null|array, period?: array{end: int, start: int}, price?: string, price_data?: array{currency: string, product: string, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_behavior?: string, tax_code?: null|string, tax_rates?: null|string[], unit_amount?: int, unit_amount_decimal?: string})[], issuer?: array{account?: string, type: string}, on_behalf_of?: null|string, preview_mode?: string, schedule?: string, schedule_details?: array{amendments?: (array{amendment_end?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, amendment_start: array{amendment_end?: array{index: int}, discount_end?: array{discount: string}, timestamp?: int, type: string}, billing_cycle_anchor?: string, billing_schedules_actions?: array{applies_to?: array{price?: string, type: string}[], type: string}[], discount_actions?: array{add?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, remove?: array{coupon?: string, discount?: string, promotion_code?: string}, set?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, type: string}[], effective_at?: string, item_actions?: array{add?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, remove?: array{price: string}, set?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, type: string}[], metadata_actions?: (array{add?: array, remove?: string[], set?: null|array, type: string})[], proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], billing_behavior?: string, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_until?: array{duration?: array{interval: string, interval_count?: int}, timestamp?: int, type: string}, key?: string}[], end_behavior?: string, phases?: (array{add_invoice_items?: (array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], metadata?: array, period?: array{end: array{timestamp?: int, type: string}, start: array{timestamp?: int, type: string}}, price?: string, price_data?: array{currency: string, product: string, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], application_fee_percent?: float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_cycle_anchor?: string, billing_thresholds?: null|array{amount_gte?: int, reset_billing_cycle_anchor?: bool}, collection_method?: string, currency?: string, default_payment_method?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], duration?: array{interval: string, interval_count?: int}, effective_at?: string, end_date?: array|int|string, invoice_settings?: array{account_tax_ids?: null|string[], days_until_due?: int, issuer?: array{account?: string, type: string}}, items: (array{billing_thresholds?: null|array{usage_gte: int}, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, plan?: string, price?: string, price_data?: array{currency: string, product: string, recurring: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string})[], metadata?: array, on_behalf_of?: string, pause_collection?: array{behavior: string}, proration_behavior?: string, start_date?: array|int|string, transfer_data?: array{amount_percent?: float, destination: string}, trial?: bool, trial_continuation?: string, trial_end?: array|int|string, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], prebilling?: null|array{bill_until?: array{amendment_end?: array{index: int}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, iterations?: int}[], proration_behavior?: string}, subscription?: string, subscription_details?: array{billing_cycle_anchor?: array|int|string, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_until?: array{duration?: array{interval: string, interval_count?: int}, timestamp?: int, type: string}, key?: string}[], cancel_at?: null|array|int|string, cancel_at_period_end?: bool, cancel_now?: bool, default_tax_rates?: null|string[], items?: (array{billing_thresholds?: null|array{usage_gte: int}, clear_usage?: bool, current_trial?: array{trial_end?: int, trial_offer: string}, deleted?: bool, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], id?: string, metadata?: null|array, plan?: string, price?: string, price_data?: array{currency: string, product: string, recurring: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], prebilling?: array{iterations: int}, proration_behavior?: string, proration_date?: int, resume_at?: string, start_date?: int, trial_end?: array|int|string}} $params
+ * @param null|array{automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_cadence?: string, currency?: string, customer?: string, customer_account?: string, customer_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name: string, phone?: string}, tax?: array{ip_address?: null|string}, tax_exempt?: null|string, tax_ids?: array{type: string, value: string}[]}, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], expand?: string[], invoice_items?: (array{amount?: int, currency?: string, description?: string, discountable?: bool, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], invoiceitem?: string, metadata?: null|array, period?: array{end: int, start: int}, price?: string, price_data?: array{currency: string, product: string, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_behavior?: string, tax_code?: null|string, tax_rates?: null|string[], unit_amount?: int, unit_amount_decimal?: string})[], issuer?: array{account?: string, type: string}, on_behalf_of?: null|string, preview_mode?: string, schedule?: string, schedule_details?: array{amendments?: (array{amendment_end?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, amendment_start: array{amendment_end?: array{index: int}, discount_end?: array{discount: string}, timestamp?: int, type: string}, billing_cycle_anchor?: string, billing_schedules_actions?: array{applies_to?: array{price?: string, type: string}[], type: string}[], discount_actions?: array{add?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, remove?: array{coupon?: string, discount?: string, promotion_code?: string}, set?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, type: string}[], effective_at?: string, item_actions?: array{add?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, remove?: array{price: string}, set?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, type: string}[], metadata_actions?: (array{add?: array, remove?: string[], set?: null|array, type: string})[], proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], billing_behavior?: string, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_until?: array{duration?: array{interval: string, interval_count?: int}, timestamp?: int, type: string}, key?: string}[], end_behavior?: string, phases?: (array{add_invoice_items?: (array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], metadata?: array, period?: array{end: array{timestamp?: int, type: string}, start: array{timestamp?: int, type: string}}, price?: string, price_data?: array{currency: string, product: string, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], application_fee_percent?: float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_cycle_anchor?: string, billing_thresholds?: null|array{amount_gte?: int, reset_billing_cycle_anchor?: bool}, collection_method?: string, currency?: string, default_payment_method?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], duration?: array{interval: string, interval_count?: int}, effective_at?: string, end_date?: array|int|string, invoice_settings?: array{account_tax_ids?: null|string[], days_until_due?: int, issuer?: array{account?: string, type: string}}, items: (array{billing_thresholds?: null|array{usage_gte: int}, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, plan?: string, price?: string, price_data?: array{currency: string, product: string, recurring: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string})[], metadata?: array, on_behalf_of?: string, pause_collection?: array{behavior: string}, proration_behavior?: string, start_date?: array|int|string, transfer_data?: array{amount_percent?: float, destination: string}, trial?: bool, trial_continuation?: string, trial_end?: array|int|string, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], prebilling?: null|array{bill_until?: array{amendment_end?: array{index: int}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, iterations?: int}[], proration_behavior?: string, default_settings?: array{phase_effective_at?: string}}, subscription?: string, subscription_details?: array{billing_cycle_anchor?: array|int|string, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_until?: array{duration?: array{interval: string, interval_count?: int}, timestamp?: int, type: string}, key?: string}[], cancel_at?: null|array|int|string, cancel_at_period_end?: bool, cancel_now?: bool, default_tax_rates?: null|string[], items?: (array{billing_thresholds?: null|array{usage_gte: int}, clear_usage?: bool, current_trial?: array{trial_end?: int, trial_offer: string}, deleted?: bool, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], id?: string, metadata?: null|array, plan?: string, price?: string, price_data?: array{currency: string, product: string, recurring: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], prebilling?: array{iterations: int}, proration_behavior?: string, proration_date?: int, resume_at?: string, start_date?: int, trial_end?: array|int|string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Invoice
From 1829644833a24899b87203180596070750e13f13 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 10 Feb 2026 23:02:53 +0000
Subject: [PATCH 4/6] Update generated code for v2168 and
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
lib/Service/SubscriptionService.php | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 7a8155d6b..fb67dfb52 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-17638ef28504204dc4f355a6b853fc12522bb2ca
\ No newline at end of file
+4a8d3811ce568b0176a7f8c18b01dabe63230fdd
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 299f454e9..4e6ec4358 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2167
\ No newline at end of file
+v2168
\ No newline at end of file
diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php
index 5e84534b5..b0741030e 100644
--- a/lib/Service/SubscriptionService.php
+++ b/lib/Service/SubscriptionService.php
@@ -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} $params
+ * @param null|array{billing_cycle_anchor?: string, expand?: string[], proration_behavior?: string, proration_date?: int, payment_behavior?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Subscription
From 8bdf63c531718c0a6d4bb52fdda48dd19044c327 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 11 Feb 2026 00:05:37 +0000
Subject: [PATCH 5/6] Update generated code for v2168 and
---
CODEGEN_VERSION | 2 +-
init.php | 6 +
...2CoreHealthFraudRateIncreasedEventData.php | 2 +-
...horizationRequestErrorsFiringEventData.php | 2 +-
...rizationRequestErrorsResolvedEventData.php | 2 +-
...orizationRequestTimeoutFiringEventData.php | 2 +-
...izationRequestTimeoutResolvedEventData.php | 2 +-
.../V2/Billing/BillingServiceFactory.php | 2 +
lib/Service/V2/Billing/CadenceService.php | 13 +
.../Cadences/SpendModifierRuleService.php | 46 +
lib/Service/V2/Billing/IntentService.php | 2 +-
lib/Service/V2/Billing/OneTimeItemService.php | 75 ++
lib/Service/V2/Billing/RateCardService.php | 2 +
.../CustomPricingUnitOverageRateService.php | 79 ++
.../V2/Billing/ServiceActionService.php | 2 +-
lib/Service/V2/Core/AccountService.php | 4 +-
lib/Service/V2/Core/AccountTokenService.php | 2 +-
.../CurrencyConversionService.php | 2 +-
.../InboundTransferService.php | 2 +-
.../OutboundPaymentQuoteService.php | 2 +-
.../OutboundPaymentService.php | 2 +-
.../OutboundTransferService.php | 2 +-
.../V2/Payments/OffSessionPaymentService.php | 2 +-
.../SettlementAllocationIntentService.php | 4 +-
.../SplitService.php | 2 +-
.../TestHelpers/FinancialAddressService.php | 2 +-
lib/Util/ObjectTypes.php | 3 +
lib/V2/Billing/CadenceSpendModifier.php | 21 +
lib/V2/Billing/IntentAction.php | 4 +-
lib/V2/Billing/OneTimeItem.php | 24 +
.../RateCardCustomPricingUnitOverageRate.php | 26 +
lib/V2/Billing/ServiceAction.php | 4 +-
lib/V2/Core/Account.php | 2 +-
...FinancialAddressGeneratedMicrodeposits.php | 2 +-
lib/V2/MoneyManagement/Adjustment.php | 2 +-
lib/V2/MoneyManagement/CurrencyConversion.php | 4 +-
lib/V2/MoneyManagement/InboundTransfer.php | 6 +-
lib/V2/MoneyManagement/OutboundPayment.php | 6 +-
.../MoneyManagement/OutboundPaymentQuote.php | 8 +-
lib/V2/MoneyManagement/OutboundTransfer.php | 6 +-
lib/V2/MoneyManagement/ReceivedCredit.php | 4 +-
lib/V2/MoneyManagement/ReceivedDebit.php | 6 +-
lib/V2/MoneyManagement/Transaction.php | 4 +-
lib/V2/MoneyManagement/TransactionEntry.php | 2 +-
lib/V2/Payments/OffSessionPayment.php | 4 +-
.../Payments/SettlementAllocationIntent.php | 2 +-
.../SettlementAllocationIntentSplit.php | 2 +-
tests/Stripe/GeneratedExamplesTest.php | 905 ++++++++++++++++--
48 files changed, 1155 insertions(+), 157 deletions(-)
create mode 100644 lib/Service/V2/Billing/Cadences/SpendModifierRuleService.php
create mode 100644 lib/Service/V2/Billing/OneTimeItemService.php
create mode 100644 lib/Service/V2/Billing/RateCards/CustomPricingUnitOverageRateService.php
create mode 100644 lib/V2/Billing/CadenceSpendModifier.php
create mode 100644 lib/V2/Billing/OneTimeItem.php
create mode 100644 lib/V2/Billing/RateCardCustomPricingUnitOverageRate.php
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index fb67dfb52..f17f495b5 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-4a8d3811ce568b0176a7f8c18b01dabe63230fdd
\ No newline at end of file
+afce9794b52053b2efda64fd3af04dcf9225eafa
\ No newline at end of file
diff --git a/init.php b/init.php
index 2b17b854f..64dde4103 100644
--- a/init.php
+++ b/init.php
@@ -786,6 +786,7 @@
require __DIR__ . '/lib/Service/V2/Billing/BillSettings/VersionService.php';
require __DIR__ . '/lib/Service/V2/Billing/BillingServiceFactory.php';
require __DIR__ . '/lib/Service/V2/Billing/CadenceService.php';
+require __DIR__ . '/lib/Service/V2/Billing/Cadences/SpendModifierRuleService.php';
require __DIR__ . '/lib/Service/V2/Billing/CollectionSettingService.php';
require __DIR__ . '/lib/Service/V2/Billing/CollectionSettings/VersionService.php';
require __DIR__ . '/lib/Service/V2/Billing/CustomPricingUnitService.php';
@@ -800,6 +801,7 @@
require __DIR__ . '/lib/Service/V2/Billing/MeterEventSessionService.php';
require __DIR__ . '/lib/Service/V2/Billing/MeterEventStreamService.php';
require __DIR__ . '/lib/Service/V2/Billing/MeteredItemService.php';
+require __DIR__ . '/lib/Service/V2/Billing/OneTimeItemService.php';
require __DIR__ . '/lib/Service/V2/Billing/PricingPlanService.php';
require __DIR__ . '/lib/Service/V2/Billing/PricingPlanSubscriptionService.php';
require __DIR__ . '/lib/Service/V2/Billing/PricingPlanSubscriptions/ComponentService.php';
@@ -808,6 +810,7 @@
require __DIR__ . '/lib/Service/V2/Billing/ProfileService.php';
require __DIR__ . '/lib/Service/V2/Billing/RateCardService.php';
require __DIR__ . '/lib/Service/V2/Billing/RateCardSubscriptionService.php';
+require __DIR__ . '/lib/Service/V2/Billing/RateCards/CustomPricingUnitOverageRateService.php';
require __DIR__ . '/lib/Service/V2/Billing/RateCards/RateService.php';
require __DIR__ . '/lib/Service/V2/Billing/RateCards/VersionService.php';
require __DIR__ . '/lib/Service/V2/Billing/ServiceActionService.php';
@@ -907,6 +910,7 @@
require __DIR__ . '/lib/V2/Billing/BillSetting.php';
require __DIR__ . '/lib/V2/Billing/BillSettingVersion.php';
require __DIR__ . '/lib/V2/Billing/Cadence.php';
+require __DIR__ . '/lib/V2/Billing/CadenceSpendModifier.php';
require __DIR__ . '/lib/V2/Billing/CollectionSetting.php';
require __DIR__ . '/lib/V2/Billing/CollectionSettingVersion.php';
require __DIR__ . '/lib/V2/Billing/CustomPricingUnit.php';
@@ -920,6 +924,7 @@
require __DIR__ . '/lib/V2/Billing/MeterEventAdjustment.php';
require __DIR__ . '/lib/V2/Billing/MeterEventSession.php';
require __DIR__ . '/lib/V2/Billing/MeteredItem.php';
+require __DIR__ . '/lib/V2/Billing/OneTimeItem.php';
require __DIR__ . '/lib/V2/Billing/PricingPlan.php';
require __DIR__ . '/lib/V2/Billing/PricingPlanComponent.php';
require __DIR__ . '/lib/V2/Billing/PricingPlanSubscription.php';
@@ -927,6 +932,7 @@
require __DIR__ . '/lib/V2/Billing/PricingPlanVersion.php';
require __DIR__ . '/lib/V2/Billing/Profile.php';
require __DIR__ . '/lib/V2/Billing/RateCard.php';
+require __DIR__ . '/lib/V2/Billing/RateCardCustomPricingUnitOverageRate.php';
require __DIR__ . '/lib/V2/Billing/RateCardRate.php';
require __DIR__ . '/lib/V2/Billing/RateCardSubscription.php';
require __DIR__ . '/lib/V2/Billing/RateCardVersion.php';
diff --git a/lib/EventData/V2CoreHealthFraudRateIncreasedEventData.php b/lib/EventData/V2CoreHealthFraudRateIncreasedEventData.php
index 5b077c343..74f43011c 100644
--- a/lib/EventData/V2CoreHealthFraudRateIncreasedEventData.php
+++ b/lib/EventData/V2CoreHealthFraudRateIncreasedEventData.php
@@ -7,7 +7,7 @@
/**
* @property string $alert_id The alert ID.
* @property string $grouping_key The grouping key for the alert.
- * @property (object{attack_type: string, impacted_requests: int, realized_fraud_amount: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $impact The user impact.
+ * @property (object{attack_type: string, impacted_requests: int, realized_fraud_amount: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $impact The user impact.
* @property null|int $resolved_at The time when the user experience has returned to expected levels.
* @property int $started_at The time when impact on the user experience was first detected.
* @property string $summary A short description of the alert.
diff --git a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData.php b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData.php
index 9462662f1..230ebd7fe 100644
--- a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData.php
+++ b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData.php
@@ -6,7 +6,7 @@
/**
* @property string $grouping_key The grouping key for the alert.
- * @property (object{approved_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
+ * @property (object{approved_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
* @property int $started_at The time when impact on the user experience was first detected.
* @property string $summary A short description of the alert.
*/
diff --git a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData.php b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData.php
index 59969f13d..6fcb6a760 100644
--- a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData.php
+++ b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData.php
@@ -6,7 +6,7 @@
/**
* @property string $grouping_key The grouping key for the alert.
- * @property (object{approved_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
+ * @property (object{approved_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
* @property int $resolved_at The time when the user experience has returned to expected levels.
* @property int $started_at The time when impact on the user experience was first detected.
* @property string $summary A short description of the alert.
diff --git a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData.php b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData.php
index 7d4caba48..5761f4f3c 100644
--- a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData.php
+++ b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData.php
@@ -7,7 +7,7 @@
/**
* @property string $alert_id The alert ID.
* @property string $grouping_key The grouping key for the alert.
- * @property (object{approved_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
+ * @property (object{approved_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
* @property int $started_at The time when impact on the user experience was first detected.
* @property string $summary A short description of the alert.
*/
diff --git a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData.php b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData.php
index a23e253f9..e07c18554 100644
--- a/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData.php
+++ b/lib/EventData/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData.php
@@ -6,7 +6,7 @@
/**
* @property string $grouping_key The grouping key for the alert.
- * @property (object{approved_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
+ * @property (object{approved_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), approved_impacted_requests?: int, declined_amount?: (object{value: int, currency: string}&\Stripe\StripeObject), declined_impacted_requests?: int}&\Stripe\StripeObject) $impact The user impact.
* @property int $resolved_at The time when the user experience has returned to expected levels.
* @property int $started_at The time when impact on the user experience was first detected.
* @property string $summary A short description of the alert.
diff --git a/lib/Service/V2/Billing/BillingServiceFactory.php b/lib/Service/V2/Billing/BillingServiceFactory.php
index f75d82544..559877f09 100644
--- a/lib/Service/V2/Billing/BillingServiceFactory.php
+++ b/lib/Service/V2/Billing/BillingServiceFactory.php
@@ -20,6 +20,7 @@
* @property MeterEventService $meterEvents
* @property MeterEventSessionService $meterEventSession
* @property MeterEventStreamService $meterEventStream
+ * @property OneTimeItemService $oneTimeItems
* @property PricingPlanService $pricingPlans
* @property PricingPlanSubscriptionService $pricingPlanSubscriptions
* @property ProfileService $profiles
@@ -46,6 +47,7 @@ class BillingServiceFactory extends \Stripe\Service\AbstractServiceFactory
'meterEvents' => MeterEventService::class,
'meterEventSession' => MeterEventSessionService::class,
'meterEventStream' => MeterEventStreamService::class,
+ 'oneTimeItems' => OneTimeItemService::class,
'pricingPlans' => PricingPlanService::class,
'pricingPlanSubscriptions' => PricingPlanSubscriptionService::class,
'profiles' => ProfileService::class,
diff --git a/lib/Service/V2/Billing/CadenceService.php b/lib/Service/V2/Billing/CadenceService.php
index f65761a79..7bdcd4f42 100644
--- a/lib/Service/V2/Billing/CadenceService.php
+++ b/lib/Service/V2/Billing/CadenceService.php
@@ -5,12 +5,20 @@
namespace Stripe\Service\V2\Billing;
/**
+ * @property Cadences\SpendModifierRuleService $spendModifierRules
+ *
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
*/
class CadenceService extends \Stripe\Service\AbstractService
{
+ use \Stripe\Service\ServiceNavigatorTrait;
+
+ protected static $classMap = [
+ 'spendModifierRules' => Cadences\SpendModifierRuleService::class,
+ ];
+
/**
* List Billing Cadences.
*
@@ -88,4 +96,9 @@ public function update($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v2/billing/cadences/%s', $id), $params, $opts);
}
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
}
diff --git a/lib/Service/V2/Billing/Cadences/SpendModifierRuleService.php b/lib/Service/V2/Billing/Cadences/SpendModifierRuleService.php
new file mode 100644
index 000000000..e435a0fac
--- /dev/null
+++ b/lib/Service/V2/Billing/Cadences/SpendModifierRuleService.php
@@ -0,0 +1,46 @@
+
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function all($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v2/billing/cadences/%s/spend_modifier_rules', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieve a Spend Modifier associated with a Billing Cadence.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\CadenceSpendModifier
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function retrieve($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v2/billing/cadences/%s/spend_modifier_rules/%s', $parentId, $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/V2/Billing/IntentService.php b/lib/Service/V2/Billing/IntentService.php
index 5d56de8d4..3d79b69d8 100644
--- a/lib/Service/V2/Billing/IntentService.php
+++ b/lib/Service/V2/Billing/IntentService.php
@@ -67,7 +67,7 @@ public function commit($id, $params = null, $opts = null)
/**
* Create a Billing Intent.
*
- * @param null|array{actions: array{type: string, apply?: array{type: string, invoice_discount_rule?: array{applies_to: string, type: string, percent_off?: array{maximum_applications: array{type: string}, percent_off: string}}}, deactivate?: array{cancellation_details?: array{comment?: string, feedback?: string}, collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, modify?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], new_pricing_plan?: string, new_pricing_plan_version?: string, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string, debit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, remove?: array{type: string, invoice_discount_rule?: string}, subscribe?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, type: string, pricing_plan_subscription_details?: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], metadata?: array, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{debit_proration_behavior: string}}[]}, pricing_plan: string, pricing_plan_version: string}, v1_subscription_details?: array{description?: string, items: array{metadata?: array, price: string, quantity?: int}[], metadata?: array}}}[], currency: string, cadence?: string, cadence_data?: array{billing_cycle: array{interval_count?: int, type: string, day?: array{time?: array{hour: int, minute: int, second: int}}, month?: array{day_of_month: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}, week?: array{day_of_week: int, time?: array{hour: int, minute: int, second: int}}, year?: array{day_of_month?: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}}, payer: array{billing_profile?: string, billing_profile_data?: array{customer: string, default_payment_method?: string}}, settings?: array{bill?: array{id: string, version?: string}, collection?: array{id: string, version?: string}}}} $params
+ * @param null|array{actions: array{type: string, apply?: array{effective_at?: array{type: string}, type: string, invoice_discount_rule?: array{applies_to: string, type: string, percent_off?: array{maximum_applications: array{type: string}, percent_off: string}}, spend_modifier_rule?: array{applies_to: string, type: string, max_billing_period_spend?: array{amount: array{type: string, custom_pricing_unit?: array{value: string}}, custom_pricing_unit_overage_rate: array{id: string}}}}, deactivate?: array{cancellation_details?: array{comment?: string, feedback?: string}, collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, modify?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], new_pricing_plan?: string, new_pricing_plan_version?: string, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string, debit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, remove?: array{effective_at?: array{type: string}, type: string, invoice_discount_rule?: string, spend_modifier_rule?: string}, subscribe?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, type: string, pricing_plan_subscription_details?: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], metadata?: array, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{debit_proration_behavior: string}}[]}, pricing_plan: string, pricing_plan_version: string}, v1_subscription_details?: array{description?: string, items: array{metadata?: array, price: string, quantity?: int}[], metadata?: array}}}[], currency: string, cadence?: string, cadence_data?: array{billing_cycle: array{interval_count?: int, type: string, day?: array{time?: array{hour: int, minute: int, second: int}}, month?: array{day_of_month: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}, week?: array{day_of_week: int, time?: array{hour: int, minute: int, second: int}}, year?: array{day_of_month?: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}}, payer: array{billing_profile?: string, billing_profile_data?: array{customer: string, default_payment_method?: string}}, settings?: array{bill?: array{id: string, version?: string}, collection?: array{id: string, version?: string}}}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Billing\Intent
diff --git a/lib/Service/V2/Billing/OneTimeItemService.php b/lib/Service/V2/Billing/OneTimeItemService.php
new file mode 100644
index 000000000..4622ebe45
--- /dev/null
+++ b/lib/Service/V2/Billing/OneTimeItemService.php
@@ -0,0 +1,75 @@
+
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v2/billing/one_time_items', $params, $opts);
+ }
+
+ /**
+ * Create a One-Time Item object.
+ *
+ * @param null|array{display_name: string, lookup_key?: string, metadata?: array, tax_details?: array{tax_code: string}, unit_label?: string} $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\OneTimeItem
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v2/billing/one_time_items', $params, $opts);
+ }
+
+ /**
+ * Retrieve a One-Time Item object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\OneTimeItem
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v2/billing/one_time_items/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Update a One-Time Item object.
+ *
+ * @param string $id
+ * @param null|array{display_name?: string, lookup_key?: string, metadata?: array, tax_details?: array{tax_code: string}, unit_label?: string} $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\OneTimeItem
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v2/billing/one_time_items/%s', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/V2/Billing/RateCardService.php b/lib/Service/V2/Billing/RateCardService.php
index 10e80c28d..e1b2d95bf 100644
--- a/lib/Service/V2/Billing/RateCardService.php
+++ b/lib/Service/V2/Billing/RateCardService.php
@@ -5,6 +5,7 @@
namespace Stripe\Service\V2\Billing;
/**
+ * @property RateCards\CustomPricingUnitOverageRateService $customPricingUnitOverageRates
* @property RateCards\RateService $rates
* @property RateCards\VersionService $versions
*
@@ -17,6 +18,7 @@ class RateCardService extends \Stripe\Service\AbstractService
use \Stripe\Service\ServiceNavigatorTrait;
protected static $classMap = [
+ 'customPricingUnitOverageRates' => RateCards\CustomPricingUnitOverageRateService::class,
'rates' => RateCards\RateService::class,
'versions' => RateCards\VersionService::class,
];
diff --git a/lib/Service/V2/Billing/RateCards/CustomPricingUnitOverageRateService.php b/lib/Service/V2/Billing/RateCards/CustomPricingUnitOverageRateService.php
new file mode 100644
index 000000000..56c7cceea
--- /dev/null
+++ b/lib/Service/V2/Billing/RateCards/CustomPricingUnitOverageRateService.php
@@ -0,0 +1,79 @@
+
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function all($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates', $id), $params, $opts);
+ }
+
+ /**
+ * Create a Rate Card Custom Pricing Unit Overage Rate on a Rate Card.
+ *
+ * @param string $id
+ * @param null|array{custom_pricing_unit: string, metadata?: array, one_time_item: string, unit_amount: string} $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\RateCardCustomPricingUnitOverageRate
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function create($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates', $id), $params, $opts);
+ }
+
+ /**
+ * Delete a Rate Card Custom Pricing Unit Overage Rate from a Rate Card.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\DeletedObject
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function delete($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieve a Rate Card Custom Pricing Unit Overage Rate from a Rate Card.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\V2\Billing\RateCardCustomPricingUnitOverageRate
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function retrieve($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates/%s', $parentId, $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/V2/Billing/ServiceActionService.php b/lib/Service/V2/Billing/ServiceActionService.php
index 6dc036f59..4960490a7 100644
--- a/lib/Service/V2/Billing/ServiceActionService.php
+++ b/lib/Service/V2/Billing/ServiceActionService.php
@@ -14,7 +14,7 @@ class ServiceActionService extends \Stripe\Service\AbstractService
/**
* Create a Service Action object.
*
- * @param null|array{lookup_key?: string, service_interval: string, service_interval_count: int, type: string, credit_grant?: array{amount: array{type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{value?: int, currency?: string}}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, credit_grant_per_tenant?: array{amount: array{type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{value?: int, currency?: string}}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, grant_condition: array{type: string, meter_event_first_per_period?: array{meter_segment_conditions: array{type: string, dimension?: array{payload_key: string, value: string}}[]}}, name: string, priority?: int}} $params
+ * @param null|array{lookup_key?: string, service_interval: string, service_interval_count: int, type: string, credit_grant?: array{amount: array{type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{value: int, currency: string}}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, credit_grant_per_tenant?: array{amount: array{type: string, custom_pricing_unit?: array{id: string, value: string}, monetary?: array{value: int, currency: string}}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, grant_condition: array{type: string, meter_event_first_per_period?: array{meter_segment_conditions: array{type: string, dimension?: array{payload_key: string, value: string}}[]}}, name: string, priority?: int}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Billing\ServiceAction
diff --git a/lib/Service/V2/Core/AccountService.php b/lib/Service/V2/Core/AccountService.php
index b32202b3d..9f20ce9b5 100644
--- a/lib/Service/V2/Core/AccountService.php
+++ b/lib/Service/V2/Core/AccountService.php
@@ -61,7 +61,7 @@ public function close($id, $params = null, $opts = null)
* can be configured as any or all of the following configurations: Customer,
* Merchant and/or Recipient.
*
- * @param null|array{account_token?: string, configuration?: array{card_creator?: array{capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{requested: bool}, spend_card?: array{requested: bool}}, cross_river_bank?: array{charge_card?: array{requested: bool}, spend_card?: array{requested: bool}}, lead?: array{prepaid_card?: array{requested: bool}}, stripe?: array{charge_card?: array{requested: bool}, prepaid_card?: array{requested: bool}}}}}, customer?: array{automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string}, billing?: array{invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{requested: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{requested: bool}, acss_debit_payments?: array{requested: bool}, affirm_payments?: array{requested: bool}, afterpay_clearpay_payments?: array{requested: bool}, alma_payments?: array{requested: bool}, amazon_pay_payments?: array{requested: bool}, au_becs_debit_payments?: array{requested: bool}, bacs_debit_payments?: array{requested: bool}, bancontact_payments?: array{requested: bool}, blik_payments?: array{requested: bool}, boleto_payments?: array{requested: bool}, card_payments?: array{requested: bool}, cartes_bancaires_payments?: array{requested: bool}, cashapp_payments?: array{requested: bool}, eps_payments?: array{requested: bool}, fpx_payments?: array{requested: bool}, gb_bank_transfer_payments?: array{requested: bool}, grabpay_payments?: array{requested: bool}, ideal_payments?: array{requested: bool}, jcb_payments?: array{requested: bool}, jp_bank_transfer_payments?: array{requested: bool}, kakao_pay_payments?: array{requested: bool}, klarna_payments?: array{requested: bool}, konbini_payments?: array{requested: bool}, kr_card_payments?: array{requested: bool}, link_payments?: array{requested: bool}, mobilepay_payments?: array{requested: bool}, multibanco_payments?: array{requested: bool}, mx_bank_transfer_payments?: array{requested: bool}, naver_pay_payments?: array{requested: bool}, oxxo_payments?: array{requested: bool}, p24_payments?: array{requested: bool}, pay_by_bank_payments?: array{requested: bool}, payco_payments?: array{requested: bool}, paynow_payments?: array{requested: bool}, promptpay_payments?: array{requested: bool}, revolut_pay_payments?: array{requested: bool}, samsung_pay_payments?: array{requested: bool}, sepa_bank_transfer_payments?: array{requested: bool}, sepa_debit_payments?: array{requested: bool}, swish_payments?: array{requested: bool}, twint_payments?: array{requested: bool}, us_bank_transfer_payments?: array{requested: bool}, zip_payments?: array{requested: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{capabilities?: array{bank_accounts?: array{instant?: array{requested: bool}, local?: array{requested: bool}, wire?: array{requested: bool}}, cards?: array{requested: bool}, crypto_wallets?: array{requested: bool}, stripe_balance?: array{stripe_transfers?: array{requested: bool}}}}, storer?: array{capabilities?: array{financial_addresses?: array{bank_accounts?: array{requested: bool}, crypto_wallets?: array{requested: bool}}, holds_currencies?: array{eur?: array{requested: bool}, gbp?: array{requested: bool}, usd?: array{requested: bool}, usdc?: array{requested: bool}}, inbound_transfers?: array{bank_accounts?: array{requested: bool}}, outbound_payments?: array{bank_accounts?: array{requested: bool}, cards?: array{requested: bool}, crypto_wallets?: array{requested: bool}, financial_accounts?: array{requested: bool}}, outbound_transfers?: array{bank_accounts?: array{requested: bool}, crypto_wallets?: array{requested: bool}, financial_accounts?: array{requested: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string}}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date: string, ip: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}}, crypto_storer?: array{date: string, ip: string, user_agent?: string}, storer?: array{date: string, ip: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value?: int, currency?: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value?: int, currency?: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params
+ * @param null|array{account_token?: string, configuration?: array{card_creator?: array{capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{requested: bool}, spend_card?: array{requested: bool}}, cross_river_bank?: array{charge_card?: array{requested: bool}, spend_card?: array{requested: bool}}, lead?: array{prepaid_card?: array{requested: bool}}, stripe?: array{charge_card?: array{requested: bool}, prepaid_card?: array{requested: bool}}}}}, customer?: array{automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string}, billing?: array{invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{requested: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{requested: bool}, acss_debit_payments?: array{requested: bool}, affirm_payments?: array{requested: bool}, afterpay_clearpay_payments?: array{requested: bool}, alma_payments?: array{requested: bool}, amazon_pay_payments?: array{requested: bool}, au_becs_debit_payments?: array{requested: bool}, bacs_debit_payments?: array{requested: bool}, bancontact_payments?: array{requested: bool}, blik_payments?: array{requested: bool}, boleto_payments?: array{requested: bool}, card_payments?: array{requested: bool}, cartes_bancaires_payments?: array{requested: bool}, cashapp_payments?: array{requested: bool}, eps_payments?: array{requested: bool}, fpx_payments?: array{requested: bool}, gb_bank_transfer_payments?: array{requested: bool}, grabpay_payments?: array{requested: bool}, ideal_payments?: array{requested: bool}, jcb_payments?: array{requested: bool}, jp_bank_transfer_payments?: array{requested: bool}, kakao_pay_payments?: array{requested: bool}, klarna_payments?: array{requested: bool}, konbini_payments?: array{requested: bool}, kr_card_payments?: array{requested: bool}, link_payments?: array{requested: bool}, mobilepay_payments?: array{requested: bool}, multibanco_payments?: array{requested: bool}, mx_bank_transfer_payments?: array{requested: bool}, naver_pay_payments?: array{requested: bool}, oxxo_payments?: array{requested: bool}, p24_payments?: array{requested: bool}, pay_by_bank_payments?: array{requested: bool}, payco_payments?: array{requested: bool}, paynow_payments?: array{requested: bool}, promptpay_payments?: array{requested: bool}, revolut_pay_payments?: array{requested: bool}, samsung_pay_payments?: array{requested: bool}, sepa_bank_transfer_payments?: array{requested: bool}, sepa_debit_payments?: array{requested: bool}, swish_payments?: array{requested: bool}, twint_payments?: array{requested: bool}, us_bank_transfer_payments?: array{requested: bool}, zip_payments?: array{requested: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{capabilities?: array{bank_accounts?: array{instant?: array{requested: bool}, local?: array{requested: bool}, wire?: array{requested: bool}}, cards?: array{requested: bool}, crypto_wallets?: array{requested: bool}, stripe_balance?: array{stripe_transfers?: array{requested: bool}}}}, storer?: array{capabilities?: array{financial_addresses?: array{bank_accounts?: array{requested: bool}, crypto_wallets?: array{requested: bool}}, holds_currencies?: array{eur?: array{requested: bool}, gbp?: array{requested: bool}, usd?: array{requested: bool}, usdc?: array{requested: bool}}, inbound_transfers?: array{bank_accounts?: array{requested: bool}}, outbound_payments?: array{bank_accounts?: array{requested: bool}, cards?: array{requested: bool}, crypto_wallets?: array{requested: bool}, financial_accounts?: array{requested: bool}}, outbound_transfers?: array{bank_accounts?: array{requested: bool}, crypto_wallets?: array{requested: bool}, financial_accounts?: array{requested: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string}}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date: string, ip: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}}, crypto_storer?: array{date: string, ip: string, user_agent?: string}, storer?: array{date: string, ip: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value: int, currency: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value: int, currency: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Core\Account
@@ -93,7 +93,7 @@ public function retrieve($id, $params = null, $opts = null)
* Updates the details of an Account.
*
* @param string $id
- * @param null|array{account_token?: string, configuration?: array{card_creator?: array{applied?: bool, capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{requested?: bool}, spend_card?: array{requested?: bool}}, cross_river_bank?: array{charge_card?: array{requested?: bool}, spend_card?: array{requested?: bool}}, lead?: array{prepaid_card?: array{requested?: bool}}, stripe?: array{charge_card?: array{requested?: bool}, prepaid_card?: array{requested?: bool}}}}}, customer?: array{applied?: bool, automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string, validate_location?: string}, billing?: array{default_payment_method?: string, invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{requested?: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{applied?: bool, bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{requested?: bool}, acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_payments?: array{requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, twint_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{applied?: bool, capabilities?: array{bank_accounts?: array{instant?: array{requested?: bool}, local?: array{requested?: bool}, wire?: array{requested?: bool}}, cards?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, stripe_balance?: array{stripe_transfers?: array{requested?: bool}}}, default_outbound_destination?: string}, storer?: array{applied?: bool, capabilities?: array{financial_addresses?: array{bank_accounts?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}}, holds_currencies?: array{eur?: array{requested?: bool}, gbp?: array{requested?: bool}, usd?: array{requested?: bool}, usdc?: array{requested?: bool}}, inbound_transfers?: array{bank_accounts?: array{requested?: bool}}, outbound_payments?: array{bank_accounts?: array{requested?: bool}, cards?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, financial_accounts?: array{requested?: bool}}, outbound_transfers?: array{bank_accounts?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, financial_accounts?: array{requested?: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string}}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date?: string, ip?: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}}, crypto_storer?: array{date?: string, ip?: string, user_agent?: string}, storer?: array{date?: string, ip?: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value?: int, currency?: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value?: int, currency?: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params
+ * @param null|array{account_token?: string, configuration?: array{card_creator?: array{applied?: bool, capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{requested?: bool}, spend_card?: array{requested?: bool}}, cross_river_bank?: array{charge_card?: array{requested?: bool}, spend_card?: array{requested?: bool}}, lead?: array{prepaid_card?: array{requested?: bool}}, stripe?: array{charge_card?: array{requested?: bool}, prepaid_card?: array{requested?: bool}}}}}, customer?: array{applied?: bool, automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string, validate_location?: string}, billing?: array{default_payment_method?: string, invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{requested?: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{applied?: bool, bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{requested?: bool}, acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_payments?: array{requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, twint_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{applied?: bool, capabilities?: array{bank_accounts?: array{instant?: array{requested?: bool}, local?: array{requested?: bool}, wire?: array{requested?: bool}}, cards?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, stripe_balance?: array{stripe_transfers?: array{requested?: bool}}}, default_outbound_destination?: string}, storer?: array{applied?: bool, capabilities?: array{financial_addresses?: array{bank_accounts?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}}, holds_currencies?: array{eur?: array{requested?: bool}, gbp?: array{requested?: bool}, usd?: array{requested?: bool}, usdc?: array{requested?: bool}}, inbound_transfers?: array{bank_accounts?: array{requested?: bool}}, outbound_payments?: array{bank_accounts?: array{requested?: bool}, cards?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, financial_accounts?: array{requested?: bool}}, outbound_transfers?: array{bank_accounts?: array{requested?: bool}, crypto_wallets?: array{requested?: bool}, financial_accounts?: array{requested?: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string}}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date?: string, ip?: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}}, crypto_storer?: array{date?: string, ip?: string, user_agent?: string}, storer?: array{date?: string, ip?: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value: int, currency: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value: int, currency: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Core\Account
diff --git a/lib/Service/V2/Core/AccountTokenService.php b/lib/Service/V2/Core/AccountTokenService.php
index f21327899..cc911dc24 100644
--- a/lib/Service/V2/Core/AccountTokenService.php
+++ b/lib/Service/V2/Core/AccountTokenService.php
@@ -14,7 +14,7 @@ class AccountTokenService extends \Stripe\Service\AbstractService
/**
* Creates an Account Token.
*
- * @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_storer?: array{shown_and_accepted?: bool}, storer?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value?: int, currency?: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value?: int, currency?: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params
+ * @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_storer?: array{shown_and_accepted?: bool}, storer?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value: int, currency: string}, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value: int, currency: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Core\AccountToken
diff --git a/lib/Service/V2/MoneyManagement/CurrencyConversionService.php b/lib/Service/V2/MoneyManagement/CurrencyConversionService.php
index 4a5819952..263afefbc 100644
--- a/lib/Service/V2/MoneyManagement/CurrencyConversionService.php
+++ b/lib/Service/V2/MoneyManagement/CurrencyConversionService.php
@@ -30,7 +30,7 @@ public function all($params = null, $opts = null)
/**
* Create a CurrencyConversion.
*
- * @param null|array{financial_account: string, from: array{amount?: array{value?: int, currency?: string}, currency?: string}, to: array{amount?: array{value?: int, currency?: string}, currency?: string}} $params
+ * @param null|array{financial_account: string, from: array{amount?: array{value: int, currency: string}, currency?: string}, to: array{amount?: array{value: int, currency: string}, currency?: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\MoneyManagement\CurrencyConversion
diff --git a/lib/Service/V2/MoneyManagement/InboundTransferService.php b/lib/Service/V2/MoneyManagement/InboundTransferService.php
index eeb71c0e9..fee4740d2 100644
--- a/lib/Service/V2/MoneyManagement/InboundTransferService.php
+++ b/lib/Service/V2/MoneyManagement/InboundTransferService.php
@@ -29,7 +29,7 @@ public function all($params = null, $opts = null)
/**
* InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
*
- * @param null|array{amount: array{value?: int, currency?: string}, description?: string, from: array{currency?: string, payment_method: string}, to: array{currency: string, financial_account: string}} $params
+ * @param null|array{amount: array{value: int, currency: string}, description?: string, from: array{currency?: string, payment_method: string}, to: array{currency: string, financial_account: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\MoneyManagement\InboundTransfer
diff --git a/lib/Service/V2/MoneyManagement/OutboundPaymentQuoteService.php b/lib/Service/V2/MoneyManagement/OutboundPaymentQuoteService.php
index cd4cc60a8..236f9299b 100644
--- a/lib/Service/V2/MoneyManagement/OutboundPaymentQuoteService.php
+++ b/lib/Service/V2/MoneyManagement/OutboundPaymentQuoteService.php
@@ -14,7 +14,7 @@ class OutboundPaymentQuoteService extends \Stripe\Service\AbstractService
/**
* Creates an OutboundPaymentQuote usable in an OutboundPayment.
*
- * @param null|array{amount: array{value?: int, currency?: string}, delivery_options?: array{speed?: string, bank_account?: string}, from: array{currency: string, financial_account: string}, to: array{currency?: string, payout_method?: string, recipient: string}} $params
+ * @param null|array{amount: array{value: int, currency: string}, delivery_options?: array{speed?: string, bank_account?: string}, from: array{currency: string, financial_account: string}, to: array{currency?: string, payout_method?: string, recipient: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\MoneyManagement\OutboundPaymentQuote
diff --git a/lib/Service/V2/MoneyManagement/OutboundPaymentService.php b/lib/Service/V2/MoneyManagement/OutboundPaymentService.php
index c3a55e212..80c8cab22 100644
--- a/lib/Service/V2/MoneyManagement/OutboundPaymentService.php
+++ b/lib/Service/V2/MoneyManagement/OutboundPaymentService.php
@@ -46,7 +46,7 @@ public function cancel($id, $params = null, $opts = null)
/**
* Creates an OutboundPayment.
*
- * @param null|array{amount: array{value?: int, currency?: string}, delivery_options?: array{speed?: string, bank_account?: string, paper_check?: array{memo?: string, shipping_speed?: string, signature: string}}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, outbound_payment_quote?: string, recipient_notification?: array{setting: string}, recipient_verification?: string, to: array{currency?: string, payout_method?: string, recipient: string}} $params
+ * @param null|array{amount: array{value: int, currency: string}, delivery_options?: array{speed?: string, bank_account?: string, paper_check?: array{memo?: string, shipping_speed?: string, signature: string}}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, outbound_payment_quote?: string, recipient_notification?: array{setting: string}, recipient_verification?: string, to: array{currency?: string, payout_method?: string, recipient: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\MoneyManagement\OutboundPayment
diff --git a/lib/Service/V2/MoneyManagement/OutboundTransferService.php b/lib/Service/V2/MoneyManagement/OutboundTransferService.php
index 796fd8127..39a5be236 100644
--- a/lib/Service/V2/MoneyManagement/OutboundTransferService.php
+++ b/lib/Service/V2/MoneyManagement/OutboundTransferService.php
@@ -46,7 +46,7 @@ public function cancel($id, $params = null, $opts = null)
/**
* Creates an OutboundTransfer.
*
- * @param null|array{amount: array{value?: int, currency?: string}, delivery_options?: array{bank_account?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, recipient_verification?: string, to: array{currency?: string, payout_method: string}} $params
+ * @param null|array{amount: array{value: int, currency: string}, delivery_options?: array{bank_account?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, recipient_verification?: string, to: array{currency?: string, payout_method: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\MoneyManagement\OutboundTransfer
diff --git a/lib/Service/V2/Payments/OffSessionPaymentService.php b/lib/Service/V2/Payments/OffSessionPaymentService.php
index 3237feace..60787d149 100644
--- a/lib/Service/V2/Payments/OffSessionPaymentService.php
+++ b/lib/Service/V2/Payments/OffSessionPaymentService.php
@@ -61,7 +61,7 @@ public function capture($id, $params = null, $opts = null)
/**
* Creates an OffSessionPayment object.
*
- * @param null|array{amount: array{value?: int, currency?: string}, cadence: string, capture?: array{capture_method: string}, customer: string, metadata: array, on_behalf_of?: string, payment_method: string, payment_method_options?: array{card?: array{network_transaction_id: string}}, payments_orchestration?: array{enabled: bool}, retry_details?: array{retry_policy?: string, retry_strategy?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, test_clock?: string, transfer_data?: array{amount?: int, destination: string}} $params
+ * @param null|array{amount: array{value: int, currency: string}, cadence: string, capture?: array{capture_method: string}, customer: string, metadata: array, on_behalf_of?: string, payment_method: string, payment_method_options?: array{card?: array{network_transaction_id: string}}, payments_orchestration?: array{enabled: bool}, retry_details?: array{retry_policy?: string, retry_strategy?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, test_clock?: string, transfer_data?: array{amount?: int, destination: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Payments\OffSessionPayment
diff --git a/lib/Service/V2/Payments/SettlementAllocationIntentService.php b/lib/Service/V2/Payments/SettlementAllocationIntentService.php
index 7006ae802..8875ed395 100644
--- a/lib/Service/V2/Payments/SettlementAllocationIntentService.php
+++ b/lib/Service/V2/Payments/SettlementAllocationIntentService.php
@@ -54,7 +54,7 @@ public function cancel($id, $params = null, $opts = null)
/**
* Create a new SettlementAllocationIntent.
*
- * @param null|array{amount: array{value?: int, currency?: string}, expected_settlement_date: string, financial_account: string, metadata?: array, reference: string} $params
+ * @param null|array{amount: array{value: int, currency: string}, expected_settlement_date: string, financial_account: string, metadata?: array, reference: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Payments\SettlementAllocationIntent
@@ -110,7 +110,7 @@ public function submit($id, $params = null, $opts = null)
* moves it to `submitted`.
*
* @param string $id
- * @param null|array{amount?: array{value?: int, currency?: string}, reference?: string} $params
+ * @param null|array{amount?: array{value: int, currency: string}, reference?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Payments\SettlementAllocationIntent
diff --git a/lib/Service/V2/Payments/SettlementAllocationIntents/SplitService.php b/lib/Service/V2/Payments/SettlementAllocationIntents/SplitService.php
index 2e38b103d..5cc855f26 100644
--- a/lib/Service/V2/Payments/SettlementAllocationIntents/SplitService.php
+++ b/lib/Service/V2/Payments/SettlementAllocationIntents/SplitService.php
@@ -48,7 +48,7 @@ public function cancel($parentId, $id, $params = null, $opts = null)
* Create SettlementAllocationIntentSplit API.
*
* @param string $id
- * @param null|array{account: string, amount: array{value?: int, currency?: string}, metadata?: array, type: string} $params
+ * @param null|array{account: string, amount: array{value: int, currency: string}, metadata?: array, type: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\Payments\SettlementAllocationIntentSplit
diff --git a/lib/Service/V2/TestHelpers/FinancialAddressService.php b/lib/Service/V2/TestHelpers/FinancialAddressService.php
index 22571be51..9fe2c4777 100644
--- a/lib/Service/V2/TestHelpers/FinancialAddressService.php
+++ b/lib/Service/V2/TestHelpers/FinancialAddressService.php
@@ -16,7 +16,7 @@ class FinancialAddressService extends \Stripe\Service\AbstractService
* to add virtual funds and increase your balance for testing.
*
* @param string $id
- * @param null|array{amount: array{value?: int, currency?: string}, network: string, statement_descriptor?: string} $params
+ * @param null|array{amount: array{value: int, currency: string}, network: string, statement_descriptor?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\V2\FinancialAddressCreditSimulation
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index b8cd6d06f..8e4f54261 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -206,6 +206,7 @@ class ObjectTypes
\Stripe\V2\Billing\BillSetting::OBJECT_NAME => \Stripe\V2\Billing\BillSetting::class,
\Stripe\V2\Billing\BillSettingVersion::OBJECT_NAME => \Stripe\V2\Billing\BillSettingVersion::class,
\Stripe\V2\Billing\Cadence::OBJECT_NAME => \Stripe\V2\Billing\Cadence::class,
+ \Stripe\V2\Billing\CadenceSpendModifier::OBJECT_NAME => \Stripe\V2\Billing\CadenceSpendModifier::class,
\Stripe\V2\Billing\CollectionSetting::OBJECT_NAME => \Stripe\V2\Billing\CollectionSetting::class,
\Stripe\V2\Billing\CollectionSettingVersion::OBJECT_NAME => \Stripe\V2\Billing\CollectionSettingVersion::class,
\Stripe\V2\Billing\CustomPricingUnit::OBJECT_NAME => \Stripe\V2\Billing\CustomPricingUnit::class,
@@ -219,6 +220,7 @@ class ObjectTypes
\Stripe\V2\Billing\MeterEvent::OBJECT_NAME => \Stripe\V2\Billing\MeterEvent::class,
\Stripe\V2\Billing\MeterEventAdjustment::OBJECT_NAME => \Stripe\V2\Billing\MeterEventAdjustment::class,
\Stripe\V2\Billing\MeterEventSession::OBJECT_NAME => \Stripe\V2\Billing\MeterEventSession::class,
+ \Stripe\V2\Billing\OneTimeItem::OBJECT_NAME => \Stripe\V2\Billing\OneTimeItem::class,
\Stripe\V2\Billing\PricingPlan::OBJECT_NAME => \Stripe\V2\Billing\PricingPlan::class,
\Stripe\V2\Billing\PricingPlanComponent::OBJECT_NAME => \Stripe\V2\Billing\PricingPlanComponent::class,
\Stripe\V2\Billing\PricingPlanSubscription::OBJECT_NAME => \Stripe\V2\Billing\PricingPlanSubscription::class,
@@ -226,6 +228,7 @@ class ObjectTypes
\Stripe\V2\Billing\PricingPlanVersion::OBJECT_NAME => \Stripe\V2\Billing\PricingPlanVersion::class,
\Stripe\V2\Billing\Profile::OBJECT_NAME => \Stripe\V2\Billing\Profile::class,
\Stripe\V2\Billing\RateCard::OBJECT_NAME => \Stripe\V2\Billing\RateCard::class,
+ \Stripe\V2\Billing\RateCardCustomPricingUnitOverageRate::OBJECT_NAME => \Stripe\V2\Billing\RateCardCustomPricingUnitOverageRate::class,
\Stripe\V2\Billing\RateCardRate::OBJECT_NAME => \Stripe\V2\Billing\RateCardRate::class,
\Stripe\V2\Billing\RateCardSubscription::OBJECT_NAME => \Stripe\V2\Billing\RateCardSubscription::class,
\Stripe\V2\Billing\RateCardVersion::OBJECT_NAME => \Stripe\V2\Billing\RateCardVersion::class,
diff --git a/lib/V2/Billing/CadenceSpendModifier.php b/lib/V2/Billing/CadenceSpendModifier.php
new file mode 100644
index 000000000..c4d15b1d8
--- /dev/null
+++ b/lib/V2/Billing/CadenceSpendModifier.php
@@ -0,0 +1,21 @@
+true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|(object{alert: string, amount: (object{custom_pricing_unit?: (object{value: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), custom_pricing_unit_overage_rate: (object{id: string}&\Stripe\StripeObject), effective_from: int, effective_until?: int}&\Stripe\StripeObject) $max_billing_period_spend Max invoice spend details. Present if type is max_billing_period_spend.
+ * @property string $type The type of the spend modifier.
+ */
+class CadenceSpendModifier extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'v2.billing.cadence_spend_modifier';
+}
diff --git a/lib/V2/Billing/IntentAction.php b/lib/V2/Billing/IntentAction.php
index 44993f4a0..b6d64ecda 100644
--- a/lib/V2/Billing/IntentAction.php
+++ b/lib/V2/Billing/IntentAction.php
@@ -7,12 +7,12 @@
/**
* @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 of the object field.
- * @property null|(object{type: string, invoice_discount_rule?: (object{applies_to: string, invoice_discount_rule?: string, type: string, percent_off?: (object{maximum_applications: (object{type: string}&\Stripe\StripeObject), percent_off: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $apply Details for an apply action.
+ * @property null|(object{effective_at?: (object{type: string}&\Stripe\StripeObject), type: string, invoice_discount_rule?: (object{applies_to: string, invoice_discount_rule?: string, type: string, percent_off?: (object{maximum_applications: (object{type: string}&\Stripe\StripeObject), percent_off: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_modifier_rule?: (object{applies_to: string, id: string, type: string, max_billing_period_spend?: (object{amount: (object{type: string, custom_pricing_unit?: (object{value: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), custom_pricing_unit_overage_rate: (object{id: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $apply Details for an apply action.
* @property int $created Time at which the object was created.
* @property null|(object{cancellation_details?: (object{comment?: string, feedback?: string}&\Stripe\StripeObject), collect_at: string, effective_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), type: string, pricing_plan_subscription_details?: (object{overrides?: (object{partial_period_behaviors: (object{type: string, license_fee?: (object{credit_proration_behavior: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), pricing_plan_subscription: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $deactivate Details for a deactivate action.
* @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|(object{collect_at: string, effective_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), type: string, pricing_plan_subscription_details?: (object{component_configurations: (object{quantity?: int, lookup_key?: string, pricing_plan_component?: string}&\Stripe\StripeObject)[], new_pricing_plan: string, new_pricing_plan_version: string, overrides?: (object{partial_period_behaviors: (object{type: string, license_fee?: (object{credit_proration_behavior: string, debit_proration_behavior: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), pricing_plan_subscription: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $modify Details for a modify action.
- * @property null|(object{type: string, invoice_discount_rule?: string}&\Stripe\StripeObject) $remove Details for a remove action.
+ * @property null|(object{effective_at?: (object{type: string}&\Stripe\StripeObject), type: string, invoice_discount_rule?: string, spend_modifier_rule?: string}&\Stripe\StripeObject) $remove Details for a remove action.
* @property null|(object{collect_at: string, effective_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), type: string, pricing_plan_subscription_details?: (object{component_configurations: (object{quantity?: int, lookup_key?: string, pricing_plan_component?: string}&\Stripe\StripeObject)[], metadata?: \Stripe\StripeObject, overrides?: (object{partial_period_behaviors: (object{type: string, license_fee?: (object{debit_proration_behavior: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), pricing_plan: string, pricing_plan_subscription?: string, pricing_plan_version: string}&\Stripe\StripeObject), v1_subscription_details?: (object{description?: string, items: (object{metadata?: \Stripe\StripeObject, price: string, quantity?: int}&\Stripe\StripeObject)[], metadata?: \Stripe\StripeObject}&\Stripe\StripeObject)}&\Stripe\StripeObject) $subscribe Details for a subscribe action.
* @property string $type Type of the Billing Intent Action.
*/
diff --git a/lib/V2/Billing/OneTimeItem.php b/lib/V2/Billing/OneTimeItem.php
new file mode 100644
index 000000000..56949fba1
--- /dev/null
+++ b/lib/V2/Billing/OneTimeItem.php
@@ -0,0 +1,24 @@
+true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $lookup_key An internal key you can use to search for a particular one-time item. Maximum length of 200 characters.
+ * @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|(object{tax_code: string}&\Stripe\StripeObject) $tax_details Stripe Tax details.
+ * @property null|string $unit_label The unit to use when displaying prices for this one-time item. For example, set this field to "credit" for the display to show "(price) per credit". Maximum length of 100 characters.
+ */
+class OneTimeItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'v2.billing.one_time_item';
+}
diff --git a/lib/V2/Billing/RateCardCustomPricingUnitOverageRate.php b/lib/V2/Billing/RateCardCustomPricingUnitOverageRate.php
new file mode 100644
index 000000000..6f38bf7c3
--- /dev/null
+++ b/lib/V2/Billing/RateCardCustomPricingUnitOverageRate.php
@@ -0,0 +1,26 @@
+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 OneTimeItem $one_time_item A one-time item represents a product that can be charged as a one-time line item, used for overage charges when custom pricing unit credits are exhausted.
+ * @property string $rate_card The ID of the Rate Card this overage rate belongs to.
+ * @property string $rate_card_version The ID of the Rate Card Version this overage rate was created on.
+ * @property string $unit_amount The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places.
+ */
+class RateCardCustomPricingUnitOverageRate extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'v2.billing.rate_card_custom_pricing_unit_overage_rate';
+}
diff --git a/lib/V2/Billing/ServiceAction.php b/lib/V2/Billing/ServiceAction.php
index 2a15e0228..da4105166 100644
--- a/lib/V2/Billing/ServiceAction.php
+++ b/lib/V2/Billing/ServiceAction.php
@@ -8,8 +8,8 @@
* @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 of the object field.
* @property int $created Timestamp of when the object was created.
- * @property null|(object{amount: (object{type: string, custom_pricing_unit?: (object{custom_pricing_unit_details?: CustomPricingUnit, id: string, value: string}&\Stripe\StripeObject), monetary?: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject) $credit_grant Details for the credit grant. Provided only if type is "credit_grant".
- * @property null|(object{amount: (object{type: string, custom_pricing_unit?: (object{custom_pricing_unit_details?: CustomPricingUnit, id: string, value: string}&\Stripe\StripeObject), monetary?: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject) $credit_grant_per_tenant Details for the credit grant per tenant. Provided only if type is "credit_grant_per_tenant".
+ * @property null|(object{amount: (object{type: string, custom_pricing_unit?: (object{custom_pricing_unit_details?: CustomPricingUnit, id: string, value: string}&\Stripe\StripeObject), monetary?: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject) $credit_grant Details for the credit grant. Provided only if type is "credit_grant".
+ * @property null|(object{amount: (object{type: string, custom_pricing_unit?: (object{custom_pricing_unit_details?: CustomPricingUnit, id: string, value: string}&\Stripe\StripeObject), monetary?: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject) $credit_grant_per_tenant Details for the credit grant per tenant. Provided only if type is "credit_grant_per_tenant".
* @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 $lookup_key An internal key you can use to search for this service action.
* @property string $service_interval The interval for assessing service.
diff --git a/lib/V2/Core/Account.php b/lib/V2/Core/Account.php
index fcf61d1bd..bc843ea16 100644
--- a/lib/V2/Core/Account.php
+++ b/lib/V2/Core/Account.php
@@ -19,7 +19,7 @@
* @property null|(object{currency?: string, locales?: string[], profile?: (object{business_url?: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject), responsibilities: (object{fees_collector?: string, losses_collector?: string, requirements_collector: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $defaults Default values for settings shared across Account configurations.
* @property null|string $display_name A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
* @property null|(object{entries?: (object{awaiting_action_from: string, description: string, errors: (object{code: string, description: string}&\Stripe\StripeObject)[], impact: (object{restricts_capabilities?: (object{capability: string, configuration: string, deadline: (object{status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), minimum_deadline: (object{status: string}&\Stripe\StripeObject), reference?: (object{inquiry?: string, resource?: string, type: string}&\Stripe\StripeObject), requested_reasons: (object{code: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], minimum_transition_date?: int, summary?: (object{minimum_deadline?: (object{status: string, time?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $future_requirements Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when.
- * @property null|(object{attestations?: (object{directorship_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), ownership_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), persons_provided?: (object{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}&\Stripe\StripeObject), representative_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), card_creator?: (object{commercial?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), crypto_storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), business_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), annual_revenue?: (object{amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject), fiscal_year_end?: string}&\Stripe\StripeObject), compliance_screening_description?: string, documents?: (object{bank_account_ownership_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_license?: (object{files: string[], type: string}&\Stripe\StripeObject), company_memorandum_of_association?: (object{files: string[], type: string}&\Stripe\StripeObject), company_ministerial_decree?: (object{files: string[], type: string}&\Stripe\StripeObject), company_registration_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_tax_id_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_address?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_registration?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_ultimate_beneficial_ownership?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), estimated_worker_count?: int, id_numbers?: (object{registrar?: string, type: string}&\Stripe\StripeObject)[], monthly_estimated_revenue?: (object{amount?: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), phone?: string, registered_name?: string, registration_date?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{registered_name?: string}&\Stripe\StripeObject), kanji?: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), structure?: string}&\Stripe\StripeObject), country?: string, entity_type?: string, individual?: (object{account: string, additional_addresses?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}&\Stripe\StripeObject)[], additional_names?: (object{full_name?: string, given_name?: string, purpose: string, surname?: string}&\Stripe\StripeObject)[], additional_terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), created: int, date_of_birth?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), documents?: (object{company_authorization?: (object{files: string[], type: string}&\Stripe\StripeObject), passport?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), secondary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), visa?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), email?: string, given_name?: string, id: string, id_numbers?: (object{type: string}&\Stripe\StripeObject)[], legal_gender?: string, metadata?: \Stripe\StripeObject, nationalities?: string[], object: string, phone?: string, political_exposure?: string, relationship?: (object{authorizer?: bool, director?: bool, executive?: bool, legal_guardian?: bool, owner?: bool, percent_ownership?: string, representative?: bool, title?: string}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject), kanji?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), surname?: string, updated: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $identity Information about the company, individual, and business represented by the Account.
+ * @property null|(object{attestations?: (object{directorship_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), ownership_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), persons_provided?: (object{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}&\Stripe\StripeObject), representative_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), card_creator?: (object{commercial?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), crypto_storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), business_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), annual_revenue?: (object{amount?: (object{value: int, currency: string}&\Stripe\StripeObject), fiscal_year_end?: string}&\Stripe\StripeObject), compliance_screening_description?: string, documents?: (object{bank_account_ownership_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_license?: (object{files: string[], type: string}&\Stripe\StripeObject), company_memorandum_of_association?: (object{files: string[], type: string}&\Stripe\StripeObject), company_ministerial_decree?: (object{files: string[], type: string}&\Stripe\StripeObject), company_registration_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_tax_id_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_address?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_registration?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_ultimate_beneficial_ownership?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), estimated_worker_count?: int, id_numbers?: (object{registrar?: string, type: string}&\Stripe\StripeObject)[], monthly_estimated_revenue?: (object{amount?: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), phone?: string, registered_name?: string, registration_date?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{registered_name?: string}&\Stripe\StripeObject), kanji?: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), structure?: string}&\Stripe\StripeObject), country?: string, entity_type?: string, individual?: (object{account: string, additional_addresses?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}&\Stripe\StripeObject)[], additional_names?: (object{full_name?: string, given_name?: string, purpose: string, surname?: string}&\Stripe\StripeObject)[], additional_terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), created: int, date_of_birth?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), documents?: (object{company_authorization?: (object{files: string[], type: string}&\Stripe\StripeObject), passport?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), secondary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), visa?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), email?: string, given_name?: string, id: string, id_numbers?: (object{type: string}&\Stripe\StripeObject)[], legal_gender?: string, metadata?: \Stripe\StripeObject, nationalities?: string[], object: string, phone?: string, political_exposure?: string, relationship?: (object{authorizer?: bool, director?: bool, executive?: bool, legal_guardian?: bool, owner?: bool, percent_ownership?: string, representative?: bool, title?: string}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject), kanji?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), surname?: string, updated: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $identity Information about the company, individual, and business represented by the Account.
* @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|(object{entries?: (object{awaiting_action_from: string, description: string, errors: (object{code: string, description: string}&\Stripe\StripeObject)[], impact: (object{restricts_capabilities?: (object{capability: string, configuration: string, deadline: (object{status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), minimum_deadline: (object{status: string}&\Stripe\StripeObject), reference?: (object{inquiry?: string, resource?: string, type: string}&\Stripe\StripeObject), requested_reasons: (object{code: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], summary?: (object{minimum_deadline?: (object{status: string, time?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $requirements Information about the active requirements for the Account, including what information needs to be collected, and by when.
diff --git a/lib/V2/FinancialAddressGeneratedMicrodeposits.php b/lib/V2/FinancialAddressGeneratedMicrodeposits.php
index e4c613c76..44ebb0670 100644
--- a/lib/V2/FinancialAddressGeneratedMicrodeposits.php
+++ b/lib/V2/FinancialAddressGeneratedMicrodeposits.php
@@ -6,7 +6,7 @@
/**
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject)[] $amounts The amounts of the microdeposits that were generated.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject)[] $amounts The amounts of the microdeposits that were 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 string $status Closed Enum. The status of the request.
*/
diff --git a/lib/V2/MoneyManagement/Adjustment.php b/lib/V2/MoneyManagement/Adjustment.php
index 8179d5858..f2d6f041f 100644
--- a/lib/V2/MoneyManagement/Adjustment.php
+++ b/lib/V2/MoneyManagement/Adjustment.php
@@ -10,7 +10,7 @@
* @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 of the object field.
* @property null|(object{type: string, adjustment?: string, inbound_transfer?: string, outbound_payment?: string, outbound_transfer?: string, received_credit?: string, received_debit?: string}&\Stripe\StripeObject) $adjusted_flow If applicable, contains information about the original flow linked to this Adjustment.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount of the Adjustment.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount of the Adjustment.
* @property int $created Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|string $description Description of the Adjustment and what it was used for.
* @property string $financial_account The FinancialAccount that this adjustment is for.
diff --git a/lib/V2/MoneyManagement/CurrencyConversion.php b/lib/V2/MoneyManagement/CurrencyConversion.php
index 3b1776ddc..5aa4f49d6 100644
--- a/lib/V2/MoneyManagement/CurrencyConversion.php
+++ b/lib/V2/MoneyManagement/CurrencyConversion.php
@@ -12,9 +12,9 @@
* @property int $created The time the CurrencyConversion was created at.
* @property string $exchange_rate The exchange rate used when processing the CurrencyConversion.
* @property string $financial_account The FinancialAccount the CurrencyConversion was performed on.
- * @property (object{amount: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $from The from block containing what was debited.
+ * @property (object{amount: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $from The from block containing what was debited.
* @property bool $livemode If the CurrencyConversion was performed in livemode or not.
- * @property (object{amount: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $to The to block containing what was credited.
+ * @property (object{amount: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $to The to block containing what was credited.
*/
class CurrencyConversion extends \Stripe\ApiResource
{
diff --git a/lib/V2/MoneyManagement/InboundTransfer.php b/lib/V2/MoneyManagement/InboundTransfer.php
index ca393e1b9..58e1b6367 100644
--- a/lib/V2/MoneyManagement/InboundTransfer.php
+++ b/lib/V2/MoneyManagement/InboundTransfer.php
@@ -10,13 +10,13 @@
*
* @property string $id Unique identifier for the InboundTransfer.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount in specified currency that will land in the FinancialAccount balance.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount in specified currency that will land in the FinancialAccount balance.
* @property int $created Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property string $description A freeform text field provided by user, containing metadata.
- * @property (object{debited: (object{value?: int, currency?: string}&\Stripe\StripeObject), payment_method: (object{type: string, us_bank_account?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $from A nested object containing information about the origin of the InboundTransfer.
+ * @property (object{debited: (object{value: int, currency: string}&\Stripe\StripeObject), payment_method: (object{type: string, us_bank_account?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $from A nested object containing information about the origin of the InboundTransfer.
* @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 $receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
- * @property (object{credited: (object{value?: int, currency?: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $to A nested object containing information about the destination of the InboundTransfer.
+ * @property (object{credited: (object{value: int, currency: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $to A nested object containing information about the destination of the InboundTransfer.
* @property (object{created: int, effective_at: int, id: string, level: string, type: string, bank_debit_failed?: (object{failure_reason: string}&\Stripe\StripeObject), bank_debit_processing?: \Stripe\StripeObject, bank_debit_queued?: \Stripe\StripeObject, bank_debit_returned?: (object{return_reason: string}&\Stripe\StripeObject), bank_debit_succeeded?: \Stripe\StripeObject}&\Stripe\StripeObject)[] $transfer_history A list of history objects, representing changes in the state of the InboundTransfer.
*/
class InboundTransfer extends \Stripe\ApiResource
diff --git a/lib/V2/MoneyManagement/OutboundPayment.php b/lib/V2/MoneyManagement/OutboundPayment.php
index 2add13e31..fd3225a91 100644
--- a/lib/V2/MoneyManagement/OutboundPayment.php
+++ b/lib/V2/MoneyManagement/OutboundPayment.php
@@ -9,13 +9,13 @@
*
* @property string $id Unique identifier for the OutboundPayment.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundPayment.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundPayment.
* @property bool $cancelable Returns true if the OutboundPayment can be canceled, and false otherwise.
* @property int $created Time at which the OutboundPayment was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|(object{speed?: string, bank_account?: string, paper_check?: (object{memo?: string, shipping_speed: string, signature: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $delivery_options Delivery options to be used to send the OutboundPayment.
* @property null|string $description An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
* @property null|int $expected_arrival_date The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a failed, canceled, or returned state. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
- * @property (object{debited: (object{value?: int, currency?: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from The FinancialAccount that funds were pulled from.
+ * @property (object{debited: (object{value: int, currency: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from The FinancialAccount that funds were pulled from.
* @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|string $outbound_payment_quote The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
@@ -26,7 +26,7 @@
* @property string $status Closed Enum. Current status of the OutboundPayment: processing, failed, posted, returned, canceled. An OutboundPayment is processing if it has been created and is processing. The status changes to posted once the OutboundPayment has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundPayment fails to arrive at its payout method, its status will change to returned.
* @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundPayment in a failed or returned state.
* @property null|(object{canceled_at?: int, failed_at?: int, posted_at?: int, returned_at?: int}&\Stripe\StripeObject) $status_transitions Hash containing timestamps of when the object transitioned to a particular status.
- * @property (object{credited: (object{value?: int, currency?: string}&\Stripe\StripeObject), payout_method: string, recipient: string}&\Stripe\StripeObject) $to To which payout method the OutboundPayment was sent.
+ * @property (object{credited: (object{value: int, currency: string}&\Stripe\StripeObject), payout_method: string, recipient: string}&\Stripe\StripeObject) $to To which payout method the OutboundPayment was sent.
* @property (object{status: string, value?: string}&\Stripe\StripeObject) $trace_id A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
* @property null|(object{paper_check?: (object{carrier: string, check_number: string, current_postal_code: string, mailing_address: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), tracking_number: string, tracking_status: string, updated_at: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $tracking_details Information to track this OutboundPayment with the recipient bank.
*/
diff --git a/lib/V2/MoneyManagement/OutboundPaymentQuote.php b/lib/V2/MoneyManagement/OutboundPaymentQuote.php
index 1af8ffe3e..e8fb4b520 100644
--- a/lib/V2/MoneyManagement/OutboundPaymentQuote.php
+++ b/lib/V2/MoneyManagement/OutboundPaymentQuote.php
@@ -9,14 +9,14 @@
*
* @property string $id Unique identifier for the OutboundPaymentQuote.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundPaymentQuote.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundPaymentQuote.
* @property int $created Time at which the OutboundPaymentQuote was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|(object{speed?: string, bank_account?: string}&\Stripe\StripeObject) $delivery_options Delivery options to be used to send the OutboundPayment.
- * @property (object{amount: (object{value?: int, currency?: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[] $estimated_fees The estimated fees for the OutboundPaymentQuote.
- * @property (object{debited: (object{value?: int, currency?: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from Details about the sender of an OutboundPaymentQuote.
+ * @property (object{amount: (object{value: int, currency: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[] $estimated_fees The estimated fees for the OutboundPaymentQuote.
+ * @property (object{debited: (object{value: int, currency: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from Details about the sender of an OutboundPaymentQuote.
* @property (object{lock_duration: string, lock_expires_at?: int, lock_status: string, rates: \Stripe\StripeObject, to_currency: string}&\Stripe\StripeObject) $fx_quote The underlying FXQuote details for the OutboundPaymentQuote.
* @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 (object{credited: (object{value?: int, currency?: string}&\Stripe\StripeObject), payout_method: string, recipient: string}&\Stripe\StripeObject) $to Details about the recipient of an OutboundPaymentQuote.
+ * @property (object{credited: (object{value: int, currency: string}&\Stripe\StripeObject), payout_method: string, recipient: string}&\Stripe\StripeObject) $to Details about the recipient of an OutboundPaymentQuote.
*/
class OutboundPaymentQuote extends \Stripe\ApiResource
{
diff --git a/lib/V2/MoneyManagement/OutboundTransfer.php b/lib/V2/MoneyManagement/OutboundTransfer.php
index c6db570aa..1b35dc0dd 100644
--- a/lib/V2/MoneyManagement/OutboundTransfer.php
+++ b/lib/V2/MoneyManagement/OutboundTransfer.php
@@ -9,13 +9,13 @@
*
* @property string $id Unique identifier for the OutboundTransfer.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundTransfer.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The "presentment amount" for the OutboundTransfer.
* @property bool $cancelable Returns true if the OutboundTransfer can be canceled, and false otherwise.
* @property int $created Time at which the OutboundTransfer was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|(object{bank_account?: string}&\Stripe\StripeObject) $delivery_options Delivery options to be used to send the OutboundTransfer.
* @property null|string $description An arbitrary string attached to the OutboundTransfer. Often useful for displaying to users.
* @property null|int $expected_arrival_date The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a failed, canceled, or returned state. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
- * @property (object{debited: (object{value?: int, currency?: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from The FinancialAccount that funds were pulled from.
+ * @property (object{debited: (object{value: int, currency: string}&\Stripe\StripeObject), financial_account: string}&\Stripe\StripeObject) $from The FinancialAccount that funds were pulled from.
* @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|string $receipt_url A link to the Stripe-hosted receipt for this OutboundTransfer. The receipt link remains active for 60 days from the OutboundTransfer creation date. After this period, the link will expire and the receipt url value will be null.
@@ -24,7 +24,7 @@
* @property string $status Closed Enum. Current status of the OutboundTransfer: processing, failed, posted, returned, canceled. An OutboundTransfer is processing if it has been created and is processing. The status changes to posted once the OutboundTransfer has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundTransfer fails to arrive at its payout method, its status will change to returned.
* @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundTransfer in a failed or returned state.
* @property null|(object{canceled_at?: int, failed_at?: int, posted_at?: int, returned_at?: int}&\Stripe\StripeObject) $status_transitions Hash containing timestamps of when the object transitioned to a particular status.
- * @property (object{credited: (object{value?: int, currency?: string}&\Stripe\StripeObject), payout_method: string}&\Stripe\StripeObject) $to To which payout method the OutboundTransfer was sent.
+ * @property (object{credited: (object{value: int, currency: string}&\Stripe\StripeObject), payout_method: string}&\Stripe\StripeObject) $to To which payout method the OutboundTransfer was sent.
* @property (object{status: string, value?: string}&\Stripe\StripeObject) $trace_id A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks might call this a “reference number” or something similar.
*/
class OutboundTransfer extends \Stripe\ApiResource
diff --git a/lib/V2/MoneyManagement/ReceivedCredit.php b/lib/V2/MoneyManagement/ReceivedCredit.php
index f612c3bbd..34fe12009 100644
--- a/lib/V2/MoneyManagement/ReceivedCredit.php
+++ b/lib/V2/MoneyManagement/ReceivedCredit.php
@@ -9,13 +9,13 @@
*
* @property string $id Unique identifier for the ReceivedCredit.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount and currency of the ReceivedCredit.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount and currency of the ReceivedCredit.
* @property null|(object{from_account?: string, type: string, outbound_payment?: string, outbound_transfer?: string, payout_v1?: string, transfer?: string}&\Stripe\StripeObject) $balance_transfer This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if type field value is balance_transfer.
* @property null|(object{financial_address: string, origin_type: string, statement_descriptor?: string, gb_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string, sort_code?: string}&\Stripe\StripeObject), sepa_bank_account?: (object{account_holder_name?: string, bank_name?: string, bic?: string, country?: string, iban?: string, network: string}&\Stripe\StripeObject), us_bank_account?: (object{bank_name?: string, last4?: string, network: string, routing_number?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $bank_transfer This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if type field value is bank_transfer.
* @property null|(object{card_v1_id: string, dispute?: (object{issuing_dispute_v1: string}&\Stripe\StripeObject), refund?: (object{issuing_transaction_v1: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $card_spend This object stores details about the originating issuing card spend that resulted in the ReceivedCredit. Present if type field value is card_spend.
* @property int $created Time at which the ReceivedCredit was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|string $description Freeform string set by originator of the ReceivedCredit.
- * @property null|(object{value?: int, currency?: string}&\Stripe\StripeObject) $external_amount The amount and currency of the original/external credit request.
+ * @property null|(object{value: int, currency: string}&\Stripe\StripeObject) $external_amount The amount and currency of the original/external credit request.
* @property string $financial_account Financial Account ID on which funds for ReceivedCredit were received.
* @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 $receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe’s money transmission licenses.
diff --git a/lib/V2/MoneyManagement/ReceivedDebit.php b/lib/V2/MoneyManagement/ReceivedDebit.php
index 40f1fb636..f7ab8a8d8 100644
--- a/lib/V2/MoneyManagement/ReceivedDebit.php
+++ b/lib/V2/MoneyManagement/ReceivedDebit.php
@@ -9,13 +9,13 @@
*
* @property string $id Unique identifier for the ReceivedDebit.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount Amount and currency of the ReceivedDebit.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount Amount and currency of the ReceivedDebit.
* @property null|(object{type: string, topup?: string}&\Stripe\StripeObject) $balance_transfer This object stores details about the balance transfer object that resulted in the ReceivedDebit.
* @property null|(object{financial_address: string, origin_type: string, payment_method_type: string, statement_descriptor?: string, us_bank_account: (object{bank_name?: string, network: string, routing_number?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $bank_transfer This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if type field value is bank_transfer.
- * @property null|(object{authorization?: (object{amount: (object{value?: int, currency?: string}&\Stripe\StripeObject), issuing_authorization_v1: string}&\Stripe\StripeObject), card_transactions: (object{amount: (object{value?: int, currency?: string}&\Stripe\StripeObject), issuing_transaction_v1: string}&\Stripe\StripeObject)[], card_v1_id: string}&\Stripe\StripeObject) $card_spend This object stores details about the issuing transactions that resulted in the ReceivedDebit. Present if type field value is card_spend.
+ * @property null|(object{authorization?: (object{amount: (object{value: int, currency: string}&\Stripe\StripeObject), issuing_authorization_v1: string}&\Stripe\StripeObject), card_transactions: (object{amount: (object{value: int, currency: string}&\Stripe\StripeObject), issuing_transaction_v1: string}&\Stripe\StripeObject)[], card_v1_id: string}&\Stripe\StripeObject) $card_spend This object stores details about the issuing transactions that resulted in the ReceivedDebit. Present if type field value is card_spend.
* @property int $created The time at which the ReceivedDebit was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property null|string $description Freeform string sent by the originator of the ReceivedDebit.
- * @property null|(object{value?: int, currency?: string}&\Stripe\StripeObject) $external_amount The amount and currency of the original/external debit request.
+ * @property null|(object{value: int, currency: string}&\Stripe\StripeObject) $external_amount The amount and currency of the original/external debit request.
* @property string $financial_account Financial Account on which funds for ReceivedDebit were debited.
* @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 $receipt_url A link to the Stripe-hosted receipt for this ReceivedDebit.
diff --git a/lib/V2/MoneyManagement/Transaction.php b/lib/V2/MoneyManagement/Transaction.php
index bdfb05253..913a835ba 100644
--- a/lib/V2/MoneyManagement/Transaction.php
+++ b/lib/V2/MoneyManagement/Transaction.php
@@ -9,8 +9,8 @@
*
* @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 of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount of the Transaction.
- * @property (object{available: (object{value?: int, currency?: string}&\Stripe\StripeObject), inbound_pending: (object{value?: int, currency?: string}&\Stripe\StripeObject), outbound_pending: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $balance_impact The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its TransactionEntries that have effective_ats in the past.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount of the Transaction.
+ * @property (object{available: (object{value: int, currency: string}&\Stripe\StripeObject), inbound_pending: (object{value: int, currency: string}&\Stripe\StripeObject), outbound_pending: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $balance_impact The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its TransactionEntries that have effective_ats in the past.
* @property string $category Open Enum. A descriptive category used to classify the Transaction.
* @property int $created Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
* @property string $financial_account Indicates the FinancialAccount affected by this Transaction.
diff --git a/lib/V2/MoneyManagement/TransactionEntry.php b/lib/V2/MoneyManagement/TransactionEntry.php
index f789e8dd8..bd3c9f2cc 100644
--- a/lib/V2/MoneyManagement/TransactionEntry.php
+++ b/lib/V2/MoneyManagement/TransactionEntry.php
@@ -9,7 +9,7 @@
*
* @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 of the object field.
- * @property (object{available: (object{value?: int, currency?: string}&\Stripe\StripeObject), inbound_pending: (object{value?: int, currency?: string}&\Stripe\StripeObject), outbound_pending: (object{value?: int, currency?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $balance_impact The delta to the FinancialAccount's balance.
+ * @property (object{available: (object{value: int, currency: string}&\Stripe\StripeObject), inbound_pending: (object{value: int, currency: string}&\Stripe\StripeObject), outbound_pending: (object{value: int, currency: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $balance_impact The delta to the FinancialAccount's balance.
* @property int $created Time at which the object was created.
* @property int $effective_at Time at which the entry impacted (or will impact if it's in the future) the FinancialAccount balance.
* @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.
diff --git a/lib/V2/Payments/OffSessionPayment.php b/lib/V2/Payments/OffSessionPayment.php
index 4fe371e04..7e946953d 100644
--- a/lib/V2/Payments/OffSessionPayment.php
+++ b/lib/V2/Payments/OffSessionPayment.php
@@ -9,8 +9,8 @@
*
* @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 of the object field.
- * @property null|(object{value?: int, currency?: string}&\Stripe\StripeObject) $amount_capturable The amount available to be captured.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount_requested The “presentment amount” to be collected from the customer.
+ * @property null|(object{value: int, currency: string}&\Stripe\StripeObject) $amount_capturable The amount available to be captured.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount_requested The “presentment amount” to be collected from the customer.
* @property string $cadence The frequency of the underlying payment.
* @property null|(object{capture_before?: int, capture_method: string}&\Stripe\StripeObject) $capture Details about the capture configuration for the OffSessionPayment.
* @property string $compartment_id ID of the owning compartment.
diff --git a/lib/V2/Payments/SettlementAllocationIntent.php b/lib/V2/Payments/SettlementAllocationIntent.php
index cf967b80e..e2cb3804f 100644
--- a/lib/V2/Payments/SettlementAllocationIntent.php
+++ b/lib/V2/Payments/SettlementAllocationIntent.php
@@ -9,7 +9,7 @@
*
* @property string $id Unique identifier for the SettlementAllocationIntent.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount and currency of the SettlementAllocationIntent.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount and currency of the SettlementAllocationIntent.
* @property int $created Timestamp at which SettlementAllocationIntent was created .
* @property int $expected_settlement_date Date when we expect to receive the funds.
* @property string $financial_account FinancialAccount ID where the funds are expected.
diff --git a/lib/V2/Payments/SettlementAllocationIntentSplit.php b/lib/V2/Payments/SettlementAllocationIntentSplit.php
index 152e307bb..0113f7727 100644
--- a/lib/V2/Payments/SettlementAllocationIntentSplit.php
+++ b/lib/V2/Payments/SettlementAllocationIntentSplit.php
@@ -10,7 +10,7 @@
* @property string $id Unique identifier for the SettlementAllocationIntentSplit.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
* @property string $account The account id against which the SettlementAllocationIntentSplit should be settled.
- * @property (object{value?: int, currency?: string}&\Stripe\StripeObject) $amount The amount and currency of the SettlementAllocationIntentSplit.
+ * @property (object{value: int, currency: string}&\Stripe\StripeObject) $amount The amount and currency of the SettlementAllocationIntentSplit.
* @property int $created Timestamp at which SettlementAllocationIntentSplit was created.
* @property null|(object{type: string, outbound_payment?: string, outbound_transfer?: string, received_credit?: string}&\Stripe\StripeObject) $flow Details about the Flow object that settled the split.
* @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.
diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php
index 33d7b8baa..f54dfa39e 100644
--- a/tests/Stripe/GeneratedExamplesTest.php
+++ b/tests/Stripe/GeneratedExamplesTest.php
@@ -5261,6 +5261,66 @@ public function testV2BillingCadencePost3()
self::assertInstanceOf(V2\Billing\Cadence::class, $result);
}
+ public function testV2BillingCadencesSpendModifierRuleGet()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/cadences/cadence_id_123/spend_modifier_rules',
+ [],
+ [],
+ false,
+ [
+ 'data' => [
+ '0' => [
+ 'billing_cadence' => 'billing_cadence',
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.cadence_spend_modifier',
+ 'type' => 'max_billing_period_spend',
+ 'livemode' => [],
+ ],
+ ],
+ 'next_page_url' => null,
+ 'previous_page_url' => null,
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->cadences->spendModifierRules->all(
+ 'cadence_id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Collection::class, $result);
+ self::assertInstanceOf(V2\Billing\CadenceSpendModifier::class, $result->data[0]);
+ }
+
+ public function testV2BillingCadencesSpendModifierRuleGet2()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/cadences/cadence_id_123/spend_modifier_rules/id_123',
+ [],
+ [],
+ false,
+ [
+ 'billing_cadence' => 'billing_cadence',
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.cadence_spend_modifier',
+ 'type' => 'max_billing_period_spend',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->cadences->spendModifierRules->retrieve(
+ 'cadence_id_123',
+ 'id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Billing\CadenceSpendModifier::class, $result);
+ }
+
public function testV2BillingCollectionSettingGet()
{
$this->stubRequest(
@@ -5578,6 +5638,9 @@ public function testV2BillingIntentPost()
[
'type' => 'apply',
'apply' => [
+ 'effective_at' => [
+ 'type' => 'current_billing_period_end',
+ ],
'type' => 'invoice_discount_rule',
'invoice_discount_rule' => [
'applies_to' => 'cadence',
@@ -5589,6 +5652,21 @@ public function testV2BillingIntentPost()
'percent_off' => 'percent_off',
],
],
+ 'spend_modifier_rule' => [
+ 'applies_to' => 'cadence',
+ 'type' => 'max_billing_period_spend',
+ 'max_billing_period_spend' => [
+ 'amount' => [
+ 'type' => 'custom_pricing_unit',
+ 'custom_pricing_unit' => [
+ 'value' => 'value',
+ ],
+ ],
+ 'custom_pricing_unit_overage_rate' => [
+ 'id' => 'obj_123',
+ ],
+ ],
+ ],
],
'deactivate' => [
'cancellation_details' => [
@@ -5647,8 +5725,12 @@ public function testV2BillingIntentPost()
'type' => 'pricing_plan_subscription_details',
],
'remove' => [
+ 'effective_at' => [
+ 'type' => 'current_billing_period_end',
+ ],
'type' => 'invoice_discount_rule',
'invoice_discount_rule' => 'invoice_discount_rule',
+ 'spend_modifier_rule' => 'spend_modifier_rule',
],
'subscribe' => [
'collect_at' => 'next_billing_date',
@@ -5722,6 +5804,9 @@ public function testV2BillingIntentPost()
[
'type' => 'apply',
'apply' => [
+ 'effective_at' => [
+ 'type' => 'current_billing_period_end',
+ ],
'type' => 'invoice_discount_rule',
'invoice_discount_rule' => [
'applies_to' => 'cadence',
@@ -5733,6 +5818,21 @@ public function testV2BillingIntentPost()
'percent_off' => 'percent_off',
],
],
+ 'spend_modifier_rule' => [
+ 'applies_to' => 'cadence',
+ 'type' => 'max_billing_period_spend',
+ 'max_billing_period_spend' => [
+ 'amount' => [
+ 'type' => 'custom_pricing_unit',
+ 'custom_pricing_unit' => [
+ 'value' => 'value',
+ ],
+ ],
+ 'custom_pricing_unit_overage_rate' => [
+ 'id' => 'obj_123',
+ ],
+ ],
+ ],
],
'deactivate' => [
'cancellation_details' => [
@@ -5791,8 +5891,12 @@ public function testV2BillingIntentPost()
'type' => 'pricing_plan_subscription_details',
],
'remove' => [
+ 'effective_at' => [
+ 'type' => 'current_billing_period_end',
+ ],
'type' => 'invoice_discount_rule',
'invoice_discount_rule' => 'invoice_discount_rule',
+ 'spend_modifier_rule' => 'spend_modifier_rule',
],
'subscribe' => [
'collect_at' => 'next_billing_date',
@@ -6691,6 +6795,109 @@ public function testV2BillingMeteredItemPost2()
self::assertInstanceOf(V2\Billing\MeteredItem::class, $result);
}
+ public function testV2BillingOneTimeItemGet()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/one_time_items',
+ [],
+ [],
+ false,
+ [
+ 'data' => [
+ '0' => [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ ],
+ 'next_page_url' => null,
+ 'previous_page_url' => null,
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->oneTimeItems->all([]);
+ self::assertInstanceOf(V2\Collection::class, $result);
+ self::assertInstanceOf(V2\Billing\OneTimeItem::class, $result->data[0]);
+ }
+
+ public function testV2BillingOneTimeItemPost()
+ {
+ $this->stubRequest(
+ 'post',
+ '/v2/billing/one_time_items',
+ ['display_name' => 'display_name'],
+ [],
+ false,
+ [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->oneTimeItems->create([
+ 'display_name' => 'display_name',
+ ]);
+ self::assertInstanceOf(V2\Billing\OneTimeItem::class, $result);
+ }
+
+ public function testV2BillingOneTimeItemGet2()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/one_time_items/id_123',
+ [],
+ [],
+ false,
+ [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->oneTimeItems->retrieve(
+ 'id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Billing\OneTimeItem::class, $result);
+ }
+
+ public function testV2BillingOneTimeItemPost2()
+ {
+ $this->stubRequest(
+ 'post',
+ '/v2/billing/one_time_items/id_123',
+ [],
+ [],
+ false,
+ [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->oneTimeItems->update(
+ 'id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Billing\OneTimeItem::class, $result);
+ }
+
public function testV2BillingPricingPlanGet()
{
$this->stubRequest(
@@ -7381,6 +7588,150 @@ public function testV2BillingRateCardPost2()
self::assertInstanceOf(V2\Billing\RateCard::class, $result);
}
+ public function testV2BillingRateCardsCustomPricingUnitOverageRateGet()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates',
+ [],
+ [],
+ false,
+ [
+ 'data' => [
+ '0' => [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'custom_pricing_unit' => 'custom_pricing_unit',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.rate_card_custom_pricing_unit_overage_rate',
+ 'one_time_item' => [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 'rate_card' => 'rate_card',
+ 'rate_card_version' => 'rate_card_version',
+ 'unit_amount' => 'unit_amount',
+ 'livemode' => [],
+ ],
+ ],
+ 'next_page_url' => null,
+ 'previous_page_url' => null,
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->rateCards->customPricingUnitOverageRates->all(
+ 'rate_card_id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Collection::class, $result);
+ self::assertInstanceOf(V2\Billing\RateCardCustomPricingUnitOverageRate::class, $result->data[0]);
+ }
+
+ public function testV2BillingRateCardsCustomPricingUnitOverageRatePost()
+ {
+ $this->stubRequest(
+ 'post',
+ '/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates',
+ [
+ 'custom_pricing_unit' => 'custom_pricing_unit',
+ 'one_time_item' => 'one_time_item',
+ 'unit_amount' => 'unit_amount',
+ ],
+ [],
+ false,
+ [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'custom_pricing_unit' => 'custom_pricing_unit',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.rate_card_custom_pricing_unit_overage_rate',
+ 'one_time_item' => [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 'rate_card' => 'rate_card',
+ 'rate_card_version' => 'rate_card_version',
+ 'unit_amount' => 'unit_amount',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->rateCards->customPricingUnitOverageRates->create(
+ 'rate_card_id_123',
+ [
+ 'custom_pricing_unit' => 'custom_pricing_unit',
+ 'one_time_item' => 'one_time_item',
+ 'unit_amount' => 'unit_amount',
+ ]
+ );
+ self::assertInstanceOf(V2\Billing\RateCardCustomPricingUnitOverageRate::class, $result);
+ }
+
+ public function testV2BillingRateCardsCustomPricingUnitOverageRateDelete()
+ {
+ $this->stubRequest(
+ 'delete',
+ '/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123',
+ [],
+ [],
+ false,
+ [
+ 'id' => 'abc_123',
+ 'object' => 'some.object.tag',
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->rateCards->customPricingUnitOverageRates->delete(
+ 'rate_card_id_123',
+ 'id_123',
+ []
+ );
+ self::assertInstanceOf(V2\DeletedObject::class, $result);
+ }
+
+ public function testV2BillingRateCardsCustomPricingUnitOverageRateGet2()
+ {
+ $this->stubRequest(
+ 'get',
+ '/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123',
+ [],
+ [],
+ false,
+ [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'custom_pricing_unit' => 'custom_pricing_unit',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.rate_card_custom_pricing_unit_overage_rate',
+ 'one_time_item' => [
+ 'created' => '1970-01-12T21:42:34.472Z',
+ 'display_name' => 'display_name',
+ 'id' => 'obj_123',
+ 'object' => 'v2.billing.one_time_item',
+ 'livemode' => [],
+ ],
+ 'rate_card' => 'rate_card',
+ 'rate_card_version' => 'rate_card_version',
+ 'unit_amount' => 'unit_amount',
+ 'livemode' => [],
+ ],
+ 200,
+ BaseStripeClient::DEFAULT_API_BASE
+ );
+ $result = $this->v2Client->v2->billing->rateCards->customPricingUnitOverageRates->retrieve(
+ 'rate_card_id_123',
+ 'id_123',
+ []
+ );
+ self::assertInstanceOf(V2\Billing\RateCardCustomPricingUnitOverageRate::class, $result);
+ }
+
public function testV2BillingRateCardsRateGet()
{
$this->stubRequest(
@@ -9300,7 +9651,10 @@ public function testV2MoneyManagementAdjustmentGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -9328,7 +9682,10 @@ public function testV2MoneyManagementAdjustmentGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -9359,11 +9716,21 @@ public function testV2MoneyManagementCurrencyConversionGet()
'created' => '1970-01-12T21:42:34.472Z',
'exchange_rate' => 'exchange_rate',
'financial_account' => 'financial_account',
- 'from' => ['amount' => []],
+ 'from' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
'id' => 'obj_123',
'livemode' => [],
'object' => 'v2.money_management.currency_conversion',
- 'to' => ['amount' => []],
+ 'to' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
],
'next_page_url' => null,
@@ -9405,11 +9772,21 @@ public function testV2MoneyManagementCurrencyConversionPost()
'created' => '1970-01-12T21:42:34.472Z',
'exchange_rate' => 'exchange_rate',
'financial_account' => 'financial_account',
- 'from' => ['amount' => []],
+ 'from' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
'id' => 'obj_123',
'livemode' => [],
'object' => 'v2.money_management.currency_conversion',
- 'to' => ['amount' => []],
+ 'to' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
200,
BaseStripeClient::DEFAULT_API_BASE
@@ -9446,11 +9823,21 @@ public function testV2MoneyManagementCurrencyConversionGet2()
'created' => '1970-01-12T21:42:34.472Z',
'exchange_rate' => 'exchange_rate',
'financial_account' => 'financial_account',
- 'from' => ['amount' => []],
+ 'from' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
'id' => 'obj_123',
'livemode' => [],
'object' => 'v2.money_management.currency_conversion',
- 'to' => ['amount' => []],
+ 'to' => [
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
200,
BaseStripeClient::DEFAULT_API_BASE
@@ -9474,9 +9861,24 @@ public function testV2MoneyManagementFinancialAccountGet()
'data' => [
'0' => [
'balance' => [
- 'available' => ['key' => []],
- 'inbound_pending' => ['key' => []],
- 'outbound_pending' => ['key' => []],
+ 'available' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'inbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'outbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
'country' => 'country',
'created' => '1970-01-12T21:42:34.472Z',
@@ -9508,9 +9910,24 @@ public function testV2MoneyManagementFinancialAccountPost()
false,
[
'balance' => [
- 'available' => ['key' => []],
- 'inbound_pending' => ['key' => []],
- 'outbound_pending' => ['key' => []],
+ 'available' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'inbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'outbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
'country' => 'country',
'created' => '1970-01-12T21:42:34.472Z',
@@ -9539,9 +9956,24 @@ public function testV2MoneyManagementFinancialAccountGet2()
false,
[
'balance' => [
- 'available' => ['key' => []],
- 'inbound_pending' => ['key' => []],
- 'outbound_pending' => ['key' => []],
+ 'available' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'inbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'outbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
'country' => 'country',
'created' => '1970-01-12T21:42:34.472Z',
@@ -9571,9 +10003,24 @@ public function testV2MoneyManagementFinancialAccountPost2()
false,
[
'balance' => [
- 'available' => ['key' => []],
- 'inbound_pending' => ['key' => []],
- 'outbound_pending' => ['key' => []],
+ 'available' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'inbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'outbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
'country' => 'country',
'created' => '1970-01-12T21:42:34.472Z',
@@ -9603,9 +10050,24 @@ public function testV2MoneyManagementFinancialAccountPost3()
false,
[
'balance' => [
- 'available' => ['key' => []],
- 'inbound_pending' => ['key' => []],
- 'outbound_pending' => ['key' => []],
+ 'available' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'inbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
+ 'outbound_pending' => [
+ 'key' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
],
'country' => 'country',
'created' => '1970-01-12T21:42:34.472Z',
@@ -9724,17 +10186,26 @@ public function testV2MoneyManagementInboundTransferGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'description' => 'description',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payment_method' => ['type' => 'type'],
],
'id' => 'obj_123',
'object' => 'v2.money_management.inbound_transfer',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'transfer_history' => [
@@ -9782,17 +10253,26 @@ public function testV2MoneyManagementInboundTransferPost()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'description' => 'description',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payment_method' => ['type' => 'type'],
],
'id' => 'obj_123',
'object' => 'v2.money_management.inbound_transfer',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'transfer_history' => [
@@ -9835,17 +10315,26 @@ public function testV2MoneyManagementInboundTransferGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'description' => 'description',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payment_method' => ['type' => 'type'],
],
'id' => 'obj_123',
'object' => 'v2.money_management.inbound_transfer',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'transfer_history' => [
@@ -9880,11 +10369,17 @@ public function testV2MoneyManagementOutboundPaymentGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -9893,7 +10388,10 @@ public function testV2MoneyManagementOutboundPaymentGet()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -9935,11 +10433,17 @@ public function testV2MoneyManagementOutboundPaymentPost()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -9948,7 +10452,10 @@ public function testV2MoneyManagementOutboundPaymentPost()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -9985,11 +10492,17 @@ public function testV2MoneyManagementOutboundPaymentGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -9998,7 +10511,10 @@ public function testV2MoneyManagementOutboundPaymentGet2()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -10024,11 +10540,17 @@ public function testV2MoneyManagementOutboundPaymentPost2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -10037,7 +10559,10 @@ public function testV2MoneyManagementOutboundPaymentPost2()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -10077,16 +10602,25 @@ public function testV2MoneyManagementOutboundPaymentQuotePost()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'estimated_fees' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'type' => 'cross_border_payout_fee',
],
],
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'fx_quote' => [
@@ -10098,7 +10632,10 @@ public function testV2MoneyManagementOutboundPaymentQuotePost()
'id' => 'obj_123',
'object' => 'v2.money_management.outbound_payment_quote',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -10134,16 +10671,25 @@ public function testV2MoneyManagementOutboundPaymentQuoteGet()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'estimated_fees' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'type' => 'cross_border_payout_fee',
],
],
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'fx_quote' => [
@@ -10155,7 +10701,10 @@ public function testV2MoneyManagementOutboundPaymentQuoteGet()
'id' => 'obj_123',
'object' => 'v2.money_management.outbound_payment_quote',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
'recipient' => 'recipient',
],
@@ -10373,11 +10922,17 @@ public function testV2MoneyManagementOutboundTransferGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -10385,7 +10940,10 @@ public function testV2MoneyManagementOutboundTransferGet()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
],
'trace_id' => ['status' => 'pending'],
@@ -10425,11 +10983,17 @@ public function testV2MoneyManagementOutboundTransferPost()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -10437,7 +11001,10 @@ public function testV2MoneyManagementOutboundTransferPost()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
],
'trace_id' => ['status' => 'pending'],
@@ -10472,11 +11039,17 @@ public function testV2MoneyManagementOutboundTransferGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -10484,7 +11057,10 @@ public function testV2MoneyManagementOutboundTransferGet2()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
],
'trace_id' => ['status' => 'pending'],
@@ -10509,11 +11085,17 @@ public function testV2MoneyManagementOutboundTransferPost2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cancelable' => [],
'created' => '1970-01-12T21:42:34.472Z',
'from' => [
- 'debited' => [],
+ 'debited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'financial_account' => 'financial_account',
],
'id' => 'obj_123',
@@ -10521,7 +11103,10 @@ public function testV2MoneyManagementOutboundTransferPost2()
'statement_descriptor' => 'statement_descriptor',
'status' => 'canceled',
'to' => [
- 'credited' => [],
+ 'credited' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'payout_method' => 'payout_method',
],
'trace_id' => ['status' => 'pending'],
@@ -10709,7 +11294,10 @@ public function testV2MoneyManagementReceivedCreditGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -10739,7 +11327,10 @@ public function testV2MoneyManagementReceivedCreditGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -10769,7 +11360,10 @@ public function testV2MoneyManagementReceivedDebitGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -10799,7 +11393,10 @@ public function testV2MoneyManagementReceivedDebitGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'financial_account' => 'financial_account',
'id' => 'obj_123',
@@ -10921,11 +11518,23 @@ public function testV2MoneyManagementTransactionGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'balance_impact' => [
- 'available' => [],
- 'inbound_pending' => [],
- 'outbound_pending' => [],
+ 'available' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'inbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'outbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
],
'category' => 'issuing_dispute_provisional_credit_reversal',
'created' => '1970-01-12T21:42:34.472Z',
@@ -10958,11 +11567,23 @@ public function testV2MoneyManagementTransactionGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'balance_impact' => [
- 'available' => [],
- 'inbound_pending' => [],
- 'outbound_pending' => [],
+ 'available' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'inbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'outbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
],
'category' => 'issuing_dispute_provisional_credit_reversal',
'created' => '1970-01-12T21:42:34.472Z',
@@ -10996,9 +11617,18 @@ public function testV2MoneyManagementTransactionEntryGet()
'data' => [
'0' => [
'balance_impact' => [
- 'available' => [],
- 'inbound_pending' => [],
- 'outbound_pending' => [],
+ 'available' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'inbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'outbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
],
'created' => '1970-01-12T21:42:34.472Z',
'effective_at' => '1970-01-03T20:38:28.043Z',
@@ -11034,9 +11664,18 @@ public function testV2MoneyManagementTransactionEntryGet2()
false,
[
'balance_impact' => [
- 'available' => [],
- 'inbound_pending' => [],
- 'outbound_pending' => [],
+ 'available' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'inbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ 'outbound_pending' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
],
'created' => '1970-01-12T21:42:34.472Z',
'effective_at' => '1970-01-03T20:38:28.043Z',
@@ -11071,7 +11710,10 @@ public function testV2PaymentsOffSessionPaymentGet()
[
'data' => [
'0' => [
- 'amount_requested' => [],
+ 'amount_requested' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cadence' => 'unscheduled',
'compartment_id' => 'compartment_id',
'created' => '1970-01-12T21:42:34.472Z',
@@ -11118,7 +11760,10 @@ public function testV2PaymentsOffSessionPaymentPost()
[],
false,
[
- 'amount_requested' => [],
+ 'amount_requested' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cadence' => 'unscheduled',
'compartment_id' => 'compartment_id',
'created' => '1970-01-12T21:42:34.472Z',
@@ -11160,7 +11805,10 @@ public function testV2PaymentsOffSessionPaymentGet2()
[],
false,
[
- 'amount_requested' => [],
+ 'amount_requested' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cadence' => 'unscheduled',
'compartment_id' => 'compartment_id',
'created' => '1970-01-12T21:42:34.472Z',
@@ -11196,7 +11844,10 @@ public function testV2PaymentsOffSessionPaymentPost2()
[],
false,
[
- 'amount_requested' => [],
+ 'amount_requested' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cadence' => 'unscheduled',
'compartment_id' => 'compartment_id',
'created' => '1970-01-12T21:42:34.472Z',
@@ -11232,7 +11883,10 @@ public function testV2PaymentsOffSessionPaymentPost3()
[],
false,
[
- 'amount_requested' => [],
+ 'amount_requested' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'cadence' => 'unscheduled',
'compartment_id' => 'compartment_id',
'created' => '1970-01-12T21:42:34.472Z',
@@ -11270,7 +11924,10 @@ public function testV2PaymentsSettlementAllocationIntentGet()
[
'data' => [
'0' => [
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11310,7 +11967,10 @@ public function testV2PaymentsSettlementAllocationIntentPost()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11345,7 +12005,10 @@ public function testV2PaymentsSettlementAllocationIntentGet2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11375,7 +12038,10 @@ public function testV2PaymentsSettlementAllocationIntentPost2()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11405,7 +12071,10 @@ public function testV2PaymentsSettlementAllocationIntentPost3()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11435,7 +12104,10 @@ public function testV2PaymentsSettlementAllocationIntentPost4()
[],
false,
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'expected_settlement_date' => '1970-01-22T14:14:13.629Z',
'financial_account' => 'financial_account',
@@ -11468,7 +12140,10 @@ public function testV2PaymentsSettlementAllocationIntentsSplitGet()
'data' => [
'0' => [
'account' => 'account',
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'id' => 'obj_123',
'object' => 'v2.payments.settlement_allocation_intent_split',
@@ -11509,7 +12184,10 @@ public function testV2PaymentsSettlementAllocationIntentsSplitPost()
false,
[
'account' => 'account',
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'id' => 'obj_123',
'object' => 'v2.payments.settlement_allocation_intent_split',
@@ -11545,7 +12223,10 @@ public function testV2PaymentsSettlementAllocationIntentsSplitGet2()
false,
[
'account' => 'account',
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'id' => 'obj_123',
'object' => 'v2.payments.settlement_allocation_intent_split',
@@ -11575,7 +12256,10 @@ public function testV2PaymentsSettlementAllocationIntentsSplitPost2()
false,
[
'account' => 'account',
- 'amount' => [],
+ 'amount' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
'created' => '1970-01-12T21:42:34.472Z',
'id' => 'obj_123',
'object' => 'v2.payments.settlement_allocation_intent_split',
@@ -12021,7 +12705,12 @@ public function testV2TestHelpersFinancialAddressPost2()
[],
false,
[
- 'amounts' => ['0' => []],
+ 'amounts' => [
+ '0' => [
+ 'value' => [],
+ 'currency' => 'usd',
+ ],
+ ],
'object' => 'financial_address_generated_microdeposits',
'status' => 'accepted',
'livemode' => [],
@@ -12265,7 +12954,10 @@ public function testInsufficientFundsError()
'post',
'/v2/money_management/outbound_payments',
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => 111972721,
+ 'currency' => 'usd',
+ ],
'from' => [
'currency' => 'usd',
'financial_account' => 'financial_account',
@@ -12286,7 +12978,10 @@ public function testInsufficientFundsError()
try {
$this->v2Client->v2->moneyManagement->outboundPayments->create([
- 'amount' => [],
+ 'amount' => [
+ 'value' => 111972721,
+ 'currency' => 'usd',
+ ],
'from' => [
'currency' => 'usd',
'financial_account' => 'financial_account',
@@ -12457,7 +13152,10 @@ public function testRecipientNotNotifiableError()
'post',
'/v2/money_management/outbound_payments',
[
- 'amount' => [],
+ 'amount' => [
+ 'value' => 111972721,
+ 'currency' => 'usd',
+ ],
'from' => [
'currency' => 'usd',
'financial_account' => 'financial_account',
@@ -12478,7 +13176,10 @@ public function testRecipientNotNotifiableError()
try {
$this->v2Client->v2->moneyManagement->outboundPayments->create([
- 'amount' => [],
+ 'amount' => [
+ 'value' => 111972721,
+ 'currency' => 'usd',
+ ],
'from' => [
'currency' => 'usd',
'financial_account' => 'financial_account',
From d5c313547dc874142fcee86005e5dfcf5d30a879 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 11 Feb 2026 02:34:30 +0000
Subject: [PATCH 6/6] Update generated code for v2169 and
---
OPENAPI_VERSION | 2 +-
lib/Quote.php | 2 +-
lib/Service/QuoteService.php | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 4e6ec4358..f8ca2f439 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2168
\ No newline at end of file
+v2169
\ No newline at end of file
diff --git a/lib/Quote.php b/lib/Quote.php
index 412db79c6..06aeda007 100644
--- a/lib/Quote.php
+++ b/lib/Quote.php
@@ -132,7 +132,7 @@ public static function retrieve($id, $opts = null)
* A quote models prices and services for a customer.
*
* @param string $id the ID of the resource to update
- * @param null|array{allow_backdated_lines?: bool, application_fee_amount?: null|int, application_fee_percent?: null|float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, collection_method?: string, customer?: string, customer_account?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], expand?: string[], expires_at?: int, footer?: null|string, header?: null|string, invoice_settings?: array{days_until_due?: int, issuer?: array{account?: string, type: string}}, line_items?: (array{discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], id?: string, price?: string, price_data?: array{currency: string, product: string, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], lines?: (array{actions?: (array{add_discount?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, add_item?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, add_metadata?: array, remove_discount?: array{coupon?: string, discount?: string, promotion_code?: string}, remove_item?: array{price: string}, remove_metadata?: string[], set_discounts?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], set_items?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}[], set_metadata?: null|array, type: string})[], applies_to?: array{new_reference?: string, subscription_schedule?: string, type: string}, billing_cycle_anchor?: string, cancel_subscription_schedule?: array{cancel_at: string, invoice_now?: bool, prorate?: bool}, effective_at?: string, ends_at?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, id?: string, proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, starts_at?: array{discount_end?: array{discount: string}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], metadata?: array, on_behalf_of?: null|string, subscription_data?: array{bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_cycle_anchor?: null|string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], description?: null|string, effective_date?: null|array|int|string, end_behavior?: string, metadata?: array, phase_effective_at?: string, prebilling?: null|array{iterations: int}, proration_behavior?: string, trial_period_days?: null|int}, subscription_data_overrides?: null|(array{applies_to: array{new_reference?: string, subscription_schedule?: string, type: string}, bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], customer?: string, description?: null|string, end_behavior?: string, phase_effective_at?: string, proration_behavior?: string})[], transfer_data?: null|array{amount?: int, amount_percent?: float, destination: string}} $params
+ * @param null|array{allow_backdated_lines?: bool, application_fee_amount?: null|int, application_fee_percent?: null|float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, collection_method?: string, customer?: string, customer_account?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], expand?: string[], expires_at?: int, footer?: null|string, header?: null|string, invoice_settings?: array{days_until_due?: int, issuer?: array{account?: string, type: string}}, line_items?: (array{discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], id?: string, price?: string, price_data?: array{currency: string, product: string, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], lines?: (array{actions?: (array{add_discount?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, add_item?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, add_metadata?: array, remove_discount?: array{coupon?: string, discount?: string, promotion_code?: string}, remove_item?: array{price: string}, remove_metadata?: string[], set_discounts?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], set_items?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}[], set_metadata?: null|array, type: string})[], applies_to?: array{new_reference?: string, subscription_schedule?: string, type: string}, billing_cycle_anchor?: string, cancel_subscription_schedule?: array{cancel_at: string, invoice_now?: bool, prorate?: bool}, effective_at?: string, ends_at?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, id?: string, proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, starts_at?: array{discount_end?: array{discount: string}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], metadata?: array, on_behalf_of?: null|string, subscription_data?: array{bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_cycle_anchor?: null|string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], description?: null|string, effective_date?: null|array|int|string, end_behavior?: string, metadata?: array, phase_effective_at?: string, prebilling?: null|array{iterations: int}, proration_behavior?: string, trial_period_days?: null|int}, subscription_data_overrides?: null|(array{applies_to: array{new_reference?: string, subscription_schedule?: string, type: string}, bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_schedules?: array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], customer?: string, description?: null|string, end_behavior?: string, phase_effective_at?: string, proration_behavior?: string})[], transfer_data?: null|array{amount?: int, amount_percent?: float, destination: string}} $params
* @param null|array|string $opts
*
* @return Quote the updated resource
diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php
index b754ad8f6..9c79640f3 100644
--- a/lib/Service/QuoteService.php
+++ b/lib/Service/QuoteService.php
@@ -287,7 +287,7 @@ public function retrieve($id, $params = null, $opts = null)
* A quote models prices and services for a customer.
*
* @param string $id
- * @param null|array{allow_backdated_lines?: bool, application_fee_amount?: null|int, application_fee_percent?: null|float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, collection_method?: string, customer?: string, customer_account?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], expand?: string[], expires_at?: int, footer?: null|string, header?: null|string, invoice_settings?: array{days_until_due?: int, issuer?: array{account?: string, type: string}}, line_items?: (array{discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], id?: string, price?: string, price_data?: array{currency: string, product: string, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], lines?: (array{actions?: (array{add_discount?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, add_item?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, add_metadata?: array, remove_discount?: array{coupon?: string, discount?: string, promotion_code?: string}, remove_item?: array{price: string}, remove_metadata?: string[], set_discounts?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], set_items?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}[], set_metadata?: null|array, type: string})[], applies_to?: array{new_reference?: string, subscription_schedule?: string, type: string}, billing_cycle_anchor?: string, cancel_subscription_schedule?: array{cancel_at: string, invoice_now?: bool, prorate?: bool}, effective_at?: string, ends_at?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, id?: string, proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, starts_at?: array{discount_end?: array{discount: string}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], metadata?: array, on_behalf_of?: null|string, subscription_data?: array{bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_cycle_anchor?: null|string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], description?: null|string, effective_date?: null|array|int|string, end_behavior?: string, metadata?: array, phase_effective_at?: string, prebilling?: null|array{iterations: int}, proration_behavior?: string, trial_period_days?: null|int}, subscription_data_overrides?: null|(array{applies_to: array{new_reference?: string, subscription_schedule?: string, type: string}, bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], customer?: string, description?: null|string, end_behavior?: string, phase_effective_at?: string, proration_behavior?: string})[], transfer_data?: null|array{amount?: int, amount_percent?: float, destination: string}} $params
+ * @param null|array{allow_backdated_lines?: bool, application_fee_amount?: null|int, application_fee_percent?: null|float, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, collection_method?: string, customer?: string, customer_account?: string, default_tax_rates?: null|string[], description?: null|string, discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], expand?: string[], expires_at?: int, footer?: null|string, header?: null|string, invoice_settings?: array{days_until_due?: int, issuer?: array{account?: string, type: string}}, line_items?: (array{discounts?: null|array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string}[], id?: string, price?: string, price_data?: array{currency: string, product: string, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: null|string[]})[], lines?: (array{actions?: (array{add_discount?: array{coupon?: string, discount?: string, discount_end?: array{type: string}, index?: int, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}, add_item?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}, add_metadata?: array, remove_discount?: array{coupon?: string, discount?: string, promotion_code?: string}, remove_item?: array{price: string}, remove_metadata?: string[], set_discounts?: array{coupon?: string, discount?: string, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], set_items?: array{discounts?: array{coupon?: string, discount?: string, discount_end?: array{duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, promotion_code?: string, settings?: array{service_period_anchor_config?: array{custom?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, type?: string}, start_date?: string}}[], metadata?: array, price: string, quantity?: int, tax_rates?: string[], trial?: array{converts_to?: string[], type: string}, trial_offer?: string}[], set_metadata?: null|array, type: string})[], applies_to?: array{new_reference?: string, subscription_schedule?: string, type: string}, billing_cycle_anchor?: string, cancel_subscription_schedule?: array{cancel_at: string, invoice_now?: bool, prorate?: bool}, effective_at?: string, ends_at?: array{discount_end?: array{discount: string}, duration?: array{interval: string, interval_count: int}, timestamp?: int, type: string}, id?: string, proration_behavior?: string, set_pause_collection?: array{set?: array{behavior: string}, type: string}, set_schedule_end?: string, starts_at?: array{discount_end?: array{discount: string}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, trial_settings?: array{end_behavior?: array{prorate_up_front?: string}}})[], metadata?: array, on_behalf_of?: null|string, subscription_data?: array{bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_cycle_anchor?: null|string, billing_schedules?: null|array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], description?: null|string, effective_date?: null|array|int|string, end_behavior?: string, metadata?: array, phase_effective_at?: string, prebilling?: null|array{iterations: int}, proration_behavior?: string, trial_period_days?: null|int}, subscription_data_overrides?: null|(array{applies_to: array{new_reference?: string, subscription_schedule?: string, type: string}, bill_on_acceptance?: null|array{bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}}, billing_behavior?: string, billing_schedules?: array{applies_to?: array{price?: string, type: string}[], bill_from?: array{line_starts_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, bill_until?: array{duration?: array{interval: string, interval_count: int}, line_ends_at?: array{id?: string, index?: int}, timestamp?: int, type: string}, key?: string}[], customer?: string, description?: null|string, end_behavior?: string, phase_effective_at?: string, proration_behavior?: string})[], transfer_data?: null|array{amount?: int, amount_percent?: float, destination: string}} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Quote