Class: Edi::Amazon::ShipWithAmazon::PurchaseResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/amazon/ship_with_amazon.rb

Overview

Service object: purchase result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, shipment_id: nil, tracking_number: nil, carrier_id: nil, carrier_name: nil, service_name: nil, label_data: nil, promise: nil, error: nil) ⇒ PurchaseResult

Returns a new instance of PurchaseResult.



26
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 26

def initialize(success: nil, shipment_id: nil, tracking_number: nil, carrier_id: nil, carrier_name: nil, service_name: nil, label_data: nil, promise: nil, error: nil) = super

Instance Attribute Details

#carrier_idObject (readonly)

Returns the value of attribute carrier_id

Returns:

  • (Object)

    the current value of carrier_id



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def carrier_id
  @carrier_id
end

#carrier_nameObject (readonly)

Returns the value of attribute carrier_name

Returns:

  • (Object)

    the current value of carrier_name



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def carrier_name
  @carrier_name
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def error
  @error
end

#label_dataObject (readonly)

Returns the value of attribute label_data

Returns:

  • (Object)

    the current value of label_data



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def label_data
  @label_data
end

#promiseObject (readonly)

Returns the value of attribute promise

Returns:

  • (Object)

    the current value of promise



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def promise
  @promise
end

#service_nameObject (readonly)

Returns the value of attribute service_name

Returns:

  • (Object)

    the current value of service_name



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def service_name
  @service_name
end

#shipment_idObject (readonly)

Returns the value of attribute shipment_id

Returns:

  • (Object)

    the current value of shipment_id



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def shipment_id
  @shipment_id
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def success
  @success
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number

Returns:

  • (Object)

    the current value of tracking_number



25
26
27
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 25

def tracking_number
  @tracking_number
end