Class: Betsy::ShopListingFile
- Inherits:
-
Object
- Object
- Betsy::ShopListingFile
- Includes:
- Model
- Defined in:
- lib/betsy/shop_listing_file.rb
Class Method Summary collapse
- .delete_listing_file(shop_id, listing_id, listing_file_id, options = {}) ⇒ Object
- .get_all_listing_files(shop_id, listing_id, options = {}) ⇒ Object
- .get_listing_file(shop_id, listing_id, listing_file_id, options = {}) ⇒ Object
- .upload_listing_file(shop_id, listing_id, options = {}) ⇒ Object
Methods included from Model
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, = {}) make_request(:delete, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files/#{listing_file_id}", ) 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, = {}) make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files", ) 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, = {}) make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files/#{listing_file_id}", ) 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, = {}) make_request(:post, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/files", ) end |