Class: Betsy::ShopShippingProfile

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.create_shop_shipping_profile(shop_id, options = {}) ⇒ Object



53
54
55
# File 'lib/betsy/shop_shipping_profile.rb', line 53

def self.create_shop_shipping_profile(shop_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/shipping-profiles", options)
end

.create_shop_shipping_profile_destination(shop_id, shipping_profile_id, options = {}) ⇒ Object



73
74
75
# File 'lib/betsy/shop_shipping_profile.rb', line 73

def self.create_shop_shipping_profile_destination(shop_id, shipping_profile_id, options = {})
  make_request(:post, "/v3/application/shops/1/shipping-profiles/1/destinations", options)
end

.create_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, options = {}) ⇒ Object



89
90
91
# File 'lib/betsy/shop_shipping_profile.rb', line 89

def self.create_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades", options)
end

.delete_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object



61
62
63
# File 'lib/betsy/shop_shipping_profile.rb', line 61

def self.delete_shop_shipping_profile(shop_id, shipping_profile_id, options = {})
  make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", options)
end

.delete_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {}) ⇒ Object



81
82
83
# File 'lib/betsy/shop_shipping_profile.rb', line 81

def self.delete_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {})
  make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/destinations/#{shipping_profile_destination_id}", options)
end

.delete_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {}) ⇒ Object



97
98
99
# File 'lib/betsy/shop_shipping_profile.rb', line 97

def self.delete_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {})
  make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades/#{upgrade_id}", options)
end

.get_shipping_carriers(options = {}) ⇒ Object



49
50
51
# File 'lib/betsy/shop_shipping_profile.rb', line 49

def self.get_shipping_carriers(options = {})
  make_request(:get, "/v3/application/shipping-carriers", options)
end

.get_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object



65
66
67
# File 'lib/betsy/shop_shipping_profile.rb', line 65

def self.get_shop_shipping_profile(shop_id, shipping_profile_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", options)
end

.get_shop_shipping_profile_destinations_by_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object



77
78
79
# File 'lib/betsy/shop_shipping_profile.rb', line 77

def self.get_shop_shipping_profile_destinations_by_shipping_profile(shop_id, shipping_profile_id, options = {})
  make_request(:get, "/v3/application/shops/1/shipping-profiles/1/destinations", options)
end

.get_shop_shipping_profile_upgrades(shop_id, shipping_profile_id, options = {}) ⇒ Object



93
94
95
# File 'lib/betsy/shop_shipping_profile.rb', line 93

def self.get_shop_shipping_profile_upgrades(shop_id, shipping_profile_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades", options)
end

.get_shop_shipping_profiles(shop_id, options = {}) ⇒ Object



57
58
59
# File 'lib/betsy/shop_shipping_profile.rb', line 57

def self.get_shop_shipping_profiles(shop_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles", options)
end

.update_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object



69
70
71
# File 'lib/betsy/shop_shipping_profile.rb', line 69

def self.update_shop_shipping_profile(shop_id, shipping_profile_id, options = {})
  make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", options)
end

.update_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {}) ⇒ Object



85
86
87
# File 'lib/betsy/shop_shipping_profile.rb', line 85

def self.update_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {})
  make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/destinations/#{shipping_profile_destination_id}", options)
end

.update_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {}) ⇒ Object



101
102
103
# File 'lib/betsy/shop_shipping_profile.rb', line 101

def self.update_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {})
  make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades/#{upgrade_id}", options)
end