colissimo_label 0.10.0 → 0.11.0
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/CHANGELOG.md +4 -0
- data/README.md +6 -0
- data/lib/colissimo_label/generate_label.rb +3 -0
- 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: 9b0795676ddd57f1b5503c5180b91adb60234af5d3411a0a7f18fdd0e493d2ec
|
|
4
|
+
data.tar.gz: 3d2035bafc6cb5ace72033aa749bff5d035c54c9a22fcee32ac87d75e07961d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d6f83c49db31c0fc2ebbf74d13669bd234a1847343f161b16c63aa08fa7fce7f0c4f4d9567ee7b33a733865e13525dc59cc26520a411575ea0fdb37a9598a76
|
|
7
|
+
data.tar.gz: 287a401e7c7d8b85b4b801b9daf64604fab30d101b4b4cfe6705642ebde0a402030a79283d6158ca8f718de7df511e5c8b4659360845df79be96d908774b1032
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -138,6 +138,12 @@ parcel_number = ColissimoLabel::GenerateLabel.new(
|
|
|
138
138
|
).perform
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
+
You can add the following option to require the signature:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
with_signature: true
|
|
145
|
+
```
|
|
146
|
+
|
|
141
147
|
For a national address and delivered to a relay point:
|
|
142
148
|
|
|
143
149
|
```ruby
|
|
@@ -14,6 +14,7 @@ class ColissimoLabel::GenerateLabel
|
|
|
14
14
|
@pickup_type = options.fetch(:pickup_type, nil)
|
|
15
15
|
@customs_total_weight = options.fetch(:customs_total_weight, nil)
|
|
16
16
|
@customs_data = options.fetch(:customs_data, nil)
|
|
17
|
+
@with_signature = options.fetch(:with_signature, false)
|
|
17
18
|
@errors = []
|
|
18
19
|
end
|
|
19
20
|
|
|
@@ -195,6 +196,8 @@ class ColissimoLabel::GenerateLabel
|
|
|
195
196
|
'DOS'
|
|
196
197
|
elsif !@pickup_id.nil? && %w[FR].include?(@destination_country)
|
|
197
198
|
@pickup_type || 'BPR'
|
|
199
|
+
elsif @with_signature
|
|
200
|
+
'DOS'
|
|
198
201
|
else
|
|
199
202
|
'DOM'
|
|
200
203
|
end
|
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.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- FloXcoder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-22 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.
|
|
185
|
+
rubygems_version: 3.1.2
|
|
186
186
|
signing_key:
|
|
187
187
|
specification_version: 4
|
|
188
188
|
summary: Generate Colissimo label for all countries
|