Class: Minfraud::Components::Shipping

Inherits:
Addressable show all
Includes:
Enum
Defined in:
lib/minfraud/components/shipping.rb

Instance Attribute Summary collapse

Attributes inherited from Addressable

#address, #address_2, #city, #company, #country, #first_name, #last_name, #phone_country_code, #phone_number, #postal, #region

Instance Method Summary collapse

Methods included from Enum

included

Methods inherited from Base

#to_json

Constructor Details

#initialize(params = {}) ⇒ Minfraud::Components::Shipping

Creates Minfraud::Components::Shipping instance

Parameters:

  • params (Hash) (defaults to: {})

    hash of parameters



16
17
18
19
# File 'lib/minfraud/components/shipping.rb', line 16

def initialize(params = {})
  self.delivery_speed = params[:delivery_speed]
  super
end

Instance Attribute Details

#delivery_speedString

Returns The shipping delivery speed for the order. The valid values are:

> same_day

> overnight

> expedited

> standard.

Returns:

  • (String)

    The shipping delivery speed for the order. The valid values are:

    > same_day

    > overnight

    > expedited

    > standard



11
# File 'lib/minfraud/components/shipping.rb', line 11

enum_accessor :delivery_speed, [:same_day, :overnight, :expedited, :standard]