Versions in this module Expand all Collapse all v1 v1.0.0 Mar 30, 2020 Changes in this version + const MappingContentPrefix + func Boolean(val bool) *bool + func Integer(val int) *int + func String(str string) *string + type Address struct + Addr1 *string + Addr2 *string + City *string + Country *string + Id *string + PostalCode *string + State *string + func (address *Address) Empty() bool + func (address *Address) String() string + type AuthMode struct + ApiKey *string + AuthType *string + ClientId *string + ClientIdHeader *string + ClientSecret *string + ClientSecretHeader *string + HttpHeaderName *string + Password *string + TokenUrl *string + Username *string + type Certificate struct + Authority *string + CertificateType *string + Id *string + Name *string + SerialNumber *string + type Client struct + BaseURL *url.URL + PartnerBaseURL *url.URL + func NewClient(baseURL, orgId *string, httpClient *http.Client) (*Client, error) + func (cli *Client) CreateDocument(partnerId string, document *Document) (*string, error) + func (cli *Client) CreateDocumentFlow(flow *DocumentFlow) (*string, error) + func (cli *Client) CreateEndpoint(endpoint Endpoint) (*string, error) + func (cli *Client) CreateMapping(docFlowId string, mapping *Mapping) error + func (cli *Client) CreatePartner(partner *Partner) (*string, error) + func (cli *Client) CreatePartnerCertificate(partnerId, certContent, certificateName, certificateType string) (*string, error) + func (cli *Client) CreatePartnerIdentifier(partnerId string, identifier *Identifier) error + func (cli *Client) CreatePartnerX12Configuration(partnerId string, x12 *X12) error + func (cli *Client) DeleteDocument(partnerId string, document *Document) error + func (cli *Client) DeleteDocumentById(partnerId, documentId string) error + func (cli *Client) DeleteDocumentFlow(id string) error + func (cli *Client) DeleteEndpoint(id string) error + func (cli *Client) DeletePartner(partner *Partner) error + func (cli *Client) DeletePartnerAddress(partnerId string) error + func (cli *Client) DeletePartnerById(id *string) error + func (cli *Client) DeletePartnerCertificate(partnerId, certificateId string) error + func (cli *Client) DeletePartnerContact(partnerId, contactId string) error + func (cli *Client) DeletePartnerIdentifier(partnerId, identifierId string) error + func (cli *Client) Do(req *http.Request, v interface{}) (*http.Response, error) + func (cli *Client) GetDocumentById(partnerId, documentId string) (*Document, error) + func (cli *Client) GetDocumentByName(partnerId, name string) (*Document, error) + func (cli *Client) GetDocumentFlowById(flowId string) (*DocumentFlow, error) + func (cli *Client) GetDocumentFlowByName(name string) (*DocumentFlow, error) + func (cli *Client) GetEdiDocumentTypeById(formatType, formatVersionId, id string) (*EdiDocumentType, error) + func (cli *Client) GetEdiDocumentTypeByLabel(formatType, formatVersionId, label string) (*EdiDocumentType, error) + func (cli *Client) GetEdiDocumentTypeByName(formatType, formatVersionId, name string) (*EdiDocumentType, error) + func (cli *Client) GetEdiFormatByFormat(format string) (*EdiFormat, error) + func (cli *Client) GetEdiFormatById(id string) (*EdiFormat, error) + func (cli *Client) GetEdiFormatByLabel(label string) (*EdiFormat, error) + func (cli *Client) GetEdiFormatVersionById(formatType, id string) (*EdiFormatVersion, error) + func (cli *Client) GetEdiFormatVersionByLabel(formatType, label string) (*EdiFormatVersion, error) + func (cli *Client) GetEdiFormatVersionByVersion(formatType, version string) (*EdiFormatVersion, error) + func (cli *Client) GetEndpoint(id string) (*Endpoint, error) + func (cli *Client) GetEndpointsForPartner(partnerId string) (*[]Endpoint, error) + func (cli *Client) GetEnvironmentById(id string) (*Environment, error) + func (cli *Client) GetEnvironmentByName(name string) (*Environment, error) + func (cli *Client) GetHostDetails() error + func (cli *Client) GetHostPartner() (*Partner, error) + func (cli *Client) GetIdentifierTypesById(id string) ([]*IdentifierType, error) + func (cli *Client) GetIdentifierTypesByLabel(label string) ([]*IdentifierType, error) + func (cli *Client) GetIdentifierTypesByName(name string) ([]*IdentifierType, error) + func (cli *Client) GetMappingById(docFlowId, mappingId string) (*Mapping, error) + func (cli *Client) GetPartner(id string) (*Partner, error) + func (cli *Client) GetPartnerAddress(partnerId string) (*Address, error) + func (cli *Client) GetPartnerByName(name string) (*Partner, error) + func (cli *Client) GetPartnerCertificate(partnerId, certificateId string) (*Certificate, error) + func (cli *Client) GetPartnerContactById(partnerId, contactId string) (*Contact, error) + func (cli *Client) GetPartnerContacts(partnerId string) ([]*Contact, error) + func (cli *Client) GetPartnerIdentifierById(partnerId, identifierId string) (*Identifier, error) + func (cli *Client) GetPartnerIdentifierByQualifierIdAndValue(partnerId, identifierTypeQualifierId, value string) (*Identifier, error) + func (cli *Client) GetPartnerIdentifiersByValue(partnerId, value string) ([]*Identifier, error) + func (cli *Client) GetPartnerInboundX12Configuration(partnerId string) (*X12, error) + func (cli *Client) GetPartnerOutboundX12Configuration(partnerId string) (*X12, error) + func (cli *Client) GetPartnerProfile(partnerId string) (*PartnerProfile, error) + func (cli *Client) GetPartnerX12ConfigurationById(partnerId, configId string) (*X12, error) + func (cli *Client) ListDocumentFlows() (*[]DocumentFlow, error) + func (cli *Client) ListDocuments(partnerId string) (*[]Document, error) + func (cli *Client) ListEdiDocumentTypes(formatType, formatVersionId string) (*[]EdiDocumentType, error) + func (cli *Client) ListEdiFormatVersions(formatType string) (*[]EdiFormatVersion, error) + func (cli *Client) ListEdiFormats() (*[]EdiFormat, error) + func (cli *Client) ListEndpoints() (*[]Endpoint, error) + func (cli *Client) ListEnvironments() (*[]Environment, error) + func (cli *Client) ListEnvironmentsByType(envType string) (*[]Environment, error) + func (cli *Client) ListIdentifierTypes() ([]*IdentifierType, error) + func (cli *Client) ListMappings(docFlowId string) (*[]Mapping, error) + func (cli *Client) ListPartnerCertificates(partnerId string) ([]*Certificate, error) + func (cli *Client) ListPartnerIdentifiers(partnerId string) ([]*Identifier, error) + func (cli *Client) ListPartnerX12Configurations(partnerId string) ([]X12, error) + func (cli *Client) ListPartners() (*[]Partner, error) + func (cli *Client) ListProductionEnvironments() (*[]Environment, error) + func (cli *Client) Login(username, password string) error + func (cli *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (cli *Client) SetEnvironment(id string) + func (cli *Client) UpdateDocument(partnerId string, document *Document) error + func (cli *Client) UpdateDocumentFlow(flow *DocumentFlow) (*DocumentFlow, error) + func (cli *Client) UpdateEndpoint(endpoint Endpoint) error + func (cli *Client) UpdateMapping(docFlowId string, mapping *Mapping) error + func (cli *Client) UpdatePartner(partner *Partner) error + func (cli *Client) UpdatePartnerAddress(partnerId string, address *Address) error + func (cli *Client) UpdatePartnerContacts(partnerId string, contacts []*Contact) error + func (cli *Client) UpdatePartnerProfile(partner *PartnerProfile) error + func (cli *Client) UpdatePartnerX12Configuration(partnerId string, x12 *X12) error + type Contact struct + ContactType *ContactType + Email *string + Id *string + Name *string + Phone *string + Status *string + func (contact *Contact) String() string + type ContactType struct + Description *string + Id *string + Label *string + Name *string + func GetBusinessContactType() *ContactType + func GetOtherContactType() *ContactType + func GetTechnicalContactType() *ContactType + type Document struct + CustomSchemaId *string + EdiDocumentTypeId *string + Id *string + Name *string + SchemaContent *string + SchemaType *string + Standard *bool + type DocumentFlow struct + Configurations []*DocumentFlowConfiguration + Direction *string + Id *string + Name *string + PartnerFromId *string + PartnerToId *string + func (docFlow DocumentFlow) String() string + type DocumentFlowConfiguration struct + DocumentFlowId *string + DocumentMapping []*Mapping + EnvironmentId *string + Id *string + PreProcessingEndpointId *string + ReceivingAckConfig *string + ReceivingAckEndpointId *string + ReceivingEndpointId *string + SourceDocTypeId *string + Status *string + TargetDocTypeId *string + TargetEndpointId *string + Version *int + type EdiDocumentType struct + Description *string + DocumentName *string + Id *string + Label *string + SchemaPath *string + type EdiFormat struct + Description *string + FormatType *string + Id *string + Label *string + type EdiFormatVersion struct + Description *string + FormatType *string + Id *string + Label *string + Version *string + type Endpoint struct + Config *EndpointConfig + CreatedAt *string + DependenciesInfo *[]interface{} + Deployment *interface{} + Description *string + EndpointRole *string + EndpointType *string + EndpointTypeID *string + EnvironmentID *string + FlowDependencyCount *int64 + HostCertificate *interface{} + HostCertificateID *string + ID *string + IsComplete *bool + Name *string + PartnerCertificate *interface{} + PartnerCertificateID *string + PartnerID *string + UpdatedAt *string + UsedInConfigurations *int64 + UsedInDeployments *int64 + func (e Endpoint) String() string + type EndpointConfig struct + AllowStorageApiUIConnection *bool + AllowedMethods *string + AuthMode *AuthMode + ConfigName *string + ConnectionIdleTimeout *int + FileAge *int64 + MovedPath *string + Path *string + PersistentConnections *bool + PollingFrequency *int + Protocol *string + ResponseTimeout *int + ServerAddress *string + ServerPort *int + SizeCheckWaitTime *int + TlsContext *TlsContext + type Environment struct + ClientId *string + Id *string + IsProduction *bool + Name *string + OrgId *string + Type *string + type Identifier struct + Id *string + IdentifierTypeQualifierId *string + Status *string + Value *string + func (i *Identifier) QualifierIdAndValueEqual(o *Identifier) bool + func (i *Identifier) String() string + type IdentifierType struct + Description *string + EnvironmentId *string + Id *string + Label *string + Name *string + Qualifiers []*IdentifierTypeQualifier + Readonly *bool + func (identifier *IdentifierType) GetIdentifierTypeQualifiersByCode(code string) ([]*IdentifierTypeQualifier, error) + func (identifier *IdentifierType) GetIdentifierTypeQualifiersById(id string) ([]*IdentifierTypeQualifier, error) + func (identifier *IdentifierType) GetIdentifierTypeQualifiersByLabel(label string) ([]*IdentifierTypeQualifier, error) + type IdentifierTypeQualifier struct + Code *string + Description *string + EnvironmentId *string + Id *string + IdentifierTypeId *string + Label *string + SegmentIdentifier *string + type Mapping struct + Id *string + MappingContent *string + MappingSourceRef *string + MappingType *string + type Partner struct + Description *string + EnvironmentId *string + HostFlag *bool + Id *string + Name *string + Status *Status + WebsiteUrl *string + func (p Partner) String() string + type PartnerProfile struct + Addresses []*Address + Contacts []*Contact + Description *string + Id *string + Logo *string + Name *string + WebsiteUrl *string + type Status struct + EndDate *time.Time + Id *string + StartDate *time.Time + Status *string + type TlsContext struct + Insecure *bool + NeedCertificate *bool + type User struct + FirstName *string + ID *string + LastName *string + UserName *string + type X12 struct + CharacterSetAndEncoding *X12CharacterSetAndEncoding + ConfigType *string + ControlNumberSettings *X12ControlNumberSettings + EnvelopeHeaders *X12EnvelopeHeaders + FormatType *string + FormatTypeId *string + Id *string + IsTemplate *bool + ParserSettings *X12ParserSettings + PartnerId *string + TerminatorDelimiter *X12TerminatorDelimiter + func (x12 *X12) String() string + type X12CharacterSetAndEncoding struct + CharacterEncoding *string + CharacterSet *string + LineEndingBetweenSegments *string + type X12ControlNumberSettings struct + InitialGSControlNumber *string + InitialInterchangeControlNumber *string + InitialTransactionSetControlNumber *string + RequireUniqueGSControlNumbers *bool + RequireUniqueGSControlNumbersGS06 *bool + RequireUniqueISAcontrolNumbersISA13 *bool + RequireUniqueTransactionSetControlNumber *bool + RequireUniqueTransactionSetControlNumbersST02 *bool + type X12EnvelopeHeaders struct + AuthInfoISA02 *string + AuthInfoQualifierISA01 *string + ComponentElementSeparator *string + DefaultInterchangeUsageIndicatorISA15 *string + InterchangeReceiverIdISA07 *string + InterchangeReceiverIdQualifierISA07 *string + RepetitionInterchangeAcknowledmentsISA14 *string + RepetitionSeparatorCharacterISA11 *string + SecurityInfoISA04 *string + SecurityInfoQualifierISA03 *string + type X12ParserSettings struct + AckEndpointId *string + CheckDuplicateDays *int + FailDocumentIfUnknownSegmentsAreUsed *bool + FailDocumentIfValueIsRepeatedTooManyTimes *bool + FailDocumentWhenInvalidCharacterInValue *bool + FailDocumentWhenSegmentsAreOutOfOrder *bool + FailDocumentWhenTooManyRepeatsOfSegment *bool + FailDocumentWhenUnusedSegmentsAreIncluded *bool + FailDocumentWhenValueLengthOutsideAllowedRange *bool + Generate999 *bool + GenerateTA1 *bool + Require997 *bool + type X12TerminatorDelimiter struct + DataElementDelimiter *string + SegmentTerminatorCharacter *string + StringSubstitutionCharacter *string