Documentation ¶
Overview ¶
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
* Inpost Mobile * * Extracted from retrofit * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AddressDetails
- type AgreementGrant
- type AuthenticateRequest
- type BasicAuth
- type CashOnDelivery
- type Compartment
- type CompartmentClaimRequest
- type CompartmentClaimResponse
- type CompartmentCloseResponse
- type CompartmentOpenResponse
- type CompartmentStatusResponse
- type CompartmentValidateResponse
- type Completable
- type Configuration
- type ConfirmSmsResponse
- type CreateOrganizationTicketRequest
- type CreateTicketDetailsNetwork
- type DefaultApiService
- func (a *DefaultApiService) V1AuthenticatePost(ctx context.Context, localVarOptionals *DefaultApiV1AuthenticatePostOpts) (RefreshTokenResponse, *http.Response, error)
- func (a *DefaultApiService) V1CollectCompartmentCloseSessionUuidGet(ctx context.Context, sessionUuid string) (CompartmentCloseResponse, *http.Response, error)
- func (a *DefaultApiService) V1CollectCompartmentOpenSessionUuidPost(ctx context.Context, sessionUuid string) (CompartmentOpenResponse, *http.Response, error)
- func (a *DefaultApiService) V1CollectCompartmentReopenSessionUuidPost(ctx context.Context, sessionUuid string) (CompartmentOpenResponse, *http.Response, error)
- func (a *DefaultApiService) V1CollectCompartmentStatusSessionUuidGet(ctx context.Context, sessionUuid string, ...) (CompartmentStatusResponse, *http.Response, error)
- func (a *DefaultApiService) V1CollectTerminateSessionUuidPost(ctx context.Context, sessionUuid string) (Completable, *http.Response, error)
- func (a *DefaultApiService) V1CollectValidatePost(ctx context.Context, localVarOptionals *DefaultApiV1CollectValidatePostOpts) (CompartmentValidateResponse, *http.Response, error)
- func (a *DefaultApiService) V1ConfirmSMSCodePhoneNumberSmsCodePost(ctx context.Context, phoneNumber string, smsCode string, ...) (ConfirmSmsResponse, *http.Response, error)
- func (a *DefaultApiService) V1LogoutPost(ctx context.Context) (Completable, *http.Response, error)
- func (a *DefaultApiService) V1NotificationsGet(ctx context.Context, localVarOptionals *DefaultApiV1NotificationsGetOpts) (NotificationResponse, *http.Response, error)
- func (a *DefaultApiService) V1NotificationsReadAllPost(ctx context.Context, ...) (NotificationData, *http.Response, error)
- func (a *DefaultApiService) V1NotificationsReadNotificationIdPost(ctx context.Context, notificationId string) (NotificationData, *http.Response, error)
- func (a *DefaultApiService) V1ObservedParcelPost(ctx context.Context, localVarOptionals *DefaultApiV1ObservedParcelPostOpts) (Completable, *http.Response, error)
- func (a *DefaultApiService) V1ObservedParcelShipmentNumberDelete(ctx context.Context, shipmentNumber string) (Completable, *http.Response, error)
- func (a *DefaultApiService) V1ParcelGet(ctx context.Context, localVarOptionals *DefaultApiV1ParcelGetOpts) ([]Parcel, *http.Response, error)
- func (a *DefaultApiService) V1ParcelShipmentNumberGet(ctx context.Context, shipmentNumber string) (Parcel, *http.Response, error)
- func (a *DefaultApiService) V1ParcelsGet(ctx context.Context, localVarOptionals *DefaultApiV1ParcelsGetOpts) ([]Parcel, *http.Response, error)
- func (a *DefaultApiService) V1PointsGet(ctx context.Context, localVarOptionals *DefaultApiV1PointsGetOpts) (DeliveryPointsResponse, *http.Response, error)
- func (a *DefaultApiService) V1ReturnsTicketsGet(ctx context.Context) (ReturnTicketsResponse, *http.Response, error)
- func (a *DefaultApiService) V1ReturnsTicketsPost(ctx context.Context, localVarOptionals *DefaultApiV1ReturnsTicketsPostOpts) (CreateTicketDetailsNetwork, *http.Response, error)
- func (a *DefaultApiService) V1ReturnsTicketsUuidGet(ctx context.Context, uuid string) (ReturnTicketNetwork, *http.Response, error)
- func (a *DefaultApiService) V1SendSMSCodePhoneNumberGet(ctx context.Context, phoneNumber string) (Completable, *http.Response, error)
- func (a *DefaultApiService) V2AgreementGet(ctx context.Context) ([]AgreementGrant, *http.Response, error)
- func (a *DefaultApiService) V2AgreementPost(ctx context.Context, localVarOptionals *DefaultApiV2AgreementPostOpts) (Completable, *http.Response, error)
- func (a *DefaultApiService) V2CollectCompartmentClaimSessionUuidPost(ctx context.Context, sessionUuid string, ...) (CompartmentClaimResponse, *http.Response, error)
- func (a *DefaultApiService) V2SetPushIdPost(ctx context.Context, localVarOptionals *DefaultApiV2SetPushIdPostOpts) (Completable, *http.Response, error)
- type DefaultApiV1AuthenticatePostOpts
- type DefaultApiV1CollectCompartmentStatusSessionUuidGetOpts
- type DefaultApiV1CollectValidatePostOpts
- type DefaultApiV1ConfirmSMSCodePhoneNumberSmsCodePostOpts
- type DefaultApiV1NotificationsGetOpts
- type DefaultApiV1NotificationsReadAllPostOpts
- type DefaultApiV1ObservedParcelPostOpts
- type DefaultApiV1ParcelGetOpts
- type DefaultApiV1ParcelsGetOpts
- type DefaultApiV1PointsGetOpts
- type DefaultApiV1ReturnsTicketsPostOpts
- type DefaultApiV2AgreementPostOpts
- type DefaultApiV2CollectCompartmentClaimSessionUuidPostOpts
- type DefaultApiV2SetPushIdPostOpts
- type DeliveryPointData
- type DeliveryPointsResponse
- type GenericSwaggerError
- type GeoPoint
- type Location
- type MultiCompartment
- type NotificationData
- type NotificationResponse
- type Parcel
- type ParcelCompartment
- type ParcelHistory
- type PhoneOsRequest
- type PointLocation
- type PushIdBody
- type RefreshTokenResponse
- type ReturnSenderNetwork
- type ReturnTicketEventLogNetwork
- type ReturnTicketNetwork
- type ReturnTicketOperationsNetwork
- type ReturnTicketsResponse
- type SubscribeRequest
- type ValidationRequest
Constants ¶
This section is empty.
Variables ¶
var ( // 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") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { DefaultApi *DefaultApiService // contains filtered or unexported fields }
APIClient manages communication with the Inpost Mobile API v1.0.0 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) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIKey ¶
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 swagger 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:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AddressDetails ¶
type AgreementGrant ¶
type AuthenticateRequest ¶
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 CashOnDelivery ¶
type Compartment ¶
type CompartmentClaimRequest ¶
type CompartmentClaimRequest struct {
ShipmentNumbers []string `json:"shipmentNumbers,omitempty"`
}
type CompartmentCloseResponse ¶
type CompartmentCloseResponse struct {
Closed bool `json:"closed,omitempty"`
}
type CompartmentOpenResponse ¶
type CompartmentOpenResponse struct { ActionTime int32 `json:"actionTime,omitempty"` Compartment *Compartment `json:"compartment,omitempty"` ConfirmActionTime int32 `json:"confirmActionTime,omitempty"` OpenCompartmentWaitingTime int32 `json:"openCompartmentWaitingTime,omitempty"` }
type CompartmentStatusResponse ¶
type CompartmentStatusResponse struct { Compartment *Compartment `json:"compartment,omitempty"` Status string `json:"status,omitempty"` }
type Completable ¶
type Completable struct { }
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type ConfirmSmsResponse ¶
type CreateOrganizationTicketRequest ¶
type CreateOrganizationTicketRequest struct { Address string `json:"address,omitempty"` Description string `json:"description,omitempty"` OrderNumber string `json:"orderNumber,omitempty"` OrganizationUuid string `json:"organizationUuid,omitempty"` ParcelSize string `json:"parcelSize,omitempty"` ReasonUuid string `json:"reasonUuid,omitempty"` Sender *ReturnSenderNetwork `json:"sender,omitempty"` }
type DefaultApiService ¶
type DefaultApiService service
func (*DefaultApiService) V1AuthenticatePost ¶
func (a *DefaultApiService) V1AuthenticatePost(ctx context.Context, localVarOptionals *DefaultApiV1AuthenticatePostOpts) (RefreshTokenResponse, *http.Response, error)
func (*DefaultApiService) V1CollectCompartmentCloseSessionUuidGet ¶
func (a *DefaultApiService) V1CollectCompartmentCloseSessionUuidGet(ctx context.Context, sessionUuid string) (CompartmentCloseResponse, *http.Response, error)
DefaultApiService CompartmentApi.closeCompartment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param sessionUuid CompartmentApi.closeCompartment.str
@return CompartmentCloseResponse
func (*DefaultApiService) V1CollectCompartmentOpenSessionUuidPost ¶
func (a *DefaultApiService) V1CollectCompartmentOpenSessionUuidPost(ctx context.Context, sessionUuid string) (CompartmentOpenResponse, *http.Response, error)
DefaultApiService CompartmentApi.openCompartment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param sessionUuid CompartmentApi.openCompartment.str
@return CompartmentOpenResponse
func (*DefaultApiService) V1CollectCompartmentReopenSessionUuidPost ¶
func (a *DefaultApiService) V1CollectCompartmentReopenSessionUuidPost(ctx context.Context, sessionUuid string) (CompartmentOpenResponse, *http.Response, error)
DefaultApiService CompartmentApi.reopenCompartment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param sessionUuid CompartmentApi.reopenCompartment.str
@return CompartmentOpenResponse
func (*DefaultApiService) V1CollectCompartmentStatusSessionUuidGet ¶
func (a *DefaultApiService) V1CollectCompartmentStatusSessionUuidGet(ctx context.Context, sessionUuid string, localVarOptionals *DefaultApiV1CollectCompartmentStatusSessionUuidGetOpts) (CompartmentStatusResponse, *http.Response, error)
func (*DefaultApiService) V1CollectTerminateSessionUuidPost ¶
func (a *DefaultApiService) V1CollectTerminateSessionUuidPost(ctx context.Context, sessionUuid string) (Completable, *http.Response, error)
DefaultApiService CompartmentApi.terminateCompartment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param sessionUuid CompartmentApi.terminateCompartment.str
@return Completable
func (*DefaultApiService) V1CollectValidatePost ¶
func (a *DefaultApiService) V1CollectValidatePost(ctx context.Context, localVarOptionals *DefaultApiV1CollectValidatePostOpts) (CompartmentValidateResponse, *http.Response, error)
func (*DefaultApiService) V1ConfirmSMSCodePhoneNumberSmsCodePost ¶
func (a *DefaultApiService) V1ConfirmSMSCodePhoneNumberSmsCodePost(ctx context.Context, phoneNumber string, smsCode string, localVarOptionals *DefaultApiV1ConfirmSMSCodePhoneNumberSmsCodePostOpts) (ConfirmSmsResponse, *http.Response, error)
func (*DefaultApiService) V1LogoutPost ¶
func (a *DefaultApiService) V1LogoutPost(ctx context.Context) (Completable, *http.Response, error)
DefaultApiService UserApi.logout
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return Completable
func (*DefaultApiService) V1NotificationsGet ¶
func (a *DefaultApiService) V1NotificationsGet(ctx context.Context, localVarOptionals *DefaultApiV1NotificationsGetOpts) (NotificationResponse, *http.Response, error)
func (*DefaultApiService) V1NotificationsReadAllPost ¶
func (a *DefaultApiService) V1NotificationsReadAllPost(ctx context.Context, localVarOptionals *DefaultApiV1NotificationsReadAllPostOpts) (NotificationData, *http.Response, error)
func (*DefaultApiService) V1NotificationsReadNotificationIdPost ¶
func (a *DefaultApiService) V1NotificationsReadNotificationIdPost(ctx context.Context, notificationId string) (NotificationData, *http.Response, error)
DefaultApiService NotificationCenterApi.markAsRead
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param notificationId NotificationCenterApi.markAsRead.str
@return NotificationData
func (*DefaultApiService) V1ObservedParcelPost ¶
func (a *DefaultApiService) V1ObservedParcelPost(ctx context.Context, localVarOptionals *DefaultApiV1ObservedParcelPostOpts) (Completable, *http.Response, error)
func (*DefaultApiService) V1ObservedParcelShipmentNumberDelete ¶
func (a *DefaultApiService) V1ObservedParcelShipmentNumberDelete(ctx context.Context, shipmentNumber string) (Completable, *http.Response, error)
DefaultApiService ParcelApi.removeObservedParcel
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param shipmentNumber ParcelApi.removeObservedParcel.str
@return Completable
func (*DefaultApiService) V1ParcelGet ¶
func (a *DefaultApiService) V1ParcelGet(ctx context.Context, localVarOptionals *DefaultApiV1ParcelGetOpts) ([]Parcel, *http.Response, error)
func (*DefaultApiService) V1ParcelShipmentNumberGet ¶
func (a *DefaultApiService) V1ParcelShipmentNumberGet(ctx context.Context, shipmentNumber string) (Parcel, *http.Response, error)
DefaultApiService ParcelApi.oneParcel
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param shipmentNumber ParcelApi.oneParcel.str
@return Parcel
func (*DefaultApiService) V1ParcelsGet ¶
func (a *DefaultApiService) V1ParcelsGet(ctx context.Context, localVarOptionals *DefaultApiV1ParcelsGetOpts) ([]Parcel, *http.Response, error)
func (*DefaultApiService) V1PointsGet ¶
func (a *DefaultApiService) V1PointsGet(ctx context.Context, localVarOptionals *DefaultApiV1PointsGetOpts) (DeliveryPointsResponse, *http.Response, error)
func (*DefaultApiService) V1ReturnsTicketsGet ¶
func (a *DefaultApiService) V1ReturnsTicketsGet(ctx context.Context) (ReturnTicketsResponse, *http.Response, error)
DefaultApiService ReturnTicketApi.m4664a
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ReturnTicketsResponse
func (*DefaultApiService) V1ReturnsTicketsPost ¶
func (a *DefaultApiService) V1ReturnsTicketsPost(ctx context.Context, localVarOptionals *DefaultApiV1ReturnsTicketsPostOpts) (CreateTicketDetailsNetwork, *http.Response, error)
func (*DefaultApiService) V1ReturnsTicketsUuidGet ¶
func (a *DefaultApiService) V1ReturnsTicketsUuidGet(ctx context.Context, uuid string) (ReturnTicketNetwork, *http.Response, error)
DefaultApiService ReturnTicketApi.m4663b
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param uuid ReturnTicketApi.m4663b.str
@return ReturnTicketNetwork
func (*DefaultApiService) V1SendSMSCodePhoneNumberGet ¶
func (a *DefaultApiService) V1SendSMSCodePhoneNumberGet(ctx context.Context, phoneNumber string) (Completable, *http.Response, error)
DefaultApiService RegistrationApi.sendSMSCode
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param phoneNumber RegistrationApi.sendSMSCode.str
@return Completable
func (*DefaultApiService) V2AgreementGet ¶
func (a *DefaultApiService) V2AgreementGet(ctx context.Context) ([]AgreementGrant, *http.Response, error)
DefaultApiService AgreementApi.agreement
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []AgreementGrant
func (*DefaultApiService) V2AgreementPost ¶
func (a *DefaultApiService) V2AgreementPost(ctx context.Context, localVarOptionals *DefaultApiV2AgreementPostOpts) (Completable, *http.Response, error)
func (*DefaultApiService) V2CollectCompartmentClaimSessionUuidPost ¶
func (a *DefaultApiService) V2CollectCompartmentClaimSessionUuidPost(ctx context.Context, sessionUuid string, localVarOptionals *DefaultApiV2CollectCompartmentClaimSessionUuidPostOpts) (CompartmentClaimResponse, *http.Response, error)
func (*DefaultApiService) V2SetPushIdPost ¶
func (a *DefaultApiService) V2SetPushIdPost(ctx context.Context, localVarOptionals *DefaultApiV2SetPushIdPostOpts) (Completable, *http.Response, error)
type DeliveryPointData ¶
type DeliveryPointData struct { AddressDetails *AddressDetails `json:"addressDetails,omitempty"` Location *PointLocation `json:"location,omitempty"` Location247 bool `json:"location247,omitempty"` LocationDescription string `json:"locationDescription,omitempty"` Name string `json:"name,omitempty"` OpeningHours string `json:"openingHours,omitempty"` PaymentType map[string]string `json:"paymentType,omitempty"` Status string `json:"status,omitempty"` Type_ []string `json:"type,omitempty"` Virtual int32 `json:"virtual,omitempty"` }
type DeliveryPointsResponse ¶
type DeliveryPointsResponse struct {
Items []DeliveryPointData `json:"items,omitempty"`
}
type GenericSwaggerError ¶
type GenericSwaggerError struct {
// contains filtered or unexported fields
}
GenericSwaggerError Provides access to the body, error and model on returned errors.
func (GenericSwaggerError) Body ¶
func (e GenericSwaggerError) Body() []byte
Body returns the raw bytes of the response
func (GenericSwaggerError) Error ¶
func (e GenericSwaggerError) Error() string
Error returns non-empty string if there was an error.
func (GenericSwaggerError) Model ¶
func (e GenericSwaggerError) Model() interface{}
Model returns the unpacked model of the error
type MultiCompartment ¶
type NotificationData ¶
type NotificationData struct { Content string `json:"content,omitempty"` Date time.Time `json:"date,omitempty"` F35560id string `json:"f35560id,omitempty"` ImageUrl string `json:"imageUrl,omitempty"` ParcelCount int32 `json:"parcelCount,omitempty"` Read bool `json:"read,omitempty"` Sender string `json:"sender,omitempty"` ShipmentNumber string `json:"shipmentNumber,omitempty"` Title string `json:"title,omitempty"` Type_ string `json:"type,omitempty"` }
type NotificationResponse ¶
type NotificationResponse struct {
Notifications []NotificationData `json:"notifications,omitempty"`
}
type Parcel ¶
type Parcel struct { CashOnDelivery *CashOnDelivery `json:"cashOnDelivery,omitempty"` EndOfWeekCollection bool `json:"endOfWeekCollection,omitempty"` ExpiryDate time.Time `json:"expiryDate,omitempty"` IsMobileCollectPossible bool `json:"isMobileCollectPossible,omitempty"` IsObserved bool `json:"isObserved,omitempty"` MultiCompartment *MultiCompartment `json:"multiCompartment,omitempty"` OpenCode string `json:"openCode,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` PickupDate time.Time `json:"pickupDate,omitempty"` PickupPoint *DeliveryPointData `json:"pickupPoint,omitempty"` QrCode string `json:"qrCode,omitempty"` ReturnedToSenderDate time.Time `json:"returnedToSenderDate,omitempty"` SenderName string `json:"senderName,omitempty"` ShipmentNumber string `json:"shipmentNumber,omitempty"` ShipmentType string `json:"shipmentType,omitempty"` Status string `json:"status,omitempty"` StatusHistory []ParcelHistory `json:"statusHistory,omitempty"` StoredDate time.Time `json:"storedDate,omitempty"` }
type ParcelCompartment ¶
type ParcelHistory ¶
type PhoneOsRequest ¶
type PhoneOsRequest struct {
PhoneOS string `json:"phoneOS,omitempty"`
}
type PointLocation ¶
type PushIdBody ¶
type RefreshTokenResponse ¶
type RefreshTokenResponse struct {
AuthToken string `json:"authToken,omitempty"`
}
type ReturnSenderNetwork ¶
type ReturnTicketNetwork ¶
type ReturnTicketNetwork struct { AcceptedDate time.Time `json:"acceptedDate,omitempty"` Address string `json:"address,omitempty"` CreatedDate time.Time `json:"createdDate,omitempty"` DeliveredDate time.Time `json:"deliveredDate,omitempty"` Description string `json:"description,omitempty"` EventLog []ReturnTicketEventLogNetwork `json:"eventLog,omitempty"` ExpiryDate time.Time `json:"expiryDate,omitempty"` FormType string `json:"formType,omitempty"` Operations *ReturnTicketOperationsNetwork `json:"operations,omitempty"` OrderNumber string `json:"orderNumber,omitempty"` OrganizationName string `json:"organizationName,omitempty"` ParcelSize string `json:"parcelSize,omitempty"` QrCode string `json:"qrCode,omitempty"` ReturnCode string `json:"returnCode,omitempty"` ReturnReason string `json:"returnReason,omitempty"` Rma string `json:"rma,omitempty"` SentDate time.Time `json:"sentDate,omitempty"` ShipmentNumber string `json:"shipmentNumber,omitempty"` Status string `json:"status,omitempty"` Uuid string `json:"uuid,omitempty"` }
type ReturnTicketOperationsNetwork ¶
type ReturnTicketOperationsNetwork struct { AutoArchivableSince time.Time `json:"autoArchivableSince,omitempty"` Delete bool `json:"delete,omitempty"` Highlight bool `json:"highlight,omitempty"` ManualArchive bool `json:"manualArchive,omitempty"` RefreshUntil time.Time `json:"refreshUntil,omitempty"` Send bool `json:"send,omitempty"` }
type ReturnTicketsResponse ¶
type ReturnTicketsResponse struct {
Tickets []ReturnTicketNetwork `json:"tickets,omitempty"`
}
type SubscribeRequest ¶
type SubscribeRequest struct {
ShipmentNumber string `json:"shipmentNumber,omitempty"`
}
type ValidationRequest ¶
type ValidationRequest struct { GeoPoint *GeoPoint `json:"geoPoint,omitempty"` Parcel *ParcelCompartment `json:"parcel,omitempty"` }
Source Files ¶
- api_default.go
- client.go
- configuration.go
- model_address_details.go
- model_agreement_grant.go
- model_authenticate_request.go
- model_cash_on_delivery.go
- model_compartment.go
- model_compartment_claim_request.go
- model_compartment_claim_response.go
- model_compartment_close_response.go
- model_compartment_open_response.go
- model_compartment_status_response.go
- model_compartment_validate_response.go
- model_completable.go
- model_confirm_sms_response.go
- model_create_organization_ticket_request.go
- model_create_ticket_details_network.go
- model_delivery_point_data.go
- model_delivery_points_response.go
- model_geo_point.go
- model_location.go
- model_multi_compartment.go
- model_notification_data.go
- model_notification_response.go
- model_parcel.go
- model_parcel_compartment.go
- model_parcel_history.go
- model_phone_os_request.go
- model_point_location.go
- model_push_id_body.go
- model_refresh_token_response.go
- model_return_sender_network.go
- model_return_ticket_event_log_network.go
- model_return_ticket_network.go
- model_return_ticket_operations_network.go
- model_return_tickets_response.go
- model_subscribe_request.go
- model_validation_request.go
- response.go