spree_easypost 6.0.0.rc1 → 6.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/spree_easypost/integration.rb +2 -2
- data/lib/spree_easypost.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db366c88856e4dad00f83849b98fabd7c8d3b6ae2553c2474754f18e83e9d84d
|
|
4
|
+
data.tar.gz: c172d842c0c61fafc97ebb3b16c0acbdabb491b718167c7df5b8d4153e76b13c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4643290362b67f76703e8ca07aca53bb232c6bae786166e7719a865dd190d5b569a72a14704554ec4ba1af2b5921a82dd1cf4da0dbb7fe2882189925d726b5a5
|
|
7
|
+
data.tar.gz: a8034d92da6b90efe5088ef81148bdf6af04bb4486d7b7de06a64a679eb849b1fad12373b23a43e32fda30337093fa944ec7e16fdd84e31b70a324cd782e9a94
|
|
@@ -22,12 +22,12 @@ module SpreeEasyPost
|
|
|
22
22
|
# signer takes legal responsibility for the declared contents, so it names
|
|
23
23
|
# a person at the merchant rather than the store.
|
|
24
24
|
preference :customs_signer, :string
|
|
25
|
-
preference :customs_contents_type, :string, default: 'merchandise',
|
|
25
|
+
preference :customs_contents_type, :string, default: 'merchandise', choices: CUSTOMS_CONTENTS_TYPES
|
|
26
26
|
# Who pays duties and taxes on arrival. Defaults to DAP — the recipient is
|
|
27
27
|
# billed by the carrier. DDP bills the merchant instead, so only choose it
|
|
28
28
|
# once duties are actually collected from the customer at checkout;
|
|
29
29
|
# otherwise the merchant absorbs them silently.
|
|
30
|
-
preference :incoterm, :string, default: 'DAP',
|
|
30
|
+
preference :incoterm, :string, default: 'DAP', choices: INCOTERMS
|
|
31
31
|
|
|
32
32
|
validates :preferred_incoterm, inclusion: { in: INCOTERMS }, allow_blank: true
|
|
33
33
|
validates :preferred_customs_contents_type, inclusion: { in: CUSTOMS_CONTENTS_TYPES }, allow_blank: true
|
data/lib/spree_easypost.rb
CHANGED
|
@@ -176,7 +176,7 @@ module SpreeEasyPost
|
|
|
176
176
|
return unless origin&.country_code == 'US'
|
|
177
177
|
return unless items.all? { |item| item[:currency].to_s.upcase == 'USD' }
|
|
178
178
|
|
|
179
|
-
declared_value = items.sum { |item| item[:value].
|
|
179
|
+
declared_value = items.sum { |item| BigDecimal(item[:value].to_s) }
|
|
180
180
|
'NOEEI 30.37(a)' if declared_value < EEI_EXEMPTION_LIMIT_USD
|
|
181
181
|
end
|
|
182
182
|
|
|
@@ -195,7 +195,7 @@ module SpreeEasyPost
|
|
|
195
195
|
{
|
|
196
196
|
description: variant.customs_description_for_declaration,
|
|
197
197
|
quantity: item.quantity,
|
|
198
|
-
value: (item.price
|
|
198
|
+
value: Spree::Money::Rounding.to_currency(item.price * item.quantity, package.currency).to_f, # EasyPost reads customs values as JSON numbers
|
|
199
199
|
weight: ounces(item.weight, store),
|
|
200
200
|
origin_country: variant.country_of_origin.presence,
|
|
201
201
|
hs_tariff_number: variant.hs_code.presence,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_easypost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.0.
|
|
4
|
+
version: 6.0.0.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vendo Connect Inc.
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-10-
|
|
12
|
+
date: 2026-10-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: easypost
|
|
@@ -31,14 +31,14 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - '='
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: 6.0.0.
|
|
34
|
+
version: 6.0.0.rc2
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - '='
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 6.0.0.
|
|
41
|
+
version: 6.0.0.rc2
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: vcr
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -75,9 +75,9 @@ licenses:
|
|
|
75
75
|
- MIT
|
|
76
76
|
metadata:
|
|
77
77
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
78
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.
|
|
78
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.rc2
|
|
79
79
|
documentation_uri: https://docs.spreecommerce.org/
|
|
80
|
-
source_code_uri: https://github.com/spree/spree/tree/v6.0.0.
|
|
80
|
+
source_code_uri: https://github.com/spree/spree/tree/v6.0.0.rc2
|
|
81
81
|
post_install_message:
|
|
82
82
|
rdoc_options: []
|
|
83
83
|
require_paths:
|