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

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

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.



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

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



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def carrier_id
  @carrier_id
end

#carrier_nameObject (readonly)

Returns the value of attribute carrier_name

Returns:

  • (Object)

    the current value of carrier_name



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def carrier_name
  @carrier_name
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def error
  @error
end

#label_dataObject (readonly)

Returns the value of attribute label_data

Returns:

  • (Object)

    the current value of label_data



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def label_data
  @label_data
end

#promiseObject (readonly)

Returns the value of attribute promise

Returns:

  • (Object)

    the current value of promise



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def promise
  @promise
end

#service_nameObject (readonly)

Returns the value of attribute service_name

Returns:

  • (Object)

    the current value of service_name



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def service_name
  @service_name
end

#shipment_idObject (readonly)

Returns the value of attribute shipment_id

Returns:

  • (Object)

    the current value of shipment_id



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def shipment_id
  @shipment_id
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def success
  @success
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number

Returns:

  • (Object)

    the current value of tracking_number



23
24
25
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 23

def tracking_number
  @tracking_number
end