Sha256: 4da0655492d53463535e770da14a0f4fb4c4389b8526ea0fab83029d39b4fc59

Contents?: true

Size: 1.97 KB

Versions: 4

Compression:

Stored size: 1.97 KB

Contents

# frozen_string_literal: true

module ErpIntegration
  # The `ErpIntegration::CustomerShipmentReturn` exposes an uniformed API for interaction with
  # third-party ERP vendors.
  class CustomerShipmentReturn < Resource
    attr_accessor :aes_itn, :attachments, :available_carrier_services, :carrier,
                  :carrier_billing_account, :carrier_cost_method, :carrier_duties_account,
                  :carrier_service, :channels, :company, :contents_explanation, :contents_type,
                  :cost, :cost_currency, :cost_currency_digits, :create_date, :create_uid,
                  :customer, :customer_location, :customs_items, :delivery_address, :delivery_mode,
                  :done_by, :duties_tax_id, :duties_tax_id_type, :eel_pfc, :effective_date,
                  :eori_number, :id, :incoming_moves, :inventory_moves, :is_international_shipping,
                  :is_shippo, :last_modification, :license_plates, :messages, :metadata, :moves,
                  :origins, :number, :packages, :planned_date, :private_notes, :public_notes, :putaway_by,
                  :rec_blurb, :rec_name, :received_by, :reference, :require_customs, :root_packages, :sales,
                  :sent_to_3pl_at, :shipping_instructions, :shipping_manifest, :sscc_code, :state,
                  :total_customs_value, :tpl_status, :tracking_number, :tsv, :warehouse, :warehouse_input,
                  :warehouse_storage, :warehouse_type, :weight, :weight_digits, :weight_uom,
                  :weight_uom_symbol, :write_date, :write_uid

    # Generate a shipping label for a {CustomerShipmentReturn}.
    #
    # @param id [Integer] The ID of the {CustomerShipmentReturn}.
    def generate_shipping_label(id)
      self.class.adapter.generate_shipping_label(id)
    end

    # Generate a default package for a {CustomerShipmentReturn}.
    #
    # @param id [Integer] The ID of the {CustomerShipmentReturn}.
    def create_default_package(id)
      self.class.adapter.create_default_package(id)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
erp_integration-0.27.0 lib/erp_integration/customer_shipment_return.rb
erp_integration-0.26.0 lib/erp_integration/customer_shipment_return.rb
erp_integration-0.25.0 lib/erp_integration/customer_shipment_return.rb
erp_integration-0.24.0 lib/erp_integration/customer_shipment_return.rb