music_today_api_wrapper 28.03 → 29.01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 013df0d63eddcb5ff956ac9948e9024bc0acaf36
4
- data.tar.gz: e1207fe71b732b7706676e659fef03f5d70793b4
3
+ metadata.gz: 15f3348fa68bdcfb1d64ae26fa0b24e04eff14c2
4
+ data.tar.gz: a4a820afe3b00b3d43fee76a5cfbe3384aff69de
5
5
  SHA512:
6
- metadata.gz: 930065bdaddd1d2539fa5fad45e493d798d83409729d61331218c8d754926cd7b1a312e92d2bdef741280a09ddced561ccb93e406f3e7a58fbe1fde1e6157dcf
7
- data.tar.gz: 2839723c2e1337c4ff9d7e8d34e022bf41ea68127957c921a0d982a0b486298db225219af2cf7e4ec8f9153e37b08b399e854f7a031075315bf29e2f6c382cd9
6
+ metadata.gz: bf8166b72033e150240160044ba866d25952e52968c6fe9966045252646e3028611dd03b8d15096f3ec7d58e5fd92d1dea9abadda3fac7b3f73df2e0d8515873
7
+ data.tar.gz: b6149c623158ba933f02c96bbf9ffa57cbe128825d8e81450e2a8f376b53505c993b41689d4b3fa4f526fb8058c8fa3ede02d01cb56e2be5ddecac59a02f712c
@@ -5,10 +5,10 @@ module MusicTodayApiWrapper
5
5
  module Resources
6
6
  module Checkout
7
7
  class Destination
8
- attr_accessor :address, :shipping_option, :shipping_cost
8
+ attr_accessor :customer, :shipping_option, :shipping_cost
9
9
 
10
- def initialize(address, shipping_option = '', shipping_cost = 0.0)
11
- @address = address
10
+ def initialize(customer, shipping_option = '', shipping_cost = 0.0)
11
+ @customer = customer
12
12
  @shipping_option = shipping_option
13
13
  @shipping_cost = shipping_cost.to_f
14
14
  end
@@ -17,7 +17,7 @@ module MusicTodayApiWrapper
17
17
  { requestedShippingOption: @shipping_option,
18
18
  shippingCost: @shipping_cost,
19
19
  shipToBillTo: false,
20
- address: @address.as_hash }
20
+ address: @customer.as_hash }
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_today_api_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: '28.03'
4
+ version: '29.01'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga