tindie_api 0.1.10 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tindie_api/version.rb +1 -1
- data/lib/tindie_api.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bae5d0a56bf5f9b96566ec346d29ad8a5043fa25fe3438f0b4d3beb2062cfd4
|
4
|
+
data.tar.gz: 683c0dfe1662a44b8c9520d733989823164d0c8c93d42f1894f6014845485f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb303070c64aa860d28ffce0038762a87b5e15921a524fede20f76edbabf93ad95f9b7bb7da49c437a1cc706d41f2e695a0c5a1acca0ba78f8ae16c96ba37592
|
7
|
+
data.tar.gz: 1d61d5c911fb5ab97c5665f9417cec73c863cea8ae190006f643458046060865b130b028aecad95fa330a5be8230213093d5f350e203d34ccf282eab2ab43e8e
|
data/lib/tindie_api/version.rb
CHANGED
data/lib/tindie_api.rb
CHANGED
@@ -32,10 +32,9 @@ module TindieApi
|
|
32
32
|
def initialize(data)
|
33
33
|
@json_parsed = data
|
34
34
|
@date = DateTime.parse(data['date'])
|
35
|
-
@date_shipped = DateTime.parse(data['date_shipped'])
|
36
35
|
@products = data['items'].map { |i| TindieProduct.new(i) }
|
37
|
-
@shipped = data['shipped']
|
38
36
|
@refunded = data['refunded']
|
37
|
+
@shipped = data['shipped']
|
39
38
|
@order_number = data['number']
|
40
39
|
@recipient_email = data['email']
|
41
40
|
@recipient_phone = data['phone']
|
@@ -47,7 +46,8 @@ module TindieApi
|
|
47
46
|
postcode: data['shipping_postcode'],
|
48
47
|
service: data['shipping_service'],
|
49
48
|
state: data['shipping_state'],
|
50
|
-
street: data['shipping_street']
|
49
|
+
street: data['shipping_street'],
|
50
|
+
country_code: data['shipping_country_code']
|
51
51
|
}
|
52
52
|
@address_str = "#{data['shipping_name']}\n#{data['shipping_street']}\n" \
|
53
53
|
"#{data['shipping_city']} #{data['shipping_state']} #{data['shipping_postcode']}\n" \
|
@@ -58,6 +58,7 @@ module TindieApi
|
|
58
58
|
@tindie_fee = data['total_tindiefee']
|
59
59
|
@cc_fee = data['total_ccfee']
|
60
60
|
if @shipped
|
61
|
+
@date_shipped = DateTime.parse(data['date_shipped'])
|
61
62
|
@tracking_code = data['tracking_code']
|
62
63
|
@tracking_url = data['tracking_url']
|
63
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tindie_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spencer Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|