Class: Eddy::Segments::SAC

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/sac.rb

Overview

Segment Summary:

  • Id: SAC
  • Name: Service, Promotion, Allowance, or Charge Information
  • Purpose: To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service,promotion, allowance, or charge.

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/definitions/segments/generated/sac.rb', line 12

def initialize(store)
  @id = "SAC"
  @name = "Service, Promotion, Allowance, or Charge Information"
  @sac01 = Eddy::Elements::E248.new(ref: "SAC01", req: "M")
  @sac02 = Eddy::Elements::E1300.new(ref: "SAC02", req: "X")
  @sac03 = Eddy::Elements::E559.new(ref: "SAC03", req: "X")
  @sac04 = Eddy::Elements::E1301.new(ref: "SAC04", req: "X")
  @sac05 = Eddy::Elements::E610.new(ref: "SAC05", req: "O")
  @sac06 = Eddy::Elements::E378.new(ref: "SAC06", req: "X")
  @sac07 = Eddy::Elements::E322.new(ref: "SAC07", req: "X")
  @sac12 = Eddy::Elements::E311.new(ref: "SAC12", req: "O")
  @sac15 = Eddy::Elements::E352.new(ref: "SAC15", req: "X")
  super(
    store,
    @sac01,
    @sac02,
    @sac03,
    @sac04,
    @sac05,
    @sac06,
    @sac07,
    @sac12,
    @sac15,
  )
end

Instance Method Details

#SAC01=(arg) ⇒ void Also known as: AllowanceOrChargeIndicator=

This method returns an undefined value.

SAC01

  • Id: 248
  • Name: Allowance or Charge Indicator
  • Type: ID
  • Min/Max: 1/1
  • Description: Code which indicates an allowance or charge for the service specified

Parameters:

  • arg (String)


48
49
50
# File 'lib/definitions/segments/generated/sac.rb', line 48

def SAC01=(arg)
  @sac01.value = arg
end

#SAC02=(arg) ⇒ void Also known as: ServicePromotionAllowanceOrChargeCode=

This method returns an undefined value.

SAC02

  • Id: 1300
  • Name: Service, Promotion, Allowance, or Charge Code
  • Type: ID
  • Min/Max: 4/4
  • Description: Code identifying the service, promotion, allowance, or charge

Parameters:

  • arg (String)


63
64
65
# File 'lib/definitions/segments/generated/sac.rb', line 63

def SAC02=(arg)
  @sac02.value = arg
end

#SAC03=(arg) ⇒ void Also known as: AgencyQualifierCode=

This method returns an undefined value.

SAC03

  • Id: 559
  • Name: Agency Qualifier Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying the agency assigning the code values

Parameters:

  • arg (String)


78
79
80
# File 'lib/definitions/segments/generated/sac.rb', line 78

def SAC03=(arg)
  @sac03.value = arg
end

#SAC04=(arg) ⇒ void Also known as: AgencyServicePromotionAllowanceOrChargeCode=

This method returns an undefined value.

SAC04

  • Id: 1301
  • Name: Agency Service, Promotion, Allowance, or Charge Code
  • Type: AN
  • Min/Max: 1/10
  • Description: Agency maintained code identifying the service, promotion, allowance, or charge

Parameters:

  • arg (String)


93
94
95
# File 'lib/definitions/segments/generated/sac.rb', line 93

def SAC04=(arg)
  @sac04.value = arg
end

#SAC05=(arg) ⇒ void Also known as: Amount=

This method returns an undefined value.

SAC05

  • Id: 610
  • Name: Amount
  • Type: N2
  • Min/Max: 1/15
  • Description: Monetary amount

Parameters:

  • arg (Integer)


108
109
110
# File 'lib/definitions/segments/generated/sac.rb', line 108

def SAC05=(arg)
  @sac05.value = arg
end

#SAC06=(arg) ⇒ void Also known as: AllowanceChargePercentQualifier=

This method returns an undefined value.

SAC06

  • Id: 378
  • Name: Allowance/Charge Percent Qualifier
  • Type: ID
  • Min/Max: 1/1
  • Description: Code indicating on what basis allowance or charge percent is calculated

Parameters:

  • arg (String)


123
124
125
# File 'lib/definitions/segments/generated/sac.rb', line 123

def SAC06=(arg)
  @sac06.value = arg
end

#SAC07=(arg) ⇒ void Also known as: LoadEmptyStatusCode=

This method returns an undefined value.

SAC07

  • Id: 322
  • Name: Load/Empty Status Code
  • Type: ID
  • Min/Max: 1/1
  • Description: Code which specifies the loaded condition of transportation equipment

Parameters:

  • arg (String)


138
139
140
# File 'lib/definitions/segments/generated/sac.rb', line 138

def SAC07=(arg)
  @sac07.value = arg
end

#SAC12=(arg) ⇒ void Also known as: ShipmentTypeCode=

This method returns an undefined value.

SAC12

  • Id: 311
  • Name: Shipment Type Code
  • Type: ID
  • Min/Max: 1/2
  • Description: Code identifying shipment type

Parameters:

  • arg (String)


153
154
155
# File 'lib/definitions/segments/generated/sac.rb', line 153

def SAC12=(arg)
  @sac12.value = arg
end

#SAC15=(arg) ⇒ void Also known as: Description=

This method returns an undefined value.

SAC15

  • Id: 352
  • Name: Description
  • Type: AN
  • Min/Max: 1/80
  • Description: A free-form description to clarify the related data elements and their content

Parameters:

  • arg (String)


168
169
170
# File 'lib/definitions/segments/generated/sac.rb', line 168

def SAC15=(arg)
  @sac15.value = arg
end