lib/stripe/util.rb in stripe-2.5.0 vs lib/stripe/util.rb in stripe-2.6.0

- old
+ new

@@ -18,48 +18,48 @@ end def self.object_classes @object_classes ||= { # data structures - 'list' => ListObject, + ListObject::OBJECT_NAME => ListObject, # business objects - 'account' => Account, - 'alipay_account' => AlipayAccount, - 'apple_pay_domain' => ApplePayDomain, - 'application_fee' => ApplicationFee, - 'balance' => Balance, - 'balance_transaction' => BalanceTransaction, - 'bank_account' => BankAccount, - 'bitcoin_receiver' => BitcoinReceiver, - 'bitcoin_transaction' => BitcoinTransaction, - 'card' => Card, - 'charge' => Charge, - 'country_spec' => CountrySpec, - 'coupon' => Coupon, - 'customer' => Customer, - 'dispute' => Dispute, - 'event' => Event, - 'fee_refund' => ApplicationFeeRefund, - 'file_upload' => FileUpload, - 'invoice' => Invoice, - 'invoiceitem' => InvoiceItem, - 'order' => Order, - 'order_return' => OrderReturn, - 'payout' => Payout, - 'plan' => Plan, - 'product' => Product, - 'recipient' => Recipient, - 'recipient_transfer' => RecipientTransfer, - 'refund' => Refund, - 'sku' => SKU, - 'source' => Source, - 'subscription' => Subscription, - 'subscription_item' => SubscriptionItem, - 'three_d_secure' => ThreeDSecure, - 'token' => Token, - 'transfer' => Transfer, - 'transfer_reversal' => Reversal, + Account::OBJECT_NAME => Account, + 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, + CountrySpec::OBJECT_NAME => CountrySpec, + Coupon::OBJECT_NAME => Coupon, + Customer::OBJECT_NAME => Customer, + Dispute::OBJECT_NAME => Dispute, + Event::OBJECT_NAME => Event, + FileUpload::OBJECT_NAME => FileUpload, + Invoice::OBJECT_NAME => Invoice, + InvoiceItem::OBJECT_NAME => InvoiceItem, + Order::OBJECT_NAME => Order, + OrderReturn::OBJECT_NAME => OrderReturn, + Payout::OBJECT_NAME => Payout, + Plan::OBJECT_NAME => Plan, + Product::OBJECT_NAME => Product, + Recipient::OBJECT_NAME => Recipient, + RecipientTransfer::OBJECT_NAME => RecipientTransfer, + Refund::OBJECT_NAME => Refund, + Reversal::OBJECT_NAME => Reversal, + SKU::OBJECT_NAME => SKU, + Source::OBJECT_NAME => Source, + Subscription::OBJECT_NAME => Subscription, + SubscriptionItem::OBJECT_NAME => SubscriptionItem, + ThreeDSecure::OBJECT_NAME => ThreeDSecure, + Token::OBJECT_NAME => Token, + Transfer::OBJECT_NAME => Transfer, } 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