maas-schemas

paymentSource Schema

http://maasglobal.com/core/paymentSource.json

MaaS region schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Develop No Forbidden Forbidden core/paymentSource.json

Schema Hierarchy

paymentSource Properties

Property Type Required Nullable Defined by
card card Optional No paymentSource (this schema)
customerId complex Required No paymentSource (this schema)
gateway string Optional No paymentSource (this schema)
gatewayId string Optional No paymentSource (this schema)
id string Optional No paymentSource (this schema)
status string Optional No paymentSource (this schema)
temporaryToken string Optional No paymentSource (this schema)
type enum Required No paymentSource (this schema)
valid boolean Optional No paymentSource (this schema)

card

card

card Type

customerId

customerId

customerId Type

Any following options needs to be fulfilled.

Option 1

string

All instances must conform to this regular expression

^[aepus]{2}-[\w]{4}-\d:[a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}$

Option 2

string

All instances must conform to this regular expression

^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$

customerId Examples

"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"

gateway

gateway

gateway Type

string

gatewayId

gatewayId

gatewayId Type

string

id

id

id Type

string

status

status

status Type

string

temporaryToken

temporaryToken

temporaryToken Type

string

type

type

The value of this property must be equal to one of the known values below.

type Known Values

Value Description
card  
paypal_express_checkout  
amazon_payments  
direct_debit  
generic  
alipay  
unionpay  
apple_pay  

valid

valid

valid Type

boolean