This allows adding new destination resources which should be handled by wapi in a generic manner.
Provided through vendor extension x-vality-genericMethod
, which should be a JSON object. You can set it on a model discriminated against DestinationResource
. When it's set on an object its type
value will be used to identify this resource's payment service.
At the moment this object may contain following properties:
-
schema
object, which should be a valid JSON schema.A
DestinationResource
object following this schema will be interpreted as generic resource data and passed down as part ofResourceGeneric.generic.data
thrift model (which will eventually becomeGenericPaymentTool.data
).When
id
schema property is defined, its value will be used to annotate generic resource data data, namely through MIME type.