Bump stripe-php from 16.4.0 to 17.2.1

This commit is contained in:
johnnyq
2025-05-22 12:37:35 -04:00
parent 5361391b3b
commit 6a368840fa
332 changed files with 4978 additions and 4624 deletions

View File

@@ -11,13 +11,13 @@ namespace Stripe\Terminal;
*
* @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 null|\Stripe\StripeObject $action The most recent action performed by the reader.
* @property null|(object{failure_code: null|string, failure_message: null|string, process_payment_intent?: (object{payment_intent: string|\Stripe\PaymentIntent, process_config?: (object{enable_customer_cancellation?: bool, skip_tipping?: bool, tipping?: (object{amount_eligible?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), process_setup_intent?: (object{generated_card?: string, process_config?: (object{enable_customer_cancellation?: bool}&\Stripe\StripeObject), setup_intent: string|\Stripe\SetupIntent}&\Stripe\StripeObject), refund_payment?: (object{amount?: int, charge?: string|\Stripe\Charge, metadata?: \Stripe\StripeObject, payment_intent?: string|\Stripe\PaymentIntent, reason?: string, refund?: string|\Stripe\Refund, refund_application_fee?: bool, refund_payment_config?: (object{enable_customer_cancellation?: bool}&\Stripe\StripeObject), reverse_transfer?: bool}&\Stripe\StripeObject), set_reader_display?: (object{cart: null|(object{currency: string, line_items: (object{amount: int, description: string, quantity: int}&\Stripe\StripeObject)[], tax: null|int, total: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), status: string, type: string}&\Stripe\StripeObject) $action The most recent action performed by the reader.
* @property null|string $device_sw_version The current software version of the reader.
* @property string $device_type Type of reader, one of <code>bbpos_wisepad3</code>, <code>stripe_m2</code>, <code>stripe_s700</code>, <code>bbpos_chipper2x</code>, <code>bbpos_wisepos_e</code>, <code>verifone_P400</code>, <code>simulated_wisepos_e</code>, or <code>mobile_phone_reader</code>.
* @property null|string $ip_address The local IP address of the reader.
* @property string $label Custom label given to the reader for easier identification.
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property null|string|\Stripe\Terminal\Location $location The location identifier of the reader.
* @property null|Location|string $location The location identifier of the reader.
* @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property string $serial_number Serial number of the reader.
* @property null|string $status The networking status of the reader. We do not recommend using this field in flows that may block taking payments.
@@ -43,12 +43,12 @@ class Reader extends \Stripe\ApiResource
/**
* Creates a new <code>Reader</code> object.
*
* @param null|array $params
* @param null|array{expand?: string[], label?: string, location?: string, metadata?: null|array<string, string>, registration_code: string} $params
* @param null|array|string $options
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the created resource
*
* @return \Stripe\Terminal\Reader the created resource
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public static function create($params = null, $options = null)
{
@@ -68,9 +68,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the deleted resource
*
* @return \Stripe\Terminal\Reader the deleted resource
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function delete($params = null, $opts = null)
{
@@ -86,12 +86,12 @@ class Reader extends \Stripe\ApiResource
/**
* Returns a list of <code>Reader</code> objects.
*
* @param null|array $params
* @param null|array{device_type?: string, ending_before?: string, expand?: string[], limit?: int, location?: string, serial_number?: string, starting_after?: string, status?: string} $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return \Stripe\Collection<Reader> of ApiResources
*
* @return \Stripe\Collection<\Stripe\Terminal\Reader> of ApiResources
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public static function all($params = null, $opts = null)
{
@@ -106,9 +106,9 @@ class Reader extends \Stripe\ApiResource
* @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
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader
*
* @return \Stripe\Terminal\Reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public static function retrieve($id, $opts = null)
{
@@ -124,12 +124,12 @@ class Reader extends \Stripe\ApiResource
* passed. Any parameters not provided will be left unchanged.
*
* @param string $id the ID of the resource to update
* @param null|array $params
* @param null|array{expand?: string[], label?: null|string, metadata?: null|array<string, string>} $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the updated resource
*
* @return \Stripe\Terminal\Reader the updated resource
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public static function update($id, $params = null, $opts = null)
{
@@ -147,9 +147,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the canceled reader
*
* @return \Stripe\Terminal\Reader the canceled reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function cancelAction($params = null, $opts = null)
{
@@ -164,9 +164,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the processed reader
*
* @return \Stripe\Terminal\Reader the processed reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function processPaymentIntent($params = null, $opts = null)
{
@@ -181,9 +181,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the processed reader
*
* @return \Stripe\Terminal\Reader the processed reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function processSetupIntent($params = null, $opts = null)
{
@@ -198,9 +198,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the refunded reader
*
* @return \Stripe\Terminal\Reader the refunded reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function refundPayment($params = null, $opts = null)
{
@@ -215,9 +215,9 @@ class Reader extends \Stripe\ApiResource
* @param null|array $params
* @param null|array|string $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
* @return Reader the seted reader
*
* @return \Stripe\Terminal\Reader the seted reader
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function setReaderDisplay($params = null, $opts = null)
{