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
# 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")
  super(
    store,
    @sac01,
    @sac02,
    @sac03,
    @sac04,
    @sac05,
  )
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)


40
41
42
# File 'lib/definitions/segments/generated/sac.rb', line 40

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)


55
56
57
# File 'lib/definitions/segments/generated/sac.rb', line 55

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)


70
71
72
# File 'lib/definitions/segments/generated/sac.rb', line 70

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)


85
86
87
# File 'lib/definitions/segments/generated/sac.rb', line 85

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)


100
101
102
# File 'lib/definitions/segments/generated/sac.rb', line 100

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