Payment: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{
{
     "title": "Payment Method",
     "title": "Payment Method",
     "x-input": "button-select",
     "x-input": "OO.ui.ButtonSelectWidget",
     "oneOf": [
     "oneOf": [
         {
         {
Line 9: Line 9:
                 "method": {
                 "method": {
                     "type": "string",
                     "type": "string",
                    "x-hidden": true,
                     "enum": [
                     "enum": [
                         "none"
                         "none"
                     ],
                     ]
                    "options": {
                        "hidden": true
                    }
                 }
                 }
             },
             },
Line 34: Line 32:
                         "eft"
                         "eft"
                     ],
                     ],
                     "options": {
                     "x-hidden": true
                        "hidden": true
                    }
                 },
                 },
                 "bankName": {
                 "bankName": {
Line 68: Line 64:
                 "method": {
                 "method": {
                     "type": "string",
                     "type": "string",
                    "x-hidden": true,
                     "enum": [
                     "enum": [
                         "creditCard"
                         "creditCard"
                     ],
                     ]
                    "options": {
                        "hidden": true
                    }
                 },
                 },
                 "cardType": {
                 "cardType": {
Line 83: Line 77:
                         "MasterCard",
                         "MasterCard",
                         "Visa"
                         "Visa"
                     ],
                     ]
                    "options": {
                        "grid_columns": 3
                    }
                 },
                 },
                 "cardNumber": {
                 "cardNumber": {
Line 92: Line 83:
                     "type": "string",
                     "type": "string",
                     "minLength": 15,
                     "minLength": 15,
                     "maxLength": 16,
                     "maxLength": 16
                    "options": {
                        "grid_columns": 4
                    }
                 },
                 },
                 "expiration": {
                 "expiration": {
                     "title": "Expiration month",
                     "title": "Expiration month",
                     "type": "string",
                     "type": "string",
                     "format": "month",
                     "x-format": "month"
                    "options": {
                        "grid_columns": 3
                    }
                 },
                 },
                 "CCV": {
                 "CCV": {
Line 109: Line 94:
                     "maxLength": 4,
                     "maxLength": 4,
                     "minLength": 3,
                     "minLength": 3,
                     "pattern": "[0-9]*",
                     "pattern": "[0-9]*"
                    "options": {
                        "grid_columns": 2
                    }
                 }
                 }
             },
             },
Line 121: Line 103:
                 "expiration",
                 "expiration",
                 "CCV"
                 "CCV"
             ],
             ]
            "additionalProperties": false
         }
         }
     ]
     ]
}
}

Latest revision as of 00:00, 15 January 2001

title"Payment Method"
x-input"OO.ui.ButtonSelectWidget"
oneOf
title"None"
type"object"
properties
method
type"string"
x-hiddentrue
enum
"none"
required
"method"
options
hiddentrue
title"Bank EFT"
type"object"
x-layout"horizontal"
properties
method
type"string"
enum
"eft"
x-hiddentrue
bankName
title"Bank name"
type"string"
minLength5
routingNumber
title"Routing number"
type"string"
minLength9
accountNumber
title"Account number"
type"string"
minLength12
required
"method"
"bankName"
"routingNumber"
"accountNumber"
title"Credit Card"
type"object"
x-layout"horizontal"
properties
method
type"string"
x-hiddentrue
enum
"creditCard"
cardType
title"Card type"
type"string"
enum
"Amex"
"Discover"
"MasterCard"
"Visa"
cardNumber
title"Card number"
type"string"
minLength15
maxLength16
expiration
title"Expiration month"
type"string"
x-format"month"
CCV
type"string"
maxLength4
minLength3
pattern"[0-9]*"
required
"method"
"cardType"
"cardNumber"
"expiration"
"CCV"