{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/order-service-api-paymentdetails.json", "title": "PaymentDetails", "description": "Details of how the order will be paid, and the further re-occuring billing for services.", "type": "object", "properties": { "paymentType": { "type": "string", "description": "Type of payment that can be made.", "default": "CREDIT" } }, "discriminator": { "propertyName": "paymentType", "mapping": { "ACCOUNT": "#/components/schemas/PaymentDetailsAccount", "CREDIT": "#/components/schemas/PaymentDetailsCredit", "NET": "#/components/schemas/PaymentDetailsNET", "EINVOICE": "#/components/schemas/PaymentDetailsEInvoice" } }, "required": [ "paymentType" ] }