Class: PayjpMock::Response::Resource::Merchant
- Defined in:
- lib/payjp_mock/response/resource/merchant.rb
Constant Summary collapse
- PREFIX =
'acct_mch'.freeze
- OBJECT =
'merchant'.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 22 23 24 25 26 27 28 29 |
# File 'lib/payjp_mock/response/resource/merchant.rb', line 7 def default_attributes { bank_enabled: false, brands_accepted: ['Visa', 'MasterCard', 'JCB', 'American Express', 'Diners Club', 'Discover'], business_type: nil, charge_type: nil, contact_phone: nil, country: 'JP', created: Time.now.to_i, currencies_supported: ['jpy'], default_currency: 'jpy', details_submitted: false, id: generate_resource_id(PREFIX), livemode_activated_at: nil, livemode_enabled: false, object: OBJECT, product_detail: nil, product_name: nil, product_type: nil, site_published: nil, url: nil } end |