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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c832485da45833a3609214742e3d25c2063997e3
|
4
|
+
data.tar.gz: 84e84519288868338281ec5b7814e3804be57142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/"
|
34
|
+
- W/"feac9e8404d95561205c9fa75693a86f"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 229f5b1d-9fcb-4e8f-a1ea-c271fa7f23b4
|
39
39
|
X-Runtime:
|
40
|
-
- '0.
|
40
|
+
- '0.067633'
|
41
41
|
Date:
|
42
|
-
- Fri,
|
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":"
|
51
|
-
http_version:
|
52
|
-
recorded_at: Fri,
|
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('
|
32
|
+
expect(order.country).to eq('USA')
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
data/tophatter-merchant.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|