diff --git a/init.php b/init.php index 502cfd851..423534c64 100644 --- a/init.php +++ b/init.php @@ -1,7 +1,5 @@ coupon or promotion code. + * It contains information about when the discount began, when it will end, and what it is applied to. + * + * Related guide: Applying discounts to subscriptions * + * @property string $id The ID of the discount object. Discounts cannot be fetched by ID. Use expand[]=discounts in API calls to expand discount IDs in an array. + * @property string $object String representing the object's type. Objects of the same type share the same value. * @property null|string $checkout_session The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. - * @property \Stripe\Coupon $coupon Hash describing the coupon applied to create this discount. - * @property string|\Stripe\Customer $customer The ID of the customer associated with this discount. - * @property null|int $end If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null. - * @property string $id The ID of the discount object. - * @property null|string $invoice The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice. - * @property null|string $invoice_item The invoice item id (or invoice line item id for invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item. - * @property string $object String representing the object’s type. Objects of the same type share the same value. - * @property null|string $promotion_code The promotion code applied to create this discount. + * @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with conventional one-off charges or payment intents. + * @property null|string|\Stripe\Customer $customer The ID of the customer associated with this discount. + * @property null|int $end If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null. + * @property null|string $invoice The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice. + * @property null|string $invoice_item The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item. + * @property null|string|\Stripe\PromotionCode $promotion_code The promotion code applied to create this discount. * @property int $start Date that the coupon was applied. * @property null|string $subscription The subscription that this coupon is applied to, if it is applied to a particular subscription. */ -class Discount extends StripeObject +class Discount extends ApiResource { const OBJECT_NAME = 'discount'; } diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php index b656a355b..250f85f18 100644 --- a/lib/Service/CoreServiceFactory.php +++ b/lib/Service/CoreServiceFactory.php @@ -1,12 +1,12 @@ */ private static $classMap = [ + 'oauth' => OAuthService::class, + // Class Map: The beginning of the section generated from our OpenAPI spec 'accountLinks' => AccountLinkService::class, 'accounts' => AccountService::class, 'accountSessions' => AccountSessionService::class, @@ -102,7 +104,6 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory 'invoices' => InvoiceService::class, 'issuing' => Issuing\IssuingServiceFactory::class, 'mandates' => MandateService::class, - 'oauth' => OAuthService::class, 'paymentIntents' => PaymentIntentService::class, 'paymentLinks' => PaymentLinkService::class, 'paymentMethodConfigurations' => PaymentMethodConfigurationService::class, @@ -136,6 +137,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory 'transfers' => TransferService::class, 'treasury' => Treasury\TreasuryServiceFactory::class, 'webhookEndpoints' => WebhookEndpointService::class, + // Class Map: The end of the section generated from our OpenAPI spec ]; protected function getServiceClass($name) diff --git a/lib/SourceTransaction.php b/lib/SourceTransaction.php index 281f2a710..38c218e04 100644 --- a/lib/SourceTransaction.php +++ b/lib/SourceTransaction.php @@ -1,20 +1,48 @@ ISO currency code, in lowercase. Must be a supported currency. + * @property null|\Stripe\StripeObject $gbp_credit_transfer + * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|\Stripe\StripeObject $paper_check + * @property null|\Stripe\StripeObject $sepa_credit_transfer + * @property string $source The ID of the source this transaction is attached to. + * @property string $status The status of the transaction, one of succeeded, pending, or failed. + * @property string $type The type of source this transaction is attached to. */ class SourceTransaction extends ApiResource { const OBJECT_NAME = 'source_transaction'; + + const TYPE_ACH_CREDIT_TRANSFER = 'ach_credit_transfer'; + const TYPE_ACH_DEBIT = 'ach_debit'; + const TYPE_ALIPAY = 'alipay'; + const TYPE_BANCONTACT = 'bancontact'; + const TYPE_CARD = 'card'; + const TYPE_CARD_PRESENT = 'card_present'; + const TYPE_EPS = 'eps'; + const TYPE_GIROPAY = 'giropay'; + const TYPE_IDEAL = 'ideal'; + const TYPE_KLARNA = 'klarna'; + const TYPE_MULTIBANCO = 'multibanco'; + const TYPE_P24 = 'p24'; + const TYPE_SEPA_DEBIT = 'sepa_debit'; + const TYPE_SOFORT = 'sofort'; + const TYPE_THREE_D_SECURE = 'three_d_secure'; + const TYPE_WECHAT = 'wechat'; } diff --git a/lib/StripeClient.php b/lib/StripeClient.php index 3540b6662..80ec648d9 100644 --- a/lib/StripeClient.php +++ b/lib/StripeClient.php @@ -1,15 +1,15 @@ \Stripe\Account::class, - \Stripe\AccountLink::OBJECT_NAME => \Stripe\AccountLink::class, - \Stripe\AccountSession::OBJECT_NAME => \Stripe\AccountSession::class, - \Stripe\ApplePayDomain::OBJECT_NAME => \Stripe\ApplePayDomain::class, - \Stripe\ApplicationFee::OBJECT_NAME => \Stripe\ApplicationFee::class, - \Stripe\ApplicationFeeRefund::OBJECT_NAME => \Stripe\ApplicationFeeRefund::class, - \Stripe\Apps\Secret::OBJECT_NAME => \Stripe\Apps\Secret::class, - \Stripe\Balance::OBJECT_NAME => \Stripe\Balance::class, - \Stripe\BalanceTransaction::OBJECT_NAME => \Stripe\BalanceTransaction::class, - \Stripe\BankAccount::OBJECT_NAME => \Stripe\BankAccount::class, - \Stripe\BillingPortal\Configuration::OBJECT_NAME => \Stripe\BillingPortal\Configuration::class, - \Stripe\BillingPortal\Session::OBJECT_NAME => \Stripe\BillingPortal\Session::class, - \Stripe\Capability::OBJECT_NAME => \Stripe\Capability::class, - \Stripe\Card::OBJECT_NAME => \Stripe\Card::class, - \Stripe\CashBalance::OBJECT_NAME => \Stripe\CashBalance::class, - \Stripe\Charge::OBJECT_NAME => \Stripe\Charge::class, - \Stripe\Checkout\Session::OBJECT_NAME => \Stripe\Checkout\Session::class, - \Stripe\Collection::OBJECT_NAME => \Stripe\Collection::class, - \Stripe\CountrySpec::OBJECT_NAME => \Stripe\CountrySpec::class, - \Stripe\Coupon::OBJECT_NAME => \Stripe\Coupon::class, - \Stripe\CreditNote::OBJECT_NAME => \Stripe\CreditNote::class, - \Stripe\CreditNoteLineItem::OBJECT_NAME => \Stripe\CreditNoteLineItem::class, - \Stripe\Customer::OBJECT_NAME => \Stripe\Customer::class, - \Stripe\CustomerBalanceTransaction::OBJECT_NAME => \Stripe\CustomerBalanceTransaction::class, - \Stripe\CustomerCashBalanceTransaction::OBJECT_NAME => \Stripe\CustomerCashBalanceTransaction::class, - \Stripe\Discount::OBJECT_NAME => \Stripe\Discount::class, - \Stripe\Dispute::OBJECT_NAME => \Stripe\Dispute::class, - \Stripe\EphemeralKey::OBJECT_NAME => \Stripe\EphemeralKey::class, - \Stripe\Event::OBJECT_NAME => \Stripe\Event::class, - \Stripe\ExchangeRate::OBJECT_NAME => \Stripe\ExchangeRate::class, - \Stripe\File::OBJECT_NAME => \Stripe\File::class, - \Stripe\File::OBJECT_NAME_ALT => \Stripe\File::class, - \Stripe\FileLink::OBJECT_NAME => \Stripe\FileLink::class, - \Stripe\FinancialConnections\Account::OBJECT_NAME => \Stripe\FinancialConnections\Account::class, - \Stripe\FinancialConnections\AccountOwner::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwner::class, - \Stripe\FinancialConnections\AccountOwnership::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwnership::class, - \Stripe\FinancialConnections\Session::OBJECT_NAME => \Stripe\FinancialConnections\Session::class, - \Stripe\FundingInstructions::OBJECT_NAME => \Stripe\FundingInstructions::class, - \Stripe\Identity\VerificationReport::OBJECT_NAME => \Stripe\Identity\VerificationReport::class, - \Stripe\Identity\VerificationSession::OBJECT_NAME => \Stripe\Identity\VerificationSession::class, - \Stripe\Invoice::OBJECT_NAME => \Stripe\Invoice::class, - \Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class, - \Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class, - \Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class, - \Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class, - \Stripe\Issuing\CardDetails::OBJECT_NAME => \Stripe\Issuing\CardDetails::class, - \Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class, - \Stripe\Issuing\Dispute::OBJECT_NAME => \Stripe\Issuing\Dispute::class, - \Stripe\Issuing\Transaction::OBJECT_NAME => \Stripe\Issuing\Transaction::class, - \Stripe\LineItem::OBJECT_NAME => \Stripe\LineItem::class, - \Stripe\LoginLink::OBJECT_NAME => \Stripe\LoginLink::class, - \Stripe\Mandate::OBJECT_NAME => \Stripe\Mandate::class, - \Stripe\PaymentIntent::OBJECT_NAME => \Stripe\PaymentIntent::class, - \Stripe\PaymentLink::OBJECT_NAME => \Stripe\PaymentLink::class, - \Stripe\PaymentMethod::OBJECT_NAME => \Stripe\PaymentMethod::class, - \Stripe\PaymentMethodConfiguration::OBJECT_NAME => \Stripe\PaymentMethodConfiguration::class, - \Stripe\PaymentMethodDomain::OBJECT_NAME => \Stripe\PaymentMethodDomain::class, - \Stripe\Payout::OBJECT_NAME => \Stripe\Payout::class, - \Stripe\Person::OBJECT_NAME => \Stripe\Person::class, - \Stripe\Plan::OBJECT_NAME => \Stripe\Plan::class, - \Stripe\Price::OBJECT_NAME => \Stripe\Price::class, - \Stripe\Product::OBJECT_NAME => \Stripe\Product::class, - \Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class, - \Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class, - \Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class, - \Stripe\Radar\ValueList::OBJECT_NAME => \Stripe\Radar\ValueList::class, - \Stripe\Radar\ValueListItem::OBJECT_NAME => \Stripe\Radar\ValueListItem::class, - \Stripe\Refund::OBJECT_NAME => \Stripe\Refund::class, - \Stripe\Reporting\ReportRun::OBJECT_NAME => \Stripe\Reporting\ReportRun::class, - \Stripe\Reporting\ReportType::OBJECT_NAME => \Stripe\Reporting\ReportType::class, - \Stripe\Review::OBJECT_NAME => \Stripe\Review::class, - \Stripe\SearchResult::OBJECT_NAME => \Stripe\SearchResult::class, - \Stripe\SetupAttempt::OBJECT_NAME => \Stripe\SetupAttempt::class, - \Stripe\SetupIntent::OBJECT_NAME => \Stripe\SetupIntent::class, - \Stripe\ShippingRate::OBJECT_NAME => \Stripe\ShippingRate::class, - \Stripe\Sigma\ScheduledQueryRun::OBJECT_NAME => \Stripe\Sigma\ScheduledQueryRun::class, - \Stripe\Source::OBJECT_NAME => \Stripe\Source::class, - \Stripe\SourceTransaction::OBJECT_NAME => \Stripe\SourceTransaction::class, - \Stripe\Subscription::OBJECT_NAME => \Stripe\Subscription::class, - \Stripe\SubscriptionItem::OBJECT_NAME => \Stripe\SubscriptionItem::class, - \Stripe\SubscriptionSchedule::OBJECT_NAME => \Stripe\SubscriptionSchedule::class, - \Stripe\Tax\Calculation::OBJECT_NAME => \Stripe\Tax\Calculation::class, - \Stripe\Tax\CalculationLineItem::OBJECT_NAME => \Stripe\Tax\CalculationLineItem::class, - \Stripe\Tax\Settings::OBJECT_NAME => \Stripe\Tax\Settings::class, - \Stripe\Tax\Transaction::OBJECT_NAME => \Stripe\Tax\Transaction::class, - \Stripe\Tax\TransactionLineItem::OBJECT_NAME => \Stripe\Tax\TransactionLineItem::class, - \Stripe\TaxCode::OBJECT_NAME => \Stripe\TaxCode::class, - \Stripe\TaxId::OBJECT_NAME => \Stripe\TaxId::class, - \Stripe\TaxRate::OBJECT_NAME => \Stripe\TaxRate::class, - \Stripe\Terminal\Configuration::OBJECT_NAME => \Stripe\Terminal\Configuration::class, - \Stripe\Terminal\ConnectionToken::OBJECT_NAME => \Stripe\Terminal\ConnectionToken::class, - \Stripe\Terminal\Location::OBJECT_NAME => \Stripe\Terminal\Location::class, - \Stripe\Terminal\Reader::OBJECT_NAME => \Stripe\Terminal\Reader::class, - \Stripe\TestHelpers\TestClock::OBJECT_NAME => \Stripe\TestHelpers\TestClock::class, - \Stripe\Token::OBJECT_NAME => \Stripe\Token::class, - \Stripe\Topup::OBJECT_NAME => \Stripe\Topup::class, - \Stripe\Transfer::OBJECT_NAME => \Stripe\Transfer::class, - \Stripe\TransferReversal::OBJECT_NAME => \Stripe\TransferReversal::class, - \Stripe\Treasury\CreditReversal::OBJECT_NAME => \Stripe\Treasury\CreditReversal::class, - \Stripe\Treasury\DebitReversal::OBJECT_NAME => \Stripe\Treasury\DebitReversal::class, - \Stripe\Treasury\FinancialAccount::OBJECT_NAME => \Stripe\Treasury\FinancialAccount::class, - \Stripe\Treasury\FinancialAccountFeatures::OBJECT_NAME => \Stripe\Treasury\FinancialAccountFeatures::class, - \Stripe\Treasury\InboundTransfer::OBJECT_NAME => \Stripe\Treasury\InboundTransfer::class, - \Stripe\Treasury\OutboundPayment::OBJECT_NAME => \Stripe\Treasury\OutboundPayment::class, - \Stripe\Treasury\OutboundTransfer::OBJECT_NAME => \Stripe\Treasury\OutboundTransfer::class, - \Stripe\Treasury\ReceivedCredit::OBJECT_NAME => \Stripe\Treasury\ReceivedCredit::class, - \Stripe\Treasury\ReceivedDebit::OBJECT_NAME => \Stripe\Treasury\ReceivedDebit::class, - \Stripe\Treasury\Transaction::OBJECT_NAME => \Stripe\Treasury\Transaction::class, - \Stripe\Treasury\TransactionEntry::OBJECT_NAME => \Stripe\Treasury\TransactionEntry::class, - \Stripe\UsageRecord::OBJECT_NAME => \Stripe\UsageRecord::class, - \Stripe\UsageRecordSummary::OBJECT_NAME => \Stripe\UsageRecordSummary::class, - \Stripe\WebhookEndpoint::OBJECT_NAME => \Stripe\WebhookEndpoint::class, - ]; + const mapping = + [ + \Stripe\Collection::OBJECT_NAME => \Stripe\Collection::class, + \Stripe\Issuing\CardDetails::OBJECT_NAME => \Stripe\Issuing\CardDetails::class, + \Stripe\SearchResult::OBJECT_NAME => \Stripe\SearchResult::class, + \Stripe\File::OBJECT_NAME_ALT => \Stripe\File::class, + // The beginning of the section generated from our OpenAPI spec + \Stripe\Account::OBJECT_NAME => \Stripe\Account::class, + \Stripe\AccountLink::OBJECT_NAME => \Stripe\AccountLink::class, + \Stripe\AccountSession::OBJECT_NAME => \Stripe\AccountSession::class, + \Stripe\ApplePayDomain::OBJECT_NAME => \Stripe\ApplePayDomain::class, + \Stripe\ApplicationFee::OBJECT_NAME => \Stripe\ApplicationFee::class, + \Stripe\ApplicationFeeRefund::OBJECT_NAME => \Stripe\ApplicationFeeRefund::class, + \Stripe\Apps\Secret::OBJECT_NAME => \Stripe\Apps\Secret::class, + \Stripe\Balance::OBJECT_NAME => \Stripe\Balance::class, + \Stripe\BalanceTransaction::OBJECT_NAME => \Stripe\BalanceTransaction::class, + \Stripe\BankAccount::OBJECT_NAME => \Stripe\BankAccount::class, + \Stripe\BillingPortal\Configuration::OBJECT_NAME => \Stripe\BillingPortal\Configuration::class, + \Stripe\BillingPortal\Session::OBJECT_NAME => \Stripe\BillingPortal\Session::class, + \Stripe\Capability::OBJECT_NAME => \Stripe\Capability::class, + \Stripe\Card::OBJECT_NAME => \Stripe\Card::class, + \Stripe\CashBalance::OBJECT_NAME => \Stripe\CashBalance::class, + \Stripe\Charge::OBJECT_NAME => \Stripe\Charge::class, + \Stripe\Checkout\Session::OBJECT_NAME => \Stripe\Checkout\Session::class, + \Stripe\CountrySpec::OBJECT_NAME => \Stripe\CountrySpec::class, + \Stripe\Coupon::OBJECT_NAME => \Stripe\Coupon::class, + \Stripe\CreditNote::OBJECT_NAME => \Stripe\CreditNote::class, + \Stripe\CreditNoteLineItem::OBJECT_NAME => \Stripe\CreditNoteLineItem::class, + \Stripe\Customer::OBJECT_NAME => \Stripe\Customer::class, + \Stripe\CustomerBalanceTransaction::OBJECT_NAME => \Stripe\CustomerBalanceTransaction::class, + \Stripe\CustomerCashBalanceTransaction::OBJECT_NAME => \Stripe\CustomerCashBalanceTransaction::class, + \Stripe\Discount::OBJECT_NAME => \Stripe\Discount::class, + \Stripe\Dispute::OBJECT_NAME => \Stripe\Dispute::class, + \Stripe\EphemeralKey::OBJECT_NAME => \Stripe\EphemeralKey::class, + \Stripe\Event::OBJECT_NAME => \Stripe\Event::class, + \Stripe\ExchangeRate::OBJECT_NAME => \Stripe\ExchangeRate::class, + \Stripe\File::OBJECT_NAME => \Stripe\File::class, + \Stripe\FileLink::OBJECT_NAME => \Stripe\FileLink::class, + \Stripe\FinancialConnections\Account::OBJECT_NAME => \Stripe\FinancialConnections\Account::class, + \Stripe\FinancialConnections\AccountOwner::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwner::class, + \Stripe\FinancialConnections\AccountOwnership::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwnership::class, + \Stripe\FinancialConnections\Session::OBJECT_NAME => \Stripe\FinancialConnections\Session::class, + \Stripe\FundingInstructions::OBJECT_NAME => \Stripe\FundingInstructions::class, + \Stripe\Identity\VerificationReport::OBJECT_NAME => \Stripe\Identity\VerificationReport::class, + \Stripe\Identity\VerificationSession::OBJECT_NAME => \Stripe\Identity\VerificationSession::class, + \Stripe\Invoice::OBJECT_NAME => \Stripe\Invoice::class, + \Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class, + \Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class, + \Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class, + \Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class, + \Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class, + \Stripe\Issuing\Dispute::OBJECT_NAME => \Stripe\Issuing\Dispute::class, + \Stripe\Issuing\Transaction::OBJECT_NAME => \Stripe\Issuing\Transaction::class, + \Stripe\LineItem::OBJECT_NAME => \Stripe\LineItem::class, + \Stripe\LoginLink::OBJECT_NAME => \Stripe\LoginLink::class, + \Stripe\Mandate::OBJECT_NAME => \Stripe\Mandate::class, + \Stripe\PaymentIntent::OBJECT_NAME => \Stripe\PaymentIntent::class, + \Stripe\PaymentLink::OBJECT_NAME => \Stripe\PaymentLink::class, + \Stripe\PaymentMethod::OBJECT_NAME => \Stripe\PaymentMethod::class, + \Stripe\PaymentMethodConfiguration::OBJECT_NAME => \Stripe\PaymentMethodConfiguration::class, + \Stripe\PaymentMethodDomain::OBJECT_NAME => \Stripe\PaymentMethodDomain::class, + \Stripe\Payout::OBJECT_NAME => \Stripe\Payout::class, + \Stripe\Person::OBJECT_NAME => \Stripe\Person::class, + \Stripe\Plan::OBJECT_NAME => \Stripe\Plan::class, + \Stripe\Price::OBJECT_NAME => \Stripe\Price::class, + \Stripe\Product::OBJECT_NAME => \Stripe\Product::class, + \Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class, + \Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class, + \Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class, + \Stripe\Radar\ValueList::OBJECT_NAME => \Stripe\Radar\ValueList::class, + \Stripe\Radar\ValueListItem::OBJECT_NAME => \Stripe\Radar\ValueListItem::class, + \Stripe\Refund::OBJECT_NAME => \Stripe\Refund::class, + \Stripe\Reporting\ReportRun::OBJECT_NAME => \Stripe\Reporting\ReportRun::class, + \Stripe\Reporting\ReportType::OBJECT_NAME => \Stripe\Reporting\ReportType::class, + \Stripe\Review::OBJECT_NAME => \Stripe\Review::class, + \Stripe\SetupAttempt::OBJECT_NAME => \Stripe\SetupAttempt::class, + \Stripe\SetupIntent::OBJECT_NAME => \Stripe\SetupIntent::class, + \Stripe\ShippingRate::OBJECT_NAME => \Stripe\ShippingRate::class, + \Stripe\Sigma\ScheduledQueryRun::OBJECT_NAME => \Stripe\Sigma\ScheduledQueryRun::class, + \Stripe\Source::OBJECT_NAME => \Stripe\Source::class, + \Stripe\SourceTransaction::OBJECT_NAME => \Stripe\SourceTransaction::class, + \Stripe\Subscription::OBJECT_NAME => \Stripe\Subscription::class, + \Stripe\SubscriptionItem::OBJECT_NAME => \Stripe\SubscriptionItem::class, + \Stripe\SubscriptionSchedule::OBJECT_NAME => \Stripe\SubscriptionSchedule::class, + \Stripe\Tax\Calculation::OBJECT_NAME => \Stripe\Tax\Calculation::class, + \Stripe\Tax\CalculationLineItem::OBJECT_NAME => \Stripe\Tax\CalculationLineItem::class, + \Stripe\Tax\Settings::OBJECT_NAME => \Stripe\Tax\Settings::class, + \Stripe\Tax\Transaction::OBJECT_NAME => \Stripe\Tax\Transaction::class, + \Stripe\Tax\TransactionLineItem::OBJECT_NAME => \Stripe\Tax\TransactionLineItem::class, + \Stripe\TaxCode::OBJECT_NAME => \Stripe\TaxCode::class, + \Stripe\TaxId::OBJECT_NAME => \Stripe\TaxId::class, + \Stripe\TaxRate::OBJECT_NAME => \Stripe\TaxRate::class, + \Stripe\Terminal\Configuration::OBJECT_NAME => \Stripe\Terminal\Configuration::class, + \Stripe\Terminal\ConnectionToken::OBJECT_NAME => \Stripe\Terminal\ConnectionToken::class, + \Stripe\Terminal\Location::OBJECT_NAME => \Stripe\Terminal\Location::class, + \Stripe\Terminal\Reader::OBJECT_NAME => \Stripe\Terminal\Reader::class, + \Stripe\TestHelpers\TestClock::OBJECT_NAME => \Stripe\TestHelpers\TestClock::class, + \Stripe\Token::OBJECT_NAME => \Stripe\Token::class, + \Stripe\Topup::OBJECT_NAME => \Stripe\Topup::class, + \Stripe\Transfer::OBJECT_NAME => \Stripe\Transfer::class, + \Stripe\TransferReversal::OBJECT_NAME => \Stripe\TransferReversal::class, + \Stripe\Treasury\CreditReversal::OBJECT_NAME => \Stripe\Treasury\CreditReversal::class, + \Stripe\Treasury\DebitReversal::OBJECT_NAME => \Stripe\Treasury\DebitReversal::class, + \Stripe\Treasury\FinancialAccount::OBJECT_NAME => \Stripe\Treasury\FinancialAccount::class, + \Stripe\Treasury\FinancialAccountFeatures::OBJECT_NAME => \Stripe\Treasury\FinancialAccountFeatures::class, + \Stripe\Treasury\InboundTransfer::OBJECT_NAME => \Stripe\Treasury\InboundTransfer::class, + \Stripe\Treasury\OutboundPayment::OBJECT_NAME => \Stripe\Treasury\OutboundPayment::class, + \Stripe\Treasury\OutboundTransfer::OBJECT_NAME => \Stripe\Treasury\OutboundTransfer::class, + \Stripe\Treasury\ReceivedCredit::OBJECT_NAME => \Stripe\Treasury\ReceivedCredit::class, + \Stripe\Treasury\ReceivedDebit::OBJECT_NAME => \Stripe\Treasury\ReceivedDebit::class, + \Stripe\Treasury\Transaction::OBJECT_NAME => \Stripe\Treasury\Transaction::class, + \Stripe\Treasury\TransactionEntry::OBJECT_NAME => \Stripe\Treasury\TransactionEntry::class, + \Stripe\UsageRecord::OBJECT_NAME => \Stripe\UsageRecord::class, + \Stripe\UsageRecordSummary::OBJECT_NAME => \Stripe\UsageRecordSummary::class, + \Stripe\WebhookEndpoint::OBJECT_NAME => \Stripe\WebhookEndpoint::class, + // The end of the section generated from our OpenAPI spec + ]; }