Versions in this module Expand all Collapse all v0 v0.1.0 Aug 15, 2026 Changes in this version + type APIVersion = string + type AcceptLanguage = string + type Authorization = string + type BadRequest = Error + type Buyer struct + AccountType *BuyerAccountType + AuthenticationStatus *BuyerAuthenticationStatus + Company *CompanyInfo + CustomerId *string + Email openapi_types.Email + FirstName *string + FullName *string + LastName *string + Loyalty *LoyaltyInfo + PhoneNumber *string + TaxExemption *TaxExemption + type BuyerAccountType string + const BuyerAccountTypeBusiness + const BuyerAccountTypeGuest + const BuyerAccountTypeRegistered + func (e BuyerAccountType) Valid() bool + type BuyerAuthenticationStatus string + const BuyerAuthenticationStatusAuthenticated + const BuyerAuthenticationStatusGuest + const BuyerAuthenticationStatusRequiresSignin + func (e BuyerAuthenticationStatus) Valid() bool + type CancelCartJSONBody = map[string]interface + type CancelCartJSONRequestBody = CancelCartJSONBody + type CancelCartParams struct + APIVersion APIVersion + Authorization Authorization + IdempotencyKey IdempotencyKey + RequestId *RequestId + type Cart struct + Buyer *Buyer + ContinueUrl *string + Currency string + ExpiresAt *time.Time + Id string + LineItems []LineItem + Messages *[]Cart_Messages_Item + Totals []Total + type CartCreateRequest struct + Buyer *Buyer + LineItems []Item + Locale *string + type CartId = string + type CartNotFound = Error + type CartUpdateRequest struct + Buyer *Buyer + LineItems []Item + type Cart_Messages_Item struct + func (t *Cart_Messages_Item) FromMessageError(v MessageError) error + func (t *Cart_Messages_Item) FromMessageInfo(v MessageInfo) error + func (t *Cart_Messages_Item) FromMessageWarning(v MessageWarning) error + func (t *Cart_Messages_Item) MergeMessageError(v MessageError) error + func (t *Cart_Messages_Item) MergeMessageInfo(v MessageInfo) error + func (t *Cart_Messages_Item) MergeMessageWarning(v MessageWarning) error + func (t *Cart_Messages_Item) UnmarshalJSON(b []byte) error + func (t Cart_Messages_Item) AsMessageError() (MessageError, error) + func (t Cart_Messages_Item) AsMessageInfo() (MessageInfo, error) + func (t Cart_Messages_Item) AsMessageWarning() (MessageWarning, error) + func (t Cart_Messages_Item) MarshalJSON() ([]byte, error) + type CompanyInfo struct + CostCenter *string + Department *string + Name string + TaxId *string + type ContentType = string + type CreateCartJSONRequestBody = CartCreateRequest + type CreateCartParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + ContentType ContentType + IdempotencyKey IdempotencyKey + RequestId *RequestId + type CustomAttribute struct + DisplayName string + Value string + type DimensionsInfo struct + Height float32 + Length float32 + Unit DimensionsInfoUnit + Width float32 + type DimensionsInfoUnit string + const Cm + const In + func (e DimensionsInfoUnit) Valid() bool + type Disclosure struct + Content string + ContentType DisclosureContentType + Type DisclosureType + type DisclosureContentType string + const DisclosureContentTypeMarkdown + const DisclosureContentTypePlain + func (e DisclosureContentType) Valid() bool + type DisclosureType string + const Disclaimer + func (e DisclosureType) Valid() bool + type DiscountDetail struct + Amount int + Code *string + Description *string + Source *DiscountDetailSource + Type DiscountDetailType + type DiscountDetailSource string + const Automatic + const Coupon + const Loyalty + func (e DiscountDetailSource) Valid() bool + type DiscountDetailType string + const Bogo + const Fixed + const Percentage + const Volume + func (e DiscountDetailType) Valid() bool + type Error struct + Code string + Message string + Param *string + SupportedVersions *[]string + Type ErrorType + type ErrorType string + const InvalidRequest + const ProcessingError + const ServiceUnavailable + func (e ErrorType) Valid() bool + type GetCartParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + RequestId *RequestId + type Handler struct + func NewHandler(provider Provider, authorizer acpauth.Authorizer, opts ...Option) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type IdempotencyKey = string + type Item struct + Id string + Name *string + UnitAmount *int + type LineItem struct + AvailabilityStatus *LineItemAvailabilityStatus + AvailableQuantity *int + Category *string + CustomAttributes *[]CustomAttribute + Description *string + Dimensions *DimensionsInfo + Disclosures *[]Disclosure + DiscountDetails *[]DiscountDetail + FulfillableOn *time.Time + Id string + Images *[]string + Item Item + MarketplaceSellerDetails *MarketplaceSellerDetails + MaxQuantityPerOrder *int + Name *string + ParentId *string + ProductId *string + Quantity int + Sku *string + Tags *[]string + TaxExempt *bool + TaxExemptionReason *string + Totals []Total + UnitAmount *int + VariantId *string + VariantOptions *[]VariantOption + Weight *WeightInfo + type LineItemAvailabilityStatus string + const LineItemAvailabilityStatusBackorder + const LineItemAvailabilityStatusInStock + const LineItemAvailabilityStatusLowStock + const LineItemAvailabilityStatusOutOfStock + const LineItemAvailabilityStatusPreOrder + func (e LineItemAvailabilityStatus) Valid() bool + type LoyaltyInfo struct + MemberSince *time.Time + PointsBalance *int + Tier *string + type MarketplaceSellerDetails struct + Name string + type MessageError struct + Code MessageErrorCode + Content string + ContentType MessageErrorContentType + Param *string + Resolution *MessageErrorResolution + Severity *MessageErrorSeverity + Type MessageErrorType + type MessageErrorCode string + const MessageErrorCodeAgeVerificationRequired + const MessageErrorCodeApprovalRequired + const MessageErrorCodeConflict + const MessageErrorCodeCouponExpired + const MessageErrorCodeCouponInvalid + const MessageErrorCodeExpired + const MessageErrorCodeInterventionRequired + const MessageErrorCodeInvalid + const MessageErrorCodeLowStock + const MessageErrorCodeMaximumExceeded + const MessageErrorCodeMinimumNotMet + const MessageErrorCodeMissing + const MessageErrorCodeNotFound + const MessageErrorCodeOutOfStock + const MessageErrorCodePaymentDeclined + const MessageErrorCodeQuantityExceeded + const MessageErrorCodeRateLimited + const MessageErrorCodeRegionRestricted + const MessageErrorCodeRequires3ds + const MessageErrorCodeRequiresSignIn + const MessageErrorCodeUnsupported + func (e MessageErrorCode) Valid() bool + type MessageErrorContentType string + const MessageErrorContentTypeMarkdown + const MessageErrorContentTypePlain + func (e MessageErrorContentType) Valid() bool + type MessageErrorResolution string + const MessageErrorResolutionRecoverable + const MessageErrorResolutionRequiresBuyerInput + const MessageErrorResolutionRequiresBuyerReview + func (e MessageErrorResolution) Valid() bool + type MessageErrorSeverity string + const MessageErrorSeverityCritical + const MessageErrorSeverityHigh + const MessageErrorSeverityInfo + const MessageErrorSeverityLow + const MessageErrorSeverityMedium + func (e MessageErrorSeverity) Valid() bool + type MessageErrorType string + const MessageErrorTypeError + func (e MessageErrorType) Valid() bool + type MessageInfo struct + Content string + ContentType MessageInfoContentType + Param *string + Resolution *MessageInfoResolution + Severity *MessageInfoSeverity + Type MessageInfoType + type MessageInfoContentType string + const MessageInfoContentTypeMarkdown + const MessageInfoContentTypePlain + func (e MessageInfoContentType) Valid() bool + type MessageInfoResolution string + const MessageInfoResolutionRecoverable + const MessageInfoResolutionRequiresBuyerInput + const MessageInfoResolutionRequiresBuyerReview + func (e MessageInfoResolution) Valid() bool + type MessageInfoSeverity string + const MessageInfoSeverityCritical + const MessageInfoSeverityHigh + const MessageInfoSeverityInfo + const MessageInfoSeverityLow + const MessageInfoSeverityMedium + func (e MessageInfoSeverity) Valid() bool + type MessageInfoType string + const MessageInfoTypeInfo + func (e MessageInfoType) Valid() bool + type MessageWarning struct + Code MessageWarningCode + Content string + ContentType MessageWarningContentType + Param *string + Resolution *MessageWarningResolution + Severity *MessageWarningSeverity + Type MessageWarningType + type MessageWarningCode string + const MessageWarningCodeDiscountCodeAlreadyApplied + const MessageWarningCodeDiscountCodeCombinationDisallowed + const MessageWarningCodeDiscountCodeExpired + const MessageWarningCodeDiscountCodeInvalid + const MessageWarningCodeDiscountCodeMinimumNotMet + const MessageWarningCodeDiscountCodeUsageLimitReached + const MessageWarningCodeDiscountCodeUserIneligible + const MessageWarningCodeDiscountCodeUserNotLoggedIn + const MessageWarningCodeExpiringPromotion + const MessageWarningCodeHighDemand + const MessageWarningCodeLimitedAvailability + const MessageWarningCodeLowStock + const MessageWarningCodePriceChange + const MessageWarningCodeShippingDelay + func (e MessageWarningCode) Valid() bool + type MessageWarningContentType string + const MessageWarningContentTypeMarkdown + const MessageWarningContentTypePlain + func (e MessageWarningContentType) Valid() bool + type MessageWarningResolution string + const MessageWarningResolutionRecoverable + const MessageWarningResolutionRequiresBuyerInput + const MessageWarningResolutionRequiresBuyerReview + func (e MessageWarningResolution) Valid() bool + type MessageWarningSeverity string + const MessageWarningSeverityCritical + const MessageWarningSeverityHigh + const MessageWarningSeverityInfo + const MessageWarningSeverityLow + const MessageWarningSeverityMedium + func (e MessageWarningSeverity) Valid() bool + type MessageWarningType string + const Warning + func (e MessageWarningType) Valid() bool + type Option func(*config) + func WithServeMux(mux *http.ServeMux) Option + type Provider interface + CancelCart func(context.Context, string) (*Cart, error) + CreateCart func(context.Context, CartCreateRequest) (*Cart, error) + GetCart func(context.Context, string) (*Cart, error) + UpdateCart func(context.Context, string, CartUpdateRequest) (*Cart, error) + type RequestId = string + type TaxBreakdownItem struct + Amount int + Jurisdiction string + Rate float32 + type TaxExemption struct + CertificateId string + CertificateType TaxExemptionCertificateType + ExemptRegions *[]string + ExpiresAt *time.Time + type TaxExemptionCertificateType string + const ExemptOrganization + const Government + const Resale + func (e TaxExemptionCertificateType) Valid() bool + type Total struct + Amount int + Breakdown *[]TaxBreakdownItem + Description *string + DisplayText string + PresentmentAmount *int + Type TotalType + type TotalType string + const TotalTypeAmountRefunded + const TotalTypeDiscount + const TotalTypeFee + const TotalTypeFulfillment + const TotalTypeGiftWrap + const TotalTypeItemsBaseAmount + const TotalTypeItemsDiscount + const TotalTypeStoreCredit + const TotalTypeSubtotal + const TotalTypeTax + const TotalTypeTip + const TotalTypeTotal + func (e TotalType) Valid() bool + type Unauthorized = Error + type UpdateCartJSONRequestBody = CartUpdateRequest + type UpdateCartParams struct + APIVersion APIVersion + AcceptLanguage *AcceptLanguage + Authorization Authorization + ContentType ContentType + IdempotencyKey IdempotencyKey + RequestId *RequestId + type VariantOption struct + Name string + Value string + type WeightInfo struct + Unit WeightInfoUnit + Value float32 + type WeightInfoUnit string + const G + const Kg + const Lb + const Oz + func (e WeightInfoUnit) Valid() bool