Class: Betsy::ShopListingFile

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/betsy/shop_listing_file.rb

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.delete_listing_file(shop_id, listing_id, listing_file_id, options = {}) ⇒ Object



16
17
18
# File 'lib/betsy/shop_listing_file.rb', line 16

def self.delete_listing_file(shop_id, listing_id, listing_file_id, options = {})
  make_request(:delete, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files/#{listing_file_id}", options)
end

.get_all_listing_files(shop_id, listing_id, options = {}) ⇒ Object



24
25
26
# File 'lib/betsy/shop_listing_file.rb', line 24

def self.get_all_listing_files(shop_id, listing_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files", options)
end

.get_listing_file(shop_id, listing_id, listing_file_id, options = {}) ⇒ Object



20
21
22
# File 'lib/betsy/shop_listing_file.rb', line 20

def self.get_listing_file(shop_id, listing_id, listing_file_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files/#{listing_file_id}", options)
end

.upload_listing_file(shop_id, listing_id, options = {}) ⇒ Object



28
29
30
# File 'lib/betsy/shop_listing_file.rb', line 28

def self.upload_listing_file(shop_id, listing_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files", options)
end