Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
@@ -27,7 +27,9 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Cancels the current reader action.
* Cancels the current reader action. See <a
* href="/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation">Programmatic
* Cancellation</a> for more details.
*
* @param string $id
* @param null|array{expand?: string[]} $params
@@ -43,7 +45,9 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Initiates an input collection flow on a Reader.
* Initiates an <a href="/docs/terminal/features/collect-inputs">input collection
* flow</a> on a Reader to display input forms and collect information from your
* customers.
*
* @param string $id
* @param null|array{expand?: string[], inputs: array{custom_text: array{description?: string, skip_button?: string, submit_button?: string, title: string}, required?: bool, selection?: array{choices: array{id: string, style?: string, text: string}[]}, toggles?: array{default_value?: string, description?: string, title?: string}[], type: string}[], metadata?: array<string, string>} $params
@@ -58,6 +62,43 @@ class ReaderService extends \Stripe\Service\AbstractService
return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/collect_inputs', $id), $params, $opts);
}
/**
* Initiates a payment flow on a Reader and updates the PaymentIntent with card
* details before manual confirmation. See <a
* href="/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod">Collecting
* a Payment method</a> for more details.
*
* @param string $id
* @param null|array{collect_config?: array{allow_redisplay?: string, enable_customer_cancellation?: bool, skip_tipping?: bool, tipping?: array{amount_eligible?: int}}, expand?: string[], payment_intent: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Terminal\Reader
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function collectPaymentMethod($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/collect_payment_method', $id), $params, $opts);
}
/**
* Finalizes a payment on a Reader. See <a
* href="/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent">Confirming
* a Payment</a> for more details.
*
* @param string $id
* @param null|array{confirm_config?: array{return_url?: string}, expand?: string[], payment_intent: string} $params
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
*
* @return \Stripe\Terminal\Reader
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function confirmPaymentIntent($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/confirm_payment_intent', $id), $params, $opts);
}
/**
* Creates a new <code>Reader</code> object.
*
@@ -90,7 +131,9 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Initiates a payment flow on a Reader.
* Initiates a payment flow on a Reader. See <a
* href="/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment">process
* the payment</a> for more details.
*
* @param string $id
* @param null|array{expand?: string[], payment_intent: string, process_config?: array{allow_redisplay?: string, enable_customer_cancellation?: bool, return_url?: string, skip_tipping?: bool, tipping?: array{amount_eligible?: int}}} $params
@@ -106,7 +149,9 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Initiates a setup intent flow on a Reader.
* Initiates a SetupIntent flow on a Reader. See <a
* href="/docs/terminal/features/saving-payment-details/save-directly">Save
* directly without charging</a> for more details.
*
* @param string $id
* @param null|array{allow_redisplay: string, expand?: string[], process_config?: array{enable_customer_cancellation?: bool}, setup_intent: string} $params
@@ -122,7 +167,9 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Initiates a refund on a Reader.
* Initiates an in-person refund on a Reader. See <a
* href="/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment">Refund
* an Interac Payment</a> for more details.
*
* @param string $id
* @param null|array{amount?: int, charge?: string, expand?: string[], metadata?: array<string, string>, payment_intent?: string, refund_application_fee?: bool, refund_payment_config?: array{enable_customer_cancellation?: bool}, reverse_transfer?: bool} $params
@@ -154,7 +201,8 @@ class ReaderService extends \Stripe\Service\AbstractService
}
/**
* Sets reader display to show cart details.
* Sets the reader display to show <a href="/docs/terminal/features/display">cart
* details</a>.
*
* @param string $id
* @param null|array{cart?: array{currency: string, line_items: array{amount: int, description: string, quantity: int}[], tax?: int, total: int}, expand?: string[], type: string} $params