{
	"$id": "https://github.com/wp-pay-gateways/mollie/blob/master/json-schemas/payment.json",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"title": "Mollie payment.",
	"type": "object",
	"properties": {
		"resource": {
			"description": "Indicates the response contains a payment object. Will always contain `payment` for this endpoint.",
			"type": "string",
			"const": "payment"
		},
		"id": {
			"description": "The identifier uniquely referring to this payment.",
			"type": "string"
		},
		"mode": {
			"description": "The mode used to create this payment.",
			"type": "string",
			"enum": ["live", "test"]
		},
		"createdAt": {
			"description": "The payment’s date and time of creation, in ISO 8601 format.",
			"type": "string"
		},
		"status": {
			"description": "The payment’s status.",
			"type": "string"
		},
		"profileId": {
			"description": "The identifier referring to the profile this payment was created on.",
			"type": "string"
		},
		"customerId": {
			"description": "If a customer was specified upon payment creation, the customer’s token will be available here as well.",
			"type": "string"
		},
		"sequenceType": {
			"description": "Indicates which type of payment this is in a recurring sequence.",
			"type": "string",
			"enum": ["oneoff", "first", "recurring"]
		},
		"mandateId": {
			"description": "If the payment is a first or recurring payment, this field will hold the ID of the mandate.",
			"type": "string"
		},
		"_links": {
			"type": "object"
		},
		"details": {
			"description": "If the payment has been created with a `method`, or if the customer selected a method in the payment method selection screen, a `details` object becomes available on the payment object. This object contains detail fields specific to the selected payment method.",
			"type": "object"
		}
	},
	"required": [
		"resource",
		"id",
		"mode",
		"createdAt",
		"status",
		"amount",
		"description",
		"redirectUrl",
		"method",
		"metadata",
		"profileId",
		"sequenceType",
		"_links"
	]
}
