Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderStatus_Pending string = "pending" OrderStatus_Failed string = "failed" OrderStatus_Paid string = "paid" OrderStatus_Refunded string = "refunded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenseKey ¶
type LicenseKey struct { Type string `json:"type"` ID string `json:"id"` Attributes struct { StoreID int `json:"store_id"` CustomerID int `json:"customer_id"` OrderID int `json:"order_id"` OrderItemID int `json:"order_item_id"` ProductID int `json:"product_id"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` Key string `json:"key"` KeyShort string `json:"key_short"` ActivationLimit int `json:"activation_limit"` InstancesCount int `json:"instances_count"` Disabled int `json:"disabled"` Status string `json:"status"` StatusFormatted string `json:"status_formatted"` ExpiresAt time.Time `json:"expires_at"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } `json:"attributes"` }
type LicenseKeyPayload ¶
type LicenseKeyPayload struct { Meta `json:"meta"` Data LicenseKey `json:"data"` }
"license_key_" event payload
type Order ¶
type Order struct { Type string `json:"type"` ID string `json:"id"` Attributes struct { StoreID int `json:"store_id"` CustomerID int `json:"customer_id"` Identifier string `json:"identifier"` OrderNumber int `json:"order_number"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` Currency string `json:"currency"` CurrencyRate string `json:"currency_rate"` TaxName string `json:"tax_name"` TaxRate string `json:"tax_rate"` Status string `json:"status"` StatusFormatted string `json:"status_formatted"` Refunded bool `json:"refunded"` RefundedAt time.Time `json:"refunded_at"` Subtotal int `json:"subtotal"` DiscountTotal int `json:"discount_total"` Tax int `json:"tax"` Total int `json:"total"` SubtotalUsd int `json:"subtotal_usd"` DiscountTotalUsd int `json:"discount_total_usd"` TaxUsd int `json:"tax_usd"` TotalUsd int `json:"total_usd"` SubtotalFormatted string `json:"subtotal_formatted"` DiscountTotalFormatted string `json:"discount_total_formatted"` TaxFormatted string `json:"tax_formatted"` TotalFormatted string `json:"total_formatted"` FirstOrderItem struct { ID int `json:"id"` OrderID int `json:"order_id"` ProductID int `json:"product_id"` VariantID int `json:"variant_id"` ProductName string `json:"product_name"` VariantName string `json:"variant_name"` Price int `json:"price"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` TestMode bool `json:"test_mode"` } `json:"first_order_item"` Urls struct { Receipt string `json:"receipt"` } `json:"urls"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` TestMode bool `json:"test_mode"` } `json:"attributes"` Relationships struct { Store struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"store"` Customer struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"customer"` OrderItems struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"order-items"` Subscriptions struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"subscriptions"` LicenseKeys struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"license-keys"` DiscountRedemptions struct { Links struct { Related string `json:"related"` Self string `json:"self"` } `json:"links"` } `json:"discount-redemptions"` } `json:"relationships"` Links struct { Self string `json:"self"` } `json:"links"` }
type OrderPayload ¶
"order_" event payload
type Subscription ¶
type Subscription struct { Type string `json:"type"` ID string `json:"id"` Attributes struct { StoreID int `json:"store_id"` CustomerID int `json:"customer_id"` OrderID int `json:"order_id"` OrderItemID int `json:"order_item_id"` ProductID int `json:"product_id"` VariantID int `json:"variant_id"` ProductName string `json:"product_name"` VariantName string `json:"variant_name"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` Status string `json:"status"` StatusFormatted string `json:"status_formatted"` CardBrand string `json:"card_brand"` CardLastFour string `json:"card_last_four"` Pause SubscriptionPause `json:"pause"` Cancelled bool `json:"cancelled"` TrialEndsAt time.Time `json:"trial_ends_at"` BillingAnchor int `json:"billing_anchor"` Urls struct { UpdatePaymentMethod string `json:"update_payment_method"` } `json:"urls"` RenewsAt time.Time `json:"renews_at"` EndsAt time.Time `json:"ends_at"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` TestMode bool `json:"test_mode"` } `json:"attributes"` Links struct { Self string `json:"self"` } `json:"links"` Relationships struct { Order struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"order"` Store struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"store"` Product struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"product"` Variant struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"variant"` Customer struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"customer"` OrderItem struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"order-item"` SubscriptionItems struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"subscription-items"` SubscriptionInvoices struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"subscription-invoices"` } }
type SubscriptionInvoice ¶
type SubscriptionInvoice struct { Type string `json:"type"` ID string `json:"id"` Attributes struct { StoreID int `json:"store_id"` SubscriptionID int `json:"subscription_id"` BillingReason string `json:"billing_reason"` CardBrand string `json:"card_brand"` CardLastFour string `json:"card_last_four"` Currency string `json:"currency"` CurrencyRate string `json:"currency_rate"` Subtotal int `json:"subtotal"` DiscountTotal int `json:"discount_total"` Tax int `json:"tax"` Total int `json:"total"` SubtotalUsd int `json:"subtotal_usd"` DiscountTotalUsd int `json:"discount_total_usd"` TaxUsd int `json:"tax_usd"` TotalUsd int `json:"total_usd"` Status string `json:"status"` StatusFormatted string `json:"status_formatted"` Refunded bool `json:"refunded"` RefundedAt time.Time `json:"refunded_at"` SubtotalFormatted string `json:"subtotal_formatted"` DiscountTotalFormatted string `json:"discount_total_formatted"` TaxFormatted string `json:"tax_formatted"` TotalFormatted string `json:"total_formatted"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` CustomerID int `json:"customer_id"` Urls struct { InvoiceURL string `json:"invoice_url"` } `json:"urls"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` TestMode bool `json:"test_mode"` } `json:"attributes"` Relationships struct { Store struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"store"` Customer struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"customer"` Subscription struct { Links struct { Self string `json:"self"` Related string `json:"related"` } `json:"links"` } `json:"subscription"` } `json:"relationships"` }
type SubscriptionInvoicePayload ¶
type SubscriptionInvoicePayload struct { Meta `json:"meta"` Data SubscriptionInvoice `json:"data"` }
"subscription_payment_" event payload
type SubscriptionPause ¶
type SubscriptionPayload ¶
type SubscriptionPayload struct { Meta `json:"meta"` Data Subscription `json:"data"` }
"subscription_" event payload
Click to show internal directories.
Click to hide internal directories.