Module: Vindi::Rest::ImportBatch
- Included in:
- Vindi::Rest
- Defined in:
- lib/vindi/rest/import_batch.rb
Overview
Methods for the Import Batch API
Instance Method Summary collapse
-
#create_import_batch(options = {}) ⇒ Hash
Create a import_batch for a merchant vindi.
-
#import_batch(import_batch_id, options = {}) ⇒ Hash
Get a single import_batch from a merchant.
-
#list_import_batches(options = {}) ⇒ Array<Hash>
List import_batches for the authenticate user.
Instance Method Details
#create_import_batch(options = {}) ⇒ Hash
Create a import_batch for a merchant vindi
33 34 35 |
# File 'lib/vindi/rest/import_batch.rb', line 33 def create_import_batch( = {}) post('import_batches', )[:import_batch] end |
#import_batch(import_batch_id, options = {}) ⇒ Hash
Get a single import_batch from a merchant
24 25 26 |
# File 'lib/vindi/rest/import_batch.rb', line 24 def import_batch(import_batch_id, = {}) get("import_batches/#{import_batch_id}", )[:import_batch] end |
#list_import_batches(options = {}) ⇒ Array<Hash>
List import_batches for the authenticate user
13 14 15 |
# File 'lib/vindi/rest/import_batch.rb', line 13 def list_import_batches( = {}) get('import_batches', )[:import_batches] end |