Module: Vindi::Rest::ExportBatch
- Included in:
- Vindi::Rest
- Defined in:
- lib/vindi/rest/export_batch.rb
Overview
Methods for the export_batches API
Instance Method Summary collapse
-
#approve_export_batch(export_batch_id, options = {}) ⇒ Hash
Approve an export batch for a merchant vindi.
-
#create_export_batch(options = {}) ⇒ Hash
Create an export batch for a merchant vindi.
-
#export_batch(export_batch_id, options = {}) ⇒ Hash
Get a single export batch from a merchant.
-
#list_export_batches(options = {}) ⇒ Array<Hash>
List export batches for the authenticate user.
Instance Method Details
#approve_export_batch(export_batch_id, options = {}) ⇒ Hash
Approve an export batch for a merchant vindi
47 48 49 |
# File 'lib/vindi/rest/export_batch.rb', line 47 def approve_export_batch(export_batch_id, = {}) post("export_batches/#{export_batch_id}/approve", )[:export_batch] end |
#create_export_batch(options = {}) ⇒ Hash
Create an export batch for a merchant vindi
35 36 37 |
# File 'lib/vindi/rest/export_batch.rb', line 35 def create_export_batch( = {}) post('export_batches', )[:export_batch] end |
#export_batch(export_batch_id, options = {}) ⇒ Hash
Get a single export batch from a merchant
24 25 26 |
# File 'lib/vindi/rest/export_batch.rb', line 24 def export_batch(export_batch_id, = {}) get("export_batches/#{export_batch_id}", )[:export_batch] end |
#list_export_batches(options = {}) ⇒ Array<Hash>
List export batches for the authenticate user
13 14 15 |
# File 'lib/vindi/rest/export_batch.rb', line 13 def list_export_batches( = {}) get('export_batches', )[:export_batches] end |