Class: AWSCDK::B2BI::CfnTransformer::X12DetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnTransformer::X12DetailsProperty
- Defined in:
- b2_bi/cfn_transformer.rb
Overview
A structure that contains the X12 transaction set and version.
The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
Instance Attribute Summary collapse
-
#transaction_set ⇒ String?
readonly
Returns an enumerated type where each value identifies an X12 transaction set.
-
#version ⇒ String?
readonly
Returns the version to use for the specified X12 transaction set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(transaction_set: nil, version: nil) ⇒ X12DetailsProperty
constructor
A new instance of X12DetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(transaction_set: nil, version: nil) ⇒ X12DetailsProperty
Returns a new instance of X12DetailsProperty.
1130 1131 1132 1133 1134 1135 |
# File 'b2_bi/cfn_transformer.rb', line 1130 def initialize(transaction_set: nil, version: nil) @transaction_set = transaction_set Jsii::Type.check_type(@transaction_set, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transactionSet") unless @transaction_set.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#transaction_set ⇒ String? (readonly)
Returns an enumerated type where each value identifies an X12 transaction set.
Transaction sets are maintained by the X12 Accredited Standards Committee.
1143 1144 1145 |
# File 'b2_bi/cfn_transformer.rb', line 1143 def transaction_set @transaction_set end |
#version ⇒ String? (readonly)
Returns the version to use for the specified X12 transaction set.
1148 1149 1150 |
# File 'b2_bi/cfn_transformer.rb', line 1148 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
1150 1151 1152 1153 1154 1155 |
# File 'b2_bi/cfn_transformer.rb', line 1150 def self.jsii_properties { :transaction_set => "transactionSet", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'b2_bi/cfn_transformer.rb', line 1157 def to_jsii result = {} result.merge!({ "transactionSet" => @transaction_set, "version" => @version, }) result.compact end |