Class: Eddy::Elements::E146

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/generated/146.shipment_method_of_payment.rb

Overview

Element Summary:

  • Id: 146
  • Name: Shipment Method of Payment
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying payment terms for transportation charges

Instance Attribute Summary

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::ID

#process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val: nil, req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: nil)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/generated/146.shipment_method_of_payment.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "146"
  @name = "Shipment Method of Payment"
  @description = "Code identifying payment terms for transportation charges"
  super(
    min: 2,
    max: 2,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/definitions/elements/generated/146.shipment_method_of_payment.rb', line 30

def code_list()
  return [
    "11", # Rule 11 Shipment
    "BP", # Paid by Buyer
    "CA", # Advance Collect
    "CC", # Collect
    "CD", # Collect on Delivery
    "CF", # Collect, Freight Credited Back to Customer
    "DE", # Per Contract
    "DF", # Defined by Buyer and Seller
    "FO", # FOB Port of Call
    "HP", # Half Prepaid
    "MX", # Mixed
    "NC", # Service Freight, No Charge
    "NR", # Non Revenue
    "PA", # Advance Prepaid
    "PB", # Customer Pick-up/Backhaul
    "PC", # Prepaid but Charged to Customer
    "PD", # Prepaid by Processor
    "PE", # Prepaid and Summary Bill
    "PL", # Prepaid Local, Collect Outstate
    "PO", # Prepaid Only
    "PP", # Prepaid (by Seller)
    "PS", # Paid by Seller
    "PU", # Pickup
    "RC", # Return Container Freight Paid by Customer
    "RF", # Return Container Freight Free
    "RS", # Return Container Freight Paid by Supplier
    "TP", # Third Party Pay
    "WC", # Weight Condition
  ]
end