Skip to content

valitydev/swag-wallets

Wallet API Specification

Points of extensions

Generic destination resources

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:

  1. 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 of ResourceGeneric.generic.data thrift model (which will eventually become GenericPaymentTool.data).

    When id schema property is defined, its value will be used to annotate generic resource data data, namely through MIME type.