-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws_marketplace.go
29 lines (24 loc) · 1.45 KB
/
aws_marketplace.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package types
type AWSCustomer struct {
AccountID string `json:"accountID" yaml:"accountID"`
Identifier string `json:"identifier" yaml:"identifier"`
ProductCode string `json:"productCode" yaml:"productCode"`
}
type CreateAWSContractFromToken struct {
ProjectID string `json:"-"`
AmazonMarketplaceToken string `json:"amazonMarketplaceToken"`
}
type AWSMarketplaceSubscriptionNotification struct {
Action AWSMarketplaceSubscriptionNotificationAction `json:"action"`
CustomerIdentifier string `json:"customer-identifier"`
ProductCode string `json:"product-code"`
OfferIdentifier string `json:"offer-identifier"`
IsFreeTrialTermPresent bool `json:"isFreeTrialTermPresent"`
}
type AWSMarketplaceSubscriptionNotificationAction string
const (
AWSMarketplaceSubscriptionNotificationActionSubscribeSuccess AWSMarketplaceSubscriptionNotificationAction = "subscribe-success"
AWSMarketplaceSubscriptionNotificationActionSubscribeFail AWSMarketplaceSubscriptionNotificationAction = "subscribe-fail"
AWSMarketplaceSubscriptionNotificationActionUnsubscribePending AWSMarketplaceSubscriptionNotificationAction = "unsubscribe-pending"
AWSMarketplaceSubscriptionNotificationActionUnsubscribeSuccess AWSMarketplaceSubscriptionNotificationAction = "unsubscribe-success"
)