lib/stripe/util.rb in stripe-1.17.3 vs lib/stripe/util.rb in stripe-1.18.0
- old
+ new
@@ -17,11 +17,11 @@
def self.object_classes
@object_classes ||= {
# data structures
'list' => ListObject,
-
+
# business objects
'application_fee' => ApplicationFee,
'balance' => Balance,
'balance_transaction' => BalanceTransaction,
'card' => Card,
@@ -33,12 +33,15 @@
'invoiceitem' => InvoiceItem,
'invoice' => Invoice,
'plan' => Plan,
'recipient' => Recipient,
'refund' => Refund,
- 'subscription' => Subscription,
- 'transfer' => Transfer
+ 'subscription' => Subscription,
+ 'file_upload' => FileUpload,
+ 'transfer' => Transfer,
+ 'bitcoin_receiver' => BitcoinReceiver,
+ 'bitcoin_transaction' => BitcoinTransaction
}
end
def self.convert_to_stripe_object(resp, api_key)
case resp
@@ -123,10 +126,10 @@
when String
return opts, {}
when Hash
headers = {}
if opts[:idempotency_key]
- headers[:idempotency_key] = opts[:idempotency_key]
+ headers[:idempotency_key] = opts[:idempotency_key]
end
if opts[:stripe_account]
headers[:stripe_account] = opts[:stripe_account]
end
return opts[:api_key], headers