example/mock.rb in parcel_api-0.4.1 vs example/mock.rb in parcel_api-1.0.0
- old
+ new
@@ -44,11 +44,11 @@
# Tracking Example
tracking = ParcelApi::Track.new
-results = tracking.details('1818120002213401AKL003HN')
+results = tracking.details('8144152543878001AKL002PN')
# example tracking output
last_event = results.tracking_events.last
puts results.carrier
puts results.service
@@ -194,12 +194,13 @@
],
service_code: 'TIEX',
indicia_number: '123456',
insurance_required: true,
contains_only_documents: true,
- export_type: 'Gift',
- harmonised_system_tariff: '12121212'
+ export_type: 'Documents',
+ harmonised_system_tariff: '12121212',
+ user_reference_code: SecureRandom.hex(1),
}
]
}
# create the label
@@ -217,11 +218,11 @@
File.open("#{intl.label_id}.pdf", 'w') do |f|
f.puts(intl_ticket.read)
end
-ShippingOptions Example
+## ShippingOptions Example
shipping_options = ParcelApi::ShippingOptions.new
params = {
weight: 10,
@@ -249,11 +250,10 @@
# Pickup Example
pickup_params = {
carrier: 'CourierPost',
- message_id: 'Test Message ID',
- message_date_time: '2015-05-27T14:19:50',
+ caller: 'Test Caller',
account_number: '91327067',
pickup_address: {
site_code: '28979',
instructions: 'TEST'
},