Module: Vindi::Rest::Movement

Included in:
Vindi::Rest
Defined in:
lib/vindi/rest/movement.rb

Overview

Methods for the Movement API

Instance Method Summary collapse

Instance Method Details

#create_movement(options = {}) ⇒ Hash

Create a movement for a merchant vindi

Examples:

Create a movement for a merchant vindi

client.create_movement(amount: 100, movement_type: "credit",
                       bill_id: 466)

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :options (Hash)

    movement attributes

Returns:

  • (Hash)

    The movement created

See Also:



16
17
18
# File 'lib/vindi/rest/movement.rb', line 16

def create_movement(options = {})
  post('movements', options)[:movement]
end