Class: ShipEngine::Domain::Labels::CreateFromRate::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/labels/create_from_rate.rb

Defined Under Namespace

Classes: Dimensions, FormDownload, InsuranceClaim, LabelDownload, MonetaryValue, Package, Weight

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label_id:, status:, shipment_id:, ship_date:, created_at:, shipment_cost:, insurance_cost:, tracking_number:, is_return_label:, rma_number:, is_international:, batch_id:, carrier_id:, charge_event:, service_code:, package_code:, voided:, voided_at:, label_format:, display_scheme:, label_layout:, trackable:, label_image_id:, carrier_code:, tracking_status:, label_download:, form_download:, insurance_claim:, packages:) ⇒ Response

rubocop:todo Metrics/ParameterLists



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 39

def initialize(label_id:, status:, shipment_id:, ship_date:, created_at:, shipment_cost:, insurance_cost:, tracking_number:, is_return_label:, rma_number:, is_international:, batch_id:, carrier_id:, charge_event:, service_code:, package_code:, voided:, voided_at:, label_format:,
               display_scheme:, label_layout:, trackable:, label_image_id:, carrier_code:, tracking_status:, label_download:, form_download:, insurance_claim:, packages:)
  # rubocop:enable Metrics/ParameterLists
  @label_id = label_id
  @status = status
  @shipment_id = shipment_id
  @ship_date = ship_date
  @created_at = created_at
  @shipment_cost = shipment_cost
  @insurance_cost = insurance_cost
  @tracking_number = tracking_number
  @is_return_label = is_return_label
  @rma_number = rma_number
  @is_international = is_international
  @batch_id = batch_id
  @carrier_id = carrier_id
  @charge_event = charge_event
  @service_code = service_code
  @package_code = package_code
  @voided = voided
  @voided_at = voided_at
  @label_format = label_format
  @display_scheme = display_scheme
  @label_layout = label_layout
  @trackable = trackable
  @label_image_id = label_image_id
  @carrier_code = carrier_code
  @tracking_status = tracking_status
  @label_download = label_download
  @form_download = form_download
  @insurance_claim = insurance_claim
  @packages = packages
end

Instance Attribute Details

#batch_idObject (readonly)

Returns the value of attribute batch_id.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def batch_id
  @batch_id
end

#carrier_codeObject (readonly)

Returns the value of attribute carrier_code.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def carrier_code
  @carrier_code
end

#carrier_idObject (readonly)

Returns the value of attribute carrier_id.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def carrier_id
  @carrier_id
end

#charge_eventObject (readonly)

Returns the value of attribute charge_event.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def charge_event
  @charge_event
end

#created_atObject (readonly)

Returns the value of attribute created_at.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def created_at
  @created_at
end

#display_schemeObject (readonly)

Returns the value of attribute display_scheme.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def display_scheme
  @display_scheme
end

#form_downloadObject (readonly)

Returns the value of attribute form_download.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def form_download
  @form_download
end

#insurance_claimObject (readonly)

Returns the value of attribute insurance_claim.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def insurance_claim
  @insurance_claim
end

#insurance_costObject (readonly)

Returns the value of attribute insurance_cost.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def insurance_cost
  @insurance_cost
end

#is_internationalObject (readonly)

Returns the value of attribute is_international.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def is_international
  @is_international
end

#is_return_labelObject (readonly)

Returns the value of attribute is_return_label.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def is_return_label
  @is_return_label
end

#label_downloadObject (readonly)

Returns the value of attribute label_download.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def label_download
  @label_download
end

#label_formatObject (readonly)

Returns the value of attribute label_format.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def label_format
  @label_format
end

#label_idObject (readonly)

Returns the value of attribute label_id.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def label_id
  @label_id
end

#label_image_idObject (readonly)

Returns the value of attribute label_image_id.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def label_image_id
  @label_image_id
end

#label_layoutObject (readonly)

Returns the value of attribute label_layout.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def label_layout
  @label_layout
end

#package_codeObject (readonly)

Returns the value of attribute package_code.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def package_code
  @package_code
end

#packagesObject (readonly)

Returns the value of attribute packages.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def packages
  @packages
end

#rma_numberObject (readonly)

Returns the value of attribute rma_number.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def rma_number
  @rma_number
end

#service_codeObject (readonly)

Returns the value of attribute service_code.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def service_code
  @service_code
end

#ship_dateObject (readonly)

Returns the value of attribute ship_date.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def ship_date
  @ship_date
end

#shipment_costObject (readonly)

Returns the value of attribute shipment_cost.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def shipment_cost
  @shipment_cost
end

#shipment_idObject (readonly)

Returns the value of attribute shipment_id.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def shipment_id
  @shipment_id
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def status
  @status
end

#trackableObject (readonly)

Returns the value of attribute trackable.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def trackable
  @trackable
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def tracking_number
  @tracking_number
end

#tracking_statusObject (readonly)

Returns the value of attribute tracking_status.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def tracking_status
  @tracking_status
end

#voidedObject (readonly)

Returns the value of attribute voided.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def voided
  @voided
end

#voided_atObject (readonly)

Returns the value of attribute voided_at.



8
9
10
# File 'lib/shipengine/domain/labels/create_from_rate.rb', line 8

def voided_at
  @voided_at
end