lib/stripe/util.rb in stripe-3.17.2 vs lib/stripe/util.rb in stripe-3.18.0
- old
+ new
@@ -43,54 +43,60 @@
@object_classes ||= {
# data structures
ListObject::OBJECT_NAME => ListObject,
# business objects
- 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,
- EphemeralKey::OBJECT_NAME => EphemeralKey,
- Event::OBJECT_NAME => Event,
- ExchangeRate::OBJECT_NAME => ExchangeRate,
- FileUpload::OBJECT_NAME => FileUpload,
- Invoice::OBJECT_NAME => Invoice,
- InvoiceItem::OBJECT_NAME => InvoiceItem,
- InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
- IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
- LoginLink::OBJECT_NAME => LoginLink,
- Order::OBJECT_NAME => Order,
- OrderReturn::OBJECT_NAME => OrderReturn,
- PaymentIntent::OBJECT_NAME => PaymentIntent,
- 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,
- SourceTransaction::OBJECT_NAME => SourceTransaction,
- Subscription::OBJECT_NAME => Subscription,
- SubscriptionItem::OBJECT_NAME => SubscriptionItem,
- ThreeDSecure::OBJECT_NAME => ThreeDSecure,
- Token::OBJECT_NAME => Token,
- Topup::OBJECT_NAME => Topup,
- Transfer::OBJECT_NAME => Transfer,
- UsageRecord::OBJECT_NAME => UsageRecord,
+ 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,
+ EphemeralKey::OBJECT_NAME => EphemeralKey,
+ Event::OBJECT_NAME => Event,
+ ExchangeRate::OBJECT_NAME => ExchangeRate,
+ FileUpload::OBJECT_NAME => FileUpload,
+ 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,
+ 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,
+ SourceTransaction::OBJECT_NAME => SourceTransaction,
+ Subscription::OBJECT_NAME => Subscription,
+ SubscriptionItem::OBJECT_NAME => SubscriptionItem,
+ ThreeDSecure::OBJECT_NAME => ThreeDSecure,
+ Token::OBJECT_NAME => Token,
+ Topup::OBJECT_NAME => Topup,
+ Transfer::OBJECT_NAME => Transfer,
+ UsageRecord::OBJECT_NAME => UsageRecord,
}
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