Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::AdvancedOptions::CollectOnDelivery

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/rates/get_with_shipment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment_type:, payment_amount:) ⇒ CollectOnDelivery

Returns a new instance of CollectOnDelivery.



217
218
219
220
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 217

def initialize(payment_type:, payment_amount:)
  @payment_type = payment_type
  @payment_amount = payment_amount
end

Instance Attribute Details

#payment_amountObject (readonly)

Returns the value of attribute payment_amount.



215
216
217
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 215

def payment_amount
  @payment_amount
end

#payment_typeObject (readonly)

Returns the value of attribute payment_type.



215
216
217
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 215

def payment_type
  @payment_type
end