lib/stripe/util.rb in stripe-4.8.1 vs lib/stripe/util.rb in stripe-4.9.0

- old
+ new

@@ -43,76 +43,78 @@ @object_classes ||= { # data structures ListObject::OBJECT_NAME => ListObject, # business objects - Account::OBJECT_NAME => Account, - AccountLink::OBJECT_NAME => AccountLink, - AlipayAccount::OBJECT_NAME => AlipayAccount, - ApplePayDomain::OBJECT_NAME => ApplePayDomain, - ApplicationFee::OBJECT_NAME => ApplicationFee, - ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund, - Balance::OBJECT_NAME => Balance, - BalanceTransaction::OBJECT_NAME => BalanceTransaction, - BankAccount::OBJECT_NAME => BankAccount, - BitcoinReceiver::OBJECT_NAME => BitcoinReceiver, - BitcoinTransaction::OBJECT_NAME => BitcoinTransaction, - Card::OBJECT_NAME => Card, - Charge::OBJECT_NAME => Charge, - Checkout::Session::OBJECT_NAME => Checkout::Session, - CountrySpec::OBJECT_NAME => CountrySpec, - Coupon::OBJECT_NAME => Coupon, - Customer::OBJECT_NAME => Customer, - Dispute::OBJECT_NAME => Dispute, - EphemeralKey::OBJECT_NAME => EphemeralKey, - Event::OBJECT_NAME => Event, - ExchangeRate::OBJECT_NAME => ExchangeRate, - File::OBJECT_NAME => File, - File::OBJECT_NAME_ALT => File, - FileLink::OBJECT_NAME => FileLink, - Invoice::OBJECT_NAME => Invoice, - InvoiceItem::OBJECT_NAME => InvoiceItem, - InvoiceLineItem::OBJECT_NAME => InvoiceLineItem, - IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord, - Issuing::Authorization::OBJECT_NAME => Issuing::Authorization, - Issuing::Card::OBJECT_NAME => Issuing::Card, - Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails, - Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder, - Issuing::Dispute::OBJECT_NAME => Issuing::Dispute, - Issuing::Transaction::OBJECT_NAME => Issuing::Transaction, - LoginLink::OBJECT_NAME => LoginLink, - Order::OBJECT_NAME => Order, - OrderReturn::OBJECT_NAME => OrderReturn, - PaymentIntent::OBJECT_NAME => PaymentIntent, - Payout::OBJECT_NAME => Payout, - Person::OBJECT_NAME => Person, - Plan::OBJECT_NAME => Plan, - Product::OBJECT_NAME => Product, - Radar::ValueList::OBJECT_NAME => Radar::ValueList, - Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem, - Recipient::OBJECT_NAME => Recipient, - RecipientTransfer::OBJECT_NAME => RecipientTransfer, - Refund::OBJECT_NAME => Refund, - Reporting::ReportRun::OBJECT_NAME => Reporting::ReportRun, - Reporting::ReportType::OBJECT_NAME => Reporting::ReportType, - Reversal::OBJECT_NAME => Reversal, - Review::OBJECT_NAME => Review, - SKU::OBJECT_NAME => SKU, - Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun, - Source::OBJECT_NAME => Source, - SourceTransaction::OBJECT_NAME => SourceTransaction, - Subscription::OBJECT_NAME => Subscription, - SubscriptionItem::OBJECT_NAME => SubscriptionItem, - Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken, - Terminal::Location::OBJECT_NAME => Terminal::Location, - Terminal::Reader::OBJECT_NAME => Terminal::Reader, - ThreeDSecure::OBJECT_NAME => ThreeDSecure, - Token::OBJECT_NAME => Token, - Topup::OBJECT_NAME => Topup, - Transfer::OBJECT_NAME => Transfer, - UsageRecord::OBJECT_NAME => UsageRecord, - UsageRecordSummary::OBJECT_NAME => UsageRecordSummary, - WebhookEndpoint::OBJECT_NAME => WebhookEndpoint, + Account::OBJECT_NAME => Account, + AccountLink::OBJECT_NAME => AccountLink, + AlipayAccount::OBJECT_NAME => AlipayAccount, + ApplePayDomain::OBJECT_NAME => ApplePayDomain, + ApplicationFee::OBJECT_NAME => ApplicationFee, + ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund, + Balance::OBJECT_NAME => Balance, + BalanceTransaction::OBJECT_NAME => BalanceTransaction, + BankAccount::OBJECT_NAME => BankAccount, + BitcoinReceiver::OBJECT_NAME => BitcoinReceiver, + BitcoinTransaction::OBJECT_NAME => BitcoinTransaction, + Card::OBJECT_NAME => Card, + Charge::OBJECT_NAME => Charge, + Checkout::Session::OBJECT_NAME => Checkout::Session, + CountrySpec::OBJECT_NAME => CountrySpec, + Coupon::OBJECT_NAME => Coupon, + Customer::OBJECT_NAME => Customer, + Dispute::OBJECT_NAME => Dispute, + EphemeralKey::OBJECT_NAME => EphemeralKey, + Event::OBJECT_NAME => Event, + ExchangeRate::OBJECT_NAME => ExchangeRate, + File::OBJECT_NAME => File, + File::OBJECT_NAME_ALT => File, + FileLink::OBJECT_NAME => FileLink, + Invoice::OBJECT_NAME => Invoice, + InvoiceItem::OBJECT_NAME => InvoiceItem, + InvoiceLineItem::OBJECT_NAME => InvoiceLineItem, + IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord, + Issuing::Authorization::OBJECT_NAME => Issuing::Authorization, + Issuing::Card::OBJECT_NAME => Issuing::Card, + Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails, + Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder, + Issuing::Dispute::OBJECT_NAME => Issuing::Dispute, + Issuing::Transaction::OBJECT_NAME => Issuing::Transaction, + LoginLink::OBJECT_NAME => LoginLink, + Order::OBJECT_NAME => Order, + OrderReturn::OBJECT_NAME => OrderReturn, + PaymentIntent::OBJECT_NAME => PaymentIntent, + Payout::OBJECT_NAME => Payout, + Person::OBJECT_NAME => Person, + Plan::OBJECT_NAME => Plan, + Product::OBJECT_NAME => Product, + Radar::ValueList::OBJECT_NAME => Radar::ValueList, + Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem, + Recipient::OBJECT_NAME => Recipient, + RecipientTransfer::OBJECT_NAME => RecipientTransfer, + Refund::OBJECT_NAME => Refund, + Reporting::ReportRun::OBJECT_NAME => Reporting::ReportRun, + Reporting::ReportType::OBJECT_NAME => Reporting::ReportType, + Reversal::OBJECT_NAME => Reversal, + Review::OBJECT_NAME => Review, + SKU::OBJECT_NAME => SKU, + Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun, + Source::OBJECT_NAME => Source, + SourceTransaction::OBJECT_NAME => SourceTransaction, + Subscription::OBJECT_NAME => Subscription, + SubscriptionItem::OBJECT_NAME => SubscriptionItem, + SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule, + SubscriptionScheduleRevision::OBJECT_NAME => SubscriptionScheduleRevision, + Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken, + Terminal::Location::OBJECT_NAME => Terminal::Location, + Terminal::Reader::OBJECT_NAME => Terminal::Reader, + ThreeDSecure::OBJECT_NAME => ThreeDSecure, + Token::OBJECT_NAME => Token, + Topup::OBJECT_NAME => Topup, + Transfer::OBJECT_NAME => Transfer, + UsageRecord::OBJECT_NAME => UsageRecord, + UsageRecordSummary::OBJECT_NAME => UsageRecordSummary, + WebhookEndpoint::OBJECT_NAME => WebhookEndpoint, } end # Converts a hash of fields or an array of hashes into a +StripeObject+ or # array of +StripeObject+s. These new objects will be created as a concrete