class Eddy::Segments::CTP
### Segment Summary:
-
Id:
CTP
-
Name: Pricing Information
-
Purpose: To specify pricing information.
Public Class Methods
@param store [Eddy::Data::Store] @return [void]
Eddy::Models::Segment::new
# 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
Public Instance Methods
### CTP01
-
Id: 687
-
Name: Class of Trade Code
-
Type: ID
-
Min/Max: 2/2
-
Description: Code indicating class of trade
@param arg [String] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 46 def CTP01=(arg) @ctp01.value = arg end
### CTP02
-
Id: 236
-
Name: Price Identifier Code
-
Type: ID
-
Min/Max: 3/3
-
Description: Code identifying pricing specification
@param arg [String] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 61 def CTP02=(arg) @ctp02.value = arg end
### CTP03
-
Id: 212
-
Name: Unit Price
-
Type: R
-
Min/Max: 1/17
-
Description: Price per unit of product, service, commodity, etc.
@param arg [Float] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 76 def CTP03=(arg) @ctp03.value = arg end
### CTP04
-
Id: 380
-
Name: Quantity
-
Type: R
-
Min/Max: 1/15
-
Description: Numeric value of quantity
@param arg [Float] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 91 def CTP04=(arg) @ctp04.value = arg end
### 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
@param arg [String] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 106 def CTP05=(arg) @ctp05.value = arg end
### CTP06
-
Id: 648
-
Name: Price Multiplier Qualifier
-
Type: ID
-
Min/Max: 3/3
-
Description: Code indicating the type of price multiplier
@param arg [String] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 121 def CTP06=(arg) @ctp06.value = arg end
### CTP07
-
Id: 649
-
Name: Multiplier
-
Type: R
-
Min/Max: 1/10
-
Description: Value to be used as a multiplier to obtain a new value
@param arg [Float] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 136 def CTP07=(arg) @ctp07.value = arg end
### CTP08
-
Id: 782
-
Name: Monetary Amount
-
Type: R
-
Min/Max: 1/18
-
Description: Monetary amount
@param arg [Float] @return [void]
# File lib/definitions/segments/generated/ctp.rb, line 151 def CTP08=(arg) @ctp08.value = arg end