class Eddy::Segments::SAC
### 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.
Public Class Methods
@param store [Eddy::Data::Store] @return [void]
Eddy::Models::Segment::new
# 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
Public Instance Methods
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 48 def SAC01=(arg) @sac01.value = arg end
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 63 def SAC02=(arg) @sac02.value = arg end
### SAC03
-
Id: 559
-
Name: Agency Qualifier Code
-
Type: ID
-
Min/Max: 2/2
-
Description: Code identifying the agency assigning the code values
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 78 def SAC03=(arg) @sac03.value = arg end
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 93 def SAC04=(arg) @sac04.value = arg end
### SAC05
-
Id: 610
-
Name: Amount
-
Type:
N2
-
Min/Max: 1/15
-
Description: Monetary amount
@param arg [Integer] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 108 def SAC05=(arg) @sac05.value = arg end
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 123 def SAC06=(arg) @sac06.value = arg end
### SAC07
-
Id: 322
-
Name: Load/Empty Status Code
-
Type: ID
-
Min/Max: 1/1
-
Description: Code which specifies the loaded condition of transportation equipment
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 138 def SAC07=(arg) @sac07.value = arg end
### SAC12
-
Id: 311
-
Name: Shipment Type Code
-
Type: ID
-
Min/Max: 1/2
-
Description: Code identifying shipment type
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 153 def SAC12=(arg) @sac12.value = arg end
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/sac.rb, line 168 def SAC15=(arg) @sac15.value = arg end