Documentation
¶
Overview ¶
Package globalcheckout 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 NewCreateGuaranteedQuoteRequest(server string, params *CreateGuaranteedQuoteParams, ...) (*http.Request, error)
- func NewCreateGuaranteedQuoteRequestWithBody(server string, params *CreateGuaranteedQuoteParams, contentType string, ...) (*http.Request, error)
- type BSISV1Address
- type BSISV1ChargeDetail
- type BSISV1Error
- type BSISV1ErrorResponse
- type BSISV1ErrorResponseHeaders
- type BSISV1QuoteRequest
- type BSISV1QuoteRequestServiceLevelCode
- type BSISV1QuoteResponse
- type BSISV1Shipment
- type BSISV1ShipmentItemRequest
- type BSISV1ShipmentItemRequestDimensionUnitOfMeasure
- type BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure
- type BSISV1ShipmentShipToAddressResidentialAddressIndicator
- type BSISV1ShipmentTransModes
- type BSISV1SuccessResponseHeaders
- type BSISV1TotalResponse
- type BSISV1TotalResponseType
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateGuaranteedQuoteWithBodyWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, contentType string, ...) (*CreateGuaranteedQuoteResponse, error)
- func (c *ClientWithResponses) CreateGuaranteedQuoteWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, ...) (*CreateGuaranteedQuoteResponse, error)
- type ClientWithResponsesInterface
- type CreateGuaranteedQuoteJSONRequestBody
- type CreateGuaranteedQuoteParams
- type CreateGuaranteedQuoteResponse
- type HttpRequestDoer
- type RequestEditorFn
- type TransId
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateGuaranteedQuoteRequest ¶
func NewCreateGuaranteedQuoteRequest(server string, params *CreateGuaranteedQuoteParams, body CreateGuaranteedQuoteJSONRequestBody) (*http.Request, error)
NewCreateGuaranteedQuoteRequest calls the generic CreateGuaranteedQuote builder with application/json body
func NewCreateGuaranteedQuoteRequestWithBody ¶
func NewCreateGuaranteedQuoteRequestWithBody(server string, params *CreateGuaranteedQuoteParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateGuaranteedQuoteRequestWithBody generates requests for CreateGuaranteedQuote with any type of body
Types ¶
type BSISV1Address ¶
type BSISV1Address struct {
// AddressLine1 Shipper or or Consignee's street addres line 1.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Shipper or or Consignee's street addres line 2.
AddressLine2 *string `json:"addressLine2,omitempty"`
// City Shipper or Consignee's city.
City *string `json:"city,omitempty"`
// CountryCode The ISO 3166 code of the Shipper or Consignee's country or territory.
CountryCode string `json:"countryCode"`
// Name Shipper or or Consignee's name.
Name *string `json:"name,omitempty"`
// PostalCode Shipper's or Consignee's postal code.
PostalCode *string `json:"postalCode,omitempty"`
// StateProvinceCode Shipper or Consignee's state or province code.
StateProvinceCode *string `json:"stateProvinceCode,omitempty"`
}
BSISV1Address Common address fields
type BSISV1ChargeDetail ¶
type BSISV1ChargeDetail struct {
// CurrencyCode Currency Code of the unit total value adhering to ISO 4217 standard.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
CurrencyCode string `json:"currencyCode"`
// Value The value of a particular item in the shipment .
Value float64 `json:"value"`
}
BSISV1ChargeDetail defines model for BSIS_v1_ChargeDetail.
type BSISV1Error ¶
type BSISV1Error struct {
// Code code for the given message
Code string `json:"code"`
// Description Internal description of the error
Description *string `json:"description,omitempty"`
// Field The path to the field causing the error as returned from the backend services.
Field *string `json:"field,omitempty"`
// Message the warning or error message to be conveyed
Message string `json:"message"`
// Value The value that caused the error
Value *string `json:"value,omitempty"`
}
BSISV1Error container for error and warning messages
type BSISV1ErrorResponse ¶
type BSISV1ErrorResponse struct {
// Response errors container.
Response struct {
// Errors error payload - array containing one or more Errors.
Errors []BSISV1Error `json:"errors"`
} `json:"response"`
}
BSISV1ErrorResponse response container.
type BSISV1ErrorResponseHeaders ¶
type BSISV1ErrorResponseHeaders struct {
// APIErrorCode The API error code.
APIErrorCode string `json:"APIErrorCode"`
// APIErrorMsg The API error message.
APIErrorMsg string `json:"APIErrorMsg"`
// Accept The Accept request HTTP header indicates which content types, expressed as MIME types, the client is able to understand.
Accept string `json:"Accept"`
// BkndTransId The backend transaction id.
BkndTransId string `json:"BkndTransId"`
// ContentType The Content-Type header provides the client with the actual content/media type of the returned content.
ContentType string `json:"Content-Type"`
// TransId An identifier unique to the request.
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
BSISV1ErrorResponseHeaders defines model for BSIS_v1_ErrorResponseHeaders.
type BSISV1QuoteRequest ¶
type BSISV1QuoteRequest struct {
// BuyerCurrencyCode Buyer's currency code adhering to ISO 4217 standard.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
BuyerCurrencyCode *string `json:"buyerCurrencyCode,omitempty"`
// ReferenceNumber A unique identifier used by clients for internal tracking.
ReferenceNumber *string `json:"referenceNumber,omitempty"`
// ServiceLevelCode The code for the UPS Service associated with the shipment.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
ServiceLevelCode *BSISV1QuoteRequestServiceLevelCode `json:"serviceLevelCode,omitempty"`
Shipment BSISV1Shipment `json:"shipment"`
// ShipperAccountNumber The Shipper's UPS Account Number.
ShipperAccountNumber string `json:"shipperAccountNumber"`
// ShipperCurrencyCode Shipper's currency code adhering to ISO 4217 standard.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
ShipperCurrencyCode string `json:"shipperCurrencyCode"`
}
BSISV1QuoteRequest defines model for BSIS_v1_QuoteRequest.
type BSISV1QuoteRequestServiceLevelCode ¶
type BSISV1QuoteRequestServiceLevelCode string
BSISV1QuoteRequestServiceLevelCode The code for the UPS Service associated with the shipment. Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
const ( M2 BSISV1QuoteRequestServiceLevelCode = "M2" M3 BSISV1QuoteRequestServiceLevelCode = "M3" M4 BSISV1QuoteRequestServiceLevelCode = "M4" M5 BSISV1QuoteRequestServiceLevelCode = "M5" M6 BSISV1QuoteRequestServiceLevelCode = "M6" M7 BSISV1QuoteRequestServiceLevelCode = "M7" N01 BSISV1QuoteRequestServiceLevelCode = "01" N02 BSISV1QuoteRequestServiceLevelCode = "02" N03 BSISV1QuoteRequestServiceLevelCode = "03" N07 BSISV1QuoteRequestServiceLevelCode = "07" N11 BSISV1QuoteRequestServiceLevelCode = "11" N12 BSISV1QuoteRequestServiceLevelCode = "12" N13 BSISV1QuoteRequestServiceLevelCode = "13" N17 BSISV1QuoteRequestServiceLevelCode = "17" N54 BSISV1QuoteRequestServiceLevelCode = "54" N65 BSISV1QuoteRequestServiceLevelCode = "65" N71 BSISV1QuoteRequestServiceLevelCode = "71" N72 BSISV1QuoteRequestServiceLevelCode = "72" N74 BSISV1QuoteRequestServiceLevelCode = "74" N75 BSISV1QuoteRequestServiceLevelCode = "75" N8 BSISV1QuoteRequestServiceLevelCode = "8" N82 BSISV1QuoteRequestServiceLevelCode = "82" N83 BSISV1QuoteRequestServiceLevelCode = "83" N84 BSISV1QuoteRequestServiceLevelCode = "84" N85 BSISV1QuoteRequestServiceLevelCode = "85" N86 BSISV1QuoteRequestServiceLevelCode = "86" N96 BSISV1QuoteRequestServiceLevelCode = "96" )
Defines values for BSISV1QuoteRequestServiceLevelCode.
type BSISV1QuoteResponse ¶
type BSISV1QuoteResponse struct {
// GcTotal array for buyer and billing Global checkout total items.
GcTotal []BSISV1TotalResponse `json:"gcTotal"`
// QuoteCreationTimestamp Timestamp for quote generation(UTC).
QuoteCreationTimestamp string `json:"quoteCreationTimestamp"`
// QuoteExpirationDate Date after which the quote is no longer valid. yyyy-mm-dd format.
QuoteExpirationDate openapi_types.Date `json:"quoteExpirationDate"`
// QuoteId unique quote id.
QuoteId string `json:"quoteId"`
// ReferenceNumber A reference for customer internal tracking from the request .
ReferenceNumber *string `json:"referenceNumber,omitempty"`
}
BSISV1QuoteResponse defines model for BSIS_v1_QuoteResponse.
type BSISV1Shipment ¶
type BSISV1Shipment struct {
// ExportCountryCode The ISO 3166 code of the country exported to.
ExportCountryCode string `json:"exportCountryCode"`
// ImportCountryCode The ISO 3166 code of the country imported from.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
ImportCountryCode string `json:"importCountryCode"`
// ImportProvince Specifies the Province taken from.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
ImportProvince *string `json:"importProvince,omitempty"`
InsuranceCost *BSISV1ChargeDetail `json:"insuranceCost,omitempty"`
// ShipDate ShipDate of the Request (YYYY-MM-DD).
ShipDate *openapi_types.Date `json:"shipDate,omitempty"`
// ShipToAddress ShipTo Address of request. Needed for internal rate call to calculate transportCost if that is needed and not provided.
ShipToAddress struct {
// AddressLine1 Shipper or or Consignee's street addres line 1.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Shipper or or Consignee's street addres line 2.
AddressLine2 *string `json:"addressLine2,omitempty"`
// City Shipper or Consignee's city.
City *string `json:"city,omitempty"`
// CountryCode The ISO 3166 code of the Shipper or Consignee's country or territory.
CountryCode string `json:"countryCode"`
// Name Shipper or or Consignee's name.
Name *string `json:"name,omitempty"`
// PostalCode Shipper's or Consignee's postal code.
PostalCode *string `json:"postalCode,omitempty"`
// ResidentialAddressIndicator Indicate as true if the shipTo address is classified as residential (vs. commercial). Valid only for US50 addresses.
// Needed for internal rate call to calculate transportCost if that is needed and not provided.
ResidentialAddressIndicator *BSISV1ShipmentShipToAddressResidentialAddressIndicator `json:"residentialAddressIndicator,omitempty"`
// StateProvinceCode Shipper or Consignee's state or province code.
StateProvinceCode *string `json:"stateProvinceCode,omitempty"`
} `json:"shipToAddress"`
// ShipmentItems array of request ShipmentItems.
ShipmentItems []BSISV1ShipmentItemRequest `json:"shipmentItems"`
// ShipmentType Specifies the shipment type.
//
// | Type | Description |
// | :--: | :-- |
// | GIFT | GIFT |
// | COMM | Sale, Sample, Repair |
// | OTHR | Return, Other, and Intercompany Data, Anything else not supported |
// | PERS | Personal |
ShipmentType *string `json:"shipmentType,omitempty"`
// ShipperAddress Common address fields
ShipperAddress BSISV1Address `json:"shipperAddress"`
// TransModes The shipment mode of transportation. If not one of the listed values then it will default to the first one from the import country.
//
// | Mode | Description |
// | :--: | :-- |
// | DOM_AIR | Domestic Air transportation |
// | DOM_OCEAN | Domestic Ocean transportation |
// | DOM_RAIL | Domestic Rail transportation |
// | DOM_TRUCK | Domestic Truck transportation |
// | INT_AIR | International Air transportation |
// | INT_OCEAN | International Ocean transportation |
// | INT_RAIL | International Rail transportation |
// | INT_TRUCK | International/Interstate Truck transportation |
TransModes *BSISV1ShipmentTransModes `json:"transModes,omitempty"`
TransportCost *BSISV1ChargeDetail `json:"transportCost,omitempty"`
}
BSISV1Shipment defines model for BSIS_v1_Shipment.
type BSISV1ShipmentItemRequest ¶
type BSISV1ShipmentItemRequest struct {
// Description This field is populated with the hscode description.
Description *string `json:"description,omitempty"`
Dimension *struct {
// Height package height (no limit).
Height float64 `json:"height"`
// Length package length (no limit).
Length float64 `json:"length"`
// UnitOfMeasure Specifies the units of measure.
UnitOfMeasure BSISV1ShipmentItemRequestDimensionUnitOfMeasure `json:"unitOfMeasure"`
// Width package width (no limit).
Width float64 `json:"width"`
} `json:"dimension,omitempty"`
// GrossWeight Specifies the gross weight of the entire ShipmentItem, that is, the weight of all contained Products plus the Packaging weight, if any. Specifying this value overrides
// any weight value in Product and/or Packaging objects.
GrossWeight *struct {
// UnitOfMeasure Unit Of Measure for the package weight.
UnitOfMeasure *BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure `json:"unitOfMeasure,omitempty"`
// Value The weight value. If this field is specified, the unitOfMeasure field must also be specified. If this field is not specified,
// unitOfMeasure must be not be set to anything but null.
Value *int `json:"value,omitempty"`
} `json:"grossWeight,omitempty"`
// OriginCountryCode The ISO 3166 code of the shipment item country.
OriginCountryCode string `json:"originCountryCode"`
// PartNumber Part number or SKU, pre-approved for Garanteed Landed Cost service to identifier the item being shipped.
PartNumber string `json:"partNumber"`
// Quantity Container to quantity information on items within the shipmentItem.
Quantity struct {
// UnitOfMeasure Item count Unit Of Measure
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
UnitOfMeasure string `json:"unitOfMeasure"`
// Value Item count.
Value int `json:"value"`
} `json:"quantity"`
UnitPrice BSISV1ChargeDetail `json:"unitPrice"`
}
BSISV1ShipmentItemRequest Object containing the details of each item in the shipment.
type BSISV1ShipmentItemRequestDimensionUnitOfMeasure ¶
type BSISV1ShipmentItemRequestDimensionUnitOfMeasure string
BSISV1ShipmentItemRequestDimensionUnitOfMeasure Specifies the units of measure.
const ( CM BSISV1ShipmentItemRequestDimensionUnitOfMeasure = "CM" Cm BSISV1ShipmentItemRequestDimensionUnitOfMeasure = "cm" IN BSISV1ShipmentItemRequestDimensionUnitOfMeasure = "IN" In BSISV1ShipmentItemRequestDimensionUnitOfMeasure = "in" )
Defines values for BSISV1ShipmentItemRequestDimensionUnitOfMeasure.
type BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure ¶
type BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure string
BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure Unit Of Measure for the package weight.
const ( KG BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "KG" Kg BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "kg" LB BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "LB" Lb BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "lb" OZ BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "OZ" Oz BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure = "oz" )
Defines values for BSISV1ShipmentItemRequestGrossWeightUnitOfMeasure.
type BSISV1ShipmentShipToAddressResidentialAddressIndicator ¶
type BSISV1ShipmentShipToAddressResidentialAddressIndicator bool
BSISV1ShipmentShipToAddressResidentialAddressIndicator Indicate as true if the shipTo address is classified as residential (vs. commercial). Valid only for US50 addresses. Needed for internal rate call to calculate transportCost if that is needed and not provided.
const ( False BSISV1ShipmentShipToAddressResidentialAddressIndicator = false True BSISV1ShipmentShipToAddressResidentialAddressIndicator = true )
Defines values for BSISV1ShipmentShipToAddressResidentialAddressIndicator.
type BSISV1ShipmentTransModes ¶
type BSISV1ShipmentTransModes string
BSISV1ShipmentTransModes The shipment mode of transportation. If not one of the listed values then it will default to the first one from the import country.
| Mode | Description | | :--: | :-- | | DOM_AIR | Domestic Air transportation | | DOM_OCEAN | Domestic Ocean transportation | | DOM_RAIL | Domestic Rail transportation | | DOM_TRUCK | Domestic Truck transportation | | INT_AIR | International Air transportation | | INT_OCEAN | International Ocean transportation | | INT_RAIL | International Rail transportation | | INT_TRUCK | International/Interstate Truck transportation |
const ( DOMAIR BSISV1ShipmentTransModes = "DOM_AIR" DOMOCEAN BSISV1ShipmentTransModes = "DOM_OCEAN" DOMRAIL BSISV1ShipmentTransModes = "DOM_RAIL" DOMTRUCK BSISV1ShipmentTransModes = "DOM_TRUCK" INTAIR BSISV1ShipmentTransModes = "INT_AIR" INTOCEAN BSISV1ShipmentTransModes = "INT_OCEAN" INTRAIL BSISV1ShipmentTransModes = "INT_RAIL" INTTRUCK BSISV1ShipmentTransModes = "INT_TRUCK" )
Defines values for BSISV1ShipmentTransModes.
type BSISV1SuccessResponseHeaders ¶
type BSISV1SuccessResponseHeaders struct {
// Accept The Accept request HTTP header indicates which content types, expressed as MIME types, the client is able to understand.
Accept string `json:"Accept"`
// BkndTransId The backend transaction id.
BkndTransId string `json:"BkndTransId"`
// ContentType The Content-Type header provides the client with the actual content/media type of the returned content.
ContentType string `json:"Content-Type"`
// TransId An identifier unique to the request.
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
BSISV1SuccessResponseHeaders The headers that are returned for all error responses.
type BSISV1TotalResponse ¶
type BSISV1TotalResponse struct {
// CurrencyCode Currency Code of the unit total value adhering to ISO 4217 standard.
// Click <a href="https://developer.ups.com/api/reference/globalcheckout/appendix?loc=en_US" target="_blank" rel="noopener noreferrer">here</a> for more information.
CurrencyCode string `json:"currencyCode"`
// Type Shipper is mandatory and the Buyer will be conditionally returned if Buyer currency is porvided.
Type BSISV1TotalResponseType `json:"type"`
// Value The value of a particular item in the shipment .
Value float64 `json:"value"`
}
BSISV1TotalResponse defines model for BSIS_v1_TotalResponse.
type BSISV1TotalResponseType ¶
type BSISV1TotalResponseType string
BSISV1TotalResponseType Shipper is mandatory and the Buyer will be conditionally returned if Buyer currency is porvided.
const ( Buyer BSISV1TotalResponseType = "Buyer" Shipper BSISV1TotalResponseType = "Shipper" )
Defines values for BSISV1TotalResponseType.
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) CreateGuaranteedQuote ¶
func (c *Client) CreateGuaranteedQuote(ctx context.Context, params *CreateGuaranteedQuoteParams, body CreateGuaranteedQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGuaranteedQuoteWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// CreateGuaranteedQuoteWithBody request with any body
CreateGuaranteedQuoteWithBody(ctx context.Context, params *CreateGuaranteedQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGuaranteedQuote(ctx context.Context, params *CreateGuaranteedQuoteParams, body CreateGuaranteedQuoteJSONRequestBody, 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) CreateGuaranteedQuoteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGuaranteedQuoteWithBodyWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGuaranteedQuoteResponse, error)
CreateGuaranteedQuoteWithBodyWithResponse request with arbitrary body returning *CreateGuaranteedQuoteResponse
func (*ClientWithResponses) CreateGuaranteedQuoteWithResponse ¶
func (c *ClientWithResponses) CreateGuaranteedQuoteWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, body CreateGuaranteedQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGuaranteedQuoteResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// CreateGuaranteedQuoteWithBodyWithResponse request with any body
CreateGuaranteedQuoteWithBodyWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGuaranteedQuoteResponse, error)
CreateGuaranteedQuoteWithResponse(ctx context.Context, params *CreateGuaranteedQuoteParams, body CreateGuaranteedQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGuaranteedQuoteResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateGuaranteedQuoteJSONRequestBody ¶
type CreateGuaranteedQuoteJSONRequestBody = BSISV1QuoteRequest
CreateGuaranteedQuoteJSONRequestBody defines body for CreateGuaranteedQuote for application/json ContentType.
type CreateGuaranteedQuoteParams ¶
type CreateGuaranteedQuoteParams struct {
// TransId An identifier unique to the request.
TransId TransId `json:"transId"`
}
CreateGuaranteedQuoteParams defines parameters for CreateGuaranteedQuote.
type CreateGuaranteedQuoteResponse ¶
type CreateGuaranteedQuoteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BSISV1QuoteResponse
JSON400 *BSISV1ErrorResponse
JSON401 *BSISV1ErrorResponse
JSON422 *BSISV1ErrorResponse
}
func ParseCreateGuaranteedQuoteResponse ¶
func ParseCreateGuaranteedQuoteResponse(rsp *http.Response) (*CreateGuaranteedQuoteResponse, error)
ParseCreateGuaranteedQuoteResponse parses an HTTP response from a CreateGuaranteedQuoteWithResponse call
func (CreateGuaranteedQuoteResponse) Status ¶
func (r CreateGuaranteedQuoteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGuaranteedQuoteResponse) StatusCode ¶
func (r CreateGuaranteedQuoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function