SHARE
TWEET

XMLmodel

a guest Jan 17th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. @Getter
  3. @ToString
  4. @XmlRootElement(name = "response")
  5. public class TransferResponse extends ResponseWithResultCode {
  6.  
  7.     @XmlElement(name = "payment")
  8.     private PaymentExtend payment;
  9.  
  10.     @XmlElementWrapper(name = "balances")
  11.     @XmlElement(name = "balance")
  12.     private List<Balance> balances;
  13.  
  14.     @Getter
  15.     @ToString
  16.     public static class PaymentExtend extends Payment {
  17.  
  18.         @XmlElement(name = "from")
  19.         private From from;
  20.  
  21.         @XmlElement(name = "to")
  22.         private To to;
  23.  
  24.         @Getter
  25.         @ToString
  26.         public static class From {
  27.  
  28.             @XmlElement(name = "amount")
  29.             private BigDecimal amount;
  30.  
  31.             @XmlElement(name = "ccy")
  32.             private String currencyCode;
  33.         }
  34.  
  35.         @Getter
  36.         @ToString
  37.         public static class To {
  38.  
  39.             @XmlElement(name = "service-id")
  40.             private Long serviceId;
  41.  
  42.             @XmlElement(name = "amount")
  43.             private BigDecimal amount;
  44.  
  45.             @XmlElement(name = "ccy")
  46.             private String currencyCode;
  47.  
  48.             @XmlElement(name = "accountNumber")
  49.             private String accountNumber;
  50.         }
  51.     }
  52. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top