Fix: Corriger le type PDO dans StripeService et retirer getConnection()
This commit is contained in:
28
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/ConfirmationTokenService.php
vendored
Normal file
28
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/ConfirmationTokenService.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ConfirmationTokenService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates a test mode Confirmation Token server side for your integration tests.
|
||||
*
|
||||
* @param null|array{expand?: string[], payment_method?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, giropay?: array{}, grabpay?: array{}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, metadata?: array<string, string>, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, pix?: array{}, promptpay?: array{}, radar_options?: array{session?: string}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, sepa_debit?: array{iban: string}, sofort?: array{country: string}, swish?: array{}, twint?: array{}, type: string, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{card?: array{installments?: array{plan: array{count?: int, interval?: string, type: string}}}}, return_url?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name: string, phone?: null|string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\ConfirmationToken
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/confirmation_tokens', $params, $opts);
|
||||
}
|
||||
}
|
||||
29
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php
vendored
Normal file
29
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CustomerService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Create an incoming testmode bank transfer.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{amount: int, currency: string, expand?: string[], reference?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\CustomerCashBalanceTransaction
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fundCashBalance($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/customers/%s/fund_cash_balance', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
126
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/AuthorizationService.php
vendored
Normal file
126
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/AuthorizationService.php
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class AuthorizationService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Capture a test-mode authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{capture_amount?: int, close_authorization?: bool, expand?: string[], purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function capture($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/capture', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a test-mode authorization.
|
||||
*
|
||||
* @param null|array{amount?: int, amount_details?: array{atm_fee?: int, cashback_amount?: int}, authorization_method?: string, card: string, currency?: string, expand?: string[], fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, is_amount_controllable?: bool, merchant_amount?: int, merchant_currency?: string, merchant_data?: array{category?: string, city?: string, country?: string, name?: string, network_id?: string, postal_code?: string, state?: string, terminal_id?: string, url?: string}, network_data?: array{acquiring_institution_id?: string}, verification_data?: array{address_line1_check?: string, address_postal_code_check?: string, authentication_exemption?: array{claimed_by: string, type: string}, cvc_check?: string, expiry_check?: string, three_d_secure?: array{result: string}}, wallet?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/issuing/authorizations', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expire a test-mode Authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function expire($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/expire', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finalize the amount on an Authorization prior to capture, when the initial
|
||||
* authorization was for an estimated amount.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], final_amount: int, fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function finalizeAmount($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/finalize_amount', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment a test-mode Authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], increment_amount: int, is_amount_controllable?: bool} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function increment($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/increment', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Respond to a fraud challenge on a testmode Issuing authorization, simulating
|
||||
* either a confirmation of fraud or a correction of legitimacy.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{confirmed: bool, expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function respond($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse a test-mode Authorization.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], reverse_amount?: int} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Authorization
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function reverse($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/reverse', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
99
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php
vendored
Normal file
99
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class CardService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>delivered</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function deliverCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/deliver', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>failure</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function failCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>returned</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>shipped</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function shipCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/ship', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the shipping status of the specified Issuing <code>Card</code> object to
|
||||
* <code>submitted</code>. This method requires Stripe Version ‘2024-09-30.acacia’
|
||||
* or later.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Card
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function submitCard($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/cards/%s/shipping/submit', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
31
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
vendored
Normal file
31
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Issuing namespace.
|
||||
*
|
||||
* @property AuthorizationService $authorizations
|
||||
* @property CardService $cards
|
||||
* @property PersonalizationDesignService $personalizationDesigns
|
||||
* @property TransactionService $transactions
|
||||
*/
|
||||
class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'authorizations' => AuthorizationService::class,
|
||||
'cards' => CardService::class,
|
||||
'personalizationDesigns' => PersonalizationDesignService::class,
|
||||
'transactions' => TransactionService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
64
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php
vendored
Normal file
64
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class PersonalizationDesignService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>active</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function activate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/activate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>inactive</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function deactivate($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/deactivate', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the <code>status</code> of the specified testmode personalization design
|
||||
* object to <code>rejected</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], rejection_reasons: array{card_logo?: string[], carrier_text?: string[]}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\PersonalizationDesign
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function reject($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/personalization_designs/%s/reject', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
59
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/TransactionService.php
vendored
Normal file
59
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/TransactionService.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Issuing;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class TransactionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Allows the user to capture an arbitrary amount, also known as a forced capture.
|
||||
*
|
||||
* @param null|array{amount: int, card: string, currency?: string, expand?: string[], merchant_data?: array{category?: string, city?: string, country?: string, name?: string, network_id?: string, postal_code?: string, state?: string, terminal_id?: string, url?: string}, purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Transaction
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function createForceCapture($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/issuing/transactions/create_force_capture', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the user to refund an arbitrary amount, also known as a unlinked refund.
|
||||
*
|
||||
* @param null|array{amount: int, card: string, currency?: string, expand?: string[], merchant_data?: array{category?: string, city?: string, country?: string, name?: string, network_id?: string, postal_code?: string, state?: string, terminal_id?: string, url?: string}, purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Transaction
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function createUnlinkedRefund($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/issuing/transactions/create_unlinked_refund', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Refund a test-mode Transaction.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], refund_amount?: int} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Issuing\Transaction
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function refund($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/transactions/%s/refund', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
29
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
vendored
Normal file
29
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class RefundService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Expire a refund with a status of <code>requires_action</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Refund
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function expire($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/refunds/%s/expire', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
64
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
vendored
Normal file
64
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Terminal;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ReaderService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Presents a payment method on a simulated reader. Can be used to simulate
|
||||
* accepting a payment, saving a card or refunding a transaction.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{amount_tip?: int, card?: array{cvc?: string, exp_month: int, exp_year: int, number: string}, card_present?: array{number?: string}, expand?: string[], interac_present?: array{number?: string}, type?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function presentPaymentMethod($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/terminal/readers/%s/present_payment_method', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this endpoint to trigger a successful input collection on a simulated
|
||||
* reader.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], skip_non_required_inputs?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function succeedInputCollection($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/terminal/readers/%s/succeed_input_collection', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this endpoint to complete an input collection with a timeout error on a
|
||||
* simulated reader.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function timeoutInputCollection($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/terminal/readers/%s/timeout_input_collection', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
25
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
vendored
Normal file
25
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Terminal;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Terminal namespace.
|
||||
*
|
||||
* @property ReaderService $readers
|
||||
*/
|
||||
class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'readers' => ReaderService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
92
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
vendored
Normal file
92
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class TestClockService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Starts advancing a test clock to a specified time in the future. Advancement is
|
||||
* done when status changes to <code>Ready</code>.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], frozen_time: int} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function advance($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/test_clocks/%s/advance', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of your test clocks.
|
||||
*
|
||||
* @param null|array{ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/test_helpers/test_clocks', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new test clock that can be attached to new customers and quotes.
|
||||
*
|
||||
* @param null|array{expand?: string[], frozen_time: int, name?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/test_clocks', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a test clock.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function delete($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('delete', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a test clock.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\TestHelpers\TestClock
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
37
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
vendored
Normal file
37
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the TestHelpers namespace.
|
||||
*
|
||||
* @property ConfirmationTokenService $confirmationTokens
|
||||
* @property CustomerService $customers
|
||||
* @property Issuing\IssuingServiceFactory $issuing
|
||||
* @property RefundService $refunds
|
||||
* @property Terminal\TerminalServiceFactory $terminal
|
||||
* @property TestClockService $testClocks
|
||||
* @property Treasury\TreasuryServiceFactory $treasury
|
||||
*/
|
||||
class TestHelpersServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'confirmationTokens' => ConfirmationTokenService::class,
|
||||
'customers' => CustomerService::class,
|
||||
'issuing' => Issuing\IssuingServiceFactory::class,
|
||||
'refunds' => RefundService::class,
|
||||
'terminal' => Terminal\TerminalServiceFactory::class,
|
||||
'testClocks' => TestClockService::class,
|
||||
'treasury' => Treasury\TreasuryServiceFactory::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
67
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
67
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class InboundTransferService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>failed</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], failure_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the test mode InboundTransfer object as returned and links the
|
||||
* InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the
|
||||
* <code>succeeded</code> state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnInboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created InboundTransfer to the <code>succeeded</code>
|
||||
* status. The InboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\InboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function succeed($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/inbound_transfers/%s/succeed', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class OutboundPaymentService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>failed</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>posted</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/post', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundPayment to the <code>returned</code>
|
||||
* status. The OutboundPayment must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnOutboundPayment($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a test mode created OutboundPayment with tracking details. The
|
||||
* OutboundPayment must not be cancelable, and cannot be in the
|
||||
* <code>canceled</code> or <code>failed</code> states.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], tracking_details: array{ach?: array{trace_id: string}, type: string, us_domestic_wire?: array{chips?: string, imad?: string, omad?: string}}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundPayment
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_payments/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
85
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class OutboundTransferService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>failed</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function fail($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/fail', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>posted</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function post($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/post', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the <code>returned</code>
|
||||
* status. The OutboundTransfer must already be in the <code>processing</code>
|
||||
* state.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], returned_details?: array{code?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function returnOutboundTransfer($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/return', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a test mode created OutboundTransfer with tracking details. The
|
||||
* OutboundTransfer must not be cancelable, and cannot be in the
|
||||
* <code>canceled</code> or <code>failed</code> states.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[], tracking_details: array{ach?: array{trace_id: string}, type: string, us_domestic_wire?: array{chips?: string, imad?: string, omad?: string}}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\OutboundTransfer
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ReceivedCreditService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedCredit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedCredits initiated by
|
||||
* third parties.
|
||||
*
|
||||
* @param null|array{amount: int, currency: string, description?: string, expand?: string[], financial_account: string, initiating_payment_method_details?: array{type: string, us_bank_account?: array{account_holder_name?: string, account_number?: string, routing_number?: string}}, network: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedCredit
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_credits', $params, $opts);
|
||||
}
|
||||
}
|
||||
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
30
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ReceivedDebitService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Use this endpoint to simulate a test mode ReceivedDebit initiated by a third
|
||||
* party. In live mode, you can’t directly create ReceivedDebits initiated by third
|
||||
* parties.
|
||||
*
|
||||
* @param null|array{amount: int, currency: string, description?: string, expand?: string[], financial_account: string, initiating_payment_method_details?: array{type: string, us_bank_account?: array{account_holder_name?: string, account_number?: string, routing_number?: string}}, network: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Treasury\ReceivedDebit
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/test_helpers/treasury/received_debits', $params, $opts);
|
||||
}
|
||||
}
|
||||
33
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
33
api/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\TestHelpers\Treasury;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Treasury namespace.
|
||||
*
|
||||
* @property InboundTransferService $inboundTransfers
|
||||
* @property OutboundPaymentService $outboundPayments
|
||||
* @property OutboundTransferService $outboundTransfers
|
||||
* @property ReceivedCreditService $receivedCredits
|
||||
* @property ReceivedDebitService $receivedDebits
|
||||
*/
|
||||
class TreasuryServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'inboundTransfers' => InboundTransferService::class,
|
||||
'outboundPayments' => OutboundPaymentService::class,
|
||||
'outboundTransfers' => OutboundTransferService::class,
|
||||
'receivedCredits' => ReceivedCreditService::class,
|
||||
'receivedDebits' => ReceivedDebitService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user