music_today_api_wrapper 28.03 → 29.01
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resources/checkout/destination.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15f3348fa68bdcfb1d64ae26fa0b24e04eff14c2
|
4
|
+
data.tar.gz: a4a820afe3b00b3d43fee76a5cfbe3384aff69de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
8
|
+
attr_accessor :customer, :shipping_option, :shipping_cost
|
9
9
|
|
10
|
-
def initialize(
|
11
|
-
@
|
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: @
|
20
|
+
address: @customer.as_hash }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|