Versions in this module Expand all Collapse all v0 v0.3.0 Apr 15, 2020 Changes in this version + const CartDomain + const CatalogDomain + const CreditCardValidatedEventName + const DefaultErrorStatus + const DefaultSuccessStatus + const OrderDomain + const PaymentDomain + const PaymentRequestedEventName + const ShipmentDeliveredEventName + const ShipmentDomain + const ShipmentRequestedEventName + const ShipmentSentEventName + func ToSentryMap(i interface{}) map[string]interface + type Address struct + City *string + Country *string + State *string + Street *string + Zip *string + type AllCatalogItemsResponse struct + Data []CatalogItem + func (r *AllCatalogItemsResponse) Marshal() ([]byte, error) + type AllUsers struct + Data []User + func (r *AllUsers) Marshal() ([]byte, error) + type Cart struct + Items []CartItem + UserID string + func UnmarshalCart(data string) (Cart, error) + func (r *Cart) Marshal() ([]byte, error) + type CartItem struct + Description string + ID *string + ItemID *string + Name string + Price float64 + Quantity int64 + func UnmarshalItem(data []byte) (CartItem, error) + func (r *CartItem) Marshal() ([]byte, error) + type CartItemTotal struct + CartItemTotal int64 + UserID string + func (r *CartItemTotal) Marshal() ([]byte, error) + type CartItems []CartItem + func UnmarshalItems(data string) (CartItems, error) + func (r *CartItems) Marshal() ([]byte, error) + type CartValueTotal struct + CartTotal float64 + UserID string + func (r *CartValueTotal) Marshal() ([]byte, error) + type Carts []Cart + func (r *Carts) Marshal() ([]byte, error) + type CatalogItem struct + Description string + ID string + ImageURL1 string + ImageURL2 string + ImageURL3 string + Name string + Price float32 + ShortDescription string + Tags []string + func UnmarshalCatalogItem(data string) (CatalogItem, error) + func (r *CatalogItem) Marshal() ([]byte, error) + type CreateCatalogItemResponse struct + Message string + ResourceID CatalogItem + Status int + func (r *CreateCatalogItemResponse) Marshal() ([]byte, error) + type CreditCardValidatedEvent struct + Data CreditCardValidationDetails + Metadata Metadata + func UnmarshalCreditCardValidatedEvent(data []byte) (CreditCardValidatedEvent, error) + func (e *CreditCardValidatedEvent) Marshal() ([]byte, error) + type CreditCardValidationDetails struct + Amount string + Message string + OrderID string + Status int + Success bool + TransactionID string + func UnmarshalCreditCardValidationDetails(data []byte) (CreditCardValidationDetails, error) + func (e *CreditCardValidationDetails) Marshal() ([]byte, error) + type LoginRequest struct + Password string + Username string + func UnmarshalLoginRequest(data string) (LoginRequest, error) + func (r *LoginRequest) Marshal() ([]byte, error) + type LoginResponse struct + AccessToken string + RefreshToken string + Status int64 + func UnmarshalLoginResponse(data string) (LoginResponse, error) + func (r *LoginResponse) Marshal() ([]byte, error) + type Metadata struct + Domain string + Source string + Status string + Type string + type Order struct + Address *Address + Card creditcard.Card + Cart []CartItem + Delivery string + Email *string + Firstname *string + Lastname *string + OrderID string + Status *string + Total string + UserID string + func UnmarshalOrder(data string) (Order, error) + func (r *Order) Marshal() ([]byte, error) + type OrderStatus struct + OrderID string + Payment CreditCardValidationDetails + UserID string + func (r *OrderStatus) Marshal() ([]byte, error) + type Orders []Order + func (r *Orders) Marshal() ([]byte, error) + type PaymentRequestDetails struct + Card creditcard.Card + OrderID string + Total string + func UnmarshalPaymentRequestDetails(data []byte) (PaymentRequestDetails, error) + func (e *PaymentRequestDetails) Marshal() ([]byte, error) + type PaymentRequestedEvent struct + Data PaymentRequestDetails + Metadata Metadata + func UnmarshalPaymentRequestedEvent(data []byte) (PaymentRequestedEvent, error) + func (e *PaymentRequestedEvent) Marshal() ([]byte, error) + type RegisterUserResponse struct + Message string + ResourceID string + Status int64 + func UnmarshalRegisterUserResponse(data string) (RegisterUserResponse, error) + func (r *RegisterUserResponse) Marshal() ([]byte, error) + type ShipmentData struct + OrderNumber string + Status string + TrackingNumber string + type ShipmentRequest struct + Delivery string + OrderID string + type ShipmentRequested struct + Data ShipmentRequest + Metadata Metadata + func UnmarshalShipmentRequested(data []byte) (ShipmentRequested, error) + func (e *ShipmentRequested) Marshal() ([]byte, error) + type ShipmentSent struct + Data ShipmentData + Metadata Metadata + func UnmarshalShipmentSent(data []byte) (ShipmentSent, error) + func (e *ShipmentSent) Marshal() ([]byte, error) + type ShopCard struct + Ccv string + ExpMonth string + ExpYear string + Number string + func (s *ShopCard) ToCreditCard() creditcard.Card + type ShopPayment struct + Card ShopCard + Total string + func UnmarshalShopPayment(data []byte) (ShopPayment, error) + func (r *ShopPayment) Marshal() ([]byte, error) + type User struct + Email string + Firstname string + ID string + Lastname string + Password string + Username string + func UnmarshalUser(data string) (User, error) + func (r *User) Marshal() ([]byte, error) + type UserDetailsResponse struct + Status int + User User + func (r *UserDetailsResponse) Marshal() ([]byte, error) + type UserIDResponse struct + UserID string + func (r *UserIDResponse) Marshal() ([]byte, error) + type VerifyTokenResponse struct + Message string + Status int + func UnmarshalVerifyTokenResponse(data string) (VerifyTokenResponse, error) + func (r *VerifyTokenResponse) Marshal() ([]byte, error)