colissimo_label 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/colissimo_label/generate_label.rb +3 -1
- data/lib/colissimo_label/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d58ca859be28bd4c1904888ffd0a04ce9f2a0fe3eb4685d530a9c63ac64fc24d
|
4
|
+
data.tar.gz: b0101152eecda5a85baaf0f02e337abde20d525646e4c91751104dbc423cb554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf756d30f2c61764de70d2e60dbc0d5d0ecd1dbe75a6411a05457e8981042cddec79ebf37143fd5048a60a057e39649060a2e84614233c0f671be3fa97b012d9
|
7
|
+
data.tar.gz: 01c0681b6bc6c1a619299a6bd94f3151cd8a01ed3ccf4bfe22a8f4fcff77b7b4232cb9f833c5c46d72e2a5fd648869a25bf389f4ad02b5808b5bc3e1576cc423
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,7 @@ class ColissimoLabel::GenerateLabel
|
|
14
14
|
@pickup_type = options.fetch(:pickup_type, nil)
|
15
15
|
@total_weight = options.fetch(:total_weight, nil)
|
16
16
|
@customs_total_weight = options.fetch(:customs_total_weight, nil)
|
17
|
+
@customs_tva_number = options.fetch(:customs_tva_number, nil)
|
17
18
|
@customs_data = options.fetch(:customs_data, nil)
|
18
19
|
@with_signature = options.fetch(:with_signature, false)
|
19
20
|
@insurance_value = options.fetch(:insurance_value, nil)
|
@@ -174,7 +175,8 @@ class ColissimoLabel::GenerateLabel
|
|
174
175
|
if require_customs?
|
175
176
|
{
|
176
177
|
"customsDeclarations": {
|
177
|
-
"includeCustomsDeclarations": 1, # Inclure déclaration
|
178
|
+
"includeCustomsDeclarations": 1, # Inclure déclaration,
|
179
|
+
"importersReference": @customs_tva_number, # Numéro TVA pour la douane, si besoin
|
178
180
|
"contents": {
|
179
181
|
"article": @customs_data.map { |customs|
|
180
182
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colissimo_label
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FloXcoder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.2.
|
185
|
+
rubygems_version: 3.2.3
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Generate Colissimo label for all countries
|