Documentation
¶
Overview ¶
Package flexops provides the official Go SDK for the FlexOps multi-carrier shipping platform API.
Index ¶
- func VerifySignature(payload, signature, secret string) bool
- type Address
- type AddressValidationResult
- type AnalyticsService
- func (s *AnalyticsService) CarrierPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) CarrierSummary(ctx context.Context, startDate, endDate string) (ApiResponse[[]CarrierSummary], error)
- func (s *AnalyticsService) DeliveryPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) InventoryMetrics(ctx context.Context) (ApiResponse[any], error)
- func (s *AnalyticsService) OrderMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) OrderTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) PerformanceMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) ReturnReasons(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) ReturnsMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) ReturnsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) ShipmentsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[[]ShipmentsTrend], error)
- func (s *AnalyticsService) ShippingCostAnalytics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
- func (s *AnalyticsService) StockByWarehouse(ctx context.Context) (ApiResponse[any], error)
- func (s *AnalyticsService) TopDestinations(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error)
- func (s *AnalyticsService) TopSellingProducts(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error)
- type ApiKeyInfo
- type ApiKeysService
- func (s *ApiKeysService) Create(ctx context.Context, req CreateApiKeyRequest) (ApiResponse[CreateApiKeyResponse], error)
- func (s *ApiKeysService) List(ctx context.Context) (ApiResponse[[]ApiKeyInfo], error)
- func (s *ApiKeysService) Revoke(ctx context.Context, keyID string) error
- func (s *ApiKeysService) Rotate(ctx context.Context, keyID string) (ApiResponse[CreateApiKeyResponse], error)
- type ApiResponse
- type AuthError
- type AuthService
- func (s *AuthService) ChangePassword(ctx context.Context, currentPassword, newPassword string) (ApiResponse[any], error)
- func (s *AuthService) ForgotPassword(ctx context.Context, email string) (ApiResponse[any], error)
- func (s *AuthService) GetProfile(ctx context.Context) (ApiResponse[any], error)
- func (s *AuthService) Login(ctx context.Context, email, password string) (ApiResponse[LoginResponse], error)
- func (s *AuthService) Logout(ctx context.Context) error
- func (s *AuthService) RefreshToken(ctx context.Context, refreshToken string) (ApiResponse[LoginResponse], error)
- func (s *AuthService) Register(ctx context.Context, req RegisterRequest) (ApiResponse[any], error)
- func (s *AuthService) ResetPassword(ctx context.Context, token, newPassword string) (ApiResponse[any], error)
- func (s *AuthService) UpdateProfile(ctx context.Context, data any) (ApiResponse[any], error)
- func (s *AuthService) VerifyEmail(ctx context.Context, token string) (ApiResponse[any], error)
- type BatchLabelJob
- type BatchLabelRequest
- type CarrierRecommendation
- type CarrierRecommendationRequest
- type CarrierRecommendationResponse
- type CarrierSummary
- type CarriersService
- type Client
- type Config
- type CreateApiKeyRequest
- type CreateApiKeyResponse
- type CreateLabelRequest
- type CreateWebhookRequest
- type CreateWorkspaceRequest
- type DeliveryPredictionRequest
- type DeliveryPredictionResponse
- type DhlService
- func (s *DhlService) CalculateLandedCost(ctx context.Context, body any) (any, error)
- func (s *DhlService) CancelPickup(ctx context.Context) error
- func (s *DhlService) CreatePickup(ctx context.Context, body any) (any, error)
- func (s *DhlService) CreateShipment(ctx context.Context, body any) (any, error)
- func (s *DhlService) FindServicePoints(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) GetMultiPieceRates(ctx context.Context, body any) (any, error)
- func (s *DhlService) GetProducts(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) GetProofOfDelivery(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) GetRates(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) GetReferenceData(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) ScreenShipment(ctx context.Context, body any) (any, error)
- func (s *DhlService) Track(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) TrackMultiple(ctx context.Context, params map[string]string) (any, error)
- func (s *DhlService) UpdatePickup(ctx context.Context, body any) (any, error)
- func (s *DhlService) UploadInvoice(ctx context.Context, body any) (any, error)
- func (s *DhlService) ValidateAddress(ctx context.Context, params map[string]string) (any, error)
- type EmailTemplatesService
- func (s *EmailTemplatesService) Create(ctx context.Context, req any) (ApiResponse[any], error)
- func (s *EmailTemplatesService) Delete(ctx context.Context, id string) error
- func (s *EmailTemplatesService) Get(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *EmailTemplatesService) List(ctx context.Context) (ApiResponse[any], error)
- func (s *EmailTemplatesService) Preview(ctx context.Context, id string, context_ any) (ApiResponse[any], error)
- func (s *EmailTemplatesService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
- type FedExService
- func (s *FedExService) AddPackagesToOpenShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) CancelPickup(ctx context.Context, body any) (any, error)
- func (s *FedExService) CancelShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) ConfirmOpenShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) CreateFreightShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) CreateOpenShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) CreatePickup(ctx context.Context, body any) (any, error)
- func (s *FedExService) CreateReturnShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) CreateShipment(ctx context.Context, body any) (any, error)
- func (s *FedExService) GetFreightRate(ctx context.Context, body any) (any, error)
- func (s *FedExService) GetRates(ctx context.Context, body any) (any, error)
- func (s *FedExService) GetServiceStandards(ctx context.Context, body any) (any, error)
- func (s *FedExService) GroundClose(ctx context.Context, body any) (any, error)
- func (s *FedExService) RegisterTrackingNotification(ctx context.Context, body any) (any, error)
- func (s *FedExService) SearchLocations(ctx context.Context, body any) (any, error)
- func (s *FedExService) Track(ctx context.Context, body any) (any, error)
- func (s *FedExService) TrackMultiPiece(ctx context.Context, body any) (any, error)
- func (s *FedExService) UploadTradeDocuments(ctx context.Context, body any) (any, error)
- func (s *FedExService) ValidateAddress(ctx context.Context, body any) (any, error)
- func (s *FedExService) ValidatePostalCode(ctx context.Context, body any) (any, error)
- func (s *FedExService) ValidateShipment(ctx context.Context, body any) (any, error)
- type FlexOpsError
- type HsCodesService
- func (s *HsCodesService) EstimateLandedCost(ctx context.Context, req any) (ApiResponse[any], error)
- func (s *HsCodesService) Lookup(ctx context.Context, code string) (ApiResponse[any], error)
- func (s *HsCodesService) Search(ctx context.Context, query string, params url.Values) (ApiResponse[any], error)
- type InsurancePolicy
- type InsuranceQuote
- type InsuranceService
- func (s *InsuranceService) FileClaim(ctx context.Context, policyID string, claim any) (ApiResponse[any], error)
- func (s *InsuranceService) GetProviders(ctx context.Context) (ApiResponse[[]string], error)
- func (s *InsuranceService) GetQuote(ctx context.Context, req any) (ApiResponse[InsuranceQuote], error)
- func (s *InsuranceService) Purchase(ctx context.Context, req any) (ApiResponse[InsurancePolicy], error)
- func (s *InsuranceService) Void(ctx context.Context, policyID string) error
- type InventoryService
- func (s *InventoryService) GetCompleteSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error)
- func (s *InventoryService) GetPartNumbers(ctx context.Context, params url.Values) (ApiResponse[any], error)
- func (s *InventoryService) GetWarehouseSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error)
- func (s *InventoryService) PostAsnReceipt(ctx context.Context, receipt any) (ApiResponse[any], error)
- func (s *InventoryService) UpdateInventory(ctx context.Context, data any) (ApiResponse[any], error)
- type Label
- type LoginRequest
- type LoginResponse
- type OffsetService
- type Order
- type OrderItem
- type OrdersService
- func (s *OrdersService) Cancel(ctx context.Context, orderNumber string) (ApiResponse[any], error)
- func (s *OrdersService) Create(ctx context.Context, order any) (ApiResponse[any], error)
- func (s *OrdersService) GetByStatus(ctx context.Context, params url.Values) (ApiResponse[[]Order], error)
- func (s *OrdersService) GetCountryCodes(ctx context.Context) (ApiResponse[any], error)
- func (s *OrdersService) GetDetails(ctx context.Context, orderNumber string) (ApiResponse[Order], error)
- func (s *OrdersService) GetExtendedDetails(ctx context.Context, orderNumber string) (ApiResponse[any], error)
- func (s *OrdersService) GetItems(ctx context.Context, orderNumber string) (ApiResponse[any], error)
- func (s *OrdersService) GetNewOrders(ctx context.Context, params url.Values) (ApiResponse[[]Order], error)
- func (s *OrdersService) GetShipMethods(ctx context.Context) (ApiResponse[any], error)
- func (s *OrdersService) GetStatus(ctx context.Context, orderNumber string) (ApiResponse[any], error)
- func (s *OrdersService) GetStatusTypes(ctx context.Context) (ApiResponse[any], error)
- func (s *OrdersService) GetWarehouses(ctx context.Context) (ApiResponse[any], error)
- type PaginatedResponse
- type Parcel
- type PickupConfirmation
- type PickupRequest
- type PickupsService
- func (s *PickupsService) Cancel(ctx context.Context, pickupID string) error
- func (s *PickupsService) Get(ctx context.Context, pickupID string) (ApiResponse[PickupConfirmation], error)
- func (s *PickupsService) List(ctx context.Context) (ApiResponse[[]PickupConfirmation], error)
- func (s *PickupsService) Schedule(ctx context.Context, req PickupRequest) (ApiResponse[PickupConfirmation], error)
- type RateLimitError
- type RateRequest
- type RecurringShipmentsService
- func (s *RecurringShipmentsService) Create(ctx context.Context, req any) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) Delete(ctx context.Context, id string) error
- func (s *RecurringShipmentsService) Get(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) List(ctx context.Context, params url.Values) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) Pause(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) Resume(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) Trigger(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *RecurringShipmentsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
- type RegisterRequest
- type ReportsService
- func (s *ReportsService) Create(ctx context.Context, req any) (ApiResponse[any], error)
- func (s *ReportsService) Delete(ctx context.Context, id string) error
- func (s *ReportsService) Get(ctx context.Context, id string) (ApiResponse[any], error)
- func (s *ReportsService) List(ctx context.Context) (ApiResponse[any], error)
- func (s *ReportsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
- type ReturnAuthorization
- type ReturnItem
- type ReturnRequest
- type ReturnsService
- func (s *ReturnsService) Approve(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error)
- func (s *ReturnsService) Cancel(ctx context.Context, returnID string) error
- func (s *ReturnsService) Create(ctx context.Context, req ReturnRequest) (ApiResponse[ReturnAuthorization], error)
- func (s *ReturnsService) GenerateLabel(ctx context.Context, returnID string) (ApiResponse[any], error)
- func (s *ReturnsService) Get(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error)
- func (s *ReturnsService) List(ctx context.Context, params url.Values) (ApiResponse[[]ReturnAuthorization], error)
- func (s *ReturnsService) MarkReceived(ctx context.Context, returnID string, items any) (ApiResponse[any], error)
- func (s *ReturnsService) ProcessRefund(ctx context.Context, returnID string) (ApiResponse[any], error)
- func (s *ReturnsService) Reject(ctx context.Context, returnID, reason string) (ApiResponse[ReturnAuthorization], error)
- type RuleAction
- type RuleCondition
- type RulesService
- func (s *RulesService) Create(ctx context.Context, rule any) (ApiResponse[ShippingRule], error)
- func (s *RulesService) Delete(ctx context.Context, ruleID string) error
- func (s *RulesService) Get(ctx context.Context, ruleID string) (ApiResponse[ShippingRule], error)
- func (s *RulesService) List(ctx context.Context) (ApiResponse[[]ShippingRule], error)
- func (s *RulesService) Reorder(ctx context.Context, ruleIDs []string) (ApiResponse[any], error)
- func (s *RulesService) Update(ctx context.Context, ruleID string, rule any) (ApiResponse[ShippingRule], error)
- type ScanForm
- type ScanFormRequest
- type ScanFormsService
- type ShipmentsTrend
- type ShippingRate
- type ShippingRule
- type ShippingService
- func (s *ShippingService) CancelLabel(ctx context.Context, labelID string) error
- func (s *ShippingService) CreateBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error)
- func (s *ShippingService) CreateLabel(ctx context.Context, req CreateLabelRequest) (ApiResponse[Label], error)
- func (s *ShippingService) DownloadBatchLabel(ctx context.Context, jobID, itemID string) ([]byte, error)
- func (s *ShippingService) GetBatchStatus(ctx context.Context, jobID string) (ApiResponse[BatchLabelJob], error)
- func (s *ShippingService) GetCarriers(ctx context.Context) (ApiResponse[any], error)
- func (s *ShippingService) GetCheapestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error)
- func (s *ShippingService) GetFastestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error)
- func (s *ShippingService) GetRates(ctx context.Context, req RateRequest) (ApiResponse[[]ShippingRate], error)
- func (s *ShippingService) GetRecommendations(ctx context.Context, req CarrierRecommendationRequest) (ApiResponse[CarrierRecommendationResponse], error)
- func (s *ShippingService) GetSavings(ctx context.Context) (ApiResponse[any], error)
- func (s *ShippingService) PredictDelivery(ctx context.Context, req DeliveryPredictionRequest) (ApiResponse[DeliveryPredictionResponse], error)
- func (s *ShippingService) PreviewBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error)
- func (s *ShippingService) Track(ctx context.Context, trackingNumber string) (ApiResponse[TrackingInfo], error)
- func (s *ShippingService) ValidateAddress(ctx context.Context, address Address) (ApiResponse[AddressValidationResult], error)
- type TrackingEvent
- type TrackingInfo
- type UpsService
- func (s *UpsService) CancelPickup(ctx context.Context) error
- func (s *UpsService) CreateFreightShipment(ctx context.Context, body any) (any, error)
- func (s *UpsService) CreateLabel(ctx context.Context, body any) (any, error)
- func (s *UpsService) CreatePickup(ctx context.Context, body any) (any, error)
- func (s *UpsService) GetFreightRate(ctx context.Context, body any) (any, error)
- func (s *UpsService) GetLandedCost(ctx context.Context, body any) (any, error)
- func (s *UpsService) GetRates(ctx context.Context, body any) (any, error)
- func (s *UpsService) GetTransitTimes(ctx context.Context, body any) (any, error)
- func (s *UpsService) SearchLocations(ctx context.Context, body any) (any, error)
- func (s *UpsService) Track(ctx context.Context, params map[string]string) (any, error)
- func (s *UpsService) UploadDocument(ctx context.Context, body any) (any, error)
- func (s *UpsService) ValidateAddress(ctx context.Context, body any) (any, error)
- type UspsService
- func (s *UspsService) CancelDomesticLabel(ctx context.Context) error
- func (s *UspsService) CancelInternationalLabel(ctx context.Context) error
- func (s *UspsService) CancelPickup(ctx context.Context) error
- func (s *UspsService) CityStateLookup(ctx context.Context, zipCode string) (any, error)
- func (s *UspsService) CreateDomesticLabel(ctx context.Context, body any) (any, error)
- func (s *UspsService) CreateInternationalLabel(ctx context.Context, body any) (any, error)
- func (s *UspsService) CreatePickup(ctx context.Context, body any) (any, error)
- func (s *UspsService) CreateReturnLabel(ctx context.Context, body any) (any, error)
- func (s *UspsService) CreateScanForm(ctx context.Context, body any) (any, error)
- func (s *UspsService) DeliveryStandards(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) FindDropOffLocations(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) FindPostOffices(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) GetDomesticPrices(ctx context.Context, body any) (any, error)
- func (s *UspsService) GetDomesticProducts(ctx context.Context, body any) (any, error)
- func (s *UspsService) GetDomesticRates(ctx context.Context, body any) (any, error)
- func (s *UspsService) GetInternationalPrices(ctx context.Context, body any) (any, error)
- func (s *UspsService) GetInternationalRates(ctx context.Context, body any) (any, error)
- func (s *UspsService) TrackDetail(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) TrackSummary(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) ValidateAddress(ctx context.Context, params map[string]string) (any, error)
- func (s *UspsService) ZipCodeLookup(ctx context.Context, params map[string]string) (any, error)
- type WalletBalance
- type WalletService
- func (s *WalletService) AddFunds(ctx context.Context, amount float64) (ApiResponse[any], error)
- func (s *WalletService) ConfigureAutoReload(ctx context.Context, config any) (ApiResponse[any], error)
- func (s *WalletService) GetBalance(ctx context.Context) (ApiResponse[WalletBalance], error)
- func (s *WalletService) ListTransactions(ctx context.Context, params url.Values) (ApiResponse[any], error)
- type WebhookSubscription
- type WebhooksService
- func (s *WebhooksService) Create(ctx context.Context, req CreateWebhookRequest) (ApiResponse[WebhookSubscription], error)
- func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error
- func (s *WebhooksService) Get(ctx context.Context, webhookID string) (ApiResponse[WebhookSubscription], error)
- func (s *WebhooksService) List(ctx context.Context) (ApiResponse[[]WebhookSubscription], error)
- func (s *WebhooksService) ListDeliveryLogs(ctx context.Context, webhookID string) (ApiResponse[[]any], error)
- func (s *WebhooksService) RotateSecret(ctx context.Context, webhookID string) (ApiResponse[map[string]string], error)
- func (s *WebhooksService) Update(ctx context.Context, webhookID string, data any) (ApiResponse[WebhookSubscription], error)
- type Workspace
- type WorkspaceMember
- type WorkspacesService
- func (s *WorkspacesService) Create(ctx context.Context, req CreateWorkspaceRequest) (ApiResponse[Workspace], error)
- func (s *WorkspacesService) Get(ctx context.Context, workspaceID string) (ApiResponse[Workspace], error)
- func (s *WorkspacesService) InviteMember(ctx context.Context, email, role string) (ApiResponse[any], error)
- func (s *WorkspacesService) List(ctx context.Context) (ApiResponse[[]Workspace], error)
- func (s *WorkspacesService) ListMembers(ctx context.Context) (ApiResponse[[]WorkspaceMember], error)
- func (s *WorkspacesService) RemoveMember(ctx context.Context, userID string) error
- func (s *WorkspacesService) Update(ctx context.Context, data any) (ApiResponse[Workspace], error)
- func (s *WorkspacesService) UpdateMemberRole(ctx context.Context, userID, role string) (ApiResponse[any], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifySignature ¶
VerifySignature verifies an HMAC-SHA256 webhook signature.
Types ¶
type AddressValidationResult ¶
type AnalyticsService ¶
type AnalyticsService struct {
// contains filtered or unexported fields
}
func (*AnalyticsService) CarrierPerformance ¶
func (s *AnalyticsService) CarrierPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) CarrierSummary ¶
func (s *AnalyticsService) CarrierSummary(ctx context.Context, startDate, endDate string) (ApiResponse[[]CarrierSummary], error)
func (*AnalyticsService) DeliveryPerformance ¶
func (s *AnalyticsService) DeliveryPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) InventoryMetrics ¶
func (s *AnalyticsService) InventoryMetrics(ctx context.Context) (ApiResponse[any], error)
func (*AnalyticsService) OrderMetrics ¶
func (s *AnalyticsService) OrderMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) OrderTrend ¶
func (s *AnalyticsService) OrderTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) PerformanceMetrics ¶
func (s *AnalyticsService) PerformanceMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) ReturnReasons ¶
func (s *AnalyticsService) ReturnReasons(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) ReturnsMetrics ¶
func (s *AnalyticsService) ReturnsMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) ReturnsTrend ¶
func (s *AnalyticsService) ReturnsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) ShipmentsTrend ¶
func (s *AnalyticsService) ShipmentsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[[]ShipmentsTrend], error)
func (*AnalyticsService) ShippingCostAnalytics ¶
func (s *AnalyticsService) ShippingCostAnalytics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error)
func (*AnalyticsService) StockByWarehouse ¶
func (s *AnalyticsService) StockByWarehouse(ctx context.Context) (ApiResponse[any], error)
func (*AnalyticsService) TopDestinations ¶
func (s *AnalyticsService) TopDestinations(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error)
func (*AnalyticsService) TopSellingProducts ¶
func (s *AnalyticsService) TopSellingProducts(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error)
type ApiKeyInfo ¶
type ApiKeysService ¶
type ApiKeysService struct {
// contains filtered or unexported fields
}
func (*ApiKeysService) Create ¶
func (s *ApiKeysService) Create(ctx context.Context, req CreateApiKeyRequest) (ApiResponse[CreateApiKeyResponse], error)
func (*ApiKeysService) List ¶
func (s *ApiKeysService) List(ctx context.Context) (ApiResponse[[]ApiKeyInfo], error)
func (*ApiKeysService) Revoke ¶
func (s *ApiKeysService) Revoke(ctx context.Context, keyID string) error
func (*ApiKeysService) Rotate ¶
func (s *ApiKeysService) Rotate(ctx context.Context, keyID string) (ApiResponse[CreateApiKeyResponse], error)
type ApiResponse ¶
type ApiResponse[T any] struct { Success bool `json:"success"` Data T `json:"data"` Message string `json:"message,omitempty"` Errors []string `json:"errors,omitempty"` }
ApiResponse is the standard API response wrapper.
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (*AuthService) ChangePassword ¶
func (s *AuthService) ChangePassword(ctx context.Context, currentPassword, newPassword string) (ApiResponse[any], error)
func (*AuthService) ForgotPassword ¶
func (s *AuthService) ForgotPassword(ctx context.Context, email string) (ApiResponse[any], error)
func (*AuthService) GetProfile ¶
func (s *AuthService) GetProfile(ctx context.Context) (ApiResponse[any], error)
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, email, password string) (ApiResponse[LoginResponse], error)
func (*AuthService) RefreshToken ¶
func (s *AuthService) RefreshToken(ctx context.Context, refreshToken string) (ApiResponse[LoginResponse], error)
func (*AuthService) Register ¶
func (s *AuthService) Register(ctx context.Context, req RegisterRequest) (ApiResponse[any], error)
func (*AuthService) ResetPassword ¶
func (s *AuthService) ResetPassword(ctx context.Context, token, newPassword string) (ApiResponse[any], error)
func (*AuthService) UpdateProfile ¶
func (s *AuthService) UpdateProfile(ctx context.Context, data any) (ApiResponse[any], error)
func (*AuthService) VerifyEmail ¶
func (s *AuthService) VerifyEmail(ctx context.Context, token string) (ApiResponse[any], error)
type BatchLabelJob ¶
type BatchLabelRequest ¶
type BatchLabelRequest struct {
Items []CreateLabelRequest `json:"items"`
}
type CarrierRecommendation ¶
type CarrierRecommendation struct {
CarrierCode string `json:"carrierCode"`
Score float64 `json:"score"`
OnTimePercent float64 `json:"onTimePercent"`
AvgTransitDays float64 `json:"avgTransitDays"`
AvgCost float64 `json:"avgCost"`
ShipmentCount int `json:"shipmentCount"`
ExceptionRate float64 `json:"exceptionRate"`
Reason string `json:"reason,omitempty"`
}
type CarrierRecommendationResponse ¶
type CarrierRecommendationResponse struct {
Lane string `json:"lane"`
SampleSize int `json:"sampleSize"`
Recommendations []CarrierRecommendation `json:"recommendations"`
}
type CarrierSummary ¶
type CarriersService ¶
type CarriersService struct {
USPS *UspsService
UPS *UpsService
FedEx *FedExService
DHL *DhlService
// contains filtered or unexported fields
}
type Client ¶
type Client struct {
WorkspaceID string
Auth *AuthService
Workspaces *WorkspacesService
Shipping *ShippingService
Carriers *CarriersService
Webhooks *WebhooksService
Wallet *WalletService
Insurance *InsuranceService
Returns *ReturnsService
ApiKeys *ApiKeysService
Analytics *AnalyticsService
Orders *OrdersService
Inventory *InventoryService
Pickups *PickupsService
ScanForms *ScanFormsService
Rules *RulesService
Offsets *OffsetService
HsCodes *HsCodesService
RecurringShipments *RecurringShipmentsService
EmailTemplates *EmailTemplatesService
Reports *ReportsService
// contains filtered or unexported fields
}
Client is the main entry point for the FlexOps SDK.
func (*Client) SetAccessToken ¶
SetAccessToken sets the JWT access token.
type Config ¶
type Config struct {
BaseURL string
APIKey string
AccessToken string
WorkspaceID string
Timeout time.Duration
MaxRetries int
}
Config configures the FlexOps client.
type CreateApiKeyRequest ¶
type CreateApiKeyRequest struct {
Name string `json:"name"`
}
type CreateApiKeyResponse ¶
type CreateLabelRequest ¶
type CreateWebhookRequest ¶
type CreateWorkspaceRequest ¶
type DeliveryPredictionResponse ¶
type DeliveryPredictionResponse struct {
CarrierCode string `json:"carrierCode"`
PredictedDeliveryDate string `json:"predictedDeliveryDate"`
EarliestDelivery string `json:"earliestDelivery"`
LatestDelivery string `json:"latestDelivery"`
WorstCaseDelivery string `json:"worstCaseDelivery"`
PredictedTransitDays int `json:"predictedTransitDays"`
Confidence float64 `json:"confidence"`
OnTimeRate float64 `json:"onTimeRate"`
SampleSize int `json:"sampleSize"`
}
type DhlService ¶
type DhlService struct {
// contains filtered or unexported fields
}
func (*DhlService) CalculateLandedCost ¶
func (*DhlService) CancelPickup ¶
func (s *DhlService) CancelPickup(ctx context.Context) error
func (*DhlService) CreatePickup ¶
func (*DhlService) CreateShipment ¶
func (*DhlService) FindServicePoints ¶
func (*DhlService) GetMultiPieceRates ¶
func (*DhlService) GetProducts ¶
func (*DhlService) GetProofOfDelivery ¶
func (*DhlService) GetReferenceData ¶
func (*DhlService) ScreenShipment ¶
func (*DhlService) TrackMultiple ¶
func (*DhlService) UpdatePickup ¶
func (*DhlService) UploadInvoice ¶
func (*DhlService) ValidateAddress ¶
type EmailTemplatesService ¶
type EmailTemplatesService struct {
// contains filtered or unexported fields
}
func (*EmailTemplatesService) Create ¶
func (s *EmailTemplatesService) Create(ctx context.Context, req any) (ApiResponse[any], error)
func (*EmailTemplatesService) Delete ¶
func (s *EmailTemplatesService) Delete(ctx context.Context, id string) error
func (*EmailTemplatesService) Get ¶
func (s *EmailTemplatesService) Get(ctx context.Context, id string) (ApiResponse[any], error)
func (*EmailTemplatesService) List ¶
func (s *EmailTemplatesService) List(ctx context.Context) (ApiResponse[any], error)
func (*EmailTemplatesService) Preview ¶
func (s *EmailTemplatesService) Preview(ctx context.Context, id string, context_ any) (ApiResponse[any], error)
func (*EmailTemplatesService) Update ¶
func (s *EmailTemplatesService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
type FedExService ¶
type FedExService struct {
// contains filtered or unexported fields
}
func (*FedExService) AddPackagesToOpenShipment ¶
func (*FedExService) CancelPickup ¶
func (*FedExService) CancelShipment ¶
func (*FedExService) ConfirmOpenShipment ¶
func (*FedExService) CreateFreightShipment ¶
func (*FedExService) CreateOpenShipment ¶
func (*FedExService) CreatePickup ¶
func (*FedExService) CreateReturnShipment ¶
func (*FedExService) CreateShipment ¶
func (*FedExService) GetFreightRate ¶
func (*FedExService) GetServiceStandards ¶
func (*FedExService) GroundClose ¶
func (*FedExService) RegisterTrackingNotification ¶
func (*FedExService) SearchLocations ¶
func (*FedExService) TrackMultiPiece ¶
func (*FedExService) UploadTradeDocuments ¶
func (*FedExService) ValidateAddress ¶
func (*FedExService) ValidatePostalCode ¶
func (*FedExService) ValidateShipment ¶
type FlexOpsError ¶
FlexOpsError represents an API error response.
func (*FlexOpsError) Error ¶
func (e *FlexOpsError) Error() string
type HsCodesService ¶
type HsCodesService struct {
// contains filtered or unexported fields
}
func (*HsCodesService) EstimateLandedCost ¶
func (s *HsCodesService) EstimateLandedCost(ctx context.Context, req any) (ApiResponse[any], error)
func (*HsCodesService) Lookup ¶
func (s *HsCodesService) Lookup(ctx context.Context, code string) (ApiResponse[any], error)
type InsurancePolicy ¶
type InsuranceQuote ¶
type InsuranceService ¶
type InsuranceService struct {
// contains filtered or unexported fields
}
func (*InsuranceService) FileClaim ¶
func (s *InsuranceService) FileClaim(ctx context.Context, policyID string, claim any) (ApiResponse[any], error)
func (*InsuranceService) GetProviders ¶
func (s *InsuranceService) GetProviders(ctx context.Context) (ApiResponse[[]string], error)
func (*InsuranceService) GetQuote ¶
func (s *InsuranceService) GetQuote(ctx context.Context, req any) (ApiResponse[InsuranceQuote], error)
func (*InsuranceService) Purchase ¶
func (s *InsuranceService) Purchase(ctx context.Context, req any) (ApiResponse[InsurancePolicy], error)
type InventoryService ¶
type InventoryService struct {
// contains filtered or unexported fields
}
func (*InventoryService) GetCompleteSnapshot ¶
func (s *InventoryService) GetCompleteSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error)
func (*InventoryService) GetPartNumbers ¶
func (s *InventoryService) GetPartNumbers(ctx context.Context, params url.Values) (ApiResponse[any], error)
func (*InventoryService) GetWarehouseSnapshot ¶
func (s *InventoryService) GetWarehouseSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error)
func (*InventoryService) PostAsnReceipt ¶
func (s *InventoryService) PostAsnReceipt(ctx context.Context, receipt any) (ApiResponse[any], error)
func (*InventoryService) UpdateInventory ¶
func (s *InventoryService) UpdateInventory(ctx context.Context, data any) (ApiResponse[any], error)
type Label ¶
type Label struct {
LabelID string `json:"labelId"`
TrackingNumber string `json:"trackingNumber"`
Carrier string `json:"carrier"`
Service string `json:"service"`
LabelData string `json:"labelData"`
LabelFormat string `json:"labelFormat"`
Rate float64 `json:"rate"`
CreatedAt string `json:"createdAt"`
}
type LoginRequest ¶
type LoginResponse ¶
type OffsetService ¶
type OffsetService struct {
// contains filtered or unexported fields
}
func (*OffsetService) BatchOffset ¶
func (s *OffsetService) BatchOffset(ctx context.Context, labelIDs []string) (ApiResponse[any], error)
func (*OffsetService) GetEmissions ¶
func (s *OffsetService) GetEmissions(ctx context.Context, labelID string) (ApiResponse[any], error)
func (*OffsetService) Offset ¶
func (s *OffsetService) Offset(ctx context.Context, labelID string) (ApiResponse[any], error)
type OrdersService ¶
type OrdersService struct {
// contains filtered or unexported fields
}
func (*OrdersService) Cancel ¶
func (s *OrdersService) Cancel(ctx context.Context, orderNumber string) (ApiResponse[any], error)
func (*OrdersService) Create ¶
func (s *OrdersService) Create(ctx context.Context, order any) (ApiResponse[any], error)
func (*OrdersService) GetByStatus ¶
func (s *OrdersService) GetByStatus(ctx context.Context, params url.Values) (ApiResponse[[]Order], error)
func (*OrdersService) GetCountryCodes ¶
func (s *OrdersService) GetCountryCodes(ctx context.Context) (ApiResponse[any], error)
func (*OrdersService) GetDetails ¶
func (s *OrdersService) GetDetails(ctx context.Context, orderNumber string) (ApiResponse[Order], error)
func (*OrdersService) GetExtendedDetails ¶
func (s *OrdersService) GetExtendedDetails(ctx context.Context, orderNumber string) (ApiResponse[any], error)
func (*OrdersService) GetItems ¶
func (s *OrdersService) GetItems(ctx context.Context, orderNumber string) (ApiResponse[any], error)
func (*OrdersService) GetNewOrders ¶
func (s *OrdersService) GetNewOrders(ctx context.Context, params url.Values) (ApiResponse[[]Order], error)
func (*OrdersService) GetShipMethods ¶
func (s *OrdersService) GetShipMethods(ctx context.Context) (ApiResponse[any], error)
func (*OrdersService) GetStatus ¶
func (s *OrdersService) GetStatus(ctx context.Context, orderNumber string) (ApiResponse[any], error)
func (*OrdersService) GetStatusTypes ¶
func (s *OrdersService) GetStatusTypes(ctx context.Context) (ApiResponse[any], error)
func (*OrdersService) GetWarehouses ¶
func (s *OrdersService) GetWarehouses(ctx context.Context) (ApiResponse[any], error)
type PaginatedResponse ¶
type PaginatedResponse[T any] struct { Items []T `json:"items"` TotalCount int `json:"totalCount"` Page int `json:"page"` PageSize int `json:"pageSize"` TotalPages int `json:"totalPages"` }
PaginatedResponse wraps paginated results.
type PickupConfirmation ¶
type PickupRequest ¶
type PickupsService ¶
type PickupsService struct {
// contains filtered or unexported fields
}
func (*PickupsService) Cancel ¶
func (s *PickupsService) Cancel(ctx context.Context, pickupID string) error
func (*PickupsService) Get ¶
func (s *PickupsService) Get(ctx context.Context, pickupID string) (ApiResponse[PickupConfirmation], error)
func (*PickupsService) List ¶
func (s *PickupsService) List(ctx context.Context) (ApiResponse[[]PickupConfirmation], error)
func (*PickupsService) Schedule ¶
func (s *PickupsService) Schedule(ctx context.Context, req PickupRequest) (ApiResponse[PickupConfirmation], error)
type RateLimitError ¶
type RateLimitError struct {
FlexOpsError
RetryAfter int
}
RateLimitError is returned for 429 responses.
type RateRequest ¶
type RateRequest struct {
FromZip string `json:"fromZip,omitempty"`
ToZip string `json:"toZip,omitempty"`
Weight float64 `json:"weight,omitempty"`
WeightUnit string `json:"weightUnit,omitempty"`
From *Address `json:"fromAddress,omitempty"`
To *Address `json:"toAddress,omitempty"`
Parcel *Parcel `json:"parcel,omitempty"`
}
type RecurringShipmentsService ¶
type RecurringShipmentsService struct {
// contains filtered or unexported fields
}
func (*RecurringShipmentsService) Create ¶
func (s *RecurringShipmentsService) Create(ctx context.Context, req any) (ApiResponse[any], error)
func (*RecurringShipmentsService) Delete ¶
func (s *RecurringShipmentsService) Delete(ctx context.Context, id string) error
func (*RecurringShipmentsService) Get ¶
func (s *RecurringShipmentsService) Get(ctx context.Context, id string) (ApiResponse[any], error)
func (*RecurringShipmentsService) List ¶
func (s *RecurringShipmentsService) List(ctx context.Context, params url.Values) (ApiResponse[any], error)
func (*RecurringShipmentsService) Pause ¶
func (s *RecurringShipmentsService) Pause(ctx context.Context, id string) (ApiResponse[any], error)
func (*RecurringShipmentsService) Resume ¶
func (s *RecurringShipmentsService) Resume(ctx context.Context, id string) (ApiResponse[any], error)
func (*RecurringShipmentsService) Trigger ¶
func (s *RecurringShipmentsService) Trigger(ctx context.Context, id string) (ApiResponse[any], error)
func (*RecurringShipmentsService) Update ¶
func (s *RecurringShipmentsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
type RegisterRequest ¶
type ReportsService ¶
type ReportsService struct {
// contains filtered or unexported fields
}
func (*ReportsService) Create ¶
func (s *ReportsService) Create(ctx context.Context, req any) (ApiResponse[any], error)
func (*ReportsService) Delete ¶
func (s *ReportsService) Delete(ctx context.Context, id string) error
func (*ReportsService) Get ¶
func (s *ReportsService) Get(ctx context.Context, id string) (ApiResponse[any], error)
func (*ReportsService) List ¶
func (s *ReportsService) List(ctx context.Context) (ApiResponse[any], error)
func (*ReportsService) Update ¶
func (s *ReportsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error)
type ReturnAuthorization ¶
type ReturnAuthorization struct {
ID string `json:"id"`
OrderNumber string `json:"orderNumber"`
Status string `json:"status"`
Items []ReturnItem `json:"items"`
}
type ReturnItem ¶
type ReturnRequest ¶
type ReturnRequest struct {
OrderNumber string `json:"orderNumber"`
Reason string `json:"reason"`
Items []ReturnItem `json:"items"`
}
type ReturnsService ¶
type ReturnsService struct {
// contains filtered or unexported fields
}
func (*ReturnsService) Approve ¶
func (s *ReturnsService) Approve(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error)
func (*ReturnsService) Cancel ¶
func (s *ReturnsService) Cancel(ctx context.Context, returnID string) error
func (*ReturnsService) Create ¶
func (s *ReturnsService) Create(ctx context.Context, req ReturnRequest) (ApiResponse[ReturnAuthorization], error)
func (*ReturnsService) GenerateLabel ¶
func (s *ReturnsService) GenerateLabel(ctx context.Context, returnID string) (ApiResponse[any], error)
func (*ReturnsService) Get ¶
func (s *ReturnsService) Get(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error)
func (*ReturnsService) List ¶
func (s *ReturnsService) List(ctx context.Context, params url.Values) (ApiResponse[[]ReturnAuthorization], error)
func (*ReturnsService) MarkReceived ¶
func (s *ReturnsService) MarkReceived(ctx context.Context, returnID string, items any) (ApiResponse[any], error)
func (*ReturnsService) ProcessRefund ¶
func (s *ReturnsService) ProcessRefund(ctx context.Context, returnID string) (ApiResponse[any], error)
func (*ReturnsService) Reject ¶
func (s *ReturnsService) Reject(ctx context.Context, returnID, reason string) (ApiResponse[ReturnAuthorization], error)
type RuleAction ¶
type RuleCondition ¶
type RulesService ¶
type RulesService struct {
// contains filtered or unexported fields
}
func (*RulesService) Create ¶
func (s *RulesService) Create(ctx context.Context, rule any) (ApiResponse[ShippingRule], error)
func (*RulesService) Delete ¶
func (s *RulesService) Delete(ctx context.Context, ruleID string) error
func (*RulesService) Get ¶
func (s *RulesService) Get(ctx context.Context, ruleID string) (ApiResponse[ShippingRule], error)
func (*RulesService) List ¶
func (s *RulesService) List(ctx context.Context) (ApiResponse[[]ShippingRule], error)
func (*RulesService) Reorder ¶
func (s *RulesService) Reorder(ctx context.Context, ruleIDs []string) (ApiResponse[any], error)
func (*RulesService) Update ¶
func (s *RulesService) Update(ctx context.Context, ruleID string, rule any) (ApiResponse[ShippingRule], error)
type ScanFormRequest ¶
type ScanFormsService ¶
type ScanFormsService struct {
// contains filtered or unexported fields
}
func (*ScanFormsService) Create ¶
func (s *ScanFormsService) Create(ctx context.Context, req ScanFormRequest) (ApiResponse[ScanForm], error)
func (*ScanFormsService) Get ¶
func (s *ScanFormsService) Get(ctx context.Context, scanFormID string) (ApiResponse[ScanForm], error)
func (*ScanFormsService) List ¶
func (s *ScanFormsService) List(ctx context.Context) (ApiResponse[[]ScanForm], error)
type ShipmentsTrend ¶
type ShippingRate ¶
type ShippingRule ¶
type ShippingRule struct {
ID string `json:"id"`
Name string `json:"name"`
Priority int `json:"priority"`
IsActive bool `json:"isActive"`
Conditions []RuleCondition `json:"conditions"`
Actions []RuleAction `json:"actions"`
}
type ShippingService ¶
type ShippingService struct {
// contains filtered or unexported fields
}
func (*ShippingService) CancelLabel ¶
func (s *ShippingService) CancelLabel(ctx context.Context, labelID string) error
func (*ShippingService) CreateBatch ¶
func (s *ShippingService) CreateBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error)
func (*ShippingService) CreateLabel ¶
func (s *ShippingService) CreateLabel(ctx context.Context, req CreateLabelRequest) (ApiResponse[Label], error)
func (*ShippingService) DownloadBatchLabel ¶
func (*ShippingService) GetBatchStatus ¶
func (s *ShippingService) GetBatchStatus(ctx context.Context, jobID string) (ApiResponse[BatchLabelJob], error)
func (*ShippingService) GetCarriers ¶
func (s *ShippingService) GetCarriers(ctx context.Context) (ApiResponse[any], error)
func (*ShippingService) GetCheapestRate ¶
func (s *ShippingService) GetCheapestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error)
func (*ShippingService) GetFastestRate ¶
func (s *ShippingService) GetFastestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error)
func (*ShippingService) GetRates ¶
func (s *ShippingService) GetRates(ctx context.Context, req RateRequest) (ApiResponse[[]ShippingRate], error)
func (*ShippingService) GetRecommendations ¶
func (s *ShippingService) GetRecommendations(ctx context.Context, req CarrierRecommendationRequest) (ApiResponse[CarrierRecommendationResponse], error)
func (*ShippingService) GetSavings ¶
func (s *ShippingService) GetSavings(ctx context.Context) (ApiResponse[any], error)
func (*ShippingService) PredictDelivery ¶
func (s *ShippingService) PredictDelivery(ctx context.Context, req DeliveryPredictionRequest) (ApiResponse[DeliveryPredictionResponse], error)
func (*ShippingService) PreviewBatch ¶
func (s *ShippingService) PreviewBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error)
func (*ShippingService) Track ¶
func (s *ShippingService) Track(ctx context.Context, trackingNumber string) (ApiResponse[TrackingInfo], error)
func (*ShippingService) ValidateAddress ¶
func (s *ShippingService) ValidateAddress(ctx context.Context, address Address) (ApiResponse[AddressValidationResult], error)
type TrackingEvent ¶
type TrackingInfo ¶
type UpsService ¶
type UpsService struct {
// contains filtered or unexported fields
}
func (*UpsService) CancelPickup ¶
func (s *UpsService) CancelPickup(ctx context.Context) error
func (*UpsService) CreateFreightShipment ¶
func (*UpsService) CreateLabel ¶
func (*UpsService) CreatePickup ¶
func (*UpsService) GetFreightRate ¶
func (*UpsService) GetLandedCost ¶
func (*UpsService) GetTransitTimes ¶
func (*UpsService) SearchLocations ¶
func (*UpsService) UploadDocument ¶
func (*UpsService) ValidateAddress ¶
type UspsService ¶
type UspsService struct {
// contains filtered or unexported fields
}
--- USPS ---
func (*UspsService) CancelDomesticLabel ¶
func (s *UspsService) CancelDomesticLabel(ctx context.Context) error
func (*UspsService) CancelInternationalLabel ¶
func (s *UspsService) CancelInternationalLabel(ctx context.Context) error
func (*UspsService) CancelPickup ¶
func (s *UspsService) CancelPickup(ctx context.Context) error
func (*UspsService) CityStateLookup ¶
func (*UspsService) CreateDomesticLabel ¶
func (*UspsService) CreateInternationalLabel ¶
func (*UspsService) CreatePickup ¶
func (*UspsService) CreateReturnLabel ¶
func (*UspsService) CreateScanForm ¶
func (*UspsService) DeliveryStandards ¶
func (*UspsService) FindDropOffLocations ¶
func (*UspsService) FindPostOffices ¶
func (*UspsService) GetDomesticPrices ¶
func (*UspsService) GetDomesticProducts ¶
func (*UspsService) GetDomesticRates ¶
func (*UspsService) GetInternationalPrices ¶
func (*UspsService) GetInternationalRates ¶
func (*UspsService) TrackDetail ¶
func (*UspsService) TrackSummary ¶
func (*UspsService) ValidateAddress ¶
func (*UspsService) ZipCodeLookup ¶
type WalletBalance ¶
type WalletService ¶
type WalletService struct {
// contains filtered or unexported fields
}
func (*WalletService) AddFunds ¶
func (s *WalletService) AddFunds(ctx context.Context, amount float64) (ApiResponse[any], error)
func (*WalletService) ConfigureAutoReload ¶
func (s *WalletService) ConfigureAutoReload(ctx context.Context, config any) (ApiResponse[any], error)
func (*WalletService) GetBalance ¶
func (s *WalletService) GetBalance(ctx context.Context) (ApiResponse[WalletBalance], error)
func (*WalletService) ListTransactions ¶
func (s *WalletService) ListTransactions(ctx context.Context, params url.Values) (ApiResponse[any], error)
type WebhookSubscription ¶
type WebhooksService ¶
type WebhooksService struct {
// contains filtered or unexported fields
}
func (*WebhooksService) Create ¶
func (s *WebhooksService) Create(ctx context.Context, req CreateWebhookRequest) (ApiResponse[WebhookSubscription], error)
func (*WebhooksService) Delete ¶
func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error
func (*WebhooksService) Get ¶
func (s *WebhooksService) Get(ctx context.Context, webhookID string) (ApiResponse[WebhookSubscription], error)
func (*WebhooksService) List ¶
func (s *WebhooksService) List(ctx context.Context) (ApiResponse[[]WebhookSubscription], error)
func (*WebhooksService) ListDeliveryLogs ¶
func (s *WebhooksService) ListDeliveryLogs(ctx context.Context, webhookID string) (ApiResponse[[]any], error)
func (*WebhooksService) RotateSecret ¶
func (s *WebhooksService) RotateSecret(ctx context.Context, webhookID string) (ApiResponse[map[string]string], error)
func (*WebhooksService) Update ¶
func (s *WebhooksService) Update(ctx context.Context, webhookID string, data any) (ApiResponse[WebhookSubscription], error)
type WorkspaceMember ¶
type WorkspacesService ¶
type WorkspacesService struct {
// contains filtered or unexported fields
}
func (*WorkspacesService) Create ¶
func (s *WorkspacesService) Create(ctx context.Context, req CreateWorkspaceRequest) (ApiResponse[Workspace], error)
func (*WorkspacesService) Get ¶
func (s *WorkspacesService) Get(ctx context.Context, workspaceID string) (ApiResponse[Workspace], error)
func (*WorkspacesService) InviteMember ¶
func (s *WorkspacesService) InviteMember(ctx context.Context, email, role string) (ApiResponse[any], error)
func (*WorkspacesService) List ¶
func (s *WorkspacesService) List(ctx context.Context) (ApiResponse[[]Workspace], error)
func (*WorkspacesService) ListMembers ¶
func (s *WorkspacesService) ListMembers(ctx context.Context) (ApiResponse[[]WorkspaceMember], error)
func (*WorkspacesService) RemoveMember ¶
func (s *WorkspacesService) RemoveMember(ctx context.Context, userID string) error
func (*WorkspacesService) Update ¶
func (s *WorkspacesService) Update(ctx context.Context, data any) (ApiResponse[Workspace], error)
func (*WorkspacesService) UpdateMemberRole ¶
func (s *WorkspacesService) UpdateMemberRole(ctx context.Context, userID, role string) (ApiResponse[any], error)
Source Files
¶
- analytics.go
- api_keys.go
- auth.go
- carriers.go
- carriers_dhl.go
- carriers_fedex.go
- carriers_ups.go
- email_templates.go
- errors.go
- flexops.go
- hs_codes.go
- http.go
- insurance.go
- inventory.go
- models.go
- offsets.go
- orders.go
- pickups.go
- recurring_shipments.go
- reports.go
- returns.go
- rules.go
- scan_forms.go
- shipping.go
- wallet.go
- webhooks.go
- workspaces.go
Click to show internal directories.
Click to hide internal directories.