Class: EasyLabs::Resources::PaymentInstruments
- Defined in:
- lib/easylabs/resources/payment_instruments.rb
Overview
POST /payment + PATCH /payment/:id. Returns the Finix-shaped payment-instrument object as a Hash with symbol keys.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from EasyLabs::Resources::Base
Instance Method Details
#create(**body) ⇒ Object
10 11 12 |
# File 'lib/easylabs/resources/payment_instruments.rb', line 10 def create(**body) request(:post, "/payment", body: body) end |
#update(id, **body) ⇒ Object
14 15 16 |
# File 'lib/easylabs/resources/payment_instruments.rb', line 14 def update(id, **body) request(:patch, "/payment/#{id}", body: body) end |