Class: Eddy::Segments::CTP

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

Overview

Segment Summary:

  • Id: CTP
  • Name: Pricing Information
  • Purpose: To specify pricing information.

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
# File 'lib/definitions/segments/generated/ctp.rb', line 12

def initialize(store)
  @id = "CTP"
  @name = "Pricing Information"
  @ctp01 = Eddy::Elements::E687.new(ref: "CTP01", req: "O")
  @ctp02 = Eddy::Elements::E236.new(ref: "CTP02", req: "X")
  @ctp03 = Eddy::Elements::E212.new(ref: "CTP03", req: "X")
  @ctp04 = Eddy::Elements::E380.new(ref: "CTP04", req: "X")
  @ctp05 = Eddy::Elements::E355.new(ref: "CTP05", req: "X")
  @ctp06 = Eddy::Elements::E648.new(ref: "CTP06", req: "O")
  @ctp07 = Eddy::Elements::E649.new(ref: "CTP07", req: "X")
  @ctp08 = Eddy::Elements::E782.new(ref: "CTP08", req: "O")
  super(
    store,
    @ctp01,
    @ctp02,
    @ctp03,
    @ctp04,
    @ctp05,
    @ctp06,
    @ctp07,
    @ctp08,
  )
end

Instance Method Details

#CTP01=(arg) ⇒ void Also known as: ClassOfTradeCode=

This method returns an undefined value.

CTP01

  • Id: 687
  • Name: Class of Trade Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code indicating class of trade

Parameters:

  • arg (String)


46
47
48
# File 'lib/definitions/segments/generated/ctp.rb', line 46

def CTP01=(arg)
  @ctp01.value = arg
end

#CTP02=(arg) ⇒ void Also known as: PriceIdentifierCode=

This method returns an undefined value.

CTP02

  • Id: 236
  • Name: Price Identifier Code
  • Type: ID
  • Min/Max: 3/3
  • Description: Code identifying pricing specification

Parameters:

  • arg (String)


61
62
63
# File 'lib/definitions/segments/generated/ctp.rb', line 61

def CTP02=(arg)
  @ctp02.value = arg
end

#CTP03=(arg) ⇒ void Also known as: UnitPrice=

This method returns an undefined value.

CTP03

  • Id: 212
  • Name: Unit Price
  • Type: R
  • Min/Max: 1/17
  • Description: Price per unit of product, service, commodity, etc.

Parameters:

  • arg (Float)


76
77
78
# File 'lib/definitions/segments/generated/ctp.rb', line 76

def CTP03=(arg)
  @ctp03.value = arg
end

#CTP04=(arg) ⇒ void Also known as: Quantity=

This method returns an undefined value.

CTP04

  • Id: 380
  • Name: Quantity
  • Type: R
  • Min/Max: 1/15
  • Description: Numeric value of quantity

Parameters:

  • arg (Float)


91
92
93
# File 'lib/definitions/segments/generated/ctp.rb', line 91

def CTP04=(arg)
  @ctp04.value = arg
end

#CTP05=(arg) ⇒ void Also known as: UnitOrBasisForMeasurementCode=

This method returns an undefined value.

CTP05

  • Id: 355
  • Name: Unit or Basis for Measurement Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

Parameters:

  • arg (String)


106
107
108
# File 'lib/definitions/segments/generated/ctp.rb', line 106

def CTP05=(arg)
  @ctp05.value = arg
end

#CTP06=(arg) ⇒ void Also known as: PriceMultiplierQualifier=

This method returns an undefined value.

CTP06

  • Id: 648
  • Name: Price Multiplier Qualifier
  • Type: ID
  • Min/Max: 3/3
  • Description: Code indicating the type of price multiplier

Parameters:

  • arg (String)


121
122
123
# File 'lib/definitions/segments/generated/ctp.rb', line 121

def CTP06=(arg)
  @ctp06.value = arg
end

#CTP07=(arg) ⇒ void Also known as: Multiplier=

This method returns an undefined value.

CTP07

  • Id: 649
  • Name: Multiplier
  • Type: R
  • Min/Max: 1/10
  • Description: Value to be used as a multiplier to obtain a new value

Parameters:

  • arg (Float)


136
137
138
# File 'lib/definitions/segments/generated/ctp.rb', line 136

def CTP07=(arg)
  @ctp07.value = arg
end

#CTP08=(arg) ⇒ void Also known as: MonetaryAmount=

This method returns an undefined value.

CTP08

  • Id: 782
  • Name: Monetary Amount
  • Type: R
  • Min/Max: 1/18
  • Description: Monetary amount

Parameters:

  • arg (Float)


151
152
153
# File 'lib/definitions/segments/generated/ctp.rb', line 151

def CTP08=(arg)
  @ctp08.value = arg
end