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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74913070eb5bc81c058d07ad167346b6d68d8b0b
afce9794b52053b2efda64fd3af04dcf9225eafa
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2164
v2169
6 changes: 6 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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';
Expand All @@ -920,13 +924,15 @@
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';
require __DIR__ . '/lib/V2/Billing/PricingPlanSubscriptionComponents.php';
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';
Expand Down
4 changes: 4 additions & 0 deletions lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
* @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 <code>destination</code> 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<ApplicationFeeRefund> $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 <code>net_settled</code> or <code>gross_settled</code>.
*/
class ApplicationFee extends ApiResource
{
const OBJECT_NAME = 'application_fee';

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
31 changes: 25 additions & 6 deletions lib/FrMealVouchersOnboarding.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
namespace Stripe;

/**
* The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
* The <code>French Meal Vouchers Onboarding</code> 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 <code>French Meal Vouchers Onboarding</code> object.
* You can retrieve individual objects, list all such objects, or update objects to correct the postal code of the restaurant.
* We identify <code>French Meal Vouchers Onboarding</code> objects with a unique, random ID.
*
* Related guide: <a href="https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers/set-up-restaurant">Set up a restaurant for titres-restaurant payments</a>
*
* @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 <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
Expand All @@ -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 <code>French Meal Vouchers Onboarding</code> object that represents a
* restaurant’s onboarding status and starts the onboarding process.
*
* @param null|array{expand?: string[], metadata?: array<string, string>, name: string, postal_code: string, siret: string} $params
* @param null|array|string $options
Expand All @@ -47,7 +53,9 @@ public static function create($params = null, $options = null)
}

/**
* Lists French Meal Vouchers Onboarding objects.
* Lists <code>French Meal Vouchers Onboarding</code> 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
Expand All @@ -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 <code>French Meal Vouchers
* Onboarding</code> object.
*
* Supply the unique <code>French Meal Vouchers Onboarding</code> 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
Expand All @@ -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 <code>French Meal Vouchers
* Onboarding</code> 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 <code>French Meal Vouchers Onboarding</code> objects with
* the <code>postal_code</code> field requirement in <code>past_due</code>.
*
* @param string $id the ID of the resource to update
* @param null|array{expand?: string[], postal_code: string} $params
Expand Down
2 changes: 1 addition & 1 deletion lib/InvoiceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @property null|int $net_amount The amount after discounts, but before credits and taxes. This field is <code>null</code> for <code>discountable=true</code> 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/InvoiceLineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading