Class: Betsy::ShopListingTranslation

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

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



13
14
15
# File 'lib/betsy/shop_listing_translation.rb', line 13

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

.get_listing_translation(shop_id, listing_id, language) ⇒ Object



17
18
19
# File 'lib/betsy/shop_listing_translation.rb', line 17

def self.get_listing_translation(shop_id, listing_id, language)
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/translations/#{language}")
end

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



21
22
23
# File 'lib/betsy/shop_listing_translation.rb', line 21

def self.update_listing_translation(shop_id, listing_id, language, options = {})
  make_request(:put, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/translations/#{language}", options)
end