stripe-ruby-mock / stripe-ruby-mock

A mocking library for testing stripe ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refund object missing attributes?

tbhockey opened this issue · comments

It seems like the Refund object returned by stripe-ruby-mock is missing some of the attributes expected in the Stripe API (https://stripe.com/docs/api/refunds/object)? For instance metadata. This is what I am getting back:

#<Stripe::Refund:0x1728c id=re_00000000000000> JSON: {                                                                                                        
  "id": "re_00000000000000", 
  "amount": 1000,
  "currency": "usd",
  "created": 1381080103,
  "object": "refund",
  "balance_transaction": "txn_123"
} 

Am I just misunderstanding something?