Class: Betsy::ShopShippingProfile
- Inherits:
-
Object
- Object
- Betsy::ShopShippingProfile
- Includes:
- Model
- Defined in:
- lib/betsy/shop_shipping_profile.rb
Class Method Summary collapse
- .create_shop_shipping_profile(shop_id, options = {}) ⇒ Object
- .create_shop_shipping_profile_destination(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .create_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .delete_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .delete_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {}) ⇒ Object
- .delete_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {}) ⇒ Object
- .get_shipping_carriers(options = {}) ⇒ Object
- .get_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .get_shop_shipping_profile_destinations_by_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .get_shop_shipping_profile_upgrades(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .get_shop_shipping_profiles(shop_id, options = {}) ⇒ Object
- .update_shop_shipping_profile(shop_id, shipping_profile_id, options = {}) ⇒ Object
- .update_shop_shipping_profile_destination(shop_id, shipping_profile_id, shipping_profile_destination_id, options = {}) ⇒ Object
- .update_shop_shipping_profile_upgrade(shop_id, shipping_profile_id, upgrade_id, options = {}) ⇒ Object
Methods included from Model
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, = {}) make_request(:post, "/v3/application/shops/#{shop_id}/shipping-profiles", ) 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, = {}) make_request(:post, "/v3/application/shops/1/shipping-profiles/1/destinations", ) 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, = {}) make_request(:post, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades", ) 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, = {}) make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", ) 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, = {}) make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/destinations/#{shipping_profile_destination_id}", ) 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, = {}) make_request(:delete, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades/#{upgrade_id}", ) end |
.get_shipping_carriers(options = {}) ⇒ Object
49 50 51 |
# File 'lib/betsy/shop_shipping_profile.rb', line 49 def self.get_shipping_carriers( = {}) make_request(:get, "/v3/application/shipping-carriers", ) 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, = {}) make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", ) 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, = {}) make_request(:get, "/v3/application/shops/1/shipping-profiles/1/destinations", ) 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, = {}) make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades", ) 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, = {}) make_request(:get, "/v3/application/shops/#{shop_id}/shipping-profiles", ) 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, = {}) make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}", ) 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, = {}) make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/destinations/#{shipping_profile_destination_id}", ) 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, = {}) make_request(:put, "/v3/application/shops/#{shop_id}/shipping-profiles/#{shipping_profile_id}/upgrades/#{upgrade_id}", ) end |