@@ -42,45 +42,16 @@ properties:
4242 source :
4343 $ref : ./QuoteSource.yaml
4444 destination :
45+ required :
46+ - destinationType
4547 oneOf :
46- - title : Account Destination
47- type : object
48- required :
49- - accountId
50- properties :
51- accountId :
52- type : string
53- description : Destination account identifier
54- example : ExternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123
55- currency :
56- type : string
57- description : Currency code for the destination account
58- example : EUR
59- description : Destination account details
60- - title : UMA Address Destination
61- type : object
62- required :
63- - umaAddress
64- properties :
65- umaAddress :
66- type : string
67- description : UMA address of the recipient
68- example : $receiver@uma.domain.com
69- currency :
70- type : string
71- description : Currency code for the destination
72- example : EUR
73- counterpartyInformation :
74- type : object
75- description : >-
76- Information about the recipient, as required by the platform in their
77- configuration.
78- additionalProperties : true
79- example :
80- FULL_NAME : Jane Receiver
81- BIRTH_DATE : ' 1990-01-01'
82- NATIONALITY : FR
83- description : UMA address destination details
48+ - $ref : ../common/AccountDestination.yaml
49+ - $ref : ./QuoteUmaAddressDestination.yaml
50+ discriminator :
51+ propertyName : destinationType
52+ mapping :
53+ ACCOUNT : ../common/AccountDestination.yaml
54+ UMA_ADDRESS : ./QuoteUmaAddressDestination.yaml
8455 sendingCurrency :
8556 $ref : ../common/Currency.yaml
8657 description : Currency for the sending amount
@@ -120,15 +91,6 @@ properties:
12091 description : Payment instructions for executing the payment. This is not required when using an internal account source.
12192 items :
12293 $ref : ../common/PaymentInstructions.yaml
123- example :
124- - accountType : US_ACCOUNT
125- accountNumber : " 1234567890"
126- routingNumber : " 021000021"
127- bankName : " Chase Bank"
128- referenceCode : " REF123456"
129- - accountType : SPARK_WALLET
130- address : " spark1pgssyuuuhnrrdjswal5c3s3rafw9w3y5dd4cjy3duxlf7hjzkp0rqx6dj6mrhu"
131- invoice : " lnbc15u1p3xnhl2pp5jptserfk3zk4qy42tlucycrfwxhydvlemu9pqr93tuzlv9cc7g3sdqsvfhkcap3xyhx7un8cqzpgxqzjcsp5f8c52y2stc300gl6s4xswtjpc37hrnnr3c9wvtgjfuvqmpm35evq9qyyssqy4lgd8tj637qcjp05rdpxxykjenthxftej7a2zzmwrmrl70fyj9hvj0rewhzj7jfyuwkwcg9g2jpwtk3wkjtwnkdks84hsnu8xps5vsq4gj5hs"
13294 transactionId :
13395 type : string
13496 description : The ID of the transaction created from this quote.
0 commit comments