class FriendlyShipping::Services::Ups::LabelOptions
Constants
- RETURN_SERVICE_CODES
- SHIPMENT_DELIVERY_CONFIRMATION_CODES
- TERMS_OF_SHIPMENT_CODES
Attributes
billing_options[R]
carbon_neutral[R]
customer_context[R]
delivery_confirmation[R]
invoice_date[R]
label_format[R]
label_size[R]
negotiated_rates[R]
paperless_invoice[R]
reason_for_export[R]
return_service[R]
saturday_delivery[R]
shipper[R]
shipper_number[R]
shipping_method[R]
sold_to[R]
terms_of_shipment[R]
validate_address[R]
Public Class Methods
new( shipping_method:, shipper_number:, shipper: nil, customer_context: nil, validate_address: true, negotiated_rates: false, billing_options: LabelBillingOptions.new, sold_to: nil, saturday_delivery: false, label_format: 'GIF', label_size: [4, 6], delivery_confirmation: nil, carbon_neutral: true, return_service: nil, paperless_invoice: false, terms_of_shipment: nil, reason_for_export: 'SALE', invoice_date: nil, package_options_class: LabelPackageOptions, **kwargs )
click to toggle source
Calls superclass method
FriendlyShipping::ShipmentOptions::new
# File lib/friendly_shipping/services/ups/label_options.rb, line 102 def initialize( shipping_method:, shipper_number:, shipper: nil, customer_context: nil, validate_address: true, negotiated_rates: false, billing_options: LabelBillingOptions.new, sold_to: nil, saturday_delivery: false, label_format: 'GIF', label_size: [4, 6], delivery_confirmation: nil, carbon_neutral: true, return_service: nil, paperless_invoice: false, terms_of_shipment: nil, reason_for_export: 'SALE', invoice_date: nil, package_options_class: LabelPackageOptions, **kwargs ) @shipping_method = shipping_method @shipper_number = shipper_number @shipper = shipper @customer_context = customer_context @validate_address = validate_address @negotiated_rates = negotiated_rates @billing_options = billing_options @sold_to = sold_to @saturday_delivery = saturday_delivery @label_format = label_format @label_size = label_size @delivery_confirmation = delivery_confirmation @carbon_neutral = carbon_neutral @return_service = return_service @paperless_invoice = paperless_invoice @terms_of_shipment = terms_of_shipment @reason_for_export = reason_for_export @invoice_date = invoice_date super(**kwargs.merge(package_options_class: package_options_class)) end
Public Instance Methods
delivery_confirmation_code()
click to toggle source
# File lib/friendly_shipping/services/ups/label_options.rb, line 145 def delivery_confirmation_code SHIPMENT_DELIVERY_CONFIRMATION_CODES[delivery_confirmation] end
return_service_code()
click to toggle source
# File lib/friendly_shipping/services/ups/label_options.rb, line 153 def return_service_code RETURN_SERVICE_CODES[return_service] end
terms_of_shipment_code()
click to toggle source
# File lib/friendly_shipping/services/ups/label_options.rb, line 149 def terms_of_shipment_code TERMS_OF_SHIPMENT_CODES[terms_of_shipment] end