Class: PayjpMock::Response::Resource::Plan
- Defined in:
- lib/payjp_mock/response/resource/plan.rb
Constant Summary collapse
- PREFIX =
'pln'.freeze
- OBJECT =
'plan'.freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#canonicalize, #initialize, #set, #status
Methods included from Util
#generate_fingerprint, #generate_resource_id
Methods inherited from Base
#body, #exception, #status, #to_h
Constructor Details
This class inherits a constructor from PayjpMock::Response::Resource::Base
Instance Method Details
#default_attributes ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/payjp_mock/response/resource/plan.rb', line 7 def default_attributes { amount: 500, billing_day: nil, created: Time.now.to_i, currency: 'jpy', id: generate_resource_id(PREFIX), interval: 'month', livemode: false, metadata: nil, name: nil, object: OBJECT, trial_days: 30 } end |