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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f2772b5cbd8199e679fee7a49471f9736a47c5403134561071e41d2c104991
4
- data.tar.gz: b1bceb5dab129206977631fba20b0ed90b80173f7fafccaa58303aa2983febb3
3
+ metadata.gz: 6bae5d0a56bf5f9b96566ec346d29ad8a5043fa25fe3438f0b4d3beb2062cfd4
4
+ data.tar.gz: 683c0dfe1662a44b8c9520d733989823164d0c8c93d42f1894f6014845485f2c
5
5
  SHA512:
6
- metadata.gz: 70485fff29c3b8f7ed10d722102a19b5e71ff6cf9ea62621f3aee9025fa1f5bc93479d09349164d6502bed3373c6fb0fb4e09a55a9cae3bcafbe59d3d6d87cf2
7
- data.tar.gz: 4f75114e6970805f7ee15c2dcd05086e941cb856c703d5061e0ab89c8d9ba2c27e51c1c3d3bd9444fdbec4ebbf5c01918b88f7d2200ef900b131d6290ea19633
6
+ metadata.gz: fb303070c64aa860d28ffce0038762a87b5e15921a524fede20f76edbabf93ad95f9b7bb7da49c437a1cc706d41f2e695a0c5a1acca0ba78f8ae16c96ba37592
7
+ data.tar.gz: 1d61d5c911fb5ab97c5665f9417cec73c863cea8ae190006f643458046060865b130b028aecad95fa330a5be8230213093d5f350e203d34ccf282eab2ab43e8e
@@ -1,3 +1,3 @@
1
1
  module TindieApi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.12"
3
3
  end
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.10
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: 2024-12-28 00:00:00.000000000 Z
11
+ date: 2025-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler