Class: Eddy::Segments::CUR

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

Overview

Segment Summary:

  • Id: CUR
  • Name: Currency
  • Purpose: To specify the currency (dollars, pounds, francs, etc.) used in a transaction

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

def initialize(store)
  @id = "CUR"
  @name = "Currency"
  @cur01 = Eddy::Elements::E98.new(ref: "CUR01", req: "M")
  @cur02 = Eddy::Elements::E100.new(ref: "CUR02", req: "M")
  @cur03 = Eddy::Elements::E280.new(ref: "CUR03", req: "O")
  super(
    store,
    @cur01,
    @cur02,
    @cur03,
  )
end

Instance Method Details

#CUR01=(arg) ⇒ void Also known as: EntityIdentifierCode=

This method returns an undefined value.

CUR01

  • Id: 98
  • Name: Entity Identifier Code
  • Type: ID
  • Min/Max: 2/3
  • Description: Code identifying an organizational entity, a physical location, property or an individual

Parameters:

  • arg (String)


36
37
38
# File 'lib/definitions/segments/generated/cur.rb', line 36

def CUR01=(arg)
  @cur01.value = arg
end

#CUR02=(arg) ⇒ void Also known as: CurrencyCode=

This method returns an undefined value.

CUR02

  • Id: 100
  • Name: Currency Code
  • Type: ID
  • Min/Max: 3/3
  • Description: Code (Standard ISO) for country in whose currency the charges are specified

Parameters:

  • arg (String)


51
52
53
# File 'lib/definitions/segments/generated/cur.rb', line 51

def CUR02=(arg)
  @cur02.value = arg
end

#CUR03=(arg) ⇒ void Also known as: ExchangeRate=

This method returns an undefined value.

CUR03

  • Id: 280
  • Name: Exchange Rate
  • Type: R
  • Min/Max: 4/10
  • Description: Value to be used as a multiplier conversion factor to convert monetary value from one currency to another

Parameters:

  • arg (Float)


66
67
68
# File 'lib/definitions/segments/generated/cur.rb', line 66

def CUR03=(arg)
  @cur03.value = arg
end