Class: Afterpay::Components::Courier

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/courier.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#nameString

The name of the courier.

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/courier.rb', line 14

def name
  @name
end

#priorityString

The shipping priority. If provided, must be either ‘STANDARD’ or ‘EXPRESS’.

Returns:

  • (String)


24
25
26
# File 'lib/afterpay/components/courier.rb', line 24

def priority
  @priority
end

#shipped_atString

The time at which the order was shipped (ISO 8601 UTC/Zulu time).

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/courier.rb', line 9

def shipped_at
  @shipped_at
end

#trackingString

The tracking number provided by the courier.

Returns:

  • (String)


19
20
21
# File 'lib/afterpay/components/courier.rb', line 19

def tracking
  @tracking
end