an_post_return 0.2.0 → 0.2.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/README.md +3 -3
- data/lib/an_post_return/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21117bee5b1a89c2538217b6e317bbdeb01a09c94ebd053f7341c8cead7f2806
|
4
|
+
data.tar.gz: '01868c415b4b74b1486d164a1e168902fef2cc2315c5c7514a58ba0455224cdf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d406b357f13e3ed86ab5b29805a92d783bbe39bf715783680369d63ff203c0c9509146210cdc64416bd2dba9a33ef49924953bdfdfe4bdee834f3257a83d96
|
7
|
+
data.tar.gz: 507ee59443f89e704647f0b1c1060d8a4df3cd5bda35df8b897dd3b5b02434c53c72a7a04d3c82651157bc13111b223c52555e7148a3a577cc68935c743ee907
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ end
|
|
68
68
|
```ruby
|
69
69
|
# Initialize a new return label request
|
70
70
|
client = AnPostReturn::Client.new
|
71
|
-
|
71
|
+
return_label = client.return_labels.create(
|
72
72
|
output_response_type: "Label",
|
73
73
|
sender: {
|
74
74
|
first_name: "Jane",
|
@@ -91,8 +91,8 @@ response = client.return_labels.create(
|
|
91
91
|
)
|
92
92
|
|
93
93
|
# Access the response data
|
94
|
-
puts
|
95
|
-
puts
|
94
|
+
puts return_label.tracking_number # The An Post tracking number for this shipment
|
95
|
+
puts return_label.label_data # The label data (usually a PDF bitstream)
|
96
96
|
```
|
97
97
|
|
98
98
|
### Tracking Shipments
|