ups-ruby 0.13.0 → 0.14.1
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/Gemfile.lock +3 -3
- data/lib/ups/builders/organisation_builder.rb +8 -0
- data/lib/ups/builders/shipper_builder.rb +8 -0
- data/lib/ups/version.rb +2 -2
- data/spec/support/shipping_options.rb +2 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7fc9c4d705a7e2b8af7c6cac249f53e6907a91937c1a48beaa3304e1c39577c
|
|
4
|
+
data.tar.gz: 20f50696539dcedf51233307ce029612a6087b61b4151146a1cc4be81c2f3cae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 441652f86d95832337057fda51f3cf13ae8d2b24dc4fa58eb5f7f15b332cbd312c033c3bbe2836e2f6f36a83f02703c1585c8436e8aca3806a0e93323520bd1c
|
|
7
|
+
data.tar.gz: 5d9e1509a67f97a54e1cb6e1363f1739945566c97d104b89fbbde30520110376c2c6d094fba614a43f6a8ef5ade6640ebe3c42d8e158fb011626287f392eecce
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ups-ruby (0.
|
|
4
|
+
ups-ruby (0.14.1)
|
|
5
5
|
excon (~> 0.45, >= 0.45.3)
|
|
6
6
|
insensitive_hash (~> 0.3.3)
|
|
7
7
|
levenshtein-ffi (~> 1.1)
|
|
@@ -13,8 +13,8 @@ GEM
|
|
|
13
13
|
codeclimate-test-reporter (1.0.5)
|
|
14
14
|
simplecov
|
|
15
15
|
docile (1.1.5)
|
|
16
|
-
excon (0.
|
|
17
|
-
ffi (1.11.
|
|
16
|
+
excon (0.69.1)
|
|
17
|
+
ffi (1.11.3)
|
|
18
18
|
insensitive_hash (0.3.3)
|
|
19
19
|
json (1.8.6)
|
|
20
20
|
levenshtein-ffi (1.1.0)
|
|
@@ -51,6 +51,13 @@ module UPS
|
|
|
51
51
|
element_with_value('AttentionName', opts[:attention_name][0..34])
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# Returns an XML representation of sender_vat_number of the company
|
|
55
|
+
#
|
|
56
|
+
# @return [Ox::Element] XML representation of sender_vat_number
|
|
57
|
+
def tax_identification_number
|
|
58
|
+
element_with_value('TaxIdentificationNumber', opts[:sender_vat_number] || '')
|
|
59
|
+
end
|
|
60
|
+
|
|
54
61
|
# Returns an XML representation of address
|
|
55
62
|
#
|
|
56
63
|
# @return [Ox::Element] An instance of {AddressBuilder} containing the
|
|
@@ -68,6 +75,7 @@ module UPS
|
|
|
68
75
|
org << phone_number
|
|
69
76
|
org << attention_name
|
|
70
77
|
org << address
|
|
78
|
+
org << tax_identification_number
|
|
71
79
|
end
|
|
72
80
|
end
|
|
73
81
|
end
|
|
@@ -70,6 +70,13 @@ module UPS
|
|
|
70
70
|
element_with_value('AttentionName', opts[:attention_name] || '')
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
# Returns an XML representation of sender_vat_number
|
|
74
|
+
#
|
|
75
|
+
# @return [Ox::Element] XML representation of sender_vat_number
|
|
76
|
+
def tax_identification_number
|
|
77
|
+
element_with_value('TaxIdentificationNumber', opts[:sender_vat_number] || '')
|
|
78
|
+
end
|
|
79
|
+
|
|
73
80
|
# Returns an XML representation of the current object
|
|
74
81
|
#
|
|
75
82
|
# @return [Ox::Element] XML representation of the current object
|
|
@@ -81,6 +88,7 @@ module UPS
|
|
|
81
88
|
org << phone_number
|
|
82
89
|
org << shipper_number
|
|
83
90
|
org << address
|
|
91
|
+
org << tax_identification_number
|
|
84
92
|
end
|
|
85
93
|
end
|
|
86
94
|
end
|
data/lib/ups/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ups-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Veeqo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ox
|
|
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
170
|
version: 1.3.6
|
|
171
171
|
requirements: []
|
|
172
|
-
|
|
173
|
-
rubygems_version: 2.7.9
|
|
172
|
+
rubygems_version: 3.0.6
|
|
174
173
|
signing_key:
|
|
175
174
|
specification_version: 4
|
|
176
175
|
summary: UPS
|