tophatter-merchant 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: 97943b1b559351ffa2e3feaa41b1241cccfa2451
4
- data.tar.gz: e836cd08b862e7fc73cecf30e20d846336fb124f
3
+ metadata.gz: c832485da45833a3609214742e3d25c2063997e3
4
+ data.tar.gz: 84e84519288868338281ec5b7814e3804be57142
5
5
  SHA512:
6
- metadata.gz: 933f78e36dcb2c34d08237582ad2079bca90a102cacb61b2e65cdb39b62103e9b8d11abfc8d3a3d0e1b6c0e6e5c0443a06419284a4256b024e42f90336ddbcf3
7
- data.tar.gz: ba6c10429a6219495000a55f86ac1af39db6efa4d0e50878233a5663e440a979ecd810bdf4349bcfdfbd9b4b22060822843cc5e05b532cd35a5f6fa255361d75
6
+ metadata.gz: 65e372bf3ff1d4c9027ede0e1fee567cf298dd52050cee34827f65e29cbe4648224b5027b2fac0592117cc1028076c9e6c883068c1b13376bc666de65e6efb78
7
+ data.tar.gz: ec19156f01994105448b45d9e489b1bac5ecce27b31f69f3046851e448dc6d50ec0772ea80174a11201f1c07232feb9d5457503bae5afdb5de0f939dd2221e2a
@@ -5,7 +5,7 @@ module TophatterMerchant
5
5
  :product_name, :product_identifier, :variation_identifier,
6
6
  :customer_id, :customer_name,
7
7
  :address1, :address2, :city, :state, :postal_code, :country,
8
- :available_refunds, :refund_amount,
8
+ :available_refunds, :refund_amount, :line_items,
9
9
  :disbursement_amount, :seller_fees_amount, :seller_fees,
10
10
  :paid_at, :created_at
11
11
 
@@ -16,7 +16,7 @@ module TophatterMerchant
16
16
  :internal_id, :slug, # Admin
17
17
  :admin_banned_at, :admin_hold_at, :admin_hold_responded_at, :admin_reason,
18
18
  :success_fee_bid_enabled, :success_fee_bid,
19
- :health_status, :health_reason, :desirability_score
19
+ :health_status, :health_reason
20
20
 
21
21
  def id
22
22
  created_at.present? ? identifier : nil
@@ -31,15 +31,15 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"cf176ea8ca697c2ceb2651f88dc3364d"
34
+ - W/"feac9e8404d95561205c9fa75693a86f"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 22b1180e-2b1d-4b91-9d2a-9141fe2793e1
38
+ - 229f5b1d-9fcb-4e8f-a1ea-c271fa7f23b4
39
39
  X-Runtime:
40
- - '0.077706'
40
+ - '0.067633'
41
41
  Date:
42
- - Fri, 31 Mar 2017 23:32:52 GMT
42
+ - Fri, 14 Jul 2017 03:49:22 GMT
43
43
  Connection:
44
44
  - close
45
45
  body:
@@ -47,7 +47,7 @@ http_interactions:
47
47
  string: '{"order_id":359887509,"status":"paid","carrier":null,"tracking_number":null,"product_name":"Paid
48
48
  Fullfillable 1","product_identifier":"DEFAULT","variation_identifier":null,"customer_name":"Optimus
49
49
  Prime","customer_id":981984628,"address1":"201 Valley Street","address2":null,"city":"Los
50
- Altos","state":"CA","postal_code":"94022","country":"United States","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-03-31T14:31:19-07:00","created_at":"2017-03-31T16:32:24-07:00"}'
51
- http_version:
52
- recorded_at: Fri, 31 Mar 2017 23:32:52 GMT
50
+ Altos","state":"CA","postal_code":"94022","country":"USA","available_refunds":{"buyer_fee":399.0,"shipping_fee":3.0},"refund_amount":0.0,"line_items":[{"line_item":"Item","value":399,"type":"price"},{"line_item":"Shipping","value":3.0,"type":"shipping"},{"line_item":"Total","value":442.2,"type":"total"}],"disbursement_amount":358.8,"seller_fees_amount":40.2,"seller_fees":[{"type":"commission_fee","amount":40.2}],"paid_at":"2017-07-13T16:20:24-07:00","created_at":"2017-07-13T18:21:26-07:00"}'
51
+ http_version:
52
+ recorded_at: Fri, 14 Jul 2017 03:49:22 GMT
53
53
  recorded_with: VCR 3.0.3
@@ -24,11 +24,12 @@ describe TophatterMerchant::Order do
24
24
  expect(order.product_identifier).to eq('DEFAULT')
25
25
  expect(order.customer_id).to eq(981984628)
26
26
  expect(order.customer_name).to eq('Optimus Prime')
27
+ expect(order.line_items.count).to eq(3)
27
28
  expect(order.address1).to eq('201 Valley Street')
28
29
  expect(order.city).to eq('Los Altos')
29
30
  expect(order.state).to eq('CA')
30
31
  expect(order.postal_code).to eq('94022')
31
- expect(order.country).to eq('United States')
32
+ expect(order.country).to eq('USA')
32
33
  end
33
34
  end
34
35
 
@@ -5,7 +5,7 @@
5
5
  # gem push tophatter-merchant-{VERSION}.gem
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'tophatter-merchant'
8
- s.version = '1.2.1'
8
+ s.version = '1.2.2'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.licenses = ['MIT']
11
11
  s.authors = ['Chris Estreich']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tophatter-merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Estreich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-28 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client