Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SandboxURL is the endpoint for local environment. SandboxURL string = "http://localhost:8080/RVSSandbox" // ProductionURL is the endpoint for production environment. ProductionURL string = "https://appstore-sdk.amazon.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements IAPClient
func NewWithClient ¶
NewWithClient creates a client with a custom client.
type IAPResponse ¶
type IAPResponse struct { ReceiptID string `json:"receiptId"` ProductType string `json:"productType"` ProductID string `json:"productId"` PurchaseDate int64 `json:"purchaseDate"` RenewalDate int64 `json:"renewalDate"` CancelDate int64 `json:"cancelDate"` TestTransaction bool `json:"testTransaction"` BetaProduct bool `json:"betaProduct"` ParentProductID string `json:"parentProductId"` Quantity int64 `json:"quantity"` Term string `json:"term"` TermSku string `json:"termSku"` FreeTrialEndDate int64 `json:"freeTrialEndDate"` AutoRenewing bool `json:"autoRenewing"` CancelReason *int8 `json:"cancelReason"` GracePeriodEndDate int64 `json:"gracePeriodEndDate"` Promotions []Promotion `json:"promotions"` }
The IAPResponse type has the response properties
type IAPResponseError ¶
The IAPResponseError typs has error message and status.
type Promotion ¶ added in v1.3.25
type Promotion struct { PromotionType PromotionType `json:"promotionType"` PromotionStatus PromotionStatus `json:"promotionStatus"` }
type PromotionStatus ¶ added in v1.3.25
type PromotionStatus string
const ( Queued PromotionStatus = "Queued" InProgress PromotionStatus = "InProgress" Completed PromotionStatus = "Completed" )
type PromotionType ¶ added in v1.3.25
type PromotionType string
const ( IntroductoryPrice PromotionType = "Introductory Price - All customers" PromotionalPrice PromotionType = "Promotional Price - Lapsed customers" )
Click to show internal directories.
Click to hide internal directories.