muleb2b

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2020 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MappingContentPrefix = "data:application/octet-stream;base64,"
)

Variables

This section is empty.

Functions

func Boolean

func Boolean(val bool) *bool

func Integer

func Integer(val int) *int

func String

func String(str string) *string

Types

type Address

type Address struct {
	Id         *string `json:"id,omitempty"`
	Addr1      *string `json:"addressLine_1"`
	Addr2      *string `json:"addressLine_2,omitempty"`
	City       *string `json:"city"`
	State      *string `json:"state"`
	Country    *string `json:"country"`
	PostalCode *string `json:"postalCode"`
}

func (*Address) Empty

func (address *Address) Empty() bool

func (*Address) String

func (address *Address) String() string

type AuthMode

type AuthMode struct {
	AuthType           *string `json:"authType"`
	Username           *string `json:"username,omitempty"`
	Password           *string `json:"password,omitempty"`
	HttpHeaderName     *string `json:"httpHeaderName,omitempty"`
	ApiKey             *string `json:"apiKey,omitempty"`
	ClientId           *string `json:"clientId,omitempty"`
	ClientSecret       *string `json:"clientSecret,omitempty"`
	ClientIdHeader     *string `json:"clientIdHeader,omitempty"`
	ClientSecretHeader *string `json:"clientSecretHeader,omitempty"`
	TokenUrl           *string `json:"tokenUrl,omitempty"`
}

AuthMode Types

NONE
BASIC (+username, +password)
API_KEY (+apiKey, +httpHeaderName)
CLIENT_CREDENTIALS (+clientId, +clientSecret, +clientIdHeader, +clientSecretHeader)
OAUTH_TOKEN (+tokenUrl, +clientId, +clientSecret)

type Certificate

type Certificate struct {
	Id              *string `json:"id"`
	CertificateType *string `json:"certificateType,omitempty"`
	Name            *string `json:"name,omitempty"`
	Authority       *string `json:"authority,omitempty"`
	SerialNumber    *string `json:"serialNumber,omitempty"`
}

type Client

type Client struct {
	BaseURL *url.URL

	PartnerBaseURL *url.URL
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, orgId *string, httpClient *http.Client) (*Client, error)

func (*Client) CreateDocument

func (cli *Client) CreateDocument(partnerId string, document *Document) (*string, error)

func (*Client) CreateDocumentFlow

func (cli *Client) CreateDocumentFlow(flow *DocumentFlow) (*string, error)

func (*Client) CreateEndpoint

func (cli *Client) CreateEndpoint(endpoint Endpoint) (*string, error)

func (*Client) CreateMapping

func (cli *Client) CreateMapping(docFlowId string, mapping *Mapping) error

func (*Client) CreatePartner

func (cli *Client) CreatePartner(partner *Partner) (*string, error)

Create a Partner

func (*Client) CreatePartnerCertificate

func (cli *Client) CreatePartnerCertificate(partnerId, certContent, certificateName, certificateType string) (*string, error)

func (*Client) CreatePartnerIdentifier

func (cli *Client) CreatePartnerIdentifier(partnerId string, identifier *Identifier) error

func (*Client) CreatePartnerX12Configuration

func (cli *Client) CreatePartnerX12Configuration(partnerId string, x12 *X12) error

func (*Client) DeleteDocument

func (cli *Client) DeleteDocument(partnerId string, document *Document) error

func (*Client) DeleteDocumentById

func (cli *Client) DeleteDocumentById(partnerId, documentId string) error

func (*Client) DeleteDocumentFlow

func (cli *Client) DeleteDocumentFlow(id string) error

func (*Client) DeleteEndpoint

func (cli *Client) DeleteEndpoint(id string) error

func (*Client) DeletePartner

func (cli *Client) DeletePartner(partner *Partner) error

Delete a partner given a Partner containing at least Id

func (*Client) DeletePartnerAddress

func (cli *Client) DeletePartnerAddress(partnerId string) error

func (*Client) DeletePartnerById

func (cli *Client) DeletePartnerById(id *string) error

Delete a partner using its ID

func (*Client) DeletePartnerCertificate

func (cli *Client) DeletePartnerCertificate(partnerId, certificateId string) error

func (*Client) DeletePartnerContact

func (cli *Client) DeletePartnerContact(partnerId, contactId string) error

func (*Client) DeletePartnerIdentifier

func (cli *Client) DeletePartnerIdentifier(partnerId, identifierId string) error

func (*Client) Do

func (cli *Client) Do(req *http.Request, v interface{}) (*http.Response, error)

func (*Client) GetDocumentById

func (cli *Client) GetDocumentById(partnerId, documentId string) (*Document, error)

func (*Client) GetDocumentByName

func (cli *Client) GetDocumentByName(partnerId, name string) (*Document, error)

func (*Client) GetDocumentFlowById

func (cli *Client) GetDocumentFlowById(flowId string) (*DocumentFlow, error)

func (*Client) GetDocumentFlowByName

func (cli *Client) GetDocumentFlowByName(name string) (*DocumentFlow, error)

func (*Client) GetEdiDocumentTypeById

func (cli *Client) GetEdiDocumentTypeById(formatType, formatVersionId, id string) (*EdiDocumentType, error)

func (*Client) GetEdiDocumentTypeByLabel

func (cli *Client) GetEdiDocumentTypeByLabel(formatType, formatVersionId, label string) (*EdiDocumentType, error)

func (*Client) GetEdiDocumentTypeByName

func (cli *Client) GetEdiDocumentTypeByName(formatType, formatVersionId, name string) (*EdiDocumentType, error)

func (*Client) GetEdiFormatByFormat

func (cli *Client) GetEdiFormatByFormat(format string) (*EdiFormat, error)

func (*Client) GetEdiFormatById

func (cli *Client) GetEdiFormatById(id string) (*EdiFormat, error)

func (*Client) GetEdiFormatByLabel

func (cli *Client) GetEdiFormatByLabel(label string) (*EdiFormat, error)

func (*Client) GetEdiFormatVersionById

func (cli *Client) GetEdiFormatVersionById(formatType, id string) (*EdiFormatVersion, error)

func (*Client) GetEdiFormatVersionByLabel

func (cli *Client) GetEdiFormatVersionByLabel(formatType, label string) (*EdiFormatVersion, error)

func (*Client) GetEdiFormatVersionByVersion

func (cli *Client) GetEdiFormatVersionByVersion(formatType, version string) (*EdiFormatVersion, error)

func (*Client) GetEndpoint

func (cli *Client) GetEndpoint(id string) (*Endpoint, error)

func (*Client) GetEndpointsForPartner

func (cli *Client) GetEndpointsForPartner(partnerId string) (*[]Endpoint, error)

func (*Client) GetEnvironmentById

func (cli *Client) GetEnvironmentById(id string) (*Environment, error)

func (*Client) GetEnvironmentByName

func (cli *Client) GetEnvironmentByName(name string) (*Environment, error)

func (*Client) GetHostDetails

func (cli *Client) GetHostDetails() error

func (*Client) GetHostPartner

func (cli *Client) GetHostPartner() (*Partner, error)

TODO: Change this once the bug for hostFlag is fixed

func (*Client) GetIdentifierTypesById

func (cli *Client) GetIdentifierTypesById(id string) ([]*IdentifierType, error)

func (*Client) GetIdentifierTypesByLabel

func (cli *Client) GetIdentifierTypesByLabel(label string) ([]*IdentifierType, error)

func (*Client) GetIdentifierTypesByName

func (cli *Client) GetIdentifierTypesByName(name string) ([]*IdentifierType, error)

func (*Client) GetMappingById

func (cli *Client) GetMappingById(docFlowId, mappingId string) (*Mapping, error)

func (*Client) GetPartner

func (cli *Client) GetPartner(id string) (*Partner, error)

Retrieve a Partner using its ID

func (*Client) GetPartnerAddress

func (cli *Client) GetPartnerAddress(partnerId string) (*Address, error)

TODO: This needs to be updated after the Public API is updated to make Addresses available

func (*Client) GetPartnerByName

func (cli *Client) GetPartnerByName(name string) (*Partner, error)

func (*Client) GetPartnerCertificate

func (cli *Client) GetPartnerCertificate(partnerId, certificateId string) (*Certificate, error)

func (*Client) GetPartnerContactById

func (cli *Client) GetPartnerContactById(partnerId, contactId string) (*Contact, error)

func (*Client) GetPartnerContacts

func (cli *Client) GetPartnerContacts(partnerId string) ([]*Contact, error)

TODO: This needs to be updated once Partner Contacts are available in the Public API

func (*Client) GetPartnerIdentifierById

func (cli *Client) GetPartnerIdentifierById(partnerId, identifierId string) (*Identifier, error)

func (*Client) GetPartnerIdentifierByQualifierIdAndValue

func (cli *Client) GetPartnerIdentifierByQualifierIdAndValue(partnerId, identifierTypeQualifierId, value string) (*Identifier, error)

func (*Client) GetPartnerIdentifiersByValue

func (cli *Client) GetPartnerIdentifiersByValue(partnerId, value string) ([]*Identifier, error)

func (*Client) GetPartnerInboundX12Configuration

func (cli *Client) GetPartnerInboundX12Configuration(partnerId string) (*X12, error)

func (*Client) GetPartnerOutboundX12Configuration

func (cli *Client) GetPartnerOutboundX12Configuration(partnerId string) (*X12, error)

func (*Client) GetPartnerProfile

func (cli *Client) GetPartnerProfile(partnerId string) (*PartnerProfile, error)

func (*Client) GetPartnerX12ConfigurationById

func (cli *Client) GetPartnerX12ConfigurationById(partnerId, configId string) (*X12, error)

* TODO: Change this implementation after the API is implemented

func (*Client) ListDocumentFlows

func (cli *Client) ListDocumentFlows() (*[]DocumentFlow, error)

func (*Client) ListDocuments

func (cli *Client) ListDocuments(partnerId string) (*[]Document, error)

func (*Client) ListEdiDocumentTypes

func (cli *Client) ListEdiDocumentTypes(formatType, formatVersionId string) (*[]EdiDocumentType, error)

func (*Client) ListEdiFormatVersions

func (cli *Client) ListEdiFormatVersions(formatType string) (*[]EdiFormatVersion, error)

func (*Client) ListEdiFormats

func (cli *Client) ListEdiFormats() (*[]EdiFormat, error)

func (*Client) ListEndpoints

func (cli *Client) ListEndpoints() (*[]Endpoint, error)

func (*Client) ListEnvironments

func (cli *Client) ListEnvironments() (*[]Environment, error)

func (*Client) ListEnvironmentsByType

func (cli *Client) ListEnvironmentsByType(envType string) (*[]Environment, error)

func (*Client) ListIdentifierTypes

func (cli *Client) ListIdentifierTypes() ([]*IdentifierType, error)

func (*Client) ListMappings

func (cli *Client) ListMappings(docFlowId string) (*[]Mapping, error)

func (*Client) ListPartnerCertificates

func (cli *Client) ListPartnerCertificates(partnerId string) ([]*Certificate, error)

func (*Client) ListPartnerIdentifiers

func (cli *Client) ListPartnerIdentifiers(partnerId string) ([]*Identifier, error)

func (*Client) ListPartnerX12Configurations

func (cli *Client) ListPartnerX12Configurations(partnerId string) ([]X12, error)

List the X12 Configurations for a partner

func (*Client) ListPartners

func (cli *Client) ListPartners() (*[]Partner, error)

func (*Client) ListProductionEnvironments

func (cli *Client) ListProductionEnvironments() (*[]Environment, error)

func (*Client) Login

func (cli *Client) Login(username, password string) error

func (*Client) NewRequest

func (cli *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)

func (*Client) SetEnvironment

func (cli *Client) SetEnvironment(id string)

func (*Client) UpdateDocument

func (cli *Client) UpdateDocument(partnerId string, document *Document) error

func (*Client) UpdateDocumentFlow

func (cli *Client) UpdateDocumentFlow(flow *DocumentFlow) (*DocumentFlow, error)

func (*Client) UpdateEndpoint

func (cli *Client) UpdateEndpoint(endpoint Endpoint) error

func (*Client) UpdateMapping

func (cli *Client) UpdateMapping(docFlowId string, mapping *Mapping) error

func (*Client) UpdatePartner

func (cli *Client) UpdatePartner(partner *Partner) error

Update a Partner

func (*Client) UpdatePartnerAddress

func (cli *Client) UpdatePartnerAddress(partnerId string, address *Address) error

func (*Client) UpdatePartnerContacts

func (cli *Client) UpdatePartnerContacts(partnerId string, contacts []*Contact) error

func (*Client) UpdatePartnerProfile

func (cli *Client) UpdatePartnerProfile(partner *PartnerProfile) error

func (*Client) UpdatePartnerX12Configuration

func (cli *Client) UpdatePartnerX12Configuration(partnerId string, x12 *X12) error

Updates a partner Inbound X12 Configuration (Outbound is not allowed yet) Only update is available at this point

type Contact

type Contact struct {
	Id          *string      `json:"id,omitempty"`
	Name        *string      `json:"name"`
	Email       *string      `json:"email"`
	Phone       *string      `json:"phoneNumber"`
	Status      *string      `json:"status,omitempty"`
	ContactType *ContactType `json:"contactType"`
}

func (*Contact) String

func (contact *Contact) String() string

type ContactType

type ContactType struct {
	Id          *string `json:"id"`
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Label       *string `json:"label"`
}

func GetBusinessContactType

func GetBusinessContactType() *ContactType

The Contact Types endpoint isn't available yet

func GetOtherContactType

func GetOtherContactType() *ContactType

func GetTechnicalContactType

func GetTechnicalContactType() *ContactType

type Document

type Document struct {
	Id                *string `json:"id"`
	Name              *string `json:"name"`
	Standard          *bool   `json:"isStandard"`
	EdiDocumentTypeId *string `json:"ediDocumentTypeId"`
	SchemaType        *string `json:"schemaType,omitempty"`
	SchemaContent     *string `json:"schemaContent,omitempty"`
	CustomSchemaId    *string `json:"customSchemaId,omitempty"`
}

type DocumentFlow

type DocumentFlow struct {
	Id             *string                      `json:"id,omitempty"`
	Name           *string                      `json:"name"`
	Direction      *string                      `json:"direction,omitempty"`
	PartnerFromId  *string                      `json:"partnerFromId,omitempty"`
	PartnerToId    *string                      `json:"partnerToId,omitempty"`
	Configurations []*DocumentFlowConfiguration `json:"configurations,omitempty"`
}

func (DocumentFlow) String

func (docFlow DocumentFlow) String() string

type DocumentFlowConfiguration

type DocumentFlowConfiguration struct {
	Id                      *string    `json:"id,omitempty"`
	DocumentFlowId          *string    `json:"documentFlowId,omitempty"`
	EnvironmentId           *string    `json:"environmentId"`
	Status                  *string    `json:"status"`
	Version                 *int       `json:"version"`
	PreProcessingEndpointId *string    `json:"preProcessingEndpointId"`
	ReceivingEndpointId     *string    `json:"receivingEndpointId"`
	ReceivingAckEndpointId  *string    `json:"receivingAckEndpointId"`
	TargetEndpointId        *string    `json:"targetEndpointId"`
	SourceDocTypeId         *string    `json:"sourceDocTypeId"`
	TargetDocTypeId         *string    `json:"targetDocTypeId"`
	ReceivingAckConfig      *string    `json:"receivingAckConfig"`
	DocumentMapping         []*Mapping `json:"documentMapping,omitempty"`
}

type EdiDocumentType

type EdiDocumentType struct {
	Id           *string `json:"id"`
	DocumentName *string `json:"documentName"`
	Label        *string `json:"label"`
	SchemaPath   *string `json:"schemaPath"`
	Description  *string `json:"description"`
}

type EdiFormat

type EdiFormat struct {
	Id          *string `json:"id"`
	FormatType  *string `json:"formatType"`
	Description *string `json:"description"`
	Label       *string `json:"label"`
}

type EdiFormatVersion

type EdiFormatVersion struct {
	Id          *string `json:"id"`
	FormatType  *string `json:"formatType"`
	Version     *string `json:"version"`
	Description *string `json:"description"`
	Label       *string `json:"label"`
}

type Endpoint

type Endpoint struct {
	ID                   *string         `json:"id,omitempty"`
	Name                 *string         `json:"name"`
	Description          *string         `json:"description"`
	EnvironmentID        *string         `json:"environmentId"`
	EndpointTypeID       *string         `json:"endpointTypeId"`
	PartnerID            *string         `json:"partnerId"`
	HostCertificateID    *string         `json:"hostCertificateId,omitempty"`
	PartnerCertificateID *string         `json:"partnerCertificateId,omitempty"`
	UsedInDeployments    *int64          `json:"usedInDeployments,omitempty"`
	FlowDependencyCount  *int64          `json:"flowDependencyCount,omitempty"`
	UsedInConfigurations *int64          `json:"usedInConfigurations,omitempty"`
	Deployment           *interface{}    `json:"deployment,omitempty"`
	EndpointRole         *string         `json:"endpointRole"` // SEND, STORAGE_API, RECEIVE_ACK, RECEIVE
	EndpointType         *string         `json:"endpointType"`
	Config               *EndpointConfig `json:"config"`
	CreatedAt            *string         `json:"createdAt,omitempty"`
	UpdatedAt            *string         `json:"updatedAt,omitempty"`
	IsComplete           *bool           `json:"isComplete,omitempty"`
	DependenciesInfo     *[]interface{}  `json:"dependenciesInfo,omitempty"`
	HostCertificate      *interface{}    `json:"hostCertificate,omitempty"`
	PartnerCertificate   *interface{}    `json:"partnerCertificate,omitempty"`
}

func (Endpoint) String

func (e Endpoint) String() string

type EndpointConfig

type EndpointConfig struct {
	FileAge                     *int64      `json:"fileAge,omitempty"`
	MovedPath                   *string     `json:"movedPath,omitempty"`
	SizeCheckWaitTime           *int        `json:"sizeCheckWaitTime,omitempty"`
	PollingFrequency            *int        `json:"pollingFrequency,omitempty"`
	Path                        *string     `json:"path,omitempty"`
	ServerAddress               *string     `json:"serverAddress,omitempty"`
	ServerPort                  *int        `json:"serverPort,omitempty"`
	ConfigName                  *string     `json:"configName"`
	AuthMode                    *AuthMode   `json:"authMode,omitempty"`
	Protocol                    *string     `json:"protocol,omitempty"`
	AllowedMethods              *string     `json:"allowedMethods,omitempty"`
	PersistentConnections       *bool       `json:"persistentConnections,omitempty"`
	ConnectionIdleTimeout       *int        `json:"connectionIdleTimeout,omitempty"`
	ResponseTimeout             *int        `json:"responseTimeout,omitempty"`
	AllowStorageApiUIConnection *bool       `json:"allowStorageApiUIConnection,omitempty"`
	TlsContext                  *TlsContext `json:"tlsContext,omitempty"`
}

type Environment

type Environment struct {
	Id           *string `json:"id"`
	Name         *string `json:"name"`
	OrgId        *string `json:"organizationId"`
	IsProduction *bool   `json:"isProduction"`
	Type         *string `json:"type"`
	ClientId     *string `json:"clientId"`
}

type Identifier

type Identifier struct {
	Id                        *string `json:"id,omitempty"`
	IdentifierTypeQualifierId *string `json:"identifierTypeQualifierId"`
	Status                    *string `json:"status,omitempty"`
	Value                     *string `json:"value"`
}

* QualifierLabel, TypeLabel, and Code are all identified by IdentifierTypeQualifierId, and thus, not necessary

func (*Identifier) QualifierIdAndValueEqual

func (i *Identifier) QualifierIdAndValueEqual(o *Identifier) bool

func (*Identifier) String

func (i *Identifier) String() string

type IdentifierType

type IdentifierType struct {
	Id            *string                    `json:"id"`
	Name          *string                    `json:"name"`
	Label         *string                    `json:"label"`
	Description   *string                    `json:"description"`
	Readonly      *bool                      `json:"readonly"`
	EnvironmentId *string                    `json:"environment_id"`
	Qualifiers    []*IdentifierTypeQualifier `json:"qualifiers"`
}

func (*IdentifierType) GetIdentifierTypeQualifiersByCode

func (identifier *IdentifierType) GetIdentifierTypeQualifiersByCode(code string) ([]*IdentifierTypeQualifier, error)

func (*IdentifierType) GetIdentifierTypeQualifiersById

func (identifier *IdentifierType) GetIdentifierTypeQualifiersById(id string) ([]*IdentifierTypeQualifier, error)

func (*IdentifierType) GetIdentifierTypeQualifiersByLabel

func (identifier *IdentifierType) GetIdentifierTypeQualifiersByLabel(label string) ([]*IdentifierTypeQualifier, error)

type IdentifierTypeQualifier

type IdentifierTypeQualifier struct {
	Id                *string `json:"id"`
	IdentifierTypeId  *string `json:"identifierTypeId"`
	Code              *string `json:"code"`
	Label             *string `json:"label"`
	SegmentIdentifier *string `json:"segmentIdentifier"`
	Description       *string `json:"descritpion"`
	EnvironmentId     *string `json:"environmentId"`
}

type Mapping

type Mapping struct {
	Id               *string `json:"id"`
	MappingType      *string `json:"mappingType"`
	MappingContent   *string `json:"mappingContent"`
	MappingSourceRef *string `json:"mappingSourceRef"`
}

type Partner

type Partner struct {
	Id            *string `json:"id,omitempty"`
	Name          *string `json:"name"`
	Description   *string `json:"description,omitempty"`
	WebsiteUrl    *string `json:"websiteUrl,omitempty"`
	Status        *Status `json:"status,omitempty"`
	EnvironmentId *string `json:"environmentId"`
	HostFlag      *bool   `json:"hostFlag,omitempty"`
}

func (Partner) String

func (p Partner) String() string

type PartnerProfile

type PartnerProfile struct {
	Id          *string    `json:"id"`
	Name        *string    `json:"name"`
	Description *string    `json:"description"`
	WebsiteUrl  *string    `json:"websiteUrl"`
	Addresses   []*Address `json:"addresses"`
	Contacts    []*Contact `json:"contacts"`
}

TODO: This is only needed until Address and Contact are available in the Public API

type Status

type Status struct {
	Id        *string    `json:"id"`
	StartDate *time.Time `json:"startDate"`
	EndDate   *time.Time `json:"endDate"`
	Status    *string    `json:"status"`
}

type TlsContext

type TlsContext struct {
	Insecure        *bool `json:"insecure"`
	NeedCertificate *bool `json:"needCertificate"`
}

type User

type User struct {
	ID        *string `json:"userId"`
	FirstName *string `json:"firstName"`
	LastName  *string `json:"lastName"`
	UserName  *string `json:"userName"`
}

type X12

type X12 struct {
	Id                      *string                     `json:"id,omitempty"`
	ConfigType              *string                     `json:"configType"`
	FormatType              *string                     `json:"formatType"`
	FormatTypeId            *string                     `json:"formatTypeId"`
	PartnerId               *string                     `json:"partnerId"`
	IsTemplate              *bool                       `json:"isTemplate,omitempty"`
	EnvelopeHeaders         *X12EnvelopeHeaders         `json:"envelopeHeaders"`
	ParserSettings          *X12ParserSettings          `json:"parserSettings,omitempty"`
	CharacterSetAndEncoding *X12CharacterSetAndEncoding `json:"characterSetAndEncoding,omitempty"`
	ControlNumberSettings   *X12ControlNumberSettings   `json:"controlNumberSettings,omitempty"`
	TerminatorDelimiter     *X12TerminatorDelimiter     `json:"terminatorDelimiter,omitempty"`
}

func (*X12) String

func (x12 *X12) String() string

type X12CharacterSetAndEncoding

type X12CharacterSetAndEncoding struct {
	CharacterSet              *string `json:"characterSer"`
	CharacterEncoding         *string `json:"characterEncoding"`
	LineEndingBetweenSegments *string `json:"lineEndingBetweenSegments"`
}

type X12ControlNumberSettings

type X12ControlNumberSettings struct {
	InitialInterchangeControlNumber               *string `json:"initialInterchangeControlNumber,omitempty"`
	InitialGSControlNumber                        *string `json:"initialGSControlNumber,omitempty"`
	InitialTransactionSetControlNumber            *string `json:"initialTransactionSetControlNumber"`
	RequireUniqueGSControlNumbers                 *bool   `json:"requireUniqueGSControlNumbers"`
	RequireUniqueTransactionSetControlNumber      *bool   `json:"requireUniqueTransactionSetControlNumber"`
	RequireUniqueISAcontrolNumbersISA13           *bool   `json:"requireUniqueISAcontrolNumbersISA13"`
	RequireUniqueGSControlNumbersGS06             *bool   `json:"requireUniqueGSControlNumbersGS06"`
	RequireUniqueTransactionSetControlNumbersST02 *bool   `json:"requireUniqueTransactionSetControlNumbersST02"`
}

type X12EnvelopeHeaders

type X12EnvelopeHeaders struct {
	AuthInfoQualifierISA01                   *string `json:"authInfoQualifierISA01,omitempty"`
	AuthInfoISA02                            *string `json:"authInfoISA02,omitempty"`
	SecurityInfoQualifierISA03               *string `json:"securityInfoQualifierISA03,omitempty"`
	SecurityInfoISA04                        *string `json:"securityInfoISA04,omitempty"`
	InterchangeReceiverIdQualifierISA07      *string `json:"interchangeReceiverIdQualifierISA07,omitempty"`
	InterchangeReceiverIdISA07               *string `json:"interchangeReceiverIdISA07,omitempty"`
	RepetitionSeparatorCharacterISA11        *string `json:"repetitionSeparatorCharacterISA11,omitempty"`
	RepetitionInterchangeAcknowledmentsISA14 *string `json:"repetitionInterchangeAcknowledmentsISA14,omitempty"`
	DefaultInterchangeUsageIndicatorISA15    *string `json:"defaultInterchangeUsageIndicatorISA15,omitempty"`
	ComponentElementSeparator                *string `json:"componentElementSeparator,omitempty"`
}

type X12ParserSettings

type X12ParserSettings struct {
	FailDocumentWhenValueLengthOutsideAllowedRange *bool   `json:"failDocumentWhenValueLengthOutsideAllowedRange,omitempty"`
	FailDocumentWhenInvalidCharacterInValue        *bool   `json:"failDocumentWhenInvalidCharacterInValue,omitempty"`
	FailDocumentIfValueIsRepeatedTooManyTimes      *bool   `json:"failDocumentIfValueIsRepeatedTooManyTimes,omitempty"`
	FailDocumentIfUnknownSegmentsAreUsed           *bool   `json:"failDocumentIfUnknownSegmentsAreUsed,omitempty"`
	FailDocumentWhenSegmentsAreOutOfOrder          *bool   `json:"failDocumentWhenSegmentsAreOutOfOrder,omitempty"`
	FailDocumentWhenTooManyRepeatsOfSegment        *bool   `json:"failDocumentWhenTooManyRepeatsOfSegment,omitempty"`
	FailDocumentWhenUnusedSegmentsAreIncluded      *bool   `json:"failDocumentWhenUnusedSegmentsAreIncluded,omitempty"`
	Require997                                     *bool   `json:"require997,omitempty"`
	Generate999                                    *bool   `json:"generate999,omitempty"`
	GenerateTA1                                    *bool   `json:"generateTA1,omitempty"`
	CheckDuplicateDays                             *int    `json:"checkDuplicateDays,omitempty"`
	AckEndpointId                                  *string `json:"ackEndpointId"`
}

type X12TerminatorDelimiter

type X12TerminatorDelimiter struct {
	SegmentTerminatorCharacter  *string `json:"segmentTerminatorCharacter"`
	DataElementDelimiter        *string `json:"dataElementDelimiter"`
	StringSubstitutionCharacter *string `json:"stringSubstituionCharacter"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL