Class: Io::Flow::V0::Models::ReturnTrackingStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ReturnTrackingStatus

Returns a new instance of ReturnTrackingStatus.



26039
26040
26041
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26039

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



26037
26038
26039
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26037

def value
  @value
end

Class Method Details

.apply(value) ⇒ Object

Returns the instance of ReturnTrackingStatus for this value, creating a new instance for an unknown value



26044
26045
26046
26047
26048
26049
26050
26051
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26044

def ReturnTrackingStatus.apply(value)
  if value.instance_of?(ReturnTrackingStatus)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || ReturnTrackingStatus.new(value))
  end
end

.awaiting_customs_clearanceObject



26063
26064
26065
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26063

def ReturnTrackingStatus.awaiting_customs_clearance
  @@_awaiting_customs_clearance ||= ReturnTrackingStatus.new('awaiting_customs_clearance')
end

.cancel_requestedObject



26067
26068
26069
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26067

def ReturnTrackingStatus.cancel_requested
  @@_cancel_requested ||= ReturnTrackingStatus.new('cancel_requested')
end

.canceledObject



26071
26072
26073
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26071

def ReturnTrackingStatus.canceled
  @@_canceled ||= ReturnTrackingStatus.new('canceled')
end

.collection_attempt_failedObject



26075
26076
26077
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26075

def ReturnTrackingStatus.collection_attempt_failed
  @@_collection_attempt_failed ||= ReturnTrackingStatus.new('collection_attempt_failed')
end

.customs_clearance_completedObject



26079
26080
26081
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26079

def ReturnTrackingStatus.customs_clearance_completed
  @@_customs_clearance_completed ||= ReturnTrackingStatus.new('customs_clearance_completed')
end

.delivered_to_retailerObject



26083
26084
26085
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26083

def ReturnTrackingStatus.delivered_to_retailer
  @@_delivered_to_retailer ||= ReturnTrackingStatus.new('delivered_to_retailer')
end

.from_string(value) ⇒ Object

Returns the instance of ReturnTrackingStatus for this value, or nil if not found



26054
26055
26056
26057
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26054

def ReturnTrackingStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  ReturnTrackingStatus.ALL.find { |v| v.value == value }
end

.in_transit_to_local_hubObject



26087
26088
26089
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26087

def ReturnTrackingStatus.in_transit_to_local_hub
  @@_in_transit_to_local_hub ||= ReturnTrackingStatus.new('in_transit_to_local_hub')
end

.in_transit_to_retailerObject



26091
26092
26093
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26091

def ReturnTrackingStatus.in_transit_to_retailer
  @@_in_transit_to_retailer ||= ReturnTrackingStatus.new('in_transit_to_retailer')
end

.parcel_added_to_palletObject



26095
26096
26097
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26095

def ReturnTrackingStatus.parcel_added_to_pallet
  @@_parcel_added_to_pallet ||= ReturnTrackingStatus.new('parcel_added_to_pallet')
end

.parcel_delayedObject



26099
26100
26101
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26099

def ReturnTrackingStatus.parcel_delayed
  @@_parcel_delayed ||= ReturnTrackingStatus.new('parcel_delayed')
end

.parcel_extracted_from_palletObject



26103
26104
26105
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26103

def ReturnTrackingStatus.parcel_extracted_from_pallet
  @@_parcel_extracted_from_pallet ||= ReturnTrackingStatus.new('parcel_extracted_from_pallet')
end

.parcel_lostObject



26107
26108
26109
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26107

def ReturnTrackingStatus.parcel_lost
  @@_parcel_lost ||= ReturnTrackingStatus.new('parcel_lost')
end

.parcel_processed_by_retailerObject



26111
26112
26113
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26111

def ReturnTrackingStatus.parcel_processed_by_retailer
  @@_parcel_processed_by_retailer ||= ReturnTrackingStatus.new('parcel_processed_by_retailer')
end

.parcel_under_investigationObject



26115
26116
26117
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26115

def ReturnTrackingStatus.parcel_under_investigation
  @@_parcel_under_investigation ||= ReturnTrackingStatus.new('parcel_under_investigation')
end

.processed_by_local_hubObject



26119
26120
26121
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26119

def ReturnTrackingStatus.processed_by_local_hub
  @@_processed_by_local_hub ||= ReturnTrackingStatus.new('processed_by_local_hub')
end

.received_at_local_hubObject



26123
26124
26125
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26123

def ReturnTrackingStatus.received_at_local_hub
  @@_received_at_local_hub ||= ReturnTrackingStatus.new('received_at_local_hub')
end

.received_by_the_carrierObject



26127
26128
26129
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26127

def ReturnTrackingStatus.received_by_the_carrier
  @@_received_by_the_carrier ||= ReturnTrackingStatus.new('received_by_the_carrier')
end

.return_registered_onlineObject



26131
26132
26133
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26131

def ReturnTrackingStatus.return_registered_online
  @@_return_registered_online ||= ReturnTrackingStatus.new('return_registered_online')
end

Instance Method Details

#to_hashObject



26135
26136
26137
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 26135

def to_hash
  value
end