Documentation
¶
Overview ¶
Package scsinventory 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 NewIngestInventory2Request(server string, params *IngestInventory2Params, ...) (*http.Request, error)
- func NewIngestInventory2RequestWithBody(server string, params *IngestInventory2Params, contentType string, ...) (*http.Request, error)
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) IngestInventory2WithBodyWithResponse(ctx context.Context, params *IngestInventory2Params, contentType string, ...) (*IngestInventory2Response, error)
- func (c *ClientWithResponses) IngestInventory2WithResponse(ctx context.Context, params *IngestInventory2Params, ...) (*IngestInventory2Response, error)
- type ClientWithResponsesInterface
- type Error
- type ErrorResponse
- type Forbidden
- type HttpRequestDoer
- type IngestInventory2JSONRequestBody
- type IngestInventory2Params
- type IngestInventory2Response
- type IngestInventoryErrorResponse
- type IngestInventoryRequest
- type IngestInventorySuccessResponse
- type InventoryInformation
- type InventoryRequestData
- type InventoryResult
- type ItemDimensions
- type OperationError
- type ReferenceInformation
- type RequestEditorFn
- type ResponseErrorsArr
- type TransId
- type UnauthorizedResponse
- type WarehouseAddress
- type WarehouseInformation
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewIngestInventory2Request ¶
func NewIngestInventory2Request(server string, params *IngestInventory2Params, body IngestInventory2JSONRequestBody) (*http.Request, error)
NewIngestInventory2Request calls the generic IngestInventory2 builder with application/json body
func NewIngestInventory2RequestWithBody ¶
func NewIngestInventory2RequestWithBody(server string, params *IngestInventory2Params, contentType string, body io.Reader) (*http.Request, error)
NewIngestInventory2RequestWithBody generates requests for IngestInventory2 with any type of body
Types ¶
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) IngestInventory2 ¶
func (c *Client) IngestInventory2(ctx context.Context, params *IngestInventory2Params, body IngestInventory2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestInventory2WithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// IngestInventory2WithBody request with any body
IngestInventory2WithBody(ctx context.Context, params *IngestInventory2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestInventory2(ctx context.Context, params *IngestInventory2Params, body IngestInventory2JSONRequestBody, 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) IngestInventory2WithBodyWithResponse ¶
func (c *ClientWithResponses) IngestInventory2WithBodyWithResponse(ctx context.Context, params *IngestInventory2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestInventory2Response, error)
IngestInventory2WithBodyWithResponse request with arbitrary body returning *IngestInventory2Response
func (*ClientWithResponses) IngestInventory2WithResponse ¶
func (c *ClientWithResponses) IngestInventory2WithResponse(ctx context.Context, params *IngestInventory2Params, body IngestInventory2JSONRequestBody, reqEditors ...RequestEditorFn) (*IngestInventory2Response, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// IngestInventory2WithBodyWithResponse request with any body
IngestInventory2WithBodyWithResponse(ctx context.Context, params *IngestInventory2Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestInventory2Response, error)
IngestInventory2WithResponse(ctx context.Context, params *IngestInventory2Params, body IngestInventory2JSONRequestBody, reqEditors ...RequestEditorFn) (*IngestInventory2Response, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Error ¶
type Error struct {
// Code error code
Code string `json:"code"`
// Message error message
Message string `json:"message"`
}
Error Error entity
type ErrorResponse ¶
type ErrorResponse struct {
// Response Error response entity
Response *ResponseErrorsArr `json:"response,omitempty"`
}
ErrorResponse Response Object for error condition
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IngestInventory2JSONRequestBody ¶
type IngestInventory2JSONRequestBody = IngestInventoryRequest
IngestInventory2JSONRequestBody defines body for IngestInventory2 for application/json ContentType.
type IngestInventory2Params ¶
type IngestInventory2Params struct {
// TransId An identifier unique to the request.
TransId TransId `json:"transId"`
}
IngestInventory2Params defines parameters for IngestInventory2.
type IngestInventory2Response ¶
type IngestInventory2Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IngestInventorySuccessResponse
JSON400 *IngestInventoryErrorResponse
JSON401 *UnauthorizedResponse
JSON403 *Forbidden
JSON500 *IngestInventoryErrorResponse
}
func ParseIngestInventory2Response ¶
func ParseIngestInventory2Response(rsp *http.Response) (*IngestInventory2Response, error)
ParseIngestInventory2Response parses an HTTP response from a IngestInventory2WithResponse call
func (IngestInventory2Response) Status ¶
func (r IngestInventory2Response) Status() string
Status returns HTTPResponse.Status
func (IngestInventory2Response) StatusCode ¶
func (r IngestInventory2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IngestInventoryErrorResponse ¶
type IngestInventoryErrorResponse struct {
// Errors Array of errors encountered
Errors []OperationError `json:"errors"`
// IsCompleted Indicates if the operation completed
IsCompleted bool `json:"isCompleted"`
// IsFaulted Indicates if the operation encountered a fault
IsFaulted bool `json:"isFaulted"`
// Result Result message
Result string `json:"result"`
}
IngestInventoryErrorResponse Error response for inventory ingestion
type IngestInventoryRequest ¶
type IngestInventoryRequest struct {
// ApiVersion API version
ApiVersion string `json:"apiVersion"`
// Request Inventory request data
Request InventoryRequestData `json:"request"`
}
IngestInventoryRequest Request payload for ingesting inventory data
type IngestInventorySuccessResponse ¶
type IngestInventorySuccessResponse struct {
// Errors Array of errors (empty on success)
Errors []map[string]interface{} `json:"errors"`
// IsCompleted Indicates if the operation completed
IsCompleted bool `json:"isCompleted"`
// IsFaulted Indicates if the operation encountered a fault
IsFaulted bool `json:"isFaulted"`
// Result Array of processed inventory results
Result []InventoryResult `json:"result"`
}
IngestInventorySuccessResponse Successful response for inventory ingestion
type InventoryInformation ¶
type InventoryInformation struct {
// AvailableQuantity Available quantity
AvailableQuantity *string `json:"availableQuantity,omitempty"`
// BatchHoldReason Reason for batch hold
BatchHoldReason *string `json:"batchHoldReason,omitempty"`
// BatchStatus Batch status
BatchStatus *string `json:"batchStatus,omitempty"`
// BusinessUnit Business unit
BusinessUnit *string `json:"businessUnit"`
// Category Item category
Category *string `json:"category,omitempty"`
// CustomerAccountNumber Customer account number
CustomerAccountNumber string `json:"customerAccountNumber"`
// Designator Item designator
Designator *string `json:"designator"`
// DispositionCode Disposition code
DispositionCode *string `json:"dispositionCode,omitempty"`
// DpOrgEntityKey DP organization entity key
DpOrgEntityKey *string `json:"dpOrgEntityKey"`
// ExpirationDate Expiration date
ExpirationDate *string `json:"expirationDate"`
// HazardClass Hazard class
HazardClass *string `json:"hazardClass,omitempty"`
// HazmatClass Hazmat class
HazmatClass *string `json:"hazmatClass,omitempty"`
// HoldDescription Description of hold
HoldDescription *string `json:"holdDescription"`
// InTransitQuantity In-transit quantity
InTransitQuantity *string `json:"inTransitQuantity,omitempty"`
// ItemDescription Item description
ItemDescription *string `json:"itemDescription,omitempty"`
// ItemDimensions Item dimensional information
ItemDimensions *ItemDimensions `json:"itemDimensions,omitempty"`
// ItemNumber Item number
ItemNumber string `json:"itemNumber"`
// ItemWeight Item weight
ItemWeight *string `json:"itemWeight,omitempty"`
// ItemWeightUOM Item weight unit of measure
ItemWeightUOM *string `json:"itemWeightUOM,omitempty"`
// LpnNumber License plate number
LpnNumber *string `json:"lpnNumber"`
// NonAvailableQuantity Non-available quantity
NonAvailableQuantity *string `json:"nonAvailableQuantity,omitempty"`
// PalletId Pallet identifier
PalletId *string `json:"palletId,omitempty"`
// QcHoldQuantity Quality control hold quantity
QcHoldQuantity *string `json:"qcHoldQuantity,omitempty"`
// References Reference information
References *[]ReferenceInformation `json:"references,omitempty"`
// ReservedQuantity Reserved quantity
ReservedQuantity *string `json:"reservedQuantity,omitempty"`
// StrategicGoodsFlag Strategic goods flag
StrategicGoodsFlag *string `json:"strategicGoodsFlag,omitempty"`
// UnCode UN code
UnCode *string `json:"unCode,omitempty"`
// VendorLotNumber Vendor lot number
VendorLotNumber *string `json:"vendorLotNumber"`
// VendorSerialNumber Vendor serial number
VendorSerialNumber *string `json:"vendorSerialNumber"`
// WarehouseInformation Warehouse location and address information
WarehouseInformation *WarehouseInformation `json:"warehouseInformation,omitempty"`
}
InventoryInformation Detailed inventory information for a specific item
type InventoryRequestData ¶
type InventoryRequestData struct {
// DocDateTime Document date and time
DocDateTime *string `json:"docDateTime,omitempty"`
// DocFlow Document flow type
DocFlow string `json:"docFlow"`
// DocId Document identifier
DocId *string `json:"docId,omitempty"`
// DocType Document type
DocType string `json:"docType"`
// DocVer Document version
DocVer *string `json:"docVer,omitempty"`
// InventoryInformation Array of inventory information records
InventoryInformation []InventoryInformation `json:"inventoryInformation"`
// InventorySnapshotDate Inventory snapshot date and time
InventorySnapshotDate *string `json:"inventorySnapshotDate,omitempty"`
// InventorySnapshotId Unique inventory snapshot identifier
InventorySnapshotId *string `json:"inventorySnapshotId,omitempty"`
// PartnerId Partner identifier
PartnerId string `json:"partnerId"`
// SbMessageId Service bus message identifier
SbMessageId *openapi_types.UUID `json:"sbMessageId,omitempty"`
// SourceSystem Source system identifier
SourceSystem string `json:"sourceSystem"`
// TransactionType Transaction type
TransactionType *string `json:"transactionType,omitempty"`
}
InventoryRequestData Inventory request data
type InventoryResult ¶
type InventoryResult struct {
// DocId Document identifier
DocId *string `json:"docId,omitempty"`
// DocType Document type
DocType *string `json:"docType,omitempty"`
// IsCompleted Indicates if this item was successfully processed
IsCompleted *bool `json:"isCompleted,omitempty"`
// MessageId Message identifier
MessageId *openapi_types.UUID `json:"messageId,omitempty"`
// OrderNumber Order number
OrderNumber *string `json:"orderNumber,omitempty"`
// ShipmentNumber Shipment number
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
// ShipmentUniquekey Unique shipment key
ShipmentUniquekey *string `json:"shipmentUniquekey,omitempty"`
}
InventoryResult Individual inventory processing result
type ItemDimensions ¶
type ItemDimensions struct {
// DimensionUOM Dimension unit of measure
DimensionUOM *string `json:"dimensionUOM,omitempty"`
// Height Item height
Height *string `json:"height,omitempty"`
// Length Item length
Length *string `json:"length,omitempty"`
// Width Item width
Width *string `json:"width,omitempty"`
}
ItemDimensions Item dimensional information
type OperationError ¶
type OperationError struct {
// Code Error code
Code string `json:"code"`
// Message Error message
Message string `json:"message"`
// Source Error source
Source string `json:"source"`
}
OperationError Error details for failed operations
type ReferenceInformation ¶
type ReferenceInformation struct {
// ReferenceCode Reference code
ReferenceCode *string `json:"referenceCode,omitempty"`
// ReferenceType Reference type
ReferenceType *string `json:"referenceType,omitempty"`
// ReferenceValue Reference value
ReferenceValue *string `json:"referenceValue,omitempty"`
}
ReferenceInformation Reference information for inventory items
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseErrorsArr ¶
type ResponseErrorsArr struct {
// Errors error payload - array containing one or more Errors
Errors []Error `json:"errors"`
}
ResponseErrorsArr Error response entity
type UnauthorizedResponse ¶
type UnauthorizedResponse struct {
ApiName string `json:"apiName"`
ErrorCode string `json:"errorCode"`
ErrorDate string `json:"errorDate"`
ErrorDescription string `json:"errorDescription"`
ErrorTime string `json:"errorTime"`
FaultName string `json:"faultName"`
}
UnauthorizedResponse Unauthorized error response
type WarehouseAddress ¶
type WarehouseAddress struct {
// City City name
City *string `json:"city,omitempty"`
// Country Country code
Country *string `json:"country,omitempty"`
// PostalCode Postal code
PostalCode *string `json:"postalCode,omitempty"`
// StateProvince State or province code
StateProvince *string `json:"stateProvince,omitempty"`
}
WarehouseAddress Warehouse physical address
type WarehouseInformation ¶
type WarehouseInformation struct {
// Address Warehouse physical address
Address *WarehouseAddress `json:"address,omitempty"`
// WarehouseCode Warehouse code
WarehouseCode *string `json:"warehouseCode,omitempty"`
// WarehouseName Warehouse name
WarehouseName *string `json:"warehouseName,omitempty"`
// WarehouseTimeZone Warehouse time zone
WarehouseTimeZone *string `json:"warehouseTimeZone,omitempty"`
}
WarehouseInformation Warehouse location and address information