Class X12Transaction
Inherited Members
Namespace: Bishop.X12
Assembly: Bishop.X12.dll
Syntax
public class X12Transaction : X12Disposable, IDisposable
Constructors
X12Transaction()
Declaration
protected X12Transaction()
Properties
ControlNumber
ST02/SE02: Get the unique control number within the transaction sets of the current functional group assigned by the originator for a transaction set. The number must be unique within a specific interchange (ISA-IEA), but can repeat in other interchanges.
Declaration
public int ControlNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Control Number |
GroupReferenceCode
Returns the implementation convention reference used by the Group of this transaction.
Declaration
public X12VersionRelease GroupReferenceCode { get; }
Property Value
Type | Description |
---|---|
X12VersionRelease |
ReferenceCode
ST03: Gets the implementation convention reference used by the translation routines of the interchange partners to select the appropriate implementation convention to match the transaction set definition. When used, this implementation convention reference takes precedence over the implementation reference specified in the GS08.
Declaration
public X12VersionRelease ReferenceCode { get; }
Property Value
Type | Description |
---|---|
X12VersionRelease | returns the Implementation Guide Version Name |
SegmentCount
Gets the actual number of segments in the transactions
Declaration
public int SegmentCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | number of segments in current transaction |
TransactionCode
ST01: Get/Set ttransaction set code that identifies translation routines the interchange partners.
Declaration
public X12TransactionCode TransactionCode { get; set; }
Property Value
Type | Description |
---|---|
X12TransactionCode | transaction code or null |
Methods
AddLoop(X12Loops)
Adds a loop at the transaction level according to the X12 Implementatiion Standard for the current transaction
Declaration
public X12Loop AddLoop(X12Loops loop)
Parameters
Type | Name | Description |
---|---|---|
X12Loops | loop |
Returns
Type | Description |
---|---|
X12Loop | new X12Loop obect on success |
AddSegment(String, String)
Adds a seggment at the transaction level accordinig to the X12 Implementatiion Standard for the current transaction
Declaration
public X12Segment AddSegment(string segId, string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | segId | Segment id as defined in the X12 Implementatiion Standard for the current transaction |
System.String | code |
Returns
Type | Description |
---|---|
X12Segment | new X12Segment obect on success |
AddSegment(String)
Adds a seggment at the transaction level accordinig to the X12 Implementatiion Standard for the current transaction
Declaration
public X12Segment AddSegment(string segId)
Parameters
Type | Name | Description |
---|---|---|
System.String | segId | Segment id as defined in the X12 Implementatiion Standard for the current transaction |
Returns
Type | Description |
---|---|
X12Segment | new X12Segment obect on success |
GetLoop(String)
Declaration
public X12Loop GetLoop(string loopId)
Parameters
Type | Name | Description |
---|---|---|
System.String | loopId |
Returns
Type | Description |
---|---|
X12Loop |
Refresh()
SE01: Refreshes the Segment count of actual segments in the X12Transaction. Use this method after creating and populating the X12Transaction
Declaration
public bool Refresh()
Returns
Type | Description |
---|---|
System.Boolean | true on success else false |
SetHierType(X12TsPurposeCode, String, DateTime, X12TsTypeCode)
Set Transaction's Beginning of Hierarchical Transaction information with the current local time. This method only applies to 837 and 277 transactions.
Declaration
public bool SetHierType(X12TsPurposeCode purpose, string referenceId, DateTime originTime, X12TsTypeCode type)
Parameters
Type | Name | Description |
---|---|---|
X12TsPurposeCode | purpose | Transaction Purpose Code |
System.String | referenceId | The inventory file number of the transmission assigned by the Information Source’s system. This number operates as a transaction(batch) control number. |
System.DateTime | originTime | Transaction Creation Time |
X12TsTypeCode | type | Transaction Type Code |
Returns
Type | Description |
---|---|
System.Boolean |
SetSource(X12EntityType, String, String)
Declaration
public bool SetSource(X12EntityType type, string lastOrOrgName, string etin)
Parameters
Type | Name | Description |
---|---|---|
X12EntityType | type | |
System.String | lastOrOrgName | |
System.String | etin |
Returns
Type | Description |
---|---|
System.Boolean |
SetSupport(String, String, String, String, String)
Declaration
public bool SetSupport(string name, string email, string phone, string extn, string fax)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | ||
System.String | phone | |
System.String | extn | |
System.String | fax |
Returns
Type | Description |
---|---|
System.Boolean |