maersk

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

README

Go API client for maersk

Retrieve Track & Trace Events based on DCSA Interface standard v.2.2

This service provides shippers and consignees visibility to Shipment, Equipment and Transport events for shipments booked with A.P. Moller-Maersk A/S using standards set by the Digital Container Shipping Association.\ https://dcsa.org/

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.1.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import maersk "github.com/buyco/go-maersk-sdk/maersk"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), maersk.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), maersk.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), maersk.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), maersk.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.maersk.com

Class Method HTTP request Description
AuthApi CreateAccessToken Post /oauth2/access_token
EventsApi ListEvents Get /track-and-trace-private/events Find events.

Documentation For Models

Documentation For Authorization

ConsumerKey
  • Type: API key
  • API key parameter name: Consumer-Key
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Consumer-Key and passed in as the auth context for each request.

oAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AuthApi AuthApi

	EventsApi EventsApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Track & Trace Events API v1.1.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Address

type Address struct {
	// Name of the address
	AddressName *string `json:"addressName,omitempty"`
	// The name of the street of the party’s address.
	StreetName *string `json:"streetName,omitempty"`
	// The number of the street of the party’s address.
	StreetNumber *string `json:"streetNumber,omitempty"`
	// The floor of the party’s street number.
	Floor *string `json:"floor,omitempty"`
	// The postal code of the party’s address.
	PostCode *string `json:"postCode,omitempty"`
	// The city name of the party’s address.
	CityName *string `json:"cityName,omitempty"`
	// The state/region of the party’s address.
	StateRegion *string `json:"stateRegion,omitempty"`
	// The country of the party’s address.
	Country *string `json:"country,omitempty"`
}

Address Address related information

func NewAddress

func NewAddress() *Address

NewAddress instantiates a new Address object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddressWithDefaults

func NewAddressWithDefaults() *Address

NewAddressWithDefaults instantiates a new Address object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Address) GetAddressName

func (o *Address) GetAddressName() string

GetAddressName returns the AddressName field value if set, zero value otherwise.

func (*Address) GetAddressNameOk

func (o *Address) GetAddressNameOk() (*string, bool)

GetAddressNameOk returns a tuple with the AddressName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetCityName

func (o *Address) GetCityName() string

GetCityName returns the CityName field value if set, zero value otherwise.

func (*Address) GetCityNameOk

func (o *Address) GetCityNameOk() (*string, bool)

GetCityNameOk returns a tuple with the CityName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetCountry

func (o *Address) GetCountry() string

GetCountry returns the Country field value if set, zero value otherwise.

func (*Address) GetCountryOk

func (o *Address) GetCountryOk() (*string, bool)

GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetFloor

func (o *Address) GetFloor() string

GetFloor returns the Floor field value if set, zero value otherwise.

func (*Address) GetFloorOk

func (o *Address) GetFloorOk() (*string, bool)

GetFloorOk returns a tuple with the Floor field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetPostCode

func (o *Address) GetPostCode() string

GetPostCode returns the PostCode field value if set, zero value otherwise.

func (*Address) GetPostCodeOk

func (o *Address) GetPostCodeOk() (*string, bool)

GetPostCodeOk returns a tuple with the PostCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetStateRegion

func (o *Address) GetStateRegion() string

GetStateRegion returns the StateRegion field value if set, zero value otherwise.

func (*Address) GetStateRegionOk

func (o *Address) GetStateRegionOk() (*string, bool)

GetStateRegionOk returns a tuple with the StateRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetStreetName

func (o *Address) GetStreetName() string

GetStreetName returns the StreetName field value if set, zero value otherwise.

func (*Address) GetStreetNameOk

func (o *Address) GetStreetNameOk() (*string, bool)

GetStreetNameOk returns a tuple with the StreetName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetStreetNumber

func (o *Address) GetStreetNumber() string

GetStreetNumber returns the StreetNumber field value if set, zero value otherwise.

func (*Address) GetStreetNumberOk

func (o *Address) GetStreetNumberOk() (*string, bool)

GetStreetNumberOk returns a tuple with the StreetNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) HasAddressName

func (o *Address) HasAddressName() bool

HasAddressName returns a boolean if a field has been set.

func (*Address) HasCityName

func (o *Address) HasCityName() bool

HasCityName returns a boolean if a field has been set.

func (*Address) HasCountry

func (o *Address) HasCountry() bool

HasCountry returns a boolean if a field has been set.

func (*Address) HasFloor

func (o *Address) HasFloor() bool

HasFloor returns a boolean if a field has been set.

func (*Address) HasPostCode

func (o *Address) HasPostCode() bool

HasPostCode returns a boolean if a field has been set.

func (*Address) HasStateRegion

func (o *Address) HasStateRegion() bool

HasStateRegion returns a boolean if a field has been set.

func (*Address) HasStreetName

func (o *Address) HasStreetName() bool

HasStreetName returns a boolean if a field has been set.

func (*Address) HasStreetNumber

func (o *Address) HasStreetNumber() bool

HasStreetNumber returns a boolean if a field has been set.

func (Address) MarshalJSON

func (o Address) MarshalJSON() ([]byte, error)

func (*Address) SetAddressName

func (o *Address) SetAddressName(v string)

SetAddressName gets a reference to the given string and assigns it to the AddressName field.

func (*Address) SetCityName

func (o *Address) SetCityName(v string)

SetCityName gets a reference to the given string and assigns it to the CityName field.

func (*Address) SetCountry

func (o *Address) SetCountry(v string)

SetCountry gets a reference to the given string and assigns it to the Country field.

func (*Address) SetFloor

func (o *Address) SetFloor(v string)

SetFloor gets a reference to the given string and assigns it to the Floor field.

func (*Address) SetPostCode

func (o *Address) SetPostCode(v string)

SetPostCode gets a reference to the given string and assigns it to the PostCode field.

func (*Address) SetStateRegion

func (o *Address) SetStateRegion(v string)

SetStateRegion gets a reference to the given string and assigns it to the StateRegion field.

func (*Address) SetStreetName

func (o *Address) SetStreetName(v string)

SetStreetName gets a reference to the given string and assigns it to the StreetName field.

func (*Address) SetStreetNumber

func (o *Address) SetStreetNumber(v string)

SetStreetNumber gets a reference to the given string and assigns it to the StreetNumber field.

type ApiCreateAccessTokenRequest

type ApiCreateAccessTokenRequest struct {
	ApiService AuthApi
	// contains filtered or unexported fields
}

func (ApiCreateAccessTokenRequest) ClientId

func (ApiCreateAccessTokenRequest) ClientSecret

func (r ApiCreateAccessTokenRequest) ClientSecret(clientSecret string) ApiCreateAccessTokenRequest

func (ApiCreateAccessTokenRequest) Execute

func (ApiCreateAccessTokenRequest) GrantType

type ApiError

type ApiError struct {
	Id *string `json:"id,omitempty"`
	// The request method type e.g. GET, POST.
	Method string `json:"method"`
	// The request URI.
	RequestUri string `json:"requestUri"`
	// HTTP status code.
	Status int32 `json:"status"`
	// The date and time (dd-MM-yyyy hh:mm:ss) the error occured.
	Timestamp string `json:"timestamp"`
	// High level error message.
	Message string `json:"message"`
	// Detailed error message.
	DebugMessage *string `json:"debugMessage,omitempty"`
	// The list of invalid fields in the request.
	SubErrors []ApiValidationError `json:"subErrors,omitempty"`
}

ApiError struct for ApiError

func NewApiError

func NewApiError(method string, requestUri string, status int32, timestamp string, message string) *ApiError

NewApiError instantiates a new ApiError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiErrorWithDefaults

func NewApiErrorWithDefaults() *ApiError

NewApiErrorWithDefaults instantiates a new ApiError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiError) GetDebugMessage

func (o *ApiError) GetDebugMessage() string

GetDebugMessage returns the DebugMessage field value if set, zero value otherwise.

func (*ApiError) GetDebugMessageOk

func (o *ApiError) GetDebugMessageOk() (*string, bool)

GetDebugMessageOk returns a tuple with the DebugMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiError) GetId added in v1.0.1

func (o *ApiError) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ApiError) GetIdOk added in v1.0.1

func (o *ApiError) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiError) GetMessage

func (o *ApiError) GetMessage() string

GetMessage returns the Message field value

func (*ApiError) GetMessageOk

func (o *ApiError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ApiError) GetMethod

func (o *ApiError) GetMethod() string

GetMethod returns the Method field value

func (*ApiError) GetMethodOk

func (o *ApiError) GetMethodOk() (*string, bool)

GetMethodOk returns a tuple with the Method field value and a boolean to check if the value has been set.

func (*ApiError) GetRequestUri

func (o *ApiError) GetRequestUri() string

GetRequestUri returns the RequestUri field value

func (*ApiError) GetRequestUriOk

func (o *ApiError) GetRequestUriOk() (*string, bool)

GetRequestUriOk returns a tuple with the RequestUri field value and a boolean to check if the value has been set.

func (*ApiError) GetStatus

func (o *ApiError) GetStatus() int32

GetStatus returns the Status field value

func (*ApiError) GetStatusOk

func (o *ApiError) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*ApiError) GetSubErrors

func (o *ApiError) GetSubErrors() []ApiValidationError

GetSubErrors returns the SubErrors field value if set, zero value otherwise.

func (*ApiError) GetSubErrorsOk

func (o *ApiError) GetSubErrorsOk() ([]ApiValidationError, bool)

GetSubErrorsOk returns a tuple with the SubErrors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiError) GetTimestamp

func (o *ApiError) GetTimestamp() string

GetTimestamp returns the Timestamp field value

func (*ApiError) GetTimestampOk

func (o *ApiError) GetTimestampOk() (*string, bool)

GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.

func (*ApiError) HasDebugMessage added in v1.0.1

func (o *ApiError) HasDebugMessage() bool

HasDebugMessage returns a boolean if a field has been set.

func (*ApiError) HasId added in v1.0.1

func (o *ApiError) HasId() bool

HasId returns a boolean if a field has been set.

func (*ApiError) HasSubErrors

func (o *ApiError) HasSubErrors() bool

HasSubErrors returns a boolean if a field has been set.

func (ApiError) MarshalJSON

func (o ApiError) MarshalJSON() ([]byte, error)

func (*ApiError) SetDebugMessage

func (o *ApiError) SetDebugMessage(v string)

SetDebugMessage gets a reference to the given string and assigns it to the DebugMessage field.

func (*ApiError) SetId added in v1.0.1

func (o *ApiError) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ApiError) SetMessage

func (o *ApiError) SetMessage(v string)

SetMessage sets field value

func (*ApiError) SetMethod

func (o *ApiError) SetMethod(v string)

SetMethod sets field value

func (*ApiError) SetRequestUri

func (o *ApiError) SetRequestUri(v string)

SetRequestUri sets field value

func (*ApiError) SetStatus

func (o *ApiError) SetStatus(v int32)

SetStatus sets field value

func (*ApiError) SetSubErrors

func (o *ApiError) SetSubErrors(v []ApiValidationError)

SetSubErrors gets a reference to the given []ApiValidationError and assigns it to the SubErrors field.

func (*ApiError) SetTimestamp

func (o *ApiError) SetTimestamp(v string)

SetTimestamp sets field value

type ApiListEventsRequest

type ApiListEventsRequest struct {
	ApiService EventsApi
	// contains filtered or unexported fields
}

func (ApiListEventsRequest) APIVersion

func (r ApiListEventsRequest) APIVersion(aPIVersion string) ApiListEventsRequest

An API-Version header MAY be added to the request (optional); if added it MUST only contain MAJOR version. API-Version header MUST be aligned with the URI version.

func (ApiListEventsRequest) Authorization

func (r ApiListEventsRequest) Authorization(authorization string) ApiListEventsRequest

Bearer JWT

func (ApiListEventsRequest) CarrierBookingReference

func (r ApiListEventsRequest) CarrierBookingReference(carrierBookingReference string) ApiListEventsRequest

A set of unique characters provided by carrier to identify a booking. Specifying this filter will only return events related to this particular carrierBookingReference.

func (ApiListEventsRequest) ConsumerKey

func (r ApiListEventsRequest) ConsumerKey(consumerKey string) ApiListEventsRequest

The Consumer Key issued for your registered application.

func (ApiListEventsRequest) Cursor

A server generated value to specify a specific point in a collection result, used for pagination. The current, previous, next, first and last pages are available in the response headers. For the initial request to the service, this parameter should be null or 1.

func (ApiListEventsRequest) EquipmentEventTypeCode

func (r ApiListEventsRequest) EquipmentEventTypeCode(equipmentEventTypeCode []string) ApiListEventsRequest

Unique identifier for equipmentEventTypeCode. * LOAD (Loaded) * DISC (Discharged) * GTIN (Gated in) * GTOT (Gated out) * STUF (Stuffed) * STRP (Stripped) * PICK (Pick-up) * DROP (Drop-off) * RSEA (Resealed) * RMVD (Removed) * INSP (Inspected) It is possible to select multiple values by comma (,) separating them. For multiple values the OR operator is used. For example, [equipmentEventTypeCode=GTIN,GTOT] matches **both** Gated in (GTIN) and Gated out (GTOT) equipment events.\\ Default is all equipmentEventTypeCodes.\\ This filter is only relevant when filtering on EquipmentEvents

func (ApiListEventsRequest) EquipmentReference

func (r ApiListEventsRequest) EquipmentReference(equipmentReference string) ApiListEventsRequest

Will filter by the unique identifier for the equipment, which should follow the BIC ISO Container Identification Number where possible. Specifying this filter will only return events related to this particular equipmentReference

func (ApiListEventsRequest) EventCreatedDateTime

func (r ApiListEventsRequest) EventCreatedDateTime(eventCreatedDateTime string) ApiListEventsRequest

Limit the result based on a UTC date. It is possible to use operators on this query parameter. This is done by adding an operator at the beginning of the value followed by a colon:\\ eventCreatedDateTime = **gte**:2021-04-01T00:00:00Z\\ would result in all events created >= 2021-04-01T00:00:00Z\\ The following operators are supported - gte: (>= Greater than or equal) - gt: (> Greater than) - lte: (<= Less than or equal) - lt: (< Less than) - eq: (= Equal to) If no operator is provided, a **strictly equal** is used (this is equivalent to **eq:** operator).

func (ApiListEventsRequest) EventType

func (r ApiListEventsRequest) EventType(eventType []string) ApiListEventsRequest

The type of event(s) to filter by. Possible values are - SHIPMENT (Shipment events) - TRANSPORT (Transport events) - EQUIPMENT (Equipment events) It is possible to select multiple values by comma (,) separating them. For multiple values the OR operator is used. For example, [eventType=SHIPMENT,EQUIPMENT] matches both Shipment and Equipment events.\\ Default value is all event types.

func (ApiListEventsRequest) Execute

func (r ApiListEventsRequest) Execute() (*Events, *http.Response, error)

func (ApiListEventsRequest) Limit

Maximum number of items to return.

func (ApiListEventsRequest) ShipmentEventTypeCode

func (r ApiListEventsRequest) ShipmentEventTypeCode(shipmentEventTypeCode []string) ApiListEventsRequest

The status of the document in the process to filter by. Possible values are - RECE (Received) - DRFT (Drafted) - PENA (Pending Approval) - PENU (Pending Update) - REJE (Rejected) - APPR (Approved) - ISSU (Issued) - SURR (Surrendered) - SUBM (Submitted) - VOID (Void) - CONF (Confirmed) - REQS (Requested) - CMPL (Completed) - HOLD (On Hold) - RELS (Released) It is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example, [shipmentEventTypeCode=RECE,DRFT] matches **both** Received (RECE) and Drafted (DRFT) shipment events.\\ Default is all shipmentEventTypeCodes.\\ This filter is only relevant when filtering on ShipmentEvents **Note: Version 1.1 replaces CONF (Confirmed) for RELS (Released) for documentTypeCode SRM (Shipment Release Message).**

func (ApiListEventsRequest) TransportDocumentReference

func (r ApiListEventsRequest) TransportDocumentReference(transportDocumentReference string) ApiListEventsRequest

A unique number reference allocated by the shipping line to the transport document and the main number used for the tracking of the status of the shipment. Specifying this filter will only return events related to this particular transportDocumentReference

func (ApiListEventsRequest) TransportEventTypeCode

func (r ApiListEventsRequest) TransportEventTypeCode(transportEventTypeCode []string) ApiListEventsRequest

Identifier for type of Transport event to filter by - ARRI (Arrived) - DEPA (Departed) It is possible to select multiple values by comma (,) separating them. For multiple values the OR operator is used. For example, [transportEventTypeCode=ARRI,DEPA} matches **both** Arrived (ARRI) and Departed (DEPA) transport events.\\ Default is all transportEventTypeCodes.\\ This filter is only relevant when filtering on TransportEvents

type ApiValidationError

type ApiValidationError struct {
	// The field that has failed validation.
	Field string `json:"field"`
	// The value that has failed validation.
	RejectedValue string `json:"rejectedValue"`
	// The reason and advice for failed validation.
	Message string `json:"message"`
}

ApiValidationError struct for ApiValidationError

func NewApiValidationError

func NewApiValidationError(field string, rejectedValue string, message string) *ApiValidationError

NewApiValidationError instantiates a new ApiValidationError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiValidationErrorWithDefaults

func NewApiValidationErrorWithDefaults() *ApiValidationError

NewApiValidationErrorWithDefaults instantiates a new ApiValidationError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiValidationError) GetField

func (o *ApiValidationError) GetField() string

GetField returns the Field field value

func (*ApiValidationError) GetFieldOk

func (o *ApiValidationError) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*ApiValidationError) GetMessage

func (o *ApiValidationError) GetMessage() string

GetMessage returns the Message field value

func (*ApiValidationError) GetMessageOk

func (o *ApiValidationError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ApiValidationError) GetRejectedValue

func (o *ApiValidationError) GetRejectedValue() string

GetRejectedValue returns the RejectedValue field value

func (*ApiValidationError) GetRejectedValueOk

func (o *ApiValidationError) GetRejectedValueOk() (*string, bool)

GetRejectedValueOk returns a tuple with the RejectedValue field value and a boolean to check if the value has been set.

func (ApiValidationError) MarshalJSON

func (o ApiValidationError) MarshalJSON() ([]byte, error)

func (*ApiValidationError) SetField

func (o *ApiValidationError) SetField(v string)

SetField sets field value

func (*ApiValidationError) SetMessage

func (o *ApiValidationError) SetMessage(v string)

SetMessage sets field value

func (*ApiValidationError) SetRejectedValue

func (o *ApiValidationError) SetRejectedValue(v string)

SetRejectedValue sets field value

type AuthApi

type AuthApi interface {

	/*
		CreateAccessToken Method for CreateAccessToken

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiCreateAccessTokenRequest
	*/
	CreateAccessToken(ctx context.Context) ApiCreateAccessTokenRequest

	// CreateAccessTokenExecute executes the request
	//  @return CreateAccessToken200Response
	CreateAccessTokenExecute(r ApiCreateAccessTokenRequest) (*CreateAccessToken200Response, *http.Response, error)
}

type AuthApiService

type AuthApiService service

AuthApiService AuthApi service

func (*AuthApiService) CreateAccessToken

func (a *AuthApiService) CreateAccessToken(ctx context.Context) ApiCreateAccessTokenRequest

CreateAccessToken Method for CreateAccessToken

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateAccessTokenRequest

func (*AuthApiService) CreateAccessTokenExecute

Execute executes the request

@return CreateAccessToken200Response

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateAccessToken200Response

type CreateAccessToken200Response struct {
	AccessToken string `json:"access_token"`
	Scope       string `json:"scope"`
	IdToken     string `json:"id_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int32  `json:"expires_in"`
}

CreateAccessToken200Response struct for CreateAccessToken200Response

func NewCreateAccessToken200Response

func NewCreateAccessToken200Response(accessToken string, scope string, idToken string, tokenType string, expiresIn int32) *CreateAccessToken200Response

NewCreateAccessToken200Response instantiates a new CreateAccessToken200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateAccessToken200ResponseWithDefaults

func NewCreateAccessToken200ResponseWithDefaults() *CreateAccessToken200Response

NewCreateAccessToken200ResponseWithDefaults instantiates a new CreateAccessToken200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateAccessToken200Response) GetAccessToken

func (o *CreateAccessToken200Response) GetAccessToken() string

GetAccessToken returns the AccessToken field value

func (*CreateAccessToken200Response) GetAccessTokenOk

func (o *CreateAccessToken200Response) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value and a boolean to check if the value has been set.

func (*CreateAccessToken200Response) GetExpiresIn

func (o *CreateAccessToken200Response) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field value

func (*CreateAccessToken200Response) GetExpiresInOk

func (o *CreateAccessToken200Response) GetExpiresInOk() (*int32, bool)

GetExpiresInOk returns a tuple with the ExpiresIn field value and a boolean to check if the value has been set.

func (*CreateAccessToken200Response) GetIdToken

func (o *CreateAccessToken200Response) GetIdToken() string

GetIdToken returns the IdToken field value

func (*CreateAccessToken200Response) GetIdTokenOk

func (o *CreateAccessToken200Response) GetIdTokenOk() (*string, bool)

GetIdTokenOk returns a tuple with the IdToken field value and a boolean to check if the value has been set.

func (*CreateAccessToken200Response) GetScope

func (o *CreateAccessToken200Response) GetScope() string

GetScope returns the Scope field value

func (*CreateAccessToken200Response) GetScopeOk

func (o *CreateAccessToken200Response) GetScopeOk() (*string, bool)

GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.

func (*CreateAccessToken200Response) GetTokenType

func (o *CreateAccessToken200Response) GetTokenType() string

GetTokenType returns the TokenType field value

func (*CreateAccessToken200Response) GetTokenTypeOk

func (o *CreateAccessToken200Response) GetTokenTypeOk() (*string, bool)

GetTokenTypeOk returns a tuple with the TokenType field value and a boolean to check if the value has been set.

func (CreateAccessToken200Response) MarshalJSON

func (o CreateAccessToken200Response) MarshalJSON() ([]byte, error)

func (*CreateAccessToken200Response) SetAccessToken

func (o *CreateAccessToken200Response) SetAccessToken(v string)

SetAccessToken sets field value

func (*CreateAccessToken200Response) SetExpiresIn

func (o *CreateAccessToken200Response) SetExpiresIn(v int32)

SetExpiresIn sets field value

func (*CreateAccessToken200Response) SetIdToken

func (o *CreateAccessToken200Response) SetIdToken(v string)

SetIdToken sets field value

func (*CreateAccessToken200Response) SetScope

func (o *CreateAccessToken200Response) SetScope(v string)

SetScope sets field value

func (*CreateAccessToken200Response) SetTokenType

func (o *CreateAccessToken200Response) SetTokenType(v string)

SetTokenType sets field value

type CreateAccessToken400Response

type CreateAccessToken400Response struct {
	ErrorDescription *string `json:"error_description,omitempty"`
	Error            *string `json:"error,omitempty"`
}

CreateAccessToken400Response struct for CreateAccessToken400Response

func NewCreateAccessToken400Response

func NewCreateAccessToken400Response() *CreateAccessToken400Response

NewCreateAccessToken400Response instantiates a new CreateAccessToken400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateAccessToken400ResponseWithDefaults

func NewCreateAccessToken400ResponseWithDefaults() *CreateAccessToken400Response

NewCreateAccessToken400ResponseWithDefaults instantiates a new CreateAccessToken400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateAccessToken400Response) GetError

func (o *CreateAccessToken400Response) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*CreateAccessToken400Response) GetErrorDescription

func (o *CreateAccessToken400Response) GetErrorDescription() string

GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise.

func (*CreateAccessToken400Response) GetErrorDescriptionOk

func (o *CreateAccessToken400Response) GetErrorDescriptionOk() (*string, bool)

GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateAccessToken400Response) GetErrorOk

func (o *CreateAccessToken400Response) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateAccessToken400Response) HasError

func (o *CreateAccessToken400Response) HasError() bool

HasError returns a boolean if a field has been set.

func (*CreateAccessToken400Response) HasErrorDescription

func (o *CreateAccessToken400Response) HasErrorDescription() bool

HasErrorDescription returns a boolean if a field has been set.

func (CreateAccessToken400Response) MarshalJSON

func (o CreateAccessToken400Response) MarshalJSON() ([]byte, error)

func (*CreateAccessToken400Response) SetError

func (o *CreateAccessToken400Response) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*CreateAccessToken400Response) SetErrorDescription

func (o *CreateAccessToken400Response) SetErrorDescription(v string)

SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field.

type DocumentReferencesInner

type DocumentReferencesInner struct {
	// Describes where the documentReferenceValue is pointing to * BKG (Booking) * TRD (Transport Document)
	DocumentReferenceType *string `json:"documentReferenceType,omitempty"`
	// The value of the identifier the documentReferenceType is describing
	DocumentReferenceValue *string `json:"documentReferenceValue,omitempty"`
}

DocumentReferencesInner struct for DocumentReferencesInner

func NewDocumentReferencesInner

func NewDocumentReferencesInner() *DocumentReferencesInner

NewDocumentReferencesInner instantiates a new DocumentReferencesInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDocumentReferencesInnerWithDefaults

func NewDocumentReferencesInnerWithDefaults() *DocumentReferencesInner

NewDocumentReferencesInnerWithDefaults instantiates a new DocumentReferencesInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DocumentReferencesInner) GetDocumentReferenceType

func (o *DocumentReferencesInner) GetDocumentReferenceType() string

GetDocumentReferenceType returns the DocumentReferenceType field value if set, zero value otherwise.

func (*DocumentReferencesInner) GetDocumentReferenceTypeOk

func (o *DocumentReferencesInner) GetDocumentReferenceTypeOk() (*string, bool)

GetDocumentReferenceTypeOk returns a tuple with the DocumentReferenceType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DocumentReferencesInner) GetDocumentReferenceValue

func (o *DocumentReferencesInner) GetDocumentReferenceValue() string

GetDocumentReferenceValue returns the DocumentReferenceValue field value if set, zero value otherwise.

func (*DocumentReferencesInner) GetDocumentReferenceValueOk

func (o *DocumentReferencesInner) GetDocumentReferenceValueOk() (*string, bool)

GetDocumentReferenceValueOk returns a tuple with the DocumentReferenceValue field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DocumentReferencesInner) HasDocumentReferenceType

func (o *DocumentReferencesInner) HasDocumentReferenceType() bool

HasDocumentReferenceType returns a boolean if a field has been set.

func (*DocumentReferencesInner) HasDocumentReferenceValue

func (o *DocumentReferencesInner) HasDocumentReferenceValue() bool

HasDocumentReferenceValue returns a boolean if a field has been set.

func (DocumentReferencesInner) MarshalJSON

func (o DocumentReferencesInner) MarshalJSON() ([]byte, error)

func (*DocumentReferencesInner) SetDocumentReferenceType

func (o *DocumentReferencesInner) SetDocumentReferenceType(v string)

SetDocumentReferenceType gets a reference to the given string and assigns it to the DocumentReferenceType field.

func (*DocumentReferencesInner) SetDocumentReferenceValue

func (o *DocumentReferencesInner) SetDocumentReferenceValue(v string)

SetDocumentReferenceValue gets a reference to the given string and assigns it to the DocumentReferenceValue field.

type EquipmentEvent

type EquipmentEvent struct {
	// The unique identifier for the Equipment Event ID/Transport Event ID/Shipment Event ID.
	EventID   *string `json:"eventID,omitempty"`
	EventType string  `json:"eventType"`
	// The local date and time, where the event took place or when the event will take place, in ISO 8601 format. For Shipment Event, it is the same as eventCreatedDateTime in UTC timezone.
	EventDateTime string `json:"eventDateTime"`
	// The UTC timestamp of when the event was created.
	EventCreatedDateTime time.Time `json:"eventCreatedDateTime"`
	// Code for the event classifier, either PLN, ACT or EST. * PLN - Planned * ACT - Actual * EST - Estimated
	EventClassifierCode string `json:"eventClassifierCode"`
	// References provided by the shipper or freight forwarder at the time of booking or at the time of providing shipping instruction. Carriers share it back when providing track and trace event updates, some are also printed on the B/L. Customers can use these references to track shipments in their internal systems.
	References []EventReferencesInner `json:"references,omitempty"`
	// Unique identifier for equipmentEventTypeCode. * LOAD (Loaded) * DISC (Discharged) * GTIN (Gated in) * GTOT (Gated out) * STUF (Stuffed) * STRP (Stripped) * PICK (Pick-up) * DROP (Drop-off) * RSEA (Resealed) * RMVD (Removed) * INSP (Inspected)
	EquipmentEventTypeCode *string `json:"equipmentEventTypeCode,omitempty"`
	// The unique identifier for the equipment, which should follow the BIC ISO Container Identification Number where possible. According to ISO 6346, a container identification code consists of a 4-letter prefix and a 7-digit number (composed of a 3-letter owner code, a category identifier, a serial number, and a check-digit). If a container does not comply with ISO 6346, it is suggested to follow Recommendation #2 “Container with non-ISO identification” from SMDG.
	EquipmentReference *string `json:"equipmentReference,omitempty"`
	// Unique code for the different equipment size/type used for transporting commodities. The code is a concatenation of ISO Equipment Size Code and ISO Equipment Type Code A and follows the ISO 6346 standard.
	ISOEquipmentCode *string `json:"ISOEquipmentCode,omitempty"`
	// Code to denote whether the equipment is empty or laden.
	EmptyIndicatorCode string `json:"emptyIndicatorCode"`
	// An optional list of key-value (documentReferenceType-documentReferenceValue) pairs representing links to objects relevant to the event. The documentReferenceType-field is used to describe where the documentReferenceValue-field is pointing to.
	DocumentReferences []DocumentReferencesInner `json:"documentReferences,omitempty"`
	EventLocation      *Location                 `json:"eventLocation,omitempty"`
	TransportCall      TransportCall             `json:"transportCall"`
	Seals              []Seal                    `json:"seals,omitempty"`
}

EquipmentEvent The equipment event entity is a specialization of the event entity to support specification of data that only applies to an equipment event.

func NewEquipmentEvent

func NewEquipmentEvent(eventType string, eventDateTime string, eventCreatedDateTime time.Time, eventClassifierCode string, emptyIndicatorCode string, transportCall TransportCall) *EquipmentEvent

NewEquipmentEvent instantiates a new EquipmentEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEquipmentEventWithDefaults

func NewEquipmentEventWithDefaults() *EquipmentEvent

NewEquipmentEventWithDefaults instantiates a new EquipmentEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EquipmentEvent) GetDocumentReferences

func (o *EquipmentEvent) GetDocumentReferences() []DocumentReferencesInner

GetDocumentReferences returns the DocumentReferences field value if set, zero value otherwise.

func (*EquipmentEvent) GetDocumentReferencesOk

func (o *EquipmentEvent) GetDocumentReferencesOk() ([]DocumentReferencesInner, bool)

GetDocumentReferencesOk returns a tuple with the DocumentReferences field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEmptyIndicatorCode

func (o *EquipmentEvent) GetEmptyIndicatorCode() string

GetEmptyIndicatorCode returns the EmptyIndicatorCode field value

func (*EquipmentEvent) GetEmptyIndicatorCodeOk

func (o *EquipmentEvent) GetEmptyIndicatorCodeOk() (*string, bool)

GetEmptyIndicatorCodeOk returns a tuple with the EmptyIndicatorCode field value and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEquipmentEventTypeCode

func (o *EquipmentEvent) GetEquipmentEventTypeCode() string

GetEquipmentEventTypeCode returns the EquipmentEventTypeCode field value if set, zero value otherwise.

func (*EquipmentEvent) GetEquipmentEventTypeCodeOk

func (o *EquipmentEvent) GetEquipmentEventTypeCodeOk() (*string, bool)

GetEquipmentEventTypeCodeOk returns a tuple with the EquipmentEventTypeCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEquipmentReference

func (o *EquipmentEvent) GetEquipmentReference() string

GetEquipmentReference returns the EquipmentReference field value if set, zero value otherwise.

func (*EquipmentEvent) GetEquipmentReferenceOk

func (o *EquipmentEvent) GetEquipmentReferenceOk() (*string, bool)

GetEquipmentReferenceOk returns a tuple with the EquipmentReference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventClassifierCode

func (o *EquipmentEvent) GetEventClassifierCode() string

GetEventClassifierCode returns the EventClassifierCode field value

func (*EquipmentEvent) GetEventClassifierCodeOk

func (o *EquipmentEvent) GetEventClassifierCodeOk() (*string, bool)

GetEventClassifierCodeOk returns a tuple with the EventClassifierCode field value and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventCreatedDateTime

func (o *EquipmentEvent) GetEventCreatedDateTime() time.Time

GetEventCreatedDateTime returns the EventCreatedDateTime field value

func (*EquipmentEvent) GetEventCreatedDateTimeOk

func (o *EquipmentEvent) GetEventCreatedDateTimeOk() (*time.Time, bool)

GetEventCreatedDateTimeOk returns a tuple with the EventCreatedDateTime field value and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventDateTime

func (o *EquipmentEvent) GetEventDateTime() string

GetEventDateTime returns the EventDateTime field value

func (*EquipmentEvent) GetEventDateTimeOk

func (o *EquipmentEvent) GetEventDateTimeOk() (*string, bool)

GetEventDateTimeOk returns a tuple with the EventDateTime field value and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventID

func (o *EquipmentEvent) GetEventID() string

GetEventID returns the EventID field value if set, zero value otherwise.

func (*EquipmentEvent) GetEventIDOk

func (o *EquipmentEvent) GetEventIDOk() (*string, bool)

GetEventIDOk returns a tuple with the EventID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventLocation

func (o *EquipmentEvent) GetEventLocation() Location

GetEventLocation returns the EventLocation field value if set, zero value otherwise.

func (*EquipmentEvent) GetEventLocationOk

func (o *EquipmentEvent) GetEventLocationOk() (*Location, bool)

GetEventLocationOk returns a tuple with the EventLocation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetEventType

func (o *EquipmentEvent) GetEventType() string

GetEventType returns the EventType field value

func (*EquipmentEvent) GetEventTypeOk

func (o *EquipmentEvent) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.

func (*EquipmentEvent) GetISOEquipmentCode

func (o *EquipmentEvent) GetISOEquipmentCode() string

GetISOEquipmentCode returns the ISOEquipmentCode field value if set, zero value otherwise.

func (*EquipmentEvent) GetISOEquipmentCodeOk

func (o *EquipmentEvent) GetISOEquipmentCodeOk() (*string, bool)

GetISOEquipmentCodeOk returns a tuple with the ISOEquipmentCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetReferences

func (o *EquipmentEvent) GetReferences() []EventReferencesInner

GetReferences returns the References field value if set, zero value otherwise.

func (*EquipmentEvent) GetReferencesOk

func (o *EquipmentEvent) GetReferencesOk() ([]EventReferencesInner, bool)

GetReferencesOk returns a tuple with the References field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetSeals

func (o *EquipmentEvent) GetSeals() []Seal

GetSeals returns the Seals field value if set, zero value otherwise.

func (*EquipmentEvent) GetSealsOk

func (o *EquipmentEvent) GetSealsOk() ([]Seal, bool)

GetSealsOk returns a tuple with the Seals field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEvent) GetTransportCall

func (o *EquipmentEvent) GetTransportCall() TransportCall

GetTransportCall returns the TransportCall field value

func (*EquipmentEvent) GetTransportCallOk

func (o *EquipmentEvent) GetTransportCallOk() (*TransportCall, bool)

GetTransportCallOk returns a tuple with the TransportCall field value and a boolean to check if the value has been set.

func (*EquipmentEvent) HasDocumentReferences

func (o *EquipmentEvent) HasDocumentReferences() bool

HasDocumentReferences returns a boolean if a field has been set.

func (*EquipmentEvent) HasEquipmentEventTypeCode

func (o *EquipmentEvent) HasEquipmentEventTypeCode() bool

HasEquipmentEventTypeCode returns a boolean if a field has been set.

func (*EquipmentEvent) HasEquipmentReference

func (o *EquipmentEvent) HasEquipmentReference() bool

HasEquipmentReference returns a boolean if a field has been set.

func (*EquipmentEvent) HasEventID

func (o *EquipmentEvent) HasEventID() bool

HasEventID returns a boolean if a field has been set.

func (*EquipmentEvent) HasEventLocation

func (o *EquipmentEvent) HasEventLocation() bool

HasEventLocation returns a boolean if a field has been set.

func (*EquipmentEvent) HasISOEquipmentCode

func (o *EquipmentEvent) HasISOEquipmentCode() bool

HasISOEquipmentCode returns a boolean if a field has been set.

func (*EquipmentEvent) HasReferences

func (o *EquipmentEvent) HasReferences() bool

HasReferences returns a boolean if a field has been set.

func (*EquipmentEvent) HasSeals

func (o *EquipmentEvent) HasSeals() bool

HasSeals returns a boolean if a field has been set.

func (EquipmentEvent) MarshalJSON

func (o EquipmentEvent) MarshalJSON() ([]byte, error)

func (*EquipmentEvent) SetDocumentReferences

func (o *EquipmentEvent) SetDocumentReferences(v []DocumentReferencesInner)

SetDocumentReferences gets a reference to the given []DocumentReferencesInner and assigns it to the DocumentReferences field.

func (*EquipmentEvent) SetEmptyIndicatorCode

func (o *EquipmentEvent) SetEmptyIndicatorCode(v string)

SetEmptyIndicatorCode sets field value

func (*EquipmentEvent) SetEquipmentEventTypeCode

func (o *EquipmentEvent) SetEquipmentEventTypeCode(v string)

SetEquipmentEventTypeCode gets a reference to the given string and assigns it to the EquipmentEventTypeCode field.

func (*EquipmentEvent) SetEquipmentReference

func (o *EquipmentEvent) SetEquipmentReference(v string)

SetEquipmentReference gets a reference to the given string and assigns it to the EquipmentReference field.

func (*EquipmentEvent) SetEventClassifierCode

func (o *EquipmentEvent) SetEventClassifierCode(v string)

SetEventClassifierCode sets field value

func (*EquipmentEvent) SetEventCreatedDateTime

func (o *EquipmentEvent) SetEventCreatedDateTime(v time.Time)

SetEventCreatedDateTime sets field value

func (*EquipmentEvent) SetEventDateTime

func (o *EquipmentEvent) SetEventDateTime(v string)

SetEventDateTime sets field value

func (*EquipmentEvent) SetEventID

func (o *EquipmentEvent) SetEventID(v string)

SetEventID gets a reference to the given string and assigns it to the EventID field.

func (*EquipmentEvent) SetEventLocation

func (o *EquipmentEvent) SetEventLocation(v Location)

SetEventLocation gets a reference to the given Location and assigns it to the EventLocation field.

func (*EquipmentEvent) SetEventType

func (o *EquipmentEvent) SetEventType(v string)

SetEventType sets field value

func (*EquipmentEvent) SetISOEquipmentCode

func (o *EquipmentEvent) SetISOEquipmentCode(v string)

SetISOEquipmentCode gets a reference to the given string and assigns it to the ISOEquipmentCode field.

func (*EquipmentEvent) SetReferences

func (o *EquipmentEvent) SetReferences(v []EventReferencesInner)

SetReferences gets a reference to the given []EventReferencesInner and assigns it to the References field.

func (*EquipmentEvent) SetSeals

func (o *EquipmentEvent) SetSeals(v []Seal)

SetSeals gets a reference to the given []Seal and assigns it to the Seals field.

func (*EquipmentEvent) SetTransportCall

func (o *EquipmentEvent) SetTransportCall(v TransportCall)

SetTransportCall sets field value

type EquipmentEventAllOf

type EquipmentEventAllOf struct {
	EventType *string `json:"eventType,omitempty"`
	// Unique identifier for equipmentEventTypeCode. * LOAD (Loaded) * DISC (Discharged) * GTIN (Gated in) * GTOT (Gated out) * STUF (Stuffed) * STRP (Stripped) * PICK (Pick-up) * DROP (Drop-off) * RSEA (Resealed) * RMVD (Removed) * INSP (Inspected)
	EquipmentEventTypeCode *string `json:"equipmentEventTypeCode,omitempty"`
	// The unique identifier for the equipment, which should follow the BIC ISO Container Identification Number where possible. According to ISO 6346, a container identification code consists of a 4-letter prefix and a 7-digit number (composed of a 3-letter owner code, a category identifier, a serial number, and a check-digit). If a container does not comply with ISO 6346, it is suggested to follow Recommendation #2 “Container with non-ISO identification” from SMDG.
	EquipmentReference *string `json:"equipmentReference,omitempty"`
	// Unique code for the different equipment size/type used for transporting commodities. The code is a concatenation of ISO Equipment Size Code and ISO Equipment Type Code A and follows the ISO 6346 standard.
	ISOEquipmentCode *string `json:"ISOEquipmentCode,omitempty"`
	// Code to denote whether the equipment is empty or laden.
	EmptyIndicatorCode string `json:"emptyIndicatorCode"`
	// An optional list of key-value (documentReferenceType-documentReferenceValue) pairs representing links to objects relevant to the event. The documentReferenceType-field is used to describe where the documentReferenceValue-field is pointing to.
	DocumentReferences []DocumentReferencesInner `json:"documentReferences,omitempty"`
	EventLocation      *Location                 `json:"eventLocation,omitempty"`
	TransportCall      TransportCall             `json:"transportCall"`
	Seals              []Seal                    `json:"seals,omitempty"`
}

EquipmentEventAllOf struct for EquipmentEventAllOf

func NewEquipmentEventAllOf

func NewEquipmentEventAllOf(emptyIndicatorCode string, transportCall TransportCall) *EquipmentEventAllOf

NewEquipmentEventAllOf instantiates a new EquipmentEventAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEquipmentEventAllOfWithDefaults

func NewEquipmentEventAllOfWithDefaults() *EquipmentEventAllOf

NewEquipmentEventAllOfWithDefaults instantiates a new EquipmentEventAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EquipmentEventAllOf) GetDocumentReferences

func (o *EquipmentEventAllOf) GetDocumentReferences() []DocumentReferencesInner

GetDocumentReferences returns the DocumentReferences field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetDocumentReferencesOk

func (o *EquipmentEventAllOf) GetDocumentReferencesOk() ([]DocumentReferencesInner, bool)

GetDocumentReferencesOk returns a tuple with the DocumentReferences field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetEmptyIndicatorCode

func (o *EquipmentEventAllOf) GetEmptyIndicatorCode() string

GetEmptyIndicatorCode returns the EmptyIndicatorCode field value

func (*EquipmentEventAllOf) GetEmptyIndicatorCodeOk

func (o *EquipmentEventAllOf) GetEmptyIndicatorCodeOk() (*string, bool)

GetEmptyIndicatorCodeOk returns a tuple with the EmptyIndicatorCode field value and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetEquipmentEventTypeCode

func (o *EquipmentEventAllOf) GetEquipmentEventTypeCode() string

GetEquipmentEventTypeCode returns the EquipmentEventTypeCode field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetEquipmentEventTypeCodeOk

func (o *EquipmentEventAllOf) GetEquipmentEventTypeCodeOk() (*string, bool)

GetEquipmentEventTypeCodeOk returns a tuple with the EquipmentEventTypeCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetEquipmentReference

func (o *EquipmentEventAllOf) GetEquipmentReference() string

GetEquipmentReference returns the EquipmentReference field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetEquipmentReferenceOk

func (o *EquipmentEventAllOf) GetEquipmentReferenceOk() (*string, bool)

GetEquipmentReferenceOk returns a tuple with the EquipmentReference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetEventLocation

func (o *EquipmentEventAllOf) GetEventLocation() Location

GetEventLocation returns the EventLocation field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetEventLocationOk

func (o *EquipmentEventAllOf) GetEventLocationOk() (*Location, bool)

GetEventLocationOk returns a tuple with the EventLocation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetEventType

func (o *EquipmentEventAllOf) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetEventTypeOk

func (o *EquipmentEventAllOf) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetISOEquipmentCode

func (o *EquipmentEventAllOf) GetISOEquipmentCode() string

GetISOEquipmentCode returns the ISOEquipmentCode field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetISOEquipmentCodeOk

func (o *EquipmentEventAllOf) GetISOEquipmentCodeOk() (*string, bool)

GetISOEquipmentCodeOk returns a tuple with the ISOEquipmentCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetSeals

func (o *EquipmentEventAllOf) GetSeals() []Seal

GetSeals returns the Seals field value if set, zero value otherwise.

func (*EquipmentEventAllOf) GetSealsOk

func (o *EquipmentEventAllOf) GetSealsOk() ([]Seal, bool)

GetSealsOk returns a tuple with the Seals field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) GetTransportCall

func (o *EquipmentEventAllOf) GetTransportCall() TransportCall

GetTransportCall returns the TransportCall field value

func (*EquipmentEventAllOf) GetTransportCallOk

func (o *EquipmentEventAllOf) GetTransportCallOk() (*TransportCall, bool)

GetTransportCallOk returns a tuple with the TransportCall field value and a boolean to check if the value has been set.

func (*EquipmentEventAllOf) HasDocumentReferences

func (o *EquipmentEventAllOf) HasDocumentReferences() bool

HasDocumentReferences returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasEquipmentEventTypeCode

func (o *EquipmentEventAllOf) HasEquipmentEventTypeCode() bool

HasEquipmentEventTypeCode returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasEquipmentReference

func (o *EquipmentEventAllOf) HasEquipmentReference() bool

HasEquipmentReference returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasEventLocation

func (o *EquipmentEventAllOf) HasEventLocation() bool

HasEventLocation returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasEventType

func (o *EquipmentEventAllOf) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasISOEquipmentCode

func (o *EquipmentEventAllOf) HasISOEquipmentCode() bool

HasISOEquipmentCode returns a boolean if a field has been set.

func (*EquipmentEventAllOf) HasSeals

func (o *EquipmentEventAllOf) HasSeals() bool

HasSeals returns a boolean if a field has been set.

func (EquipmentEventAllOf) MarshalJSON

func (o EquipmentEventAllOf) MarshalJSON() ([]byte, error)

func (*EquipmentEventAllOf) SetDocumentReferences

func (o *EquipmentEventAllOf) SetDocumentReferences(v []DocumentReferencesInner)

SetDocumentReferences gets a reference to the given []DocumentReferencesInner and assigns it to the DocumentReferences field.

func (*EquipmentEventAllOf) SetEmptyIndicatorCode

func (o *EquipmentEventAllOf) SetEmptyIndicatorCode(v string)

SetEmptyIndicatorCode sets field value

func (*EquipmentEventAllOf) SetEquipmentEventTypeCode

func (o *EquipmentEventAllOf) SetEquipmentEventTypeCode(v string)

SetEquipmentEventTypeCode gets a reference to the given string and assigns it to the EquipmentEventTypeCode field.

func (*EquipmentEventAllOf) SetEquipmentReference

func (o *EquipmentEventAllOf) SetEquipmentReference(v string)

SetEquipmentReference gets a reference to the given string and assigns it to the EquipmentReference field.

func (*EquipmentEventAllOf) SetEventLocation

func (o *EquipmentEventAllOf) SetEventLocation(v Location)

SetEventLocation gets a reference to the given Location and assigns it to the EventLocation field.

func (*EquipmentEventAllOf) SetEventType

func (o *EquipmentEventAllOf) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*EquipmentEventAllOf) SetISOEquipmentCode

func (o *EquipmentEventAllOf) SetISOEquipmentCode(v string)

SetISOEquipmentCode gets a reference to the given string and assigns it to the ISOEquipmentCode field.

func (*EquipmentEventAllOf) SetSeals

func (o *EquipmentEventAllOf) SetSeals(v []Seal)

SetSeals gets a reference to the given []Seal and assigns it to the Seals field.

func (*EquipmentEventAllOf) SetTransportCall

func (o *EquipmentEventAllOf) SetTransportCall(v TransportCall)

SetTransportCall sets field value

type Event

type Event struct {
	// The unique identifier for the Equipment Event ID/Transport Event ID/Shipment Event ID.
	EventID *string `json:"eventID,omitempty"`
	// The Event Type of the object.
	EventType string `json:"eventType"`
	// The local date and time, where the event took place or when the event will take place, in ISO 8601 format. For Shipment Event, it is the same as eventCreatedDateTime in UTC timezone.
	EventDateTime string `json:"eventDateTime"`
	// The UTC timestamp of when the event was created.
	EventCreatedDateTime time.Time `json:"eventCreatedDateTime"`
	// Code for the event classifier, either PLN, ACT or EST. * PLN - Planned * ACT - Actual * EST - Estimated
	EventClassifierCode string `json:"eventClassifierCode"`
	// References provided by the shipper or freight forwarder at the time of booking or at the time of providing shipping instruction. Carriers share it back when providing track and trace event updates, some are also printed on the B/L. Customers can use these references to track shipments in their internal systems.
	References []EventReferencesInner `json:"references,omitempty"`
}

Event The event entity is described as a generalization of all the specific event categories. An event always takes place in relation to a shipment and can additionally be linked to a transport or an equipment

func NewEvent

func NewEvent(eventType string, eventDateTime string, eventCreatedDateTime time.Time, eventClassifierCode string) *Event

NewEvent instantiates a new Event object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEventWithDefaults

func NewEventWithDefaults() *Event

NewEventWithDefaults instantiates a new Event object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Event) GetEventClassifierCode

func (o *Event) GetEventClassifierCode() string

GetEventClassifierCode returns the EventClassifierCode field value

func (*Event) GetEventClassifierCodeOk

func (o *Event) GetEventClassifierCodeOk() (*string, bool)

GetEventClassifierCodeOk returns a tuple with the EventClassifierCode field value and a boolean to check if the value has been set.

func (*Event) GetEventCreatedDateTime

func (o *Event) GetEventCreatedDateTime() time.Time

GetEventCreatedDateTime returns the EventCreatedDateTime field value

func (*Event) GetEventCreatedDateTimeOk

func (o *Event) GetEventCreatedDateTimeOk() (*time.Time, bool)

GetEventCreatedDateTimeOk returns a tuple with the EventCreatedDateTime field value and a boolean to check if the value has been set.

func (*Event) GetEventDateTime

func (o *Event) GetEventDateTime() string

GetEventDateTime returns the EventDateTime field value

func (*Event) GetEventDateTimeOk

func (o *Event) GetEventDateTimeOk() (*string, bool)

GetEventDateTimeOk returns a tuple with the EventDateTime field value and a boolean to check if the value has been set.

func (*Event) GetEventID

func (o *Event) GetEventID() string

GetEventID returns the EventID field value if set, zero value otherwise.

func (*Event) GetEventIDOk

func (o *Event) GetEventIDOk() (*string, bool)

GetEventIDOk returns a tuple with the EventID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetEventType

func (o *Event) GetEventType() string

GetEventType returns the EventType field value

func (*Event) GetEventTypeOk

func (o *Event) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.

func (*Event) GetReferences

func (o *Event) GetReferences() []EventReferencesInner

GetReferences returns the References field value if set, zero value otherwise.

func (*Event) GetReferencesOk

func (o *Event) GetReferencesOk() ([]EventReferencesInner, bool)

GetReferencesOk returns a tuple with the References field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) HasEventID

func (o *Event) HasEventID() bool

HasEventID returns a boolean if a field has been set.

func (*Event) HasReferences

func (o *Event) HasReferences() bool

HasReferences returns a boolean if a field has been set.

func (Event) MarshalJSON

func (o Event) MarshalJSON() ([]byte, error)

func (*Event) SetEventClassifierCode

func (o *Event) SetEventClassifierCode(v string)

SetEventClassifierCode sets field value

func (*Event) SetEventCreatedDateTime

func (o *Event) SetEventCreatedDateTime(v time.Time)

SetEventCreatedDateTime sets field value

func (*Event) SetEventDateTime

func (o *Event) SetEventDateTime(v string)

SetEventDateTime sets field value

func (*Event) SetEventID

func (o *Event) SetEventID(v string)

SetEventID gets a reference to the given string and assigns it to the EventID field.

func (*Event) SetEventType

func (o *Event) SetEventType(v string)

SetEventType sets field value

func (*Event) SetReferences

func (o *Event) SetReferences(v []EventReferencesInner)

SetReferences gets a reference to the given []EventReferencesInner and assigns it to the References field.

type EventReferencesInner

type EventReferencesInner struct {
	// The reference type codes defined by DCSA. * FF (Freight Forwarder’s Reference) * SI (Shipper’s Reference) * PO (Purchase Order Reference) * CR (Customer’s Reference) * AAO (Consignee’s Reference) * EQ (Equipment Reference)
	ReferenceType string `json:"referenceType"`
	// The actual value of the reference.
	ReferenceValue string `json:"referenceValue"`
}

EventReferencesInner struct for EventReferencesInner

func NewEventReferencesInner

func NewEventReferencesInner(referenceType string, referenceValue string) *EventReferencesInner

NewEventReferencesInner instantiates a new EventReferencesInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEventReferencesInnerWithDefaults

func NewEventReferencesInnerWithDefaults() *EventReferencesInner

NewEventReferencesInnerWithDefaults instantiates a new EventReferencesInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EventReferencesInner) GetReferenceType

func (o *EventReferencesInner) GetReferenceType() string

GetReferenceType returns the ReferenceType field value

func (*EventReferencesInner) GetReferenceTypeOk

func (o *EventReferencesInner) GetReferenceTypeOk() (*string, bool)

GetReferenceTypeOk returns a tuple with the ReferenceType field value and a boolean to check if the value has been set.

func (*EventReferencesInner) GetReferenceValue

func (o *EventReferencesInner) GetReferenceValue() string

GetReferenceValue returns the ReferenceValue field value

func (*EventReferencesInner) GetReferenceValueOk

func (o *EventReferencesInner) GetReferenceValueOk() (*string, bool)

GetReferenceValueOk returns a tuple with the ReferenceValue field value and a boolean to check if the value has been set.

func (EventReferencesInner) MarshalJSON

func (o EventReferencesInner) MarshalJSON() ([]byte, error)

func (*EventReferencesInner) SetReferenceType

func (o *EventReferencesInner) SetReferenceType(v string)

SetReferenceType sets field value

func (*EventReferencesInner) SetReferenceValue

func (o *EventReferencesInner) SetReferenceValue(v string)

SetReferenceValue sets field value

type Events

type Events struct {
	Events []EventsEventsInner `json:"events"`
}

Events List of events for shipment journey.

func NewEvents

func NewEvents(events []EventsEventsInner) *Events

NewEvents instantiates a new Events object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEventsWithDefaults

func NewEventsWithDefaults() *Events

NewEventsWithDefaults instantiates a new Events object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Events) GetEvents

func (o *Events) GetEvents() []EventsEventsInner

GetEvents returns the Events field value

func (*Events) GetEventsOk

func (o *Events) GetEventsOk() ([]EventsEventsInner, bool)

GetEventsOk returns a tuple with the Events field value and a boolean to check if the value has been set.

func (Events) MarshalJSON

func (o Events) MarshalJSON() ([]byte, error)

func (*Events) SetEvents

func (o *Events) SetEvents(v []EventsEventsInner)

SetEvents sets field value

type EventsApi

type EventsApi interface {

	/*
			ListEvents Find events.

			Returns all events filtered by the queryParameters.  This endpoint requires **at least one** of the following input parameters:

		* carrierBookingReference
		* transportDocumentReference
		* equipmentReference

		Note:  It is possible to combine queryParameters. When combining queryParameters be aware that it is also possible to make combinations that are mutually contradicting.\
		For example, shipmentEventTypeCode=DRFT and equipmentEventTypeCode=GTIN; since there is no event that can be a ShipmentEvent and an EquipmentEvent at the same time this will return an empty list.


			@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			@return ApiListEventsRequest
	*/
	ListEvents(ctx context.Context) ApiListEventsRequest

	// ListEventsExecute executes the request
	//  @return Events
	ListEventsExecute(r ApiListEventsRequest) (*Events, *http.Response, error)
}

type EventsApiService

type EventsApiService service

EventsApiService EventsApi service

func (*EventsApiService) ListEvents

ListEvents Find events.

Returns all events filtered by the queryParameters. This endpoint requires **at least one** of the following input parameters:

* carrierBookingReference * transportDocumentReference * equipmentReference

Note: It is possible to combine queryParameters. When combining queryParameters be aware that it is also possible to make combinations that are mutually contradicting.\ For example, shipmentEventTypeCode=DRFT and equipmentEventTypeCode=GTIN; since there is no event that can be a ShipmentEvent and an EquipmentEvent at the same time this will return an empty list.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListEventsRequest

func (*EventsApiService) ListEventsExecute

func (a *EventsApiService) ListEventsExecute(r ApiListEventsRequest) (*Events, *http.Response, error)

Execute executes the request

@return Events

type EventsEventsInner

type EventsEventsInner struct {
	EquipmentEvent *EquipmentEvent
	ShipmentEvent  *ShipmentEvent
	TransportEvent *TransportEvent
}

EventsEventsInner struct for EventsEventsInner

func (*EventsEventsInner) MarshalJSON

func (src *EventsEventsInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*EventsEventsInner) UnmarshalJSON

func (dst *EventsEventsInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Location

type Location struct {
	// The name of the location.
	LocationName *string `json:"locationName,omitempty"`
	// Geographic coordinate that specifies the north–south position of a point on the Earth's surface.
	Latitude *string `json:"latitude,omitempty"`
	// Geographic coordinate that specifies the east–west position of a point on the Earth's surface.
	Longitude *string `json:"longitude,omitempty"`
	// The UN Location code specifying where the place is located.
	UNLocationCode *string `json:"UNLocationCode,omitempty"`
	// The code used for identifying the specific facility. This code is not the UN Location Code.
	FacilityCode *string `json:"facilityCode,omitempty"`
	// The provider used for identifying the facility Code
	FacilityCodeListProvider *string  `json:"facilityCodeListProvider,omitempty"`
	Address                  *Address `json:"address,omitempty"`
}

Location Generally used to capture location-related data; also for locations without UN Location Codes.

func NewLocation

func NewLocation() *Location

NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLocationWithDefaults

func NewLocationWithDefaults() *Location

NewLocationWithDefaults instantiates a new Location object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Location) GetAddress

func (o *Location) GetAddress() Address

GetAddress returns the Address field value if set, zero value otherwise.

func (*Location) GetAddressOk

func (o *Location) GetAddressOk() (*Address, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetFacilityCode

func (o *Location) GetFacilityCode() string

GetFacilityCode returns the FacilityCode field value if set, zero value otherwise.

func (*Location) GetFacilityCodeListProvider

func (o *Location) GetFacilityCodeListProvider() string

GetFacilityCodeListProvider returns the FacilityCodeListProvider field value if set, zero value otherwise.

func (*Location) GetFacilityCodeListProviderOk

func (o *Location) GetFacilityCodeListProviderOk() (*string, bool)

GetFacilityCodeListProviderOk returns a tuple with the FacilityCodeListProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetFacilityCodeOk

func (o *Location) GetFacilityCodeOk() (*string, bool)

GetFacilityCodeOk returns a tuple with the FacilityCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetLatitude

func (o *Location) GetLatitude() string

GetLatitude returns the Latitude field value if set, zero value otherwise.

func (*Location) GetLatitudeOk

func (o *Location) GetLatitudeOk() (*string, bool)

GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetLocationName

func (o *Location) GetLocationName() string

GetLocationName returns the LocationName field value if set, zero value otherwise.

func (*Location) GetLocationNameOk

func (o *Location) GetLocationNameOk() (*string, bool)

GetLocationNameOk returns a tuple with the LocationName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetLongitude

func (o *Location) GetLongitude() string

GetLongitude returns the Longitude field value if set, zero value otherwise.

func (*Location) GetLongitudeOk

func (o *Location) GetLongitudeOk() (*string, bool)

GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) GetUNLocationCode

func (o *Location) GetUNLocationCode() string

GetUNLocationCode returns the UNLocationCode field value if set, zero value otherwise.

func (*Location) GetUNLocationCodeOk

func (o *Location) GetUNLocationCodeOk() (*string, bool)

GetUNLocationCodeOk returns a tuple with the UNLocationCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Location) HasAddress

func (o *Location) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*Location) HasFacilityCode

func (o *Location) HasFacilityCode() bool

HasFacilityCode returns a boolean if a field has been set.

func (*Location) HasFacilityCodeListProvider

func (o *Location) HasFacilityCodeListProvider() bool

HasFacilityCodeListProvider returns a boolean if a field has been set.

func (*Location) HasLatitude

func (o *Location) HasLatitude() bool

HasLatitude returns a boolean if a field has been set.

func (*Location) HasLocationName

func (o *Location) HasLocationName() bool

HasLocationName returns a boolean if a field has been set.

func (*Location) HasLongitude

func (o *Location) HasLongitude() bool

HasLongitude returns a boolean if a field has been set.

func (*Location) HasUNLocationCode

func (o *Location) HasUNLocationCode() bool

HasUNLocationCode returns a boolean if a field has been set.

func (Location) MarshalJSON

func (o Location) MarshalJSON() ([]byte, error)

func (*Location) SetAddress

func (o *Location) SetAddress(v Address)

SetAddress gets a reference to the given Address and assigns it to the Address field.

func (*Location) SetFacilityCode

func (o *Location) SetFacilityCode(v string)

SetFacilityCode gets a reference to the given string and assigns it to the FacilityCode field.

func (*Location) SetFacilityCodeListProvider

func (o *Location) SetFacilityCodeListProvider(v string)

SetFacilityCodeListProvider gets a reference to the given string and assigns it to the FacilityCodeListProvider field.

func (*Location) SetLatitude

func (o *Location) SetLatitude(v string)

SetLatitude gets a reference to the given string and assigns it to the Latitude field.

func (*Location) SetLocationName

func (o *Location) SetLocationName(v string)

SetLocationName gets a reference to the given string and assigns it to the LocationName field.

func (*Location) SetLongitude

func (o *Location) SetLongitude(v string)

SetLongitude gets a reference to the given string and assigns it to the Longitude field.

func (*Location) SetUNLocationCode

func (o *Location) SetUNLocationCode(v string)

SetUNLocationCode gets a reference to the given string and assigns it to the UNLocationCode field.

type NullableAddress

type NullableAddress struct {
	// contains filtered or unexported fields
}

func NewNullableAddress

func NewNullableAddress(val *Address) *NullableAddress

func (NullableAddress) Get

func (v NullableAddress) Get() *Address

func (NullableAddress) IsSet

func (v NullableAddress) IsSet() bool

func (NullableAddress) MarshalJSON

func (v NullableAddress) MarshalJSON() ([]byte, error)

func (*NullableAddress) Set

func (v *NullableAddress) Set(val *Address)

func (*NullableAddress) UnmarshalJSON

func (v *NullableAddress) UnmarshalJSON(src []byte) error

func (*NullableAddress) Unset

func (v *NullableAddress) Unset()

type NullableApiError

type NullableApiError struct {
	// contains filtered or unexported fields
}

func NewNullableApiError

func NewNullableApiError(val *ApiError) *NullableApiError

func (NullableApiError) Get

func (v NullableApiError) Get() *ApiError

func (NullableApiError) IsSet

func (v NullableApiError) IsSet() bool

func (NullableApiError) MarshalJSON

func (v NullableApiError) MarshalJSON() ([]byte, error)

func (*NullableApiError) Set

func (v *NullableApiError) Set(val *ApiError)

func (*NullableApiError) UnmarshalJSON

func (v *NullableApiError) UnmarshalJSON(src []byte) error

func (*NullableApiError) Unset

func (v *NullableApiError) Unset()

type NullableApiValidationError

type NullableApiValidationError struct {
	// contains filtered or unexported fields
}

func NewNullableApiValidationError

func NewNullableApiValidationError(val *ApiValidationError) *NullableApiValidationError

func (NullableApiValidationError) Get

func (NullableApiValidationError) IsSet

func (v NullableApiValidationError) IsSet() bool

func (NullableApiValidationError) MarshalJSON

func (v NullableApiValidationError) MarshalJSON() ([]byte, error)

func (*NullableApiValidationError) Set

func (*NullableApiValidationError) UnmarshalJSON

func (v *NullableApiValidationError) UnmarshalJSON(src []byte) error

func (*NullableApiValidationError) Unset

func (v *NullableApiValidationError) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateAccessToken200Response

type NullableCreateAccessToken200Response struct {
	// contains filtered or unexported fields
}

func (NullableCreateAccessToken200Response) Get

func (NullableCreateAccessToken200Response) IsSet

func (NullableCreateAccessToken200Response) MarshalJSON

func (v NullableCreateAccessToken200Response) MarshalJSON() ([]byte, error)

func (*NullableCreateAccessToken200Response) Set

func (*NullableCreateAccessToken200Response) UnmarshalJSON

func (v *NullableCreateAccessToken200Response) UnmarshalJSON(src []byte) error

func (*NullableCreateAccessToken200Response) Unset

type NullableCreateAccessToken400Response

type NullableCreateAccessToken400Response struct {
	// contains filtered or unexported fields
}

func (NullableCreateAccessToken400Response) Get

func (NullableCreateAccessToken400Response) IsSet

func (NullableCreateAccessToken400Response) MarshalJSON

func (v NullableCreateAccessToken400Response) MarshalJSON() ([]byte, error)

func (*NullableCreateAccessToken400Response) Set

func (*NullableCreateAccessToken400Response) UnmarshalJSON

func (v *NullableCreateAccessToken400Response) UnmarshalJSON(src []byte) error

func (*NullableCreateAccessToken400Response) Unset

type NullableDocumentReferencesInner

type NullableDocumentReferencesInner struct {
	// contains filtered or unexported fields
}

func (NullableDocumentReferencesInner) Get

func (NullableDocumentReferencesInner) IsSet

func (NullableDocumentReferencesInner) MarshalJSON

func (v NullableDocumentReferencesInner) MarshalJSON() ([]byte, error)

func (*NullableDocumentReferencesInner) Set

func (*NullableDocumentReferencesInner) UnmarshalJSON

func (v *NullableDocumentReferencesInner) UnmarshalJSON(src []byte) error

func (*NullableDocumentReferencesInner) Unset

type NullableEquipmentEvent

type NullableEquipmentEvent struct {
	// contains filtered or unexported fields
}

func NewNullableEquipmentEvent

func NewNullableEquipmentEvent(val *EquipmentEvent) *NullableEquipmentEvent

func (NullableEquipmentEvent) Get

func (NullableEquipmentEvent) IsSet

func (v NullableEquipmentEvent) IsSet() bool

func (NullableEquipmentEvent) MarshalJSON

func (v NullableEquipmentEvent) MarshalJSON() ([]byte, error)

func (*NullableEquipmentEvent) Set

func (*NullableEquipmentEvent) UnmarshalJSON

func (v *NullableEquipmentEvent) UnmarshalJSON(src []byte) error

func (*NullableEquipmentEvent) Unset

func (v *NullableEquipmentEvent) Unset()

type NullableEquipmentEventAllOf

type NullableEquipmentEventAllOf struct {
	// contains filtered or unexported fields
}

func NewNullableEquipmentEventAllOf

func NewNullableEquipmentEventAllOf(val *EquipmentEventAllOf) *NullableEquipmentEventAllOf

func (NullableEquipmentEventAllOf) Get

func (NullableEquipmentEventAllOf) IsSet

func (NullableEquipmentEventAllOf) MarshalJSON

func (v NullableEquipmentEventAllOf) MarshalJSON() ([]byte, error)

func (*NullableEquipmentEventAllOf) Set

func (*NullableEquipmentEventAllOf) UnmarshalJSON

func (v *NullableEquipmentEventAllOf) UnmarshalJSON(src []byte) error

func (*NullableEquipmentEventAllOf) Unset

func (v *NullableEquipmentEventAllOf) Unset()

type NullableEvent

type NullableEvent struct {
	// contains filtered or unexported fields
}

func NewNullableEvent

func NewNullableEvent(val *Event) *NullableEvent

func (NullableEvent) Get

func (v NullableEvent) Get() *Event

func (NullableEvent) IsSet

func (v NullableEvent) IsSet() bool

func (NullableEvent) MarshalJSON

func (v NullableEvent) MarshalJSON() ([]byte, error)

func (*NullableEvent) Set

func (v *NullableEvent) Set(val *Event)

func (*NullableEvent) UnmarshalJSON

func (v *NullableEvent) UnmarshalJSON(src []byte) error

func (*NullableEvent) Unset

func (v *NullableEvent) Unset()

type NullableEventReferencesInner

type NullableEventReferencesInner struct {
	// contains filtered or unexported fields
}

func NewNullableEventReferencesInner

func NewNullableEventReferencesInner(val *EventReferencesInner) *NullableEventReferencesInner

func (NullableEventReferencesInner) Get

func (NullableEventReferencesInner) IsSet

func (NullableEventReferencesInner) MarshalJSON

func (v NullableEventReferencesInner) MarshalJSON() ([]byte, error)

func (*NullableEventReferencesInner) Set

func (*NullableEventReferencesInner) UnmarshalJSON

func (v *NullableEventReferencesInner) UnmarshalJSON(src []byte) error

func (*NullableEventReferencesInner) Unset

func (v *NullableEventReferencesInner) Unset()

type NullableEvents

type NullableEvents struct {
	// contains filtered or unexported fields
}

func NewNullableEvents

func NewNullableEvents(val *Events) *NullableEvents

func (NullableEvents) Get

func (v NullableEvents) Get() *Events

func (NullableEvents) IsSet

func (v NullableEvents) IsSet() bool

func (NullableEvents) MarshalJSON

func (v NullableEvents) MarshalJSON() ([]byte, error)

func (*NullableEvents) Set

func (v *NullableEvents) Set(val *Events)

func (*NullableEvents) UnmarshalJSON

func (v *NullableEvents) UnmarshalJSON(src []byte) error

func (*NullableEvents) Unset

func (v *NullableEvents) Unset()

type NullableEventsEventsInner

type NullableEventsEventsInner struct {
	// contains filtered or unexported fields
}

func NewNullableEventsEventsInner

func NewNullableEventsEventsInner(val *EventsEventsInner) *NullableEventsEventsInner

func (NullableEventsEventsInner) Get

func (NullableEventsEventsInner) IsSet

func (v NullableEventsEventsInner) IsSet() bool

func (NullableEventsEventsInner) MarshalJSON

func (v NullableEventsEventsInner) MarshalJSON() ([]byte, error)

func (*NullableEventsEventsInner) Set

func (*NullableEventsEventsInner) UnmarshalJSON

func (v *NullableEventsEventsInner) UnmarshalJSON(src []byte) error

func (*NullableEventsEventsInner) Unset

func (v *NullableEventsEventsInner) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLocation

type NullableLocation struct {
	// contains filtered or unexported fields
}

func NewNullableLocation

func NewNullableLocation(val *Location) *NullableLocation

func (NullableLocation) Get

func (v NullableLocation) Get() *Location

func (NullableLocation) IsSet

func (v NullableLocation) IsSet() bool

func (NullableLocation) MarshalJSON

func (v NullableLocation) MarshalJSON() ([]byte, error)

func (*NullableLocation) Set

func (v *NullableLocation) Set(val *Location)

func (*NullableLocation) UnmarshalJSON

func (v *NullableLocation) UnmarshalJSON(src []byte) error

func (*NullableLocation) Unset

func (v *NullableLocation) Unset()

type NullableSeal

type NullableSeal struct {
	// contains filtered or unexported fields
}

func NewNullableSeal

func NewNullableSeal(val *Seal) *NullableSeal

func (NullableSeal) Get

func (v NullableSeal) Get() *Seal

func (NullableSeal) IsSet

func (v NullableSeal) IsSet() bool

func (NullableSeal) MarshalJSON

func (v NullableSeal) MarshalJSON() ([]byte, error)

func (*NullableSeal) Set

func (v *NullableSeal) Set(val *Seal)

func (*NullableSeal) UnmarshalJSON

func (v *NullableSeal) UnmarshalJSON(src []byte) error

func (*NullableSeal) Unset

func (v *NullableSeal) Unset()

type NullableShipmentEvent

type NullableShipmentEvent struct {
	// contains filtered or unexported fields
}

func NewNullableShipmentEvent

func NewNullableShipmentEvent(val *ShipmentEvent) *NullableShipmentEvent

func (NullableShipmentEvent) Get

func (NullableShipmentEvent) IsSet

func (v NullableShipmentEvent) IsSet() bool

func (NullableShipmentEvent) MarshalJSON

func (v NullableShipmentEvent) MarshalJSON() ([]byte, error)

func (*NullableShipmentEvent) Set

func (v *NullableShipmentEvent) Set(val *ShipmentEvent)

func (*NullableShipmentEvent) UnmarshalJSON

func (v *NullableShipmentEvent) UnmarshalJSON(src []byte) error

func (*NullableShipmentEvent) Unset

func (v *NullableShipmentEvent) Unset()

type NullableShipmentEventAllOf

type NullableShipmentEventAllOf struct {
	// contains filtered or unexported fields
}

func NewNullableShipmentEventAllOf

func NewNullableShipmentEventAllOf(val *ShipmentEventAllOf) *NullableShipmentEventAllOf

func (NullableShipmentEventAllOf) Get

func (NullableShipmentEventAllOf) IsSet

func (v NullableShipmentEventAllOf) IsSet() bool

func (NullableShipmentEventAllOf) MarshalJSON

func (v NullableShipmentEventAllOf) MarshalJSON() ([]byte, error)

func (*NullableShipmentEventAllOf) Set

func (*NullableShipmentEventAllOf) UnmarshalJSON

func (v *NullableShipmentEventAllOf) UnmarshalJSON(src []byte) error

func (*NullableShipmentEventAllOf) Unset

func (v *NullableShipmentEventAllOf) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTransportCall

type NullableTransportCall struct {
	// contains filtered or unexported fields
}

func NewNullableTransportCall

func NewNullableTransportCall(val *TransportCall) *NullableTransportCall

func (NullableTransportCall) Get

func (NullableTransportCall) IsSet

func (v NullableTransportCall) IsSet() bool

func (NullableTransportCall) MarshalJSON

func (v NullableTransportCall) MarshalJSON() ([]byte, error)

func (*NullableTransportCall) Set

func (v *NullableTransportCall) Set(val *TransportCall)

func (*NullableTransportCall) UnmarshalJSON

func (v *NullableTransportCall) UnmarshalJSON(src []byte) error

func (*NullableTransportCall) Unset

func (v *NullableTransportCall) Unset()

type NullableTransportEvent

type NullableTransportEvent struct {
	// contains filtered or unexported fields
}

func NewNullableTransportEvent

func NewNullableTransportEvent(val *TransportEvent) *NullableTransportEvent

func (NullableTransportEvent) Get

func (NullableTransportEvent) IsSet

func (v NullableTransportEvent) IsSet() bool

func (NullableTransportEvent) MarshalJSON

func (v NullableTransportEvent) MarshalJSON() ([]byte, error)

func (*NullableTransportEvent) Set

func (*NullableTransportEvent) UnmarshalJSON

func (v *NullableTransportEvent) UnmarshalJSON(src []byte) error

func (*NullableTransportEvent) Unset

func (v *NullableTransportEvent) Unset()

type NullableTransportEventAllOf

type NullableTransportEventAllOf struct {
	// contains filtered or unexported fields
}

func NewNullableTransportEventAllOf

func NewNullableTransportEventAllOf(val *TransportEventAllOf) *NullableTransportEventAllOf

func (NullableTransportEventAllOf) Get

func (NullableTransportEventAllOf) IsSet

func (NullableTransportEventAllOf) MarshalJSON

func (v NullableTransportEventAllOf) MarshalJSON() ([]byte, error)

func (*NullableTransportEventAllOf) Set

func (*NullableTransportEventAllOf) UnmarshalJSON

func (v *NullableTransportEventAllOf) UnmarshalJSON(src []byte) error

func (*NullableTransportEventAllOf) Unset

func (v *NullableTransportEventAllOf) Unset()

type NullableTransportEventAllOf1

type NullableTransportEventAllOf1 struct {
	// contains filtered or unexported fields
}

func NewNullableTransportEventAllOf1

func NewNullableTransportEventAllOf1(val *TransportEventAllOf1) *NullableTransportEventAllOf1

func (NullableTransportEventAllOf1) Get

func (NullableTransportEventAllOf1) IsSet

func (NullableTransportEventAllOf1) MarshalJSON

func (v NullableTransportEventAllOf1) MarshalJSON() ([]byte, error)

func (*NullableTransportEventAllOf1) Set

func (*NullableTransportEventAllOf1) UnmarshalJSON

func (v *NullableTransportEventAllOf1) UnmarshalJSON(src []byte) error

func (*NullableTransportEventAllOf1) Unset

func (v *NullableTransportEventAllOf1) Unset()

type NullableVessel

type NullableVessel struct {
	// contains filtered or unexported fields
}

func NewNullableVessel

func NewNullableVessel(val *Vessel) *NullableVessel

func (NullableVessel) Get

func (v NullableVessel) Get() *Vessel

func (NullableVessel) IsSet

func (v NullableVessel) IsSet() bool

func (NullableVessel) MarshalJSON

func (v NullableVessel) MarshalJSON() ([]byte, error)

func (*NullableVessel) Set

func (v *NullableVessel) Set(val *Vessel)

func (*NullableVessel) UnmarshalJSON

func (v *NullableVessel) UnmarshalJSON(src []byte) error

func (*NullableVessel) Unset

func (v *NullableVessel) Unset()

type Seal

type Seal struct {
	// Identifies a seal affixed to the container.
	SealNumber string `json:"sealNumber"`
	// The source of the seal, namely who has affixed the seal. This attribute links to the Seal Source ID defined in the Seal Source reference data entity. * CAR (Carrier) * SHI (Shipper) * PHY (Phytosanitary) * VET (Veterinary) * CUS (Customs)
	SealSource *string `json:"sealSource,omitempty"`
	// The type of seal. This attribute links to the Seal Type ID defined in the Seal Type reference data entity. * KLP (Keyless padlock) * BLT (Bolt) * WIR (Wire)
	SealType string `json:"sealType"`
}

Seal Addresses the seal-related information associated with the shipment equipment. A seal is put on a shipment equipment once it is loaded. This seal is meant to stay on until the shipment equipment reaches its final destination.

func NewSeal

func NewSeal(sealNumber string, sealType string) *Seal

NewSeal instantiates a new Seal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSealWithDefaults

func NewSealWithDefaults() *Seal

NewSealWithDefaults instantiates a new Seal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Seal) GetSealNumber

func (o *Seal) GetSealNumber() string

GetSealNumber returns the SealNumber field value

func (*Seal) GetSealNumberOk

func (o *Seal) GetSealNumberOk() (*string, bool)

GetSealNumberOk returns a tuple with the SealNumber field value and a boolean to check if the value has been set.

func (*Seal) GetSealSource

func (o *Seal) GetSealSource() string

GetSealSource returns the SealSource field value if set, zero value otherwise.

func (*Seal) GetSealSourceOk

func (o *Seal) GetSealSourceOk() (*string, bool)

GetSealSourceOk returns a tuple with the SealSource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Seal) GetSealType

func (o *Seal) GetSealType() string

GetSealType returns the SealType field value

func (*Seal) GetSealTypeOk

func (o *Seal) GetSealTypeOk() (*string, bool)

GetSealTypeOk returns a tuple with the SealType field value and a boolean to check if the value has been set.

func (*Seal) HasSealSource

func (o *Seal) HasSealSource() bool

HasSealSource returns a boolean if a field has been set.

func (Seal) MarshalJSON

func (o Seal) MarshalJSON() ([]byte, error)

func (*Seal) SetSealNumber

func (o *Seal) SetSealNumber(v string)

SetSealNumber sets field value

func (*Seal) SetSealSource

func (o *Seal) SetSealSource(v string)

SetSealSource gets a reference to the given string and assigns it to the SealSource field.

func (*Seal) SetSealType

func (o *Seal) SetSealType(v string)

SetSealType sets field value

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type ShipmentEvent

type ShipmentEvent struct {
	// The unique identifier for the Equipment Event ID/Transport Event ID/Shipment Event ID.
	EventID   *string `json:"eventID,omitempty"`
	EventType string  `json:"eventType"`
	// The local date and time, where the event took place or when the event will take place, in ISO 8601 format. For Shipment Event, it is the same as eventCreatedDateTime in UTC timezone.
	EventDateTime string `json:"eventDateTime"`
	// The UTC timestamp of when the event was created.
	EventCreatedDateTime time.Time `json:"eventCreatedDateTime"`
	// Code for the event classifier, either PLN, ACT or EST. * PLN - Planned * ACT - Actual * EST - Estimated
	EventClassifierCode string `json:"eventClassifierCode"`
	// References provided by the shipper or freight forwarder at the time of booking or at the time of providing shipping instruction. Carriers share it back when providing track and trace event updates, some are also printed on the B/L. Customers can use these references to track shipments in their internal systems.
	References []EventReferencesInner `json:"references,omitempty"`
	// The status of the document in the process. Possible values are - RECE (Received) - DRFT (Drafted) - PENA (Pending Approval) - PENU (Pending Update) - REJE (Rejected) - APPR (Approved) - ISSU (Issued) - SURR (Surrendered) - SUBM (Submitted) - VOID (Void) - CONF (Confirmed) - REQS (Requested) - CMPL (Completed) - HOLD (On Hold) - RELS (Released)  Note: Version 1.1 replaces CONF (Confirmed) for RELS (Released) for documentTypeCode SRM (Shipment Release Message).
	ShipmentEventTypeCode string `json:"shipmentEventTypeCode"`
	// The code to identify the type of information documentID points to. Can be one of the following values * CBR (Carrier Booking Request Reference) * BKG (Booking) * SHI (Shipping Instruction) * SRM (Shipment Release Message) * TRD (Transport Document) * ARN (Arrival Notice) * VGM (Verified Gross Mass) * CAS (Cargo Survey) * CUS (Customs Inspection) * DGD (Dangerous Goods Declaration) * OOG (Out of Gauge)
	DocumentTypeCode string `json:"documentTypeCode"`
	// The ID of the object defined by the Shipment Information Type. In some cases this is a UUID; in other cases this is a string.
	DocumentID string `json:"documentID"`
	// Reason field in a Shipment event. This field can be used to explain why a specific event has been sent.
	Reason *string `json:"reason,omitempty"`
}

ShipmentEvent The shipment event entity is a specialization of the event entity to support specification of data that only applies to a shipment event.

func NewShipmentEvent

func NewShipmentEvent(eventType string, eventDateTime string, eventCreatedDateTime time.Time, eventClassifierCode string, shipmentEventTypeCode string, documentTypeCode string, documentID string) *ShipmentEvent

NewShipmentEvent instantiates a new ShipmentEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewShipmentEventWithDefaults

func NewShipmentEventWithDefaults() *ShipmentEvent

NewShipmentEventWithDefaults instantiates a new ShipmentEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ShipmentEvent) GetDocumentID

func (o *ShipmentEvent) GetDocumentID() string

GetDocumentID returns the DocumentID field value

func (*ShipmentEvent) GetDocumentIDOk

func (o *ShipmentEvent) GetDocumentIDOk() (*string, bool)

GetDocumentIDOk returns a tuple with the DocumentID field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetDocumentTypeCode

func (o *ShipmentEvent) GetDocumentTypeCode() string

GetDocumentTypeCode returns the DocumentTypeCode field value

func (*ShipmentEvent) GetDocumentTypeCodeOk

func (o *ShipmentEvent) GetDocumentTypeCodeOk() (*string, bool)

GetDocumentTypeCodeOk returns a tuple with the DocumentTypeCode field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetEventClassifierCode

func (o *ShipmentEvent) GetEventClassifierCode() string

GetEventClassifierCode returns the EventClassifierCode field value

func (*ShipmentEvent) GetEventClassifierCodeOk

func (o *ShipmentEvent) GetEventClassifierCodeOk() (*string, bool)

GetEventClassifierCodeOk returns a tuple with the EventClassifierCode field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetEventCreatedDateTime

func (o *ShipmentEvent) GetEventCreatedDateTime() time.Time

GetEventCreatedDateTime returns the EventCreatedDateTime field value

func (*ShipmentEvent) GetEventCreatedDateTimeOk

func (o *ShipmentEvent) GetEventCreatedDateTimeOk() (*time.Time, bool)

GetEventCreatedDateTimeOk returns a tuple with the EventCreatedDateTime field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetEventDateTime

func (o *ShipmentEvent) GetEventDateTime() string

GetEventDateTime returns the EventDateTime field value

func (*ShipmentEvent) GetEventDateTimeOk

func (o *ShipmentEvent) GetEventDateTimeOk() (*string, bool)

GetEventDateTimeOk returns a tuple with the EventDateTime field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetEventID

func (o *ShipmentEvent) GetEventID() string

GetEventID returns the EventID field value if set, zero value otherwise.

func (*ShipmentEvent) GetEventIDOk

func (o *ShipmentEvent) GetEventIDOk() (*string, bool)

GetEventIDOk returns a tuple with the EventID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ShipmentEvent) GetEventType

func (o *ShipmentEvent) GetEventType() string

GetEventType returns the EventType field value

func (*ShipmentEvent) GetEventTypeOk

func (o *ShipmentEvent) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.

func (*ShipmentEvent) GetReason

func (o *ShipmentEvent) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*ShipmentEvent) GetReasonOk

func (o *ShipmentEvent) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ShipmentEvent) GetReferences

func (o *ShipmentEvent) GetReferences() []EventReferencesInner

GetReferences returns the References field value if set, zero value otherwise.

func (*ShipmentEvent) GetReferencesOk

func (o *ShipmentEvent) GetReferencesOk() ([]EventReferencesInner, bool)

GetReferencesOk returns a tuple with the References field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ShipmentEvent) GetShipmentEventTypeCode

func (o *ShipmentEvent) GetShipmentEventTypeCode() string

GetShipmentEventTypeCode returns the ShipmentEventTypeCode field value

func (*ShipmentEvent) GetShipmentEventTypeCodeOk

func (o *ShipmentEvent) GetShipmentEventTypeCodeOk() (*string, bool)

GetShipmentEventTypeCodeOk returns a tuple with the ShipmentEventTypeCode field value and a boolean to check if the value has been set.

func (*ShipmentEvent) HasEventID

func (o *ShipmentEvent) HasEventID() bool

HasEventID returns a boolean if a field has been set.

func (*ShipmentEvent) HasReason

func (o *ShipmentEvent) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*ShipmentEvent) HasReferences

func (o *ShipmentEvent) HasReferences() bool

HasReferences returns a boolean if a field has been set.

func (ShipmentEvent) MarshalJSON

func (o ShipmentEvent) MarshalJSON() ([]byte, error)

func (*ShipmentEvent) SetDocumentID

func (o *ShipmentEvent) SetDocumentID(v string)

SetDocumentID sets field value

func (*ShipmentEvent) SetDocumentTypeCode

func (o *ShipmentEvent) SetDocumentTypeCode(v string)

SetDocumentTypeCode sets field value

func (*ShipmentEvent) SetEventClassifierCode

func (o *ShipmentEvent) SetEventClassifierCode(v string)

SetEventClassifierCode sets field value

func (*ShipmentEvent) SetEventCreatedDateTime

func (o *ShipmentEvent) SetEventCreatedDateTime(v time.Time)

SetEventCreatedDateTime sets field value

func (*ShipmentEvent) SetEventDateTime

func (o *ShipmentEvent) SetEventDateTime(v string)

SetEventDateTime sets field value

func (*ShipmentEvent) SetEventID

func (o *ShipmentEvent) SetEventID(v string)

SetEventID gets a reference to the given string and assigns it to the EventID field.

func (*ShipmentEvent) SetEventType

func (o *ShipmentEvent) SetEventType(v string)

SetEventType sets field value

func (*ShipmentEvent) SetReason

func (o *ShipmentEvent) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*ShipmentEvent) SetReferences

func (o *ShipmentEvent) SetReferences(v []EventReferencesInner)

SetReferences gets a reference to the given []EventReferencesInner and assigns it to the References field.

func (*ShipmentEvent) SetShipmentEventTypeCode

func (o *ShipmentEvent) SetShipmentEventTypeCode(v string)

SetShipmentEventTypeCode sets field value

type ShipmentEventAllOf

type ShipmentEventAllOf struct {
	EventType *string `json:"eventType,omitempty"`
	// The status of the document in the process. Possible values are - RECE (Received) - DRFT (Drafted) - PENA (Pending Approval) - PENU (Pending Update) - REJE (Rejected) - APPR (Approved) - ISSU (Issued) - SURR (Surrendered) - SUBM (Submitted) - VOID (Void) - CONF (Confirmed) - REQS (Requested) - CMPL (Completed) - HOLD (On Hold) - RELS (Released)  Note: Version 1.1 replaces CONF (Confirmed) for RELS (Released) for documentTypeCode SRM (Shipment Release Message).
	ShipmentEventTypeCode string `json:"shipmentEventTypeCode"`
	// The code to identify the type of information documentID points to. Can be one of the following values * CBR (Carrier Booking Request Reference) * BKG (Booking) * SHI (Shipping Instruction) * SRM (Shipment Release Message) * TRD (Transport Document) * ARN (Arrival Notice) * VGM (Verified Gross Mass) * CAS (Cargo Survey) * CUS (Customs Inspection) * DGD (Dangerous Goods Declaration) * OOG (Out of Gauge)
	DocumentTypeCode string `json:"documentTypeCode"`
	// The ID of the object defined by the Shipment Information Type. In some cases this is a UUID; in other cases this is a string.
	DocumentID string `json:"documentID"`
	// Reason field in a Shipment event. This field can be used to explain why a specific event has been sent.
	Reason *string `json:"reason,omitempty"`
}

ShipmentEventAllOf struct for ShipmentEventAllOf

func NewShipmentEventAllOf

func NewShipmentEventAllOf(shipmentEventTypeCode string, documentTypeCode string, documentID string) *ShipmentEventAllOf

NewShipmentEventAllOf instantiates a new ShipmentEventAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewShipmentEventAllOfWithDefaults

func NewShipmentEventAllOfWithDefaults() *ShipmentEventAllOf

NewShipmentEventAllOfWithDefaults instantiates a new ShipmentEventAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ShipmentEventAllOf) GetDocumentID

func (o *ShipmentEventAllOf) GetDocumentID() string

GetDocumentID returns the DocumentID field value

func (*ShipmentEventAllOf) GetDocumentIDOk

func (o *ShipmentEventAllOf) GetDocumentIDOk() (*string, bool)

GetDocumentIDOk returns a tuple with the DocumentID field value and a boolean to check if the value has been set.

func (*ShipmentEventAllOf) GetDocumentTypeCode

func (o *ShipmentEventAllOf) GetDocumentTypeCode() string

GetDocumentTypeCode returns the DocumentTypeCode field value

func (*ShipmentEventAllOf) GetDocumentTypeCodeOk

func (o *ShipmentEventAllOf) GetDocumentTypeCodeOk() (*string, bool)

GetDocumentTypeCodeOk returns a tuple with the DocumentTypeCode field value and a boolean to check if the value has been set.

func (*ShipmentEventAllOf) GetEventType

func (o *ShipmentEventAllOf) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*ShipmentEventAllOf) GetEventTypeOk

func (o *ShipmentEventAllOf) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ShipmentEventAllOf) GetReason

func (o *ShipmentEventAllOf) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*ShipmentEventAllOf) GetReasonOk

func (o *ShipmentEventAllOf) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ShipmentEventAllOf) GetShipmentEventTypeCode

func (o *ShipmentEventAllOf) GetShipmentEventTypeCode() string

GetShipmentEventTypeCode returns the ShipmentEventTypeCode field value

func (*ShipmentEventAllOf) GetShipmentEventTypeCodeOk

func (o *ShipmentEventAllOf) GetShipmentEventTypeCodeOk() (*string, bool)

GetShipmentEventTypeCodeOk returns a tuple with the ShipmentEventTypeCode field value and a boolean to check if the value has been set.

func (*ShipmentEventAllOf) HasEventType

func (o *ShipmentEventAllOf) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*ShipmentEventAllOf) HasReason

func (o *ShipmentEventAllOf) HasReason() bool

HasReason returns a boolean if a field has been set.

func (ShipmentEventAllOf) MarshalJSON

func (o ShipmentEventAllOf) MarshalJSON() ([]byte, error)

func (*ShipmentEventAllOf) SetDocumentID

func (o *ShipmentEventAllOf) SetDocumentID(v string)

SetDocumentID sets field value

func (*ShipmentEventAllOf) SetDocumentTypeCode

func (o *ShipmentEventAllOf) SetDocumentTypeCode(v string)

SetDocumentTypeCode sets field value

func (*ShipmentEventAllOf) SetEventType

func (o *ShipmentEventAllOf) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*ShipmentEventAllOf) SetReason

func (o *ShipmentEventAllOf) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*ShipmentEventAllOf) SetShipmentEventTypeCode

func (o *ShipmentEventAllOf) SetShipmentEventTypeCode(v string)

SetShipmentEventTypeCode sets field value

type TransportCall

type TransportCall struct {
	// The unique identifier for a transport call
	TransportCallID *string `json:"transportCallID,omitempty"`
	// The code of the service for which the schedule details are published.
	CarrierServiceCode *string `json:"carrierServiceCode,omitempty"`
	// \\*\\*\\*do not use\\*\\*\\* this field is replaced by `exportVoyageNumber` from Version 1.1 and will be removed by the API from next major version  The vessel operator-specific identifier of the Voyage.\\ The export voyage is returned when there are multiple voyages.
	// Deprecated
	CarrierVoyageNumber *string `json:"carrierVoyageNumber,omitempty"`
	// The vessel operator-specific identifier of the export Voyage.
	ExportVoyageNumber *string `json:"exportVoyageNumber,omitempty"`
	// The vessel operator-specific identifier of the import Voyage.
	ImportVoyageNumber *string `json:"importVoyageNumber,omitempty"`
	// Transport operator's key that uniquely identifies each individual call. This key is essential to distinguish between two separate calls at the same location within one voyage.
	TransportCallSequenceNumber *int32 `json:"transportCallSequenceNumber,omitempty"`
	// The UN Location code specifying where the place is located.
	UNLocationCode *string `json:"UNLocationCode,omitempty"`
	// The code used for identifying the specific facility. This code is not the UN Location Code.
	FacilityCode *string `json:"facilityCode,omitempty"`
	// The provider used for identifying the facility Code
	FacilityCodeListProvider *string `json:"facilityCodeListProvider,omitempty"`
	// A specialized version of the facilityCode to be used in TransportCalls. The code to identify the specific type of facility. * BOCR (Border crossing) * CLOC (Customer location) * COFS (Container freight station) * COYA (Deprecated - use OFFD intead) * OFFD (Off dock storage) * DEPO (Depot) * INTE (Inland terminal) * POTE (Port terminal) * RAMP (Ramp)
	FacilityTypeCode *string `json:"facilityTypeCode,omitempty"`
	// An alternative way to capture the facility when no standardized DCSA facility code can be found.
	OtherFacility *string `json:"otherFacility,omitempty"`
	// The code specifying the mode of transport.
	ModeOfTransport string    `json:"modeOfTransport"`
	Location        *Location `json:"location,omitempty"`
	Vessel          *Vessel   `json:"vessel,omitempty"`
}

TransportCall struct for TransportCall

func NewTransportCall

func NewTransportCall(modeOfTransport string) *TransportCall

NewTransportCall instantiates a new TransportCall object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportCallWithDefaults

func NewTransportCallWithDefaults() *TransportCall

NewTransportCallWithDefaults instantiates a new TransportCall object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportCall) GetCarrierServiceCode

func (o *TransportCall) GetCarrierServiceCode() string

GetCarrierServiceCode returns the CarrierServiceCode field value if set, zero value otherwise.

func (*TransportCall) GetCarrierServiceCodeOk

func (o *TransportCall) GetCarrierServiceCodeOk() (*string, bool)

GetCarrierServiceCodeOk returns a tuple with the CarrierServiceCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetCarrierVoyageNumber

func (o *TransportCall) GetCarrierVoyageNumber() string

GetCarrierVoyageNumber returns the CarrierVoyageNumber field value if set, zero value otherwise. Deprecated

func (*TransportCall) GetCarrierVoyageNumberOk

func (o *TransportCall) GetCarrierVoyageNumberOk() (*string, bool)

GetCarrierVoyageNumberOk returns a tuple with the CarrierVoyageNumber field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*TransportCall) GetExportVoyageNumber

func (o *TransportCall) GetExportVoyageNumber() string

GetExportVoyageNumber returns the ExportVoyageNumber field value if set, zero value otherwise.

func (*TransportCall) GetExportVoyageNumberOk

func (o *TransportCall) GetExportVoyageNumberOk() (*string, bool)

GetExportVoyageNumberOk returns a tuple with the ExportVoyageNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetFacilityCode

func (o *TransportCall) GetFacilityCode() string

GetFacilityCode returns the FacilityCode field value if set, zero value otherwise.

func (*TransportCall) GetFacilityCodeListProvider

func (o *TransportCall) GetFacilityCodeListProvider() string

GetFacilityCodeListProvider returns the FacilityCodeListProvider field value if set, zero value otherwise.

func (*TransportCall) GetFacilityCodeListProviderOk

func (o *TransportCall) GetFacilityCodeListProviderOk() (*string, bool)

GetFacilityCodeListProviderOk returns a tuple with the FacilityCodeListProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetFacilityCodeOk

func (o *TransportCall) GetFacilityCodeOk() (*string, bool)

GetFacilityCodeOk returns a tuple with the FacilityCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetFacilityTypeCode

func (o *TransportCall) GetFacilityTypeCode() string

GetFacilityTypeCode returns the FacilityTypeCode field value if set, zero value otherwise.

func (*TransportCall) GetFacilityTypeCodeOk

func (o *TransportCall) GetFacilityTypeCodeOk() (*string, bool)

GetFacilityTypeCodeOk returns a tuple with the FacilityTypeCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetImportVoyageNumber

func (o *TransportCall) GetImportVoyageNumber() string

GetImportVoyageNumber returns the ImportVoyageNumber field value if set, zero value otherwise.

func (*TransportCall) GetImportVoyageNumberOk

func (o *TransportCall) GetImportVoyageNumberOk() (*string, bool)

GetImportVoyageNumberOk returns a tuple with the ImportVoyageNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetLocation

func (o *TransportCall) GetLocation() Location

GetLocation returns the Location field value if set, zero value otherwise.

func (*TransportCall) GetLocationOk

func (o *TransportCall) GetLocationOk() (*Location, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetModeOfTransport

func (o *TransportCall) GetModeOfTransport() string

GetModeOfTransport returns the ModeOfTransport field value

func (*TransportCall) GetModeOfTransportOk

func (o *TransportCall) GetModeOfTransportOk() (*string, bool)

GetModeOfTransportOk returns a tuple with the ModeOfTransport field value and a boolean to check if the value has been set.

func (*TransportCall) GetOtherFacility

func (o *TransportCall) GetOtherFacility() string

GetOtherFacility returns the OtherFacility field value if set, zero value otherwise.

func (*TransportCall) GetOtherFacilityOk

func (o *TransportCall) GetOtherFacilityOk() (*string, bool)

GetOtherFacilityOk returns a tuple with the OtherFacility field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetTransportCallID

func (o *TransportCall) GetTransportCallID() string

GetTransportCallID returns the TransportCallID field value if set, zero value otherwise.

func (*TransportCall) GetTransportCallIDOk

func (o *TransportCall) GetTransportCallIDOk() (*string, bool)

GetTransportCallIDOk returns a tuple with the TransportCallID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetTransportCallSequenceNumber

func (o *TransportCall) GetTransportCallSequenceNumber() int32

GetTransportCallSequenceNumber returns the TransportCallSequenceNumber field value if set, zero value otherwise.

func (*TransportCall) GetTransportCallSequenceNumberOk

func (o *TransportCall) GetTransportCallSequenceNumberOk() (*int32, bool)

GetTransportCallSequenceNumberOk returns a tuple with the TransportCallSequenceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetUNLocationCode

func (o *TransportCall) GetUNLocationCode() string

GetUNLocationCode returns the UNLocationCode field value if set, zero value otherwise.

func (*TransportCall) GetUNLocationCodeOk

func (o *TransportCall) GetUNLocationCodeOk() (*string, bool)

GetUNLocationCodeOk returns a tuple with the UNLocationCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) GetVessel

func (o *TransportCall) GetVessel() Vessel

GetVessel returns the Vessel field value if set, zero value otherwise.

func (*TransportCall) GetVesselOk

func (o *TransportCall) GetVesselOk() (*Vessel, bool)

GetVesselOk returns a tuple with the Vessel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportCall) HasCarrierServiceCode

func (o *TransportCall) HasCarrierServiceCode() bool

HasCarrierServiceCode returns a boolean if a field has been set.

func (*TransportCall) HasCarrierVoyageNumber

func (o *TransportCall) HasCarrierVoyageNumber() bool

HasCarrierVoyageNumber returns a boolean if a field has been set.

func (*TransportCall) HasExportVoyageNumber

func (o *TransportCall) HasExportVoyageNumber() bool

HasExportVoyageNumber returns a boolean if a field has been set.

func (*TransportCall) HasFacilityCode

func (o *TransportCall) HasFacilityCode() bool

HasFacilityCode returns a boolean if a field has been set.

func (*TransportCall) HasFacilityCodeListProvider

func (o *TransportCall) HasFacilityCodeListProvider() bool

HasFacilityCodeListProvider returns a boolean if a field has been set.

func (*TransportCall) HasFacilityTypeCode

func (o *TransportCall) HasFacilityTypeCode() bool

HasFacilityTypeCode returns a boolean if a field has been set.

func (*TransportCall) HasImportVoyageNumber

func (o *TransportCall) HasImportVoyageNumber() bool

HasImportVoyageNumber returns a boolean if a field has been set.

func (*TransportCall) HasLocation

func (o *TransportCall) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*TransportCall) HasOtherFacility

func (o *TransportCall) HasOtherFacility() bool

HasOtherFacility returns a boolean if a field has been set.

func (*TransportCall) HasTransportCallID

func (o *TransportCall) HasTransportCallID() bool

HasTransportCallID returns a boolean if a field has been set.

func (*TransportCall) HasTransportCallSequenceNumber

func (o *TransportCall) HasTransportCallSequenceNumber() bool

HasTransportCallSequenceNumber returns a boolean if a field has been set.

func (*TransportCall) HasUNLocationCode

func (o *TransportCall) HasUNLocationCode() bool

HasUNLocationCode returns a boolean if a field has been set.

func (*TransportCall) HasVessel

func (o *TransportCall) HasVessel() bool

HasVessel returns a boolean if a field has been set.

func (TransportCall) MarshalJSON

func (o TransportCall) MarshalJSON() ([]byte, error)

func (*TransportCall) SetCarrierServiceCode

func (o *TransportCall) SetCarrierServiceCode(v string)

SetCarrierServiceCode gets a reference to the given string and assigns it to the CarrierServiceCode field.

func (*TransportCall) SetCarrierVoyageNumber

func (o *TransportCall) SetCarrierVoyageNumber(v string)

SetCarrierVoyageNumber gets a reference to the given string and assigns it to the CarrierVoyageNumber field. Deprecated

func (*TransportCall) SetExportVoyageNumber

func (o *TransportCall) SetExportVoyageNumber(v string)

SetExportVoyageNumber gets a reference to the given string and assigns it to the ExportVoyageNumber field.

func (*TransportCall) SetFacilityCode

func (o *TransportCall) SetFacilityCode(v string)

SetFacilityCode gets a reference to the given string and assigns it to the FacilityCode field.

func (*TransportCall) SetFacilityCodeListProvider

func (o *TransportCall) SetFacilityCodeListProvider(v string)

SetFacilityCodeListProvider gets a reference to the given string and assigns it to the FacilityCodeListProvider field.

func (*TransportCall) SetFacilityTypeCode

func (o *TransportCall) SetFacilityTypeCode(v string)

SetFacilityTypeCode gets a reference to the given string and assigns it to the FacilityTypeCode field.

func (*TransportCall) SetImportVoyageNumber

func (o *TransportCall) SetImportVoyageNumber(v string)

SetImportVoyageNumber gets a reference to the given string and assigns it to the ImportVoyageNumber field.

func (*TransportCall) SetLocation

func (o *TransportCall) SetLocation(v Location)

SetLocation gets a reference to the given Location and assigns it to the Location field.

func (*TransportCall) SetModeOfTransport

func (o *TransportCall) SetModeOfTransport(v string)

SetModeOfTransport sets field value

func (*TransportCall) SetOtherFacility

func (o *TransportCall) SetOtherFacility(v string)

SetOtherFacility gets a reference to the given string and assigns it to the OtherFacility field.

func (*TransportCall) SetTransportCallID

func (o *TransportCall) SetTransportCallID(v string)

SetTransportCallID gets a reference to the given string and assigns it to the TransportCallID field.

func (*TransportCall) SetTransportCallSequenceNumber

func (o *TransportCall) SetTransportCallSequenceNumber(v int32)

SetTransportCallSequenceNumber gets a reference to the given int32 and assigns it to the TransportCallSequenceNumber field.

func (*TransportCall) SetUNLocationCode

func (o *TransportCall) SetUNLocationCode(v string)

SetUNLocationCode gets a reference to the given string and assigns it to the UNLocationCode field.

func (*TransportCall) SetVessel

func (o *TransportCall) SetVessel(v Vessel)

SetVessel gets a reference to the given Vessel and assigns it to the Vessel field.

type TransportEvent

type TransportEvent struct {
	// The unique identifier for the Equipment Event ID/Transport Event ID/Shipment Event ID.
	EventID   *string `json:"eventID,omitempty"`
	EventType string  `json:"eventType"`
	// The local date and time, where the event took place or when the event will take place, in ISO 8601 format. For Shipment Event, it is the same as eventCreatedDateTime in UTC timezone.
	EventDateTime string `json:"eventDateTime"`
	// The UTC timestamp of when the event was created.
	EventCreatedDateTime time.Time `json:"eventCreatedDateTime"`
	// Code for the event classifier, either PLN, ACT or EST. * PLN - Planned * ACT - Actual * EST - Estimated
	EventClassifierCode string `json:"eventClassifierCode"`
	// References provided by the shipper or freight forwarder at the time of booking or at the time of providing shipping instruction. Carriers share it back when providing track and trace event updates, some are also printed on the B/L. Customers can use these references to track shipments in their internal systems.
	References []EventReferencesInner `json:"references,omitempty"`
	// Identifier for type of Transport event - ARRI (Arrived) - DEPA (Departed)
	TransportEventTypeCode *string `json:"transportEventTypeCode,omitempty"`
	// Reason code for the delay. The SMDG-Delay-Reason-Codes are used for this attribute. The code list can be found at http://www.smdg.org/smdg-code-lists/
	DelayReasonCode *string `json:"delayReasonCode,omitempty"`
	// Free text information provided by the vessel operator regarding the reasons for the change in schedule and/or plans to mitigate schedule slippage.
	ChangeRemark *string `json:"changeRemark,omitempty"`
	// An optional list of key-value (documentReferenceType-documentReferenceValue) pairs representing links to objects relevant to the event. The documentReferenceType-field is used to describe where the documentReferenceValue-field is pointing to.
	DocumentReferences []DocumentReferencesInner `json:"documentReferences,omitempty"`
	TransportCall      TransportCall             `json:"transportCall"`
}

TransportEvent The transport event entity is a specialization of the event entity to support specification of data that only applies to a transport event.

func NewTransportEvent

func NewTransportEvent(eventType string, eventDateTime string, eventCreatedDateTime time.Time, eventClassifierCode string, transportCall TransportCall) *TransportEvent

NewTransportEvent instantiates a new TransportEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportEventWithDefaults

func NewTransportEventWithDefaults() *TransportEvent

NewTransportEventWithDefaults instantiates a new TransportEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportEvent) GetChangeRemark

func (o *TransportEvent) GetChangeRemark() string

GetChangeRemark returns the ChangeRemark field value if set, zero value otherwise.

func (*TransportEvent) GetChangeRemarkOk

func (o *TransportEvent) GetChangeRemarkOk() (*string, bool)

GetChangeRemarkOk returns a tuple with the ChangeRemark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) GetDelayReasonCode

func (o *TransportEvent) GetDelayReasonCode() string

GetDelayReasonCode returns the DelayReasonCode field value if set, zero value otherwise.

func (*TransportEvent) GetDelayReasonCodeOk

func (o *TransportEvent) GetDelayReasonCodeOk() (*string, bool)

GetDelayReasonCodeOk returns a tuple with the DelayReasonCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) GetDocumentReferences

func (o *TransportEvent) GetDocumentReferences() []DocumentReferencesInner

GetDocumentReferences returns the DocumentReferences field value if set, zero value otherwise.

func (*TransportEvent) GetDocumentReferencesOk

func (o *TransportEvent) GetDocumentReferencesOk() ([]DocumentReferencesInner, bool)

GetDocumentReferencesOk returns a tuple with the DocumentReferences field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) GetEventClassifierCode

func (o *TransportEvent) GetEventClassifierCode() string

GetEventClassifierCode returns the EventClassifierCode field value

func (*TransportEvent) GetEventClassifierCodeOk

func (o *TransportEvent) GetEventClassifierCodeOk() (*string, bool)

GetEventClassifierCodeOk returns a tuple with the EventClassifierCode field value and a boolean to check if the value has been set.

func (*TransportEvent) GetEventCreatedDateTime

func (o *TransportEvent) GetEventCreatedDateTime() time.Time

GetEventCreatedDateTime returns the EventCreatedDateTime field value

func (*TransportEvent) GetEventCreatedDateTimeOk

func (o *TransportEvent) GetEventCreatedDateTimeOk() (*time.Time, bool)

GetEventCreatedDateTimeOk returns a tuple with the EventCreatedDateTime field value and a boolean to check if the value has been set.

func (*TransportEvent) GetEventDateTime

func (o *TransportEvent) GetEventDateTime() string

GetEventDateTime returns the EventDateTime field value

func (*TransportEvent) GetEventDateTimeOk

func (o *TransportEvent) GetEventDateTimeOk() (*string, bool)

GetEventDateTimeOk returns a tuple with the EventDateTime field value and a boolean to check if the value has been set.

func (*TransportEvent) GetEventID

func (o *TransportEvent) GetEventID() string

GetEventID returns the EventID field value if set, zero value otherwise.

func (*TransportEvent) GetEventIDOk

func (o *TransportEvent) GetEventIDOk() (*string, bool)

GetEventIDOk returns a tuple with the EventID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) GetEventType

func (o *TransportEvent) GetEventType() string

GetEventType returns the EventType field value

func (*TransportEvent) GetEventTypeOk

func (o *TransportEvent) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value and a boolean to check if the value has been set.

func (*TransportEvent) GetReferences

func (o *TransportEvent) GetReferences() []EventReferencesInner

GetReferences returns the References field value if set, zero value otherwise.

func (*TransportEvent) GetReferencesOk

func (o *TransportEvent) GetReferencesOk() ([]EventReferencesInner, bool)

GetReferencesOk returns a tuple with the References field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) GetTransportCall

func (o *TransportEvent) GetTransportCall() TransportCall

GetTransportCall returns the TransportCall field value

func (*TransportEvent) GetTransportCallOk

func (o *TransportEvent) GetTransportCallOk() (*TransportCall, bool)

GetTransportCallOk returns a tuple with the TransportCall field value and a boolean to check if the value has been set.

func (*TransportEvent) GetTransportEventTypeCode

func (o *TransportEvent) GetTransportEventTypeCode() string

GetTransportEventTypeCode returns the TransportEventTypeCode field value if set, zero value otherwise.

func (*TransportEvent) GetTransportEventTypeCodeOk

func (o *TransportEvent) GetTransportEventTypeCodeOk() (*string, bool)

GetTransportEventTypeCodeOk returns a tuple with the TransportEventTypeCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEvent) HasChangeRemark

func (o *TransportEvent) HasChangeRemark() bool

HasChangeRemark returns a boolean if a field has been set.

func (*TransportEvent) HasDelayReasonCode

func (o *TransportEvent) HasDelayReasonCode() bool

HasDelayReasonCode returns a boolean if a field has been set.

func (*TransportEvent) HasDocumentReferences

func (o *TransportEvent) HasDocumentReferences() bool

HasDocumentReferences returns a boolean if a field has been set.

func (*TransportEvent) HasEventID

func (o *TransportEvent) HasEventID() bool

HasEventID returns a boolean if a field has been set.

func (*TransportEvent) HasReferences

func (o *TransportEvent) HasReferences() bool

HasReferences returns a boolean if a field has been set.

func (*TransportEvent) HasTransportEventTypeCode

func (o *TransportEvent) HasTransportEventTypeCode() bool

HasTransportEventTypeCode returns a boolean if a field has been set.

func (TransportEvent) MarshalJSON

func (o TransportEvent) MarshalJSON() ([]byte, error)

func (*TransportEvent) SetChangeRemark

func (o *TransportEvent) SetChangeRemark(v string)

SetChangeRemark gets a reference to the given string and assigns it to the ChangeRemark field.

func (*TransportEvent) SetDelayReasonCode

func (o *TransportEvent) SetDelayReasonCode(v string)

SetDelayReasonCode gets a reference to the given string and assigns it to the DelayReasonCode field.

func (*TransportEvent) SetDocumentReferences

func (o *TransportEvent) SetDocumentReferences(v []DocumentReferencesInner)

SetDocumentReferences gets a reference to the given []DocumentReferencesInner and assigns it to the DocumentReferences field.

func (*TransportEvent) SetEventClassifierCode

func (o *TransportEvent) SetEventClassifierCode(v string)

SetEventClassifierCode sets field value

func (*TransportEvent) SetEventCreatedDateTime

func (o *TransportEvent) SetEventCreatedDateTime(v time.Time)

SetEventCreatedDateTime sets field value

func (*TransportEvent) SetEventDateTime

func (o *TransportEvent) SetEventDateTime(v string)

SetEventDateTime sets field value

func (*TransportEvent) SetEventID

func (o *TransportEvent) SetEventID(v string)

SetEventID gets a reference to the given string and assigns it to the EventID field.

func (*TransportEvent) SetEventType

func (o *TransportEvent) SetEventType(v string)

SetEventType sets field value

func (*TransportEvent) SetReferences

func (o *TransportEvent) SetReferences(v []EventReferencesInner)

SetReferences gets a reference to the given []EventReferencesInner and assigns it to the References field.

func (*TransportEvent) SetTransportCall

func (o *TransportEvent) SetTransportCall(v TransportCall)

SetTransportCall sets field value

func (*TransportEvent) SetTransportEventTypeCode

func (o *TransportEvent) SetTransportEventTypeCode(v string)

SetTransportEventTypeCode gets a reference to the given string and assigns it to the TransportEventTypeCode field.

type TransportEventAllOf

type TransportEventAllOf struct {
	EventType *string `json:"eventType,omitempty"`
	// Identifier for type of Transport event - ARRI (Arrived) - DEPA (Departed)
	TransportEventTypeCode *string `json:"transportEventTypeCode,omitempty"`
	// Reason code for the delay. The SMDG-Delay-Reason-Codes are used for this attribute. The code list can be found at http://www.smdg.org/smdg-code-lists/
	DelayReasonCode *string `json:"delayReasonCode,omitempty"`
	// Free text information provided by the vessel operator regarding the reasons for the change in schedule and/or plans to mitigate schedule slippage.
	ChangeRemark *string `json:"changeRemark,omitempty"`
	// An optional list of key-value (documentReferenceType-documentReferenceValue) pairs representing links to objects relevant to the event. The documentReferenceType-field is used to describe where the documentReferenceValue-field is pointing to.
	DocumentReferences []DocumentReferencesInner `json:"documentReferences,omitempty"`
}

TransportEventAllOf struct for TransportEventAllOf

func NewTransportEventAllOf

func NewTransportEventAllOf() *TransportEventAllOf

NewTransportEventAllOf instantiates a new TransportEventAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportEventAllOfWithDefaults

func NewTransportEventAllOfWithDefaults() *TransportEventAllOf

NewTransportEventAllOfWithDefaults instantiates a new TransportEventAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportEventAllOf) GetChangeRemark

func (o *TransportEventAllOf) GetChangeRemark() string

GetChangeRemark returns the ChangeRemark field value if set, zero value otherwise.

func (*TransportEventAllOf) GetChangeRemarkOk

func (o *TransportEventAllOf) GetChangeRemarkOk() (*string, bool)

GetChangeRemarkOk returns a tuple with the ChangeRemark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEventAllOf) GetDelayReasonCode

func (o *TransportEventAllOf) GetDelayReasonCode() string

GetDelayReasonCode returns the DelayReasonCode field value if set, zero value otherwise.

func (*TransportEventAllOf) GetDelayReasonCodeOk

func (o *TransportEventAllOf) GetDelayReasonCodeOk() (*string, bool)

GetDelayReasonCodeOk returns a tuple with the DelayReasonCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEventAllOf) GetDocumentReferences

func (o *TransportEventAllOf) GetDocumentReferences() []DocumentReferencesInner

GetDocumentReferences returns the DocumentReferences field value if set, zero value otherwise.

func (*TransportEventAllOf) GetDocumentReferencesOk

func (o *TransportEventAllOf) GetDocumentReferencesOk() ([]DocumentReferencesInner, bool)

GetDocumentReferencesOk returns a tuple with the DocumentReferences field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEventAllOf) GetEventType

func (o *TransportEventAllOf) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*TransportEventAllOf) GetEventTypeOk

func (o *TransportEventAllOf) GetEventTypeOk() (*string, bool)

GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEventAllOf) GetTransportEventTypeCode

func (o *TransportEventAllOf) GetTransportEventTypeCode() string

GetTransportEventTypeCode returns the TransportEventTypeCode field value if set, zero value otherwise.

func (*TransportEventAllOf) GetTransportEventTypeCodeOk

func (o *TransportEventAllOf) GetTransportEventTypeCodeOk() (*string, bool)

GetTransportEventTypeCodeOk returns a tuple with the TransportEventTypeCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportEventAllOf) HasChangeRemark

func (o *TransportEventAllOf) HasChangeRemark() bool

HasChangeRemark returns a boolean if a field has been set.

func (*TransportEventAllOf) HasDelayReasonCode

func (o *TransportEventAllOf) HasDelayReasonCode() bool

HasDelayReasonCode returns a boolean if a field has been set.

func (*TransportEventAllOf) HasDocumentReferences

func (o *TransportEventAllOf) HasDocumentReferences() bool

HasDocumentReferences returns a boolean if a field has been set.

func (*TransportEventAllOf) HasEventType

func (o *TransportEventAllOf) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*TransportEventAllOf) HasTransportEventTypeCode

func (o *TransportEventAllOf) HasTransportEventTypeCode() bool

HasTransportEventTypeCode returns a boolean if a field has been set.

func (TransportEventAllOf) MarshalJSON

func (o TransportEventAllOf) MarshalJSON() ([]byte, error)

func (*TransportEventAllOf) SetChangeRemark

func (o *TransportEventAllOf) SetChangeRemark(v string)

SetChangeRemark gets a reference to the given string and assigns it to the ChangeRemark field.

func (*TransportEventAllOf) SetDelayReasonCode

func (o *TransportEventAllOf) SetDelayReasonCode(v string)

SetDelayReasonCode gets a reference to the given string and assigns it to the DelayReasonCode field.

func (*TransportEventAllOf) SetDocumentReferences

func (o *TransportEventAllOf) SetDocumentReferences(v []DocumentReferencesInner)

SetDocumentReferences gets a reference to the given []DocumentReferencesInner and assigns it to the DocumentReferences field.

func (*TransportEventAllOf) SetEventType

func (o *TransportEventAllOf) SetEventType(v string)

SetEventType gets a reference to the given string and assigns it to the EventType field.

func (*TransportEventAllOf) SetTransportEventTypeCode

func (o *TransportEventAllOf) SetTransportEventTypeCode(v string)

SetTransportEventTypeCode gets a reference to the given string and assigns it to the TransportEventTypeCode field.

type TransportEventAllOf1

type TransportEventAllOf1 struct {
	TransportCall TransportCall `json:"transportCall"`
}

TransportEventAllOf1 struct for TransportEventAllOf1

func NewTransportEventAllOf1

func NewTransportEventAllOf1(transportCall TransportCall) *TransportEventAllOf1

NewTransportEventAllOf1 instantiates a new TransportEventAllOf1 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportEventAllOf1WithDefaults

func NewTransportEventAllOf1WithDefaults() *TransportEventAllOf1

NewTransportEventAllOf1WithDefaults instantiates a new TransportEventAllOf1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportEventAllOf1) GetTransportCall

func (o *TransportEventAllOf1) GetTransportCall() TransportCall

GetTransportCall returns the TransportCall field value

func (*TransportEventAllOf1) GetTransportCallOk

func (o *TransportEventAllOf1) GetTransportCallOk() (*TransportCall, bool)

GetTransportCallOk returns a tuple with the TransportCall field value and a boolean to check if the value has been set.

func (TransportEventAllOf1) MarshalJSON

func (o TransportEventAllOf1) MarshalJSON() ([]byte, error)

func (*TransportEventAllOf1) SetTransportCall

func (o *TransportEventAllOf1) SetTransportCall(v TransportCall)

SetTransportCall sets field value

type Vessel

type Vessel struct {
	// The unique reference for a registered Vessel. The reference is the International Maritime Organisation (IMO) number, also sometimes known as the Lloyd's register code, which does not change during the lifetime of the vessel
	VesselIMONumber string `json:"vesselIMONumber"`
	// The name of the Vessel given by the Vessel Operator and registered with IMO.
	VesselName *string `json:"vesselName,omitempty"`
	// The flag of the nation whose laws the vessel is registered under. This is the ISO 3166 two-letter country code
	VesselFlag *string `json:"vesselFlag,omitempty"`
	// A unique alphanumeric identity that belongs to the vessel and is assigned by the International Telecommunication Union (ITU). It consists of a three letter alphanumeric prefix that indicates nationality, followed by one to four characters to identify the individual vessel. For instance, vessels registered under Denmark are assigned the prefix ranges 5PA-5QZ, OUAOZZ, and XPA-XPZ. The Call Sign changes whenever a vessel changes its flag.
	VesselCallSignNumber *string `json:"vesselCallSignNumber,omitempty"`
	// The carrier who is in charge of the vessel operation based on either the SMDG or SCAC code lists
	VesselOperatorCarrierCode *string `json:"vesselOperatorCarrierCode,omitempty"`
	// Identifies the code list provider used for the operator and partner carrierCodes.
	VesselOperatorCarrierCodeListProvider *string `json:"vesselOperatorCarrierCodeListProvider,omitempty"`
}

Vessel struct for Vessel

func NewVessel

func NewVessel(vesselIMONumber string) *Vessel

NewVessel instantiates a new Vessel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVesselWithDefaults

func NewVesselWithDefaults() *Vessel

NewVesselWithDefaults instantiates a new Vessel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Vessel) GetVesselCallSignNumber

func (o *Vessel) GetVesselCallSignNumber() string

GetVesselCallSignNumber returns the VesselCallSignNumber field value if set, zero value otherwise.

func (*Vessel) GetVesselCallSignNumberOk

func (o *Vessel) GetVesselCallSignNumberOk() (*string, bool)

GetVesselCallSignNumberOk returns a tuple with the VesselCallSignNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vessel) GetVesselFlag

func (o *Vessel) GetVesselFlag() string

GetVesselFlag returns the VesselFlag field value if set, zero value otherwise.

func (*Vessel) GetVesselFlagOk

func (o *Vessel) GetVesselFlagOk() (*string, bool)

GetVesselFlagOk returns a tuple with the VesselFlag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vessel) GetVesselIMONumber

func (o *Vessel) GetVesselIMONumber() string

GetVesselIMONumber returns the VesselIMONumber field value

func (*Vessel) GetVesselIMONumberOk

func (o *Vessel) GetVesselIMONumberOk() (*string, bool)

GetVesselIMONumberOk returns a tuple with the VesselIMONumber field value and a boolean to check if the value has been set.

func (*Vessel) GetVesselName

func (o *Vessel) GetVesselName() string

GetVesselName returns the VesselName field value if set, zero value otherwise.

func (*Vessel) GetVesselNameOk

func (o *Vessel) GetVesselNameOk() (*string, bool)

GetVesselNameOk returns a tuple with the VesselName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vessel) GetVesselOperatorCarrierCode

func (o *Vessel) GetVesselOperatorCarrierCode() string

GetVesselOperatorCarrierCode returns the VesselOperatorCarrierCode field value if set, zero value otherwise.

func (*Vessel) GetVesselOperatorCarrierCodeListProvider

func (o *Vessel) GetVesselOperatorCarrierCodeListProvider() string

GetVesselOperatorCarrierCodeListProvider returns the VesselOperatorCarrierCodeListProvider field value if set, zero value otherwise.

func (*Vessel) GetVesselOperatorCarrierCodeListProviderOk

func (o *Vessel) GetVesselOperatorCarrierCodeListProviderOk() (*string, bool)

GetVesselOperatorCarrierCodeListProviderOk returns a tuple with the VesselOperatorCarrierCodeListProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vessel) GetVesselOperatorCarrierCodeOk

func (o *Vessel) GetVesselOperatorCarrierCodeOk() (*string, bool)

GetVesselOperatorCarrierCodeOk returns a tuple with the VesselOperatorCarrierCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vessel) HasVesselCallSignNumber

func (o *Vessel) HasVesselCallSignNumber() bool

HasVesselCallSignNumber returns a boolean if a field has been set.

func (*Vessel) HasVesselFlag

func (o *Vessel) HasVesselFlag() bool

HasVesselFlag returns a boolean if a field has been set.

func (*Vessel) HasVesselName

func (o *Vessel) HasVesselName() bool

HasVesselName returns a boolean if a field has been set.

func (*Vessel) HasVesselOperatorCarrierCode

func (o *Vessel) HasVesselOperatorCarrierCode() bool

HasVesselOperatorCarrierCode returns a boolean if a field has been set.

func (*Vessel) HasVesselOperatorCarrierCodeListProvider

func (o *Vessel) HasVesselOperatorCarrierCodeListProvider() bool

HasVesselOperatorCarrierCodeListProvider returns a boolean if a field has been set.

func (Vessel) MarshalJSON

func (o Vessel) MarshalJSON() ([]byte, error)

func (*Vessel) SetVesselCallSignNumber

func (o *Vessel) SetVesselCallSignNumber(v string)

SetVesselCallSignNumber gets a reference to the given string and assigns it to the VesselCallSignNumber field.

func (*Vessel) SetVesselFlag

func (o *Vessel) SetVesselFlag(v string)

SetVesselFlag gets a reference to the given string and assigns it to the VesselFlag field.

func (*Vessel) SetVesselIMONumber

func (o *Vessel) SetVesselIMONumber(v string)

SetVesselIMONumber sets field value

func (*Vessel) SetVesselName

func (o *Vessel) SetVesselName(v string)

SetVesselName gets a reference to the given string and assigns it to the VesselName field.

func (*Vessel) SetVesselOperatorCarrierCode

func (o *Vessel) SetVesselOperatorCarrierCode(v string)

SetVesselOperatorCarrierCode gets a reference to the given string and assigns it to the VesselOperatorCarrierCode field.

func (*Vessel) SetVesselOperatorCarrierCodeListProvider

func (o *Vessel) SetVesselOperatorCarrierCodeListProvider(v string)

SetVesselOperatorCarrierCodeListProvider gets a reference to the given string and assigns it to the VesselOperatorCarrierCodeListProvider field.

Jump to

Keyboard shortcuts

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