module FlowCl::Merchant
Public Instance Methods
create_merchant(params: {})
click to toggle source
Este método permite crear un nuevo comercio asociado en Flow
# File lib/flow_cl/merchant.rb, line 23 def create_merchant(params: {}) path = '/api/merchant/create' private_post(path, params) end
delete_merchant(id:)
click to toggle source
Este método permite eliminar un comercio asociado previamente creado en Flow
# File lib/flow_cl/merchant.rb, line 30 def delete_merchant(id:) path = '/api/merchant/delete' private_post(path, { id: id }) end
edit_merchant(params: {})
click to toggle source
Este método permite modificar un comercio asociado previamente creado en Flow
# File lib/flow_cl/merchant.rb, line 37 def edit_merchant(params: {}) path = '/api/merchant/edit' private_post(path, params) end
merchant(id:)
click to toggle source
Este método permite obtener la información de un comercio asociado previamente creado en Flow
# File lib/flow_cl/merchant.rb, line 16 def merchant(id:) path = '/api/merchant/get' private_get(path, { id: id }) end
merchants(params: {})
click to toggle source
Permite obtener la lista de comercios paginada de acuerdo a los parámetros de paginación. Además, se puede definir los siguientes filtros: filter: filtro por nombre del comercio asociado status: filtro por estado del comercio asociado
# File lib/flow_cl/merchant.rb, line 9 def merchants(params: {}) path = '/api/merchant/list' private_get(path, params) end