Skip to content

Commit

Permalink
Updated with string literal unions
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmesh-stripe committed Dec 19, 2024
1 parent fbe4d47 commit 02b76c0
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions lib/Account.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function retrieve($id, $opts = null)
* Updates an existing file link object. Expired links can no longer be updated.
*
* @param string $id the ID of the resource to update
* @param null|array{expand?: string[], expires_at?: null|int|array, metadata?: null|\Stripe\StripeObject} $params
* @param null|array{expand?: string[], expires_at?: null|string|int|array, metadata?: null|\Stripe\StripeObject} $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
2 changes: 1 addition & 1 deletion lib/PaymentIntent.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Plan extends ApiResource
* API</a>. It replaces the Plans API and is backwards compatible to simplify your
* migration.
*
* @param null|array{active?: bool, aggregate_usage?: string, amount?: int, amount_decimal?: string, billing_scheme?: string, currency: string, expand?: string[], id?: string, interval: string, interval_count?: int, metadata?: null|\Stripe\StripeObject, meter?: string, nickname?: string, product?: string|array, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: int|array})[], tiers_mode?: string, transform_usage?: array{divide_by: int, round: string}, trial_period_days?: int, usage_type?: string} $params
* @param null|array{active?: bool, aggregate_usage?: string, amount?: int, amount_decimal?: string, billing_scheme?: string, currency: string, expand?: string[], id?: string, interval: string, interval_count?: int, metadata?: null|\Stripe\StripeObject, meter?: string, nickname?: string, product?: string|array, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: string|int|array})[], tiers_mode?: string, transform_usage?: array{divide_by: int, round: string}, trial_period_days?: int, usage_type?: string} $params
* @param null|array|string $options
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
2 changes: 1 addition & 1 deletion lib/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Price extends ApiResource
* Creates a new price for an existing product. The price can be recurring or
* one-time.
*
* @param null|array{active?: bool, billing_scheme?: string, currency: string, currency_options?: \Stripe\StripeObject, custom_unit_amount?: array{enabled: bool, maximum?: int, minimum?: int, preset?: int}, expand?: string[], lookup_key?: string, metadata?: \Stripe\StripeObject, nickname?: string, product?: string, product_data?: array{active?: bool, id?: string, metadata?: \Stripe\StripeObject, name: string, statement_descriptor?: string, tax_code?: string, unit_label?: string}, recurring?: array{aggregate_usage?: string, interval: string, interval_count?: int, meter?: string, trial_period_days?: int, usage_type?: string}, tax_behavior?: string, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: int|array})[], tiers_mode?: string, transfer_lookup_key?: bool, transform_quantity?: array{divide_by: int, round: string}, unit_amount?: int, unit_amount_decimal?: string} $params
* @param null|array{active?: bool, billing_scheme?: string, currency: string, currency_options?: \Stripe\StripeObject, custom_unit_amount?: array{enabled: bool, maximum?: int, minimum?: int, preset?: int}, expand?: string[], lookup_key?: string, metadata?: \Stripe\StripeObject, nickname?: string, product?: string, product_data?: array{active?: bool, id?: string, metadata?: \Stripe\StripeObject, name: string, statement_descriptor?: string, tax_code?: string, unit_label?: string}, recurring?: array{aggregate_usage?: string, interval: string, interval_count?: int, meter?: string, trial_period_days?: int, usage_type?: string}, tax_behavior?: string, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: string|int|array})[], tiers_mode?: string, transfer_lookup_key?: bool, transform_quantity?: array{divide_by: int, round: string}, unit_amount?: int, unit_amount_decimal?: string} $params
* @param null|array|string $options
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
4 changes: 2 additions & 2 deletions lib/Quote.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/Service/AccountService.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Service/FileLinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function retrieve($id, $params = null, $opts = null)
* Updates an existing file link object. Expired links can no longer be updated.
*
* @param string $id
* @param null|array{expand?: string[], expires_at?: null|int|array, metadata?: null|\Stripe\StripeObject} $params
* @param null|array{expand?: string[], expires_at?: null|string|int|array, metadata?: null|\Stripe\StripeObject} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
6 changes: 3 additions & 3 deletions lib/Service/InvoiceService.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/Service/PaymentIntentService.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Service/PlanService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function all($params = null, $opts = null)
* API</a>. It replaces the Plans API and is backwards compatible to simplify your
* migration.
*
* @param null|array{active?: bool, aggregate_usage?: string, amount?: int, amount_decimal?: string, billing_scheme?: string, currency: string, expand?: string[], id?: string, interval: string, interval_count?: int, metadata?: null|\Stripe\StripeObject, meter?: string, nickname?: string, product?: string|array, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: int|array})[], tiers_mode?: string, transform_usage?: array{divide_by: int, round: string}, trial_period_days?: int, usage_type?: string} $params
* @param null|array{active?: bool, aggregate_usage?: string, amount?: int, amount_decimal?: string, billing_scheme?: string, currency: string, expand?: string[], id?: string, interval: string, interval_count?: int, metadata?: null|\Stripe\StripeObject, meter?: string, nickname?: string, product?: string|array, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: string|int|array})[], tiers_mode?: string, transform_usage?: array{divide_by: int, round: string}, trial_period_days?: int, usage_type?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/PriceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function all($params = null, $opts = null)
* Creates a new price for an existing product. The price can be recurring or
* one-time.
*
* @param null|array{active?: bool, billing_scheme?: string, currency: string, currency_options?: \Stripe\StripeObject, custom_unit_amount?: array{enabled: bool, maximum?: int, minimum?: int, preset?: int}, expand?: string[], lookup_key?: string, metadata?: \Stripe\StripeObject, nickname?: string, product?: string, product_data?: array{active?: bool, id?: string, metadata?: \Stripe\StripeObject, name: string, statement_descriptor?: string, tax_code?: string, unit_label?: string}, recurring?: array{aggregate_usage?: string, interval: string, interval_count?: int, meter?: string, trial_period_days?: int, usage_type?: string}, tax_behavior?: string, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: int|array})[], tiers_mode?: string, transfer_lookup_key?: bool, transform_quantity?: array{divide_by: int, round: string}, unit_amount?: int, unit_amount_decimal?: string} $params
* @param null|array{active?: bool, billing_scheme?: string, currency: string, currency_options?: \Stripe\StripeObject, custom_unit_amount?: array{enabled: bool, maximum?: int, minimum?: int, preset?: int}, expand?: string[], lookup_key?: string, metadata?: \Stripe\StripeObject, nickname?: string, product?: string, product_data?: array{active?: bool, id?: string, metadata?: \Stripe\StripeObject, name: string, statement_descriptor?: string, tax_code?: string, unit_label?: string}, recurring?: array{aggregate_usage?: string, interval: string, interval_count?: int, meter?: string, trial_period_days?: int, usage_type?: string}, tax_behavior?: string, tiers?: (array{flat_amount?: int, flat_amount_decimal?: string, unit_amount?: int, unit_amount_decimal?: string, up_to: string|int|array})[], tiers_mode?: string, transfer_lookup_key?: bool, transform_quantity?: array{divide_by: int, round: string}, unit_amount?: int, unit_amount_decimal?: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
Expand Down
Loading

0 comments on commit 02b76c0

Please sign in to comment.