Versions in this module Expand all Collapse all v0 v0.1.0 Aug 15, 2024 Changes in this version + type Alert struct + Code string + Description string + type BillShipper struct + AccountNumber string + CreditCard *CreditCard + type Client struct + func New(options ...OptionFunction) *Client + func (c *Client) CreateShipment(ctx context.Context, shipmentRequest ShipmentRequest) (*ShipmentResponse, error) + func (c *Client) VoidShipment(ctx context.Context, shipmentIdentificationNumber string) (*VoidShipmentResponse, error) + type CreditCard struct + ExpirationDate string + Number string + SecurityCode string + Type string + type DimWeight struct + UnitOfMeasurement DimWeightUnitOfMeasurement + Weight string + type DimWeightUnitOfMeasurement struct + Code string + Description string + type Dimensions struct + Height string + Length string + UnitOfMeasurement DimensionsUnitOfMeasurement + Width string + type DimensionsUnitOfMeasurement struct + Code string + Description string + type EMail struct + CommercialInvoiceRemovalIndicator string + DropoffAtUPSFacilityIndicator string + EMailAddresses []string + EPRAReleaseCode string + ExchangeForwardIndicator string + FromEMailAddress string + FromName string + HoldForPickupIndicator string + ImportControlIndicator string + LiftGateForDeliveryIndicator string + LiftGateForPickUpIndicator string + Memo string + ReturnOfDocumentIndicator string + SDLShipmentIndicator string + UndeliverableEMailAddress string + type Environment string + const Production + const Testing + type Error struct + Code string + Message string + type ErrorResponse struct + Errors []Error + func (e ErrorResponse) Error() string + type FRSPaymentInformation struct + AccountNumber string + Address *FRSPaymentInformationAddress + Type FRSPaymentInformationType + type FRSPaymentInformationAddress struct + CountryCode string + PostalCode string + type FRSPaymentInformationType struct + Code string + Description string + type ImageFormat struct + Code string + Description string + type Instruction struct + Code string + Description string + type LabelImageFormat struct + Code string + Description string + type LabelSpecification struct + CharacterSet string + HTTPUserAgent string + Instruction *Instruction + LabelImageFormat LabelImageFormat + LabelStockSize LabelStockSize + type LabelStockSize struct + Height string + Width string + type Notification struct + EMail EMail + NotificationCode string + type OAuthToken struct + AccessToken string + ClientID string + ExpiresIn string + IssuedAt string + Status string + TokenType string + type OptionFunction func(*Client) + func WithAccessLicenseNumber(accessLicenseNumber string) OptionFunction + func WithClientIDAndSecret(clientID, clientSecret string) OptionFunction + func WithEnvironment(environment Environment) OptionFunction + func WithHTTPClient(client *http.Client) OptionFunction + func WithLogWriter(writer io.Writer) OptionFunction + func WithUsernameAndPassword(username, password string) OptionFunction + type Package struct + AdditionalHandlingIndicator string + Description string + DimWeight *DimWeight + Dimensions Dimensions + LargePackageIndicator string + MinimumBillableWeightIndicator string + NumOfPieces string + OversizeIndicator string + PackageWeight *PackageWeight + Packaging Packaging + PalletDescription string + UnitPrice string + type PackageLevelResult struct + Status Status + TrackingNumber string + type PackageResults struct + ShippingLabel *ShippingLabel + TrackingNumber string + type PackageWeight struct + UnitOfMeasurement PackageWeightUnitOfMeasurement + Weight string + type PackageWeightUnitOfMeasurement struct + Code string + Description string + type Packaging struct + Code string + Description string + type PaymentInformation struct + ShipmentCharge ShipmentCharge + type Phone struct + Extension string + Number string + type ReferenceNumber struct + BarCodeIndicator string + Code string + Value string + type Response struct + Alerts []Alert + ResponseStatus ResponseStatus + func (s *Response) UnmarshalJSON(data []byte) error + type ResponseStatus struct + Code string + Description string + type Service struct + Code string + Description string + type ShipFrom struct + Address ShipToAddress + AttentionName string + CompanyDisplayableName string + FaxNumber string + LocationID string + Name string + Phone *Phone + ShipperNumber string + TaxIDType *TaxIDType + TaxIdentificationNumber string + type ShipTo struct + Address ShipToAddress + AttentionName string + CompanyDisplayableName string + EMailAddress string + FaxNumber string + LocationID string + Name string + Phone *Phone + ShipperNumber string + TaxIdentificationNumber string + type ShipToAddress struct + AddressLines []string + City string + CountryCode string + PostalCode string + ResidentialAddressIndicator string + StateProvinceCode string + type Shipment struct + CostCenter string + CostCenterBarcodeIndicator string + Description string + FRSPaymentInformation *FRSPaymentInformation + GoodsNotInFreeCirculationIndicator string + IrregularIndicator string + Locale string + MIDualReturnShipmentIndicator string + MIDualReturnShipmentKey string + MILabelCN22Indicator string + MasterCartonID string + MasterCartonIndicator string + MovementReferenceNumber string + NumOfPiecesInShipment string + PackageID string + PackageIDBarcodeIndicator string + Packages []Package + PaymentInformation *PaymentInformation + RatingMethodRequestedIndicator string + ReferenceNumber *ReferenceNumber + Service Service + ShipFrom *ShipFrom + ShipTo ShipTo + ShipmentDate string + ShipmentServiceOptions *ShipmentServiceOptions + ShipmentValueThresholdCode string + Shipper Shipper + SubClassification string + TaxInformationIndicator string + USPSEndorsement string + type ShipmentCharge struct + BillShipper *BillShipper + Type string + type ShipmentRequest struct + LabelSpecification *LabelSpecification + Shipment Shipment + type ShipmentResponse struct + Response Response + ShipmentResults ShipmentResults + type ShipmentResults struct + PackageResults []PackageResults + ShipmentIdentificationNumber string + func (s *ShipmentResults) UnmarshalJSON(data []byte) error + type ShipmentServiceOptions struct + DeliverToAddresseeOnlyIndicator string + DirectDeliveryOnlyIndicator string + Notifications []Notification + SaturdayDeliveryIndicator string + SaturdayPickupIndicator string + type Shipper struct + Address ShipperAddress + AttentionName string + CompanyDisplayableName string + EMailAddress string + FaxNumber string + Name string + Phone *Phone + ShipperNumber string + TaxIdentificationNumber string + type ShipperAddress struct + AddressLines []string + City string + CountryCode string + PostalCode string + StateProvinceCode string + type ShippingLabel struct + GraphicImage string + GraphicImagePart string + ImageFormat ImageFormat + type Status struct + Code string + Description string + type SummaryResult struct + Status Status + type TaxIDType struct + Code string + type TransactionReference struct + CustomerContext string + type VoidShipmentResponse struct + Response Response + SummaryResult SummaryResult