Documentation
¶
Overview ¶
Package adjustments provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewGetAdjustmentsRequest(server string, crid string, trackingNumber string, ...) (*http.Request, error)
- type AdjustmentDetails
- type AdjustmentDetailsAdjustmentStatus
- type AdjustmentDetailsAdjustmentSubtype
- type AdjustmentDetailsDetails
- type AdjustmentDetailsFeesName
- type AdjustmentDetailsPricingCharacteristicsPricingCharacteristic
- type AdjustmentDetailsProcessingCategoryName
- type AdjustmentDetailsRootCause
- type Adjustments
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- type ClientWithResponsesInterface
- type ErrorMessage
- type ErrorMessage_Error
- type ErrorMessage_Error_Errors_Item
- func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)
- func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)
- func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})
- func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error
- type ErrorMessage_Error_Errors_Source
- func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)
- func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)
- func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})
- func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error
- type GetAdjustmentsParams
- type GetAdjustmentsParamsEventType
- type GetAdjustmentsResponse
- type HttpRequestDoer
- type RequestEditorFn
Constants ¶
const (
OAuthScopes = "OAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewGetAdjustmentsRequest ¶
func NewGetAdjustmentsRequest(server string, crid string, trackingNumber string, eventType GetAdjustmentsParamsEventType, params *GetAdjustmentsParams) (*http.Request, error)
NewGetAdjustmentsRequest generates requests for GetAdjustments
Types ¶
type AdjustmentDetails ¶
type AdjustmentDetails struct {
// CRID Customer Registration ID used to identify the business location associated to a shipment.
CRID *string `json:"CRID,omitempty"`
// MID Mailer ID used in the barcode to identify the Mail Owner associated to a shipment.
MID *string `json:"MID,omitempty"`
// USPSPackagingBarcode USPS Packaging used for the shipment
USPSPackagingBarcode *string `json:"USPSPackagingBarcode,omitempty"`
// AccountNumber The Enterprise Payment Account the adjustment was charged to.
AccountNumber *string `json:"accountNumber,omitempty"`
// AdjustmentBasePostage The claimed and assessed base postage for the package (minus fees and extra services).
AdjustmentBasePostage *struct {
// Assessed The census value for the ingredient excluding fees and extra services.
Assessed *float64 `json:"assessed,omitempty"`
// Claimed Manifest value of the ingredient excluding fees and extra services.
Claimed *float64 `json:"claimed,omitempty"`
} `json:"adjustmentBasePostage,omitempty"`
// AdjustmentStatus The status of the adjustment
AdjustmentStatus *AdjustmentDetailsAdjustmentStatus `json:"adjustmentStatus,omitempty"`
// AdjustmentSubtype The Subscription Adjustment Subtype.
AdjustmentSubtype *AdjustmentDetailsAdjustmentSubtype `json:"adjustmentSubtype,omitempty"`
// AdjustmentTotalPostage Total postage for the package including any adjustments.
AdjustmentTotalPostage *struct {
// Assessed Assessed postage based on census scan.
Assessed *float64 `json:"assessed,omitempty"`
// Claimed Manifest value of the ingredient including fees and extra services.
Claimed *float64 `json:"claimed,omitempty"`
} `json:"adjustmentTotalPostage,omitempty"`
// AssessedDateTime Datetime the package was assessed.
AssessedDateTime *time.Time `json:"assessedDateTime,omitempty"`
// BasePostage The claimed and assessed base postage for the package (minus fees and extra services).
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BasePostage *struct {
// Assessed The census value for the ingredient
Assessed *float64 `json:"assessed,omitempty"`
// Claimed Manifest value of the ingredient
Claimed *float64 `json:"claimed,omitempty"`
} `json:"basePostage,omitempty"`
// DestinationAddress Destination address associated to a shipment.
DestinationAddress *string `json:"destinationAddress,omitempty"`
// DestinationCity Destination city associated to a shipment.
DestinationCity *string `json:"destinationCity,omitempty"`
// DestinationCountryCode The destination country code associated to the shipment.
DestinationCountryCode *string `json:"destinationCountryCode,omitempty"`
// DestinationState Destination state associated to a shipment.
DestinationState *string `json:"destinationState,omitempty"`
// DestinationZipCode Destination zipcode associated to a shipment.
DestinationZipCode *string `json:"destinationZipCode,omitempty"`
// Details Root cause for Census (Zone, Weight, Destination Entry, etc..)
Details *[]AdjustmentDetailsDetails `json:"details,omitempty"`
// EarliestScanDate Earliest Datetime USPS scanned the package.
EarliestScanDate *time.Time `json:"earliestScanDate,omitempty"`
// ExtraServices Array of extra services associated with the shipment.
ExtraServices *[]struct {
// ExtraServiceAmount Amount charged for the extra service
ExtraServiceAmount *float64 `json:"extraServiceAmount,omitempty"`
// ExtraServiceCode Number associated with the extra service
ExtraServiceCode *string `json:"extraServiceCode,omitempty"`
ExtraServiceName *string `json:"extraServiceName,omitempty"`
// ExtraServiceSku SKU code for the extra service
ExtraServiceSku *string `json:"extraServiceSku,omitempty"`
} `json:"extraServices,omitempty"`
// Fees The claimed and assessed fees for the package.
Fees *[]struct {
// AssessedPostage The census value for the ingredient
AssessedPostage *float64 `json:"assessedPostage,omitempty"`
// ClaimedPostage Manifest value of the ingredient for postage
ClaimedPostage *float64 `json:"claimedPostage,omitempty"`
// Name Name of the fee
Name *AdjustmentDetailsFeesName `json:"name,omitempty"`
} `json:"fees,omitempty"`
// HazmatNoncomplianceErrorMessage The hazmat error description of the adjustment due to hazardous materials non-compliance.
// Examples of the error message include:
// - "HAZMAT SYMBOL AND NON-HAZMAT STC"
// - "HAZMAT INDICATOR AND NON-HAZMAT STC"
// - "MILITARY ITEM WITH HAZMAT INDICATOR NONCOMPLIANCE"
// - "BARCODE BANNER TEXT INCORRECT FOR HAZMAT ITEM"
HazmatNoncomplianceErrorMessage *string `json:"hazmatNoncomplianceErrorMessage,omitempty"`
// MailClassName The class of mail for the shipment.
MailClassName *string `json:"mailClassName,omitempty"`
// MailingDate Combination of Date Of Mailing and Time Of Mailing YYYYMMDD + HHMMSS
MailingDate *time.Time `json:"mailingDate,omitempty"`
// ManifestNumber The manifest number (or electronic file number/EFN) of the package.
ManifestNumber *string `json:"manifestNumber,omitempty"`
// ManifestPackageId A unique ID associated to a package.
ManifestPackageId *string `json:"manifestPackageId,omitempty"`
// OriginAddress Origin address associated to a shipment.
OriginAddress *string `json:"originAddress,omitempty"`
// OriginCity Origin city associated to a shipment.
OriginCity *string `json:"originCity,omitempty"`
// OriginState Origin state associated to a shipment.
OriginState *string `json:"originState,omitempty"`
// OriginZipCode Origin zipcode associated to a shipment.
OriginZipCode *string `json:"originZipCode,omitempty"`
// PackageScanGroupingId A Unique ID used to group scans for a package.
PackageScanGroupingId *string `json:"packageScanGroupingId,omitempty"`
// PostageAdjustment The postage charged for the adjustment. A positive postageAdjustment is overpaid (REFUND). A negative postageAdjustment is shortpaid (ADJUSTMENT).
PostageAdjustment *float64 `json:"postageAdjustment,omitempty"`
// PricingCharacteristics Pricing ingredients of the adjustment
PricingCharacteristics *[]struct {
// Assessed The census value for the ingredient
Assessed *string `json:"assessed,omitempty"`
// Claimed Manifest value of the ingredient
Claimed *string `json:"claimed,omitempty"`
// PricingCharacteristic | Enumeration | Format | Example |
// | -- | -- | -- |
// | WEIGHT | number | 4.1 |
// | DIM_WEIGHT | number | 11.8 |
// | LENGTH | number | 8.6 |
// | WIDTH | number | 4.2 |
// | HEIGHT | number | 3.5 |
// | ORIGIN_ZIP_CODE | string | 20260 |
// | DESTINATION_ZIP_CODE | string | 20260 |
// | ZONE | string | 01 |
// | DESTINATION_ENTRY_FACILITY_TYPE | string | Temp |
// | RATE_INDICATOR | string | SP |
// | MAIL_CLASS | string | PRIORITY_MAIL |
PricingCharacteristic *AdjustmentDetailsPricingCharacteristicsPricingCharacteristic `json:"pricingCharacteristic,omitempty"`
} `json:"pricingCharacteristics,omitempty"`
// PrimaryDeliveryAddress Primary delivery address for the transaction details.
PrimaryDeliveryAddress *string `json:"primaryDeliveryAddress,omitempty"`
// ProcessingCategory A unique ID representing the processing category associated to a shipment.
ProcessingCategory *string `json:"processingCategory,omitempty"`
// ProcessingCategoryName A name representing the processing category associated to a shipment.
ProcessingCategoryName *AdjustmentDetailsProcessingCategoryName `json:"processingCategoryName,omitempty"`
// RootCause Array of root causes that contributed to the adjustment
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RootCause *[]AdjustmentDetailsRootCause `json:"rootCause,omitempty"`
// SecondaryDeliveryAddress Secondary delivery address for the transaction details.
SecondaryDeliveryAddress *string `json:"secondaryDeliveryAddress,omitempty"`
// TotalPostage The claimed and assessed total postage for the package.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TotalPostage *struct {
// Assessed The census value for the ingredient
Assessed *float64 `json:"assessed,omitempty"`
// Claimed Manifest value of the ingredient
Claimed *float64 `json:"claimed,omitempty"`
} `json:"totalPostage,omitempty"`
// TrackingNumber The trackingNumber of the package.
TrackingNumber *string `json:"trackingNumber,omitempty"`
// TransactionID The Enterprise Payment System Transaction ID the adjustment was charged to.
TransactionID *string `json:"transactionID,omitempty"`
}
AdjustmentDetails Details on adjustments that will be or have been issued to a customer account. Fields will only be provided if they differed from the original manifested data.
type AdjustmentDetailsAdjustmentStatus ¶
type AdjustmentDetailsAdjustmentStatus string
AdjustmentDetailsAdjustmentStatus The status of the adjustment
const ( CHARGED AdjustmentDetailsAdjustmentStatus = "CHARGED" PENDING AdjustmentDetailsAdjustmentStatus = "PENDING" REMOVED AdjustmentDetailsAdjustmentStatus = "REMOVED" )
Defines values for AdjustmentDetailsAdjustmentStatus.
type AdjustmentDetailsAdjustmentSubtype ¶
type AdjustmentDetailsAdjustmentSubtype string
AdjustmentDetailsAdjustmentSubtype The Subscription Adjustment Subtype.
const ( AdjustmentDetailsAdjustmentSubtypeCENSUS AdjustmentDetailsAdjustmentSubtype = "CENSUS" AdjustmentDetailsAdjustmentSubtypeDUPLICATES AdjustmentDetailsAdjustmentSubtype = "DUPLICATES" AdjustmentDetailsAdjustmentSubtypeUNMANIFESTED AdjustmentDetailsAdjustmentSubtype = "UNMANIFESTED" )
Defines values for AdjustmentDetailsAdjustmentSubtype.
type AdjustmentDetailsDetails ¶
type AdjustmentDetailsDetails string
AdjustmentDetailsDetails defines model for AdjustmentDetails.Details.
const ( AdjustmentDetailsDetailsDESTINATIONENTRY AdjustmentDetailsDetails = "DESTINATION_ENTRY" AdjustmentDetailsDetailsDIMENSIONAL AdjustmentDetailsDetails = "DIMENSIONAL" AdjustmentDetailsDetailsHAZMAT AdjustmentDetailsDetails = "HAZMAT" AdjustmentDetailsDetailsMISSHIPPED AdjustmentDetailsDetails = "MISSHIPPED" AdjustmentDetailsDetailsNONMAILABLEDIMENSIONS AdjustmentDetailsDetails = "NONMAILABLE_DIMENSIONS" AdjustmentDetailsDetailsNONMAILABLEWEIGHT AdjustmentDetailsDetails = "NONMAILABLE_WEIGHT" AdjustmentDetailsDetailsPACKAGING AdjustmentDetailsDetails = "PACKAGING" AdjustmentDetailsDetailsUSEDREFUNDEDLABEL AdjustmentDetailsDetails = "USED_REFUNDED_LABEL" AdjustmentDetailsDetailsWEIGHT AdjustmentDetailsDetails = "WEIGHT" AdjustmentDetailsDetailsZONE AdjustmentDetailsDetails = "ZONE" )
Defines values for AdjustmentDetailsDetails.
type AdjustmentDetailsFeesName ¶
type AdjustmentDetailsFeesName string
AdjustmentDetailsFeesName Name of the fee
const ( HAZMATNONCOMPLIANCEFEE AdjustmentDetailsFeesName = "HAZMAT_NONCOMPLIANCE_FEE" NONSTANDARDCHARACTERISTICSFEE AdjustmentDetailsFeesName = "NONSTANDARD_CHARACTERISTICS_FEE" NONSTANDARDDIMENSIONLENGTHGT30 AdjustmentDetailsFeesName = "NONSTANDARD_DIMENSION_LENGTH_GT_30" NONSTANDARDDIMENSIONLENGTHLT22 AdjustmentDetailsFeesName = "NONSTANDARD_DIMENSION_LENGTH_LT_22" NONSTANDARDDIMENSIONNONCOMPLIANCE AdjustmentDetailsFeesName = "NONSTANDARD_DIMENSION_NON_COMPLIANCE" NONSTANDARDDIMENSIONVOLUMEGT2CUBICFEET AdjustmentDetailsFeesName = "NONSTANDARD_DIMENSION_VOLUME_GT_2_CUBIC_FEET" NonstandardDimensionLength22 AdjustmentDetailsFeesName = "Nonstandard Dimension: Length > 22" NonstandardDimensionLength30 AdjustmentDetailsFeesName = "Nonstandard Dimension: Length > 30" NonstandardDimensionNonCompliance AdjustmentDetailsFeesName = "Nonstandard Dimension: Non-Compliance" NonstandardDimensionVolume2CubicFeet AdjustmentDetailsFeesName = "Nonstandard Dimension: Volume > 2 cubic feet" )
Defines values for AdjustmentDetailsFeesName.
type AdjustmentDetailsPricingCharacteristicsPricingCharacteristic ¶
type AdjustmentDetailsPricingCharacteristicsPricingCharacteristic string
AdjustmentDetailsPricingCharacteristicsPricingCharacteristic | Enumeration | Format | Example | | -- | -- | -- | | WEIGHT | number | 4.1 | | DIM_WEIGHT | number | 11.8 | | LENGTH | number | 8.6 | | WIDTH | number | 4.2 | | HEIGHT | number | 3.5 | | ORIGIN_ZIP_CODE | string | 20260 | | DESTINATION_ZIP_CODE | string | 20260 | | ZONE | string | 01 | | DESTINATION_ENTRY_FACILITY_TYPE | string | Temp | | RATE_INDICATOR | string | SP | | MAIL_CLASS | string | PRIORITY_MAIL |
const ( AdjustmentDetailsPricingCharacteristicsPricingCharacteristicDESTINATIONENTRYFACILITYTYPE AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "DESTINATION_ENTRY_FACILITY_TYPE" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicDESTINATIONZIPCODE AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "DESTINATION_ZIP_CODE" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicDIMWEIGHT AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "DIM_WEIGHT" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicHEIGHT AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "HEIGHT" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicLENGTH AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "LENGTH" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicMAILCLASS AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "MAIL_CLASS" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicORIGINZIPCODE AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "ORIGIN_ZIP_CODE" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicRATEINDICATOR AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "RATE_INDICATOR" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicWEIGHT AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "WEIGHT" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicWIDTH AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "WIDTH" AdjustmentDetailsPricingCharacteristicsPricingCharacteristicZONE AdjustmentDetailsPricingCharacteristicsPricingCharacteristic = "ZONE" )
Defines values for AdjustmentDetailsPricingCharacteristicsPricingCharacteristic.
type AdjustmentDetailsProcessingCategoryName ¶
type AdjustmentDetailsProcessingCategoryName string
AdjustmentDetailsProcessingCategoryName A name representing the processing category associated to a shipment.
const ( CARDS AdjustmentDetailsProcessingCategoryName = "CARDS" CATALOGS AdjustmentDetailsProcessingCategoryName = "CATALOGS" FLATS AdjustmentDetailsProcessingCategoryName = "FLATS" IRREGULARPARCEL AdjustmentDetailsProcessingCategoryName = "IRREGULAR_PARCEL" LETTERS AdjustmentDetailsProcessingCategoryName = "LETTERS" MACHINABLEPARCEL AdjustmentDetailsProcessingCategoryName = "MACHINABLE_PARCEL" NONSTANDARDPARCEL AdjustmentDetailsProcessingCategoryName = "NONSTANDARD_PARCEL" OPENANDDISTRIBUTE AdjustmentDetailsProcessingCategoryName = "OPEN_AND_DISTRIBUTE" RETURNS AdjustmentDetailsProcessingCategoryName = "RETURNS" SOFTPACKMACHINABLE AdjustmentDetailsProcessingCategoryName = "SOFT_PACK_MACHINABLE" SOFTPACKNONMACHINABLE AdjustmentDetailsProcessingCategoryName = "SOFT_PACK_NON_MACHINABLE" )
Defines values for AdjustmentDetailsProcessingCategoryName.
type AdjustmentDetailsRootCause ¶
type AdjustmentDetailsRootCause string
AdjustmentDetailsRootCause defines model for AdjustmentDetails.RootCause.
const ( AdjustmentDetailsRootCauseCENSUS AdjustmentDetailsRootCause = "CENSUS" AdjustmentDetailsRootCauseDESTINATIONENTRY AdjustmentDetailsRootCause = "DESTINATION_ENTRY" AdjustmentDetailsRootCauseDIMENSIONAL AdjustmentDetailsRootCause = "DIMENSIONAL" AdjustmentDetailsRootCauseDUPLICATES AdjustmentDetailsRootCause = "DUPLICATES" AdjustmentDetailsRootCauseHAZMAT AdjustmentDetailsRootCause = "HAZMAT" AdjustmentDetailsRootCauseMISSHIPPED AdjustmentDetailsRootCause = "MISSHIPPED" AdjustmentDetailsRootCauseNONMAILABLEDIMENSIONS AdjustmentDetailsRootCause = "NONMAILABLE_DIMENSIONS" AdjustmentDetailsRootCauseNONMAILABLEWEIGHT AdjustmentDetailsRootCause = "NONMAILABLE_WEIGHT" AdjustmentDetailsRootCausePACKAGING AdjustmentDetailsRootCause = "PACKAGING" AdjustmentDetailsRootCauseUNMANIFESTED AdjustmentDetailsRootCause = "UNMANIFESTED" AdjustmentDetailsRootCauseUSEDREFUNDEDLABEL AdjustmentDetailsRootCause = "USED_REFUNDED_LABEL" AdjustmentDetailsRootCauseWEIGHT AdjustmentDetailsRootCause = "WEIGHT" AdjustmentDetailsRootCauseZONE AdjustmentDetailsRootCause = "ZONE" )
Defines values for AdjustmentDetailsRootCause.
type Adjustments ¶
type Adjustments = []AdjustmentDetails
Adjustments List of adjustments for a package
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetAdjustments ¶
func (c *Client) GetAdjustments(ctx context.Context, crid string, trackingNumber string, eventType GetAdjustmentsParamsEventType, params *GetAdjustmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetAdjustments request
GetAdjustments(ctx context.Context, crid string, trackingNumber string, eventType GetAdjustmentsParamsEventType, params *GetAdjustmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetAdjustmentsWithResponse ¶
func (c *ClientWithResponses) GetAdjustmentsWithResponse(ctx context.Context, crid string, trackingNumber string, eventType GetAdjustmentsParamsEventType, params *GetAdjustmentsParams, reqEditors ...RequestEditorFn) (*GetAdjustmentsResponse, error)
GetAdjustmentsWithResponse request returning *GetAdjustmentsResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAdjustmentsWithResponse request
GetAdjustmentsWithResponse(ctx context.Context, crid string, trackingNumber string, eventType GetAdjustmentsParamsEventType, params *GetAdjustmentsParams, reqEditors ...RequestEditorFn) (*GetAdjustmentsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ErrorMessage ¶
type ErrorMessage struct {
// ApiVersion The version of the API that was used and that raised the error.
ApiVersion *string `json:"apiVersion,omitempty"`
// Error The high-level error that has occurred as indicated by the status code.
Error *ErrorMessage_Error `json:"error,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage Standard error message response.
func (ErrorMessage) Get ¶
func (a ErrorMessage) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage. Returns the specified element and whether it was found
func (ErrorMessage) MarshalJSON ¶
func (a ErrorMessage) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage to handle AdditionalProperties
func (*ErrorMessage) Set ¶
func (a *ErrorMessage) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage
func (*ErrorMessage) UnmarshalJSON ¶
func (a *ErrorMessage) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage to handle AdditionalProperties
type ErrorMessage_Error ¶
type ErrorMessage_Error struct {
// Code The error status code that has been returned in response to the request.
Code *string `json:"code,omitempty"`
Errors *[]ErrorMessage_Error_Errors_Item `json:"errors,omitempty"`
// Message A human-readable message describing the error.
Message *string `json:"message,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error The high-level error that has occurred as indicated by the status code.
func (ErrorMessage_Error) Get ¶
func (a ErrorMessage_Error) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error. Returns the specified element and whether it was found
func (ErrorMessage_Error) MarshalJSON ¶
func (a ErrorMessage_Error) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties
func (*ErrorMessage_Error) Set ¶
func (a *ErrorMessage_Error) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error
func (*ErrorMessage_Error) UnmarshalJSON ¶
func (a *ErrorMessage_Error) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties
type ErrorMessage_Error_Errors_Item ¶
type ErrorMessage_Error_Errors_Item struct {
// Code An internal subordinate code used for error diagnosis.
Code *string `json:"code,omitempty"`
// Detail A human-readable description of the error that occurred.
Detail *string `json:"detail,omitempty"`
// Source The element that is suspected of originating the error. Helps to pinpoint the problem.
Source *ErrorMessage_Error_Errors_Source `json:"source,omitempty"`
// Status The status code response returned to the client.
Status *string `json:"status,omitempty"`
// Title A human-readable title that identifies the error.
Title *string `json:"title,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error_Errors_Item defines model for ErrorMessage.Error.Errors.Item.
func (ErrorMessage_Error_Errors_Item) Get ¶
func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error_Errors_Item. Returns the specified element and whether it was found
func (ErrorMessage_Error_Errors_Item) MarshalJSON ¶
func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties
func (*ErrorMessage_Error_Errors_Item) Set ¶
func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error_Errors_Item
func (*ErrorMessage_Error_Errors_Item) UnmarshalJSON ¶
func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties
type ErrorMessage_Error_Errors_Source ¶
type ErrorMessage_Error_Errors_Source struct {
// Example An example of a valid value for the input parameter.
Example *string `json:"example,omitempty"`
// Parameter The input in the request which caused an error.
Parameter *string `json:"parameter,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ErrorMessage_Error_Errors_Source The element that is suspected of originating the error. Helps to pinpoint the problem.
func (ErrorMessage_Error_Errors_Source) Get ¶
func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ErrorMessage_Error_Errors_Source. Returns the specified element and whether it was found
func (ErrorMessage_Error_Errors_Source) MarshalJSON ¶
func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)
Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties
func (*ErrorMessage_Error_Errors_Source) Set ¶
func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})
Setter for additional properties for ErrorMessage_Error_Errors_Source
func (*ErrorMessage_Error_Errors_Source) UnmarshalJSON ¶
func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error
Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties
type GetAdjustmentsParams ¶
type GetAdjustmentsParams struct {
// DestinationZIPCode The destination ZIP Code™.
DestinationZIPCode *string `form:"destinationZIPCode,omitempty" json:"destinationZIPCode,omitempty"`
}
GetAdjustmentsParams defines parameters for GetAdjustments.
type GetAdjustmentsParamsEventType ¶
type GetAdjustmentsParamsEventType string
GetAdjustmentsParamsEventType defines parameters for GetAdjustments.
const ( CENSUS GetAdjustmentsParamsEventType = "CENSUS" DUPLICATES GetAdjustmentsParamsEventType = "DUPLICATES" UNMANIFESTED GetAdjustmentsParamsEventType = "UNMANIFESTED" )
Defines values for GetAdjustmentsParamsEventType.
type GetAdjustmentsResponse ¶
type GetAdjustmentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Adjustments
JSON400 *ErrorMessage
XML400 *ErrorMessage
JSON401 *ErrorMessage
XML401 *ErrorMessage
JSON403 *ErrorMessage
XML403 *ErrorMessage
JSON429 *ErrorMessage
XML429 *ErrorMessage
JSON503 *ErrorMessage
XML503 *ErrorMessage
}
func ParseGetAdjustmentsResponse ¶
func ParseGetAdjustmentsResponse(rsp *http.Response) (*GetAdjustmentsResponse, error)
ParseGetAdjustmentsResponse parses an HTTP response from a GetAdjustmentsWithResponse call
func (GetAdjustmentsResponse) Status ¶
func (r GetAdjustmentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAdjustmentsResponse) StatusCode ¶
func (r GetAdjustmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.