{
	"name": "MobilePaymentsFacade",
	"type": "facade",
	"senders": ["web"],
	"receivers": ["ios"],
	"doc": "Operations for handling mobile payments.",
	"methods": {
		"requestSubscriptionToPlan": {
			"doc": "Display a pop-up for the user to start a subscription",
			"arg": [
				{
					"plan": "string"
				},
				{
					"interval": "number"
				},
				{
					"customerIdBytes": "bytes"
				}
			],
			"ret": "MobilePaymentResult"
		},
		"getPlanPrices": {
			"doc": "Returns displayable prices for all plans",
			"arg": [],
			"ret": "List<MobilePlanPrice>"
		},
		"showSubscriptionConfigView": {
			"doc": "Display a view for the user to configure their subscription.",
			"arg": [],
			"ret": "void"
		},
		"queryAppStoreSubscriptionOwnership": {
			"doc": "Check if the latest transaction using the current Store Account belongs to the user",
			"arg": [
				{
					"customerIdBytes": "bytes?"
				}
			],
			"ret": "MobilePaymentSubscriptionOwnership"
		},
		"isAppStoreRenewalEnabled": {
			"doc": "Check if there's a subscription and if it has auto-renew enabled",
			"arg": [],
			"ret": "boolean"
		}
	}
}
