Advertisement
Guest User

PaymentModel

a guest
Jun 25th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 10.10 KB | None | 0 0
  1. public class PaymentModel {
  2.     @SerializedName("transaction_details")
  3.     @Expose
  4.     private TransactionDetails transactionDetails;
  5.     @SerializedName("item_details")
  6.     @Expose
  7.     private List<ItemDetail> itemDetails = null;
  8.     @SerializedName("customer_details")
  9.     @Expose
  10.     private List<CustomerDetail> customerDetails = null;
  11.  
  12.     public TransactionDetails getTransactionDetails() {
  13.         return transactionDetails;
  14.     }
  15.  
  16.     public void setTransactionDetails(TransactionDetails transactionDetails) {
  17.         this.transactionDetails = transactionDetails;
  18.     }
  19.  
  20.     public List<ItemDetail> getItemDetails() {
  21.         return itemDetails;
  22.     }
  23.  
  24.     public void setItemDetails(List<ItemDetail> itemDetails) {
  25.         this.itemDetails = itemDetails;
  26.     }
  27.  
  28.     public List<CustomerDetail> getCustomerDetails() {
  29.         return customerDetails;
  30.     }
  31.  
  32.     public void setCustomerDetails(List<CustomerDetail> customerDetails) {
  33.         this.customerDetails = customerDetails;
  34.     }
  35.  
  36.     public class TransactionDetails {
  37.  
  38.         @SerializedName("order_id")
  39.         @Expose
  40.         private String orderId;
  41.         @SerializedName("gross_amount")
  42.         @Expose
  43.         private Integer grossAmount;
  44.  
  45.         public String getOrderId() {
  46.             return orderId;
  47.         }
  48.  
  49.         public void setOrderId(String orderId) {
  50.             this.orderId = orderId;
  51.         }
  52.  
  53.         public Integer getGrossAmount() {
  54.             return grossAmount;
  55.         }
  56.  
  57.         public void setGrossAmount(Integer grossAmount) {
  58.             this.grossAmount = grossAmount;
  59.         }
  60.  
  61.     }
  62.  
  63.     public class ItemDetail {
  64.  
  65.         @SerializedName("id")
  66.         @Expose
  67.         private String id;
  68.         @SerializedName("price")
  69.         @Expose
  70.         private Integer price;
  71.         @SerializedName("quantity")
  72.         @Expose
  73.         private Integer quantity;
  74.         @SerializedName("name")
  75.         @Expose
  76.         private String name;
  77.         @SerializedName("brand")
  78.         @Expose
  79.         private String brand;
  80.         @SerializedName("category")
  81.         @Expose
  82.         private String category;
  83.         @SerializedName("merchant_name")
  84.         @Expose
  85.         private String merchantName;
  86.  
  87.         public String getId() {
  88.             return id;
  89.         }
  90.  
  91.         public void setId(String id) {
  92.             this.id = id;
  93.         }
  94.  
  95.         public Integer getPrice() {
  96.             return price;
  97.         }
  98.  
  99.         public void setPrice(Integer price) {
  100.             this.price = price;
  101.         }
  102.  
  103.         public Integer getQuantity() {
  104.             return quantity;
  105.         }
  106.  
  107.         public void setQuantity(Integer quantity) {
  108.             this.quantity = quantity;
  109.         }
  110.  
  111.         public String getName() {
  112.             return name;
  113.         }
  114.  
  115.         public void setName(String name) {
  116.             this.name = name;
  117.         }
  118.  
  119.         public String getBrand() {
  120.             return brand;
  121.         }
  122.  
  123.         public void setBrand(String brand) {
  124.             this.brand = brand;
  125.         }
  126.  
  127.         public String getCategory() {
  128.             return category;
  129.         }
  130.  
  131.         public void setCategory(String category) {
  132.             this.category = category;
  133.         }
  134.  
  135.         public String getMerchantName() {
  136.             return merchantName;
  137.         }
  138.  
  139.         public void setMerchantName(String merchantName) {
  140.             this.merchantName = merchantName;
  141.         }
  142.  
  143.     }
  144.  
  145.     public class CustomerDetail {
  146.  
  147.         @SerializedName("first_name")
  148.         @Expose
  149.         private String firstName;
  150.         @SerializedName("last_name")
  151.         @Expose
  152.         private String lastName;
  153.         @SerializedName("email")
  154.         @Expose
  155.         private String email;
  156.         @SerializedName("phone")
  157.         @Expose
  158.         private String phone;
  159.         @SerializedName("billing_address")
  160.         @Expose
  161.         private BillingAddress billingAddress;
  162.         @SerializedName("shipping_address")
  163.         @Expose
  164.         private ShippingAddress shippingAddress;
  165.  
  166.         public String getFirstName() {
  167.             return firstName;
  168.         }
  169.  
  170.         public void setFirstName(String firstName) {
  171.             this.firstName = firstName;
  172.         }
  173.  
  174.         public String getLastName() {
  175.             return lastName;
  176.         }
  177.  
  178.         public void setLastName(String lastName) {
  179.             this.lastName = lastName;
  180.         }
  181.  
  182.         public String getEmail() {
  183.             return email;
  184.         }
  185.  
  186.         public void setEmail(String email) {
  187.             this.email = email;
  188.         }
  189.  
  190.         public String getPhone() {
  191.             return phone;
  192.         }
  193.  
  194.         public void setPhone(String phone) {
  195.             this.phone = phone;
  196.         }
  197.  
  198.         public BillingAddress getBillingAddress() {
  199.             return billingAddress;
  200.         }
  201.  
  202.         public void setBillingAddress(BillingAddress billingAddress) {
  203.             this.billingAddress = billingAddress;
  204.         }
  205.  
  206.         public ShippingAddress getShippingAddress() {
  207.             return shippingAddress;
  208.         }
  209.  
  210.         public void setShippingAddress(ShippingAddress shippingAddress) {
  211.             this.shippingAddress = shippingAddress;
  212.         }
  213.  
  214.         public class BillingAddress {
  215.  
  216.             @SerializedName("first_name")
  217.             @Expose
  218.             private String firstName;
  219.             @SerializedName("last_name")
  220.             @Expose
  221.             private String lastName;
  222.             @SerializedName("email")
  223.             @Expose
  224.             private String email;
  225.             @SerializedName("phone")
  226.             @Expose
  227.             private String phone;
  228.             @SerializedName("address")
  229.             @Expose
  230.             private String address;
  231.             @SerializedName("city")
  232.             @Expose
  233.             private String city;
  234.             @SerializedName("postal_code")
  235.             @Expose
  236.             private String postalCode;
  237.             @SerializedName("country_code")
  238.             @Expose
  239.             private String countryCode;
  240.  
  241.             public String getFirstName() {
  242.                 return firstName;
  243.             }
  244.  
  245.             public void setFirstName(String firstName) {
  246.                 this.firstName = firstName;
  247.             }
  248.  
  249.             public String getLastName() {
  250.                 return lastName;
  251.             }
  252.  
  253.             public void setLastName(String lastName) {
  254.                 this.lastName = lastName;
  255.             }
  256.  
  257.             public String getEmail() {
  258.                 return email;
  259.             }
  260.  
  261.             public void setEmail(String email) {
  262.                 this.email = email;
  263.             }
  264.  
  265.             public String getPhone() {
  266.                 return phone;
  267.             }
  268.  
  269.             public void setPhone(String phone) {
  270.                 this.phone = phone;
  271.             }
  272.  
  273.             public String getAddress() {
  274.                 return address;
  275.             }
  276.  
  277.             public void setAddress(String address) {
  278.                 this.address = address;
  279.             }
  280.  
  281.             public String getCity() {
  282.                 return city;
  283.             }
  284.  
  285.             public void setCity(String city) {
  286.                 this.city = city;
  287.             }
  288.  
  289.             public String getPostalCode() {
  290.                 return postalCode;
  291.             }
  292.  
  293.             public void setPostalCode(String postalCode) {
  294.                 this.postalCode = postalCode;
  295.             }
  296.  
  297.             public String getCountryCode() {
  298.                 return countryCode;
  299.             }
  300.  
  301.             public void setCountryCode(String countryCode) {
  302.                 this.countryCode = countryCode;
  303.             }
  304.  
  305.         }
  306.  
  307.         public class ShippingAddress {
  308.  
  309.             @SerializedName("first_name")
  310.             @Expose
  311.             private String firstName;
  312.             @SerializedName("last_name")
  313.             @Expose
  314.             private String lastName;
  315.             @SerializedName("email")
  316.             @Expose
  317.             private String email;
  318.             @SerializedName("phone")
  319.             @Expose
  320.             private String phone;
  321.             @SerializedName("address")
  322.             @Expose
  323.             private String address;
  324.             @SerializedName("city")
  325.             @Expose
  326.             private String city;
  327.             @SerializedName("postal_code")
  328.             @Expose
  329.             private String postalCode;
  330.             @SerializedName("country_code")
  331.             @Expose
  332.             private String countryCode;
  333.  
  334.             public String getFirstName() {
  335.                 return firstName;
  336.             }
  337.  
  338.             public void setFirstName(String firstName) {
  339.                 this.firstName = firstName;
  340.             }
  341.  
  342.             public String getLastName() {
  343.                 return lastName;
  344.             }
  345.  
  346.             public void setLastName(String lastName) {
  347.                 this.lastName = lastName;
  348.             }
  349.  
  350.             public String getEmail() {
  351.                 return email;
  352.             }
  353.  
  354.             public void setEmail(String email) {
  355.                 this.email = email;
  356.             }
  357.  
  358.             public String getPhone() {
  359.                 return phone;
  360.             }
  361.  
  362.             public void setPhone(String phone) {
  363.                 this.phone = phone;
  364.             }
  365.  
  366.             public String getAddress() {
  367.                 return address;
  368.             }
  369.  
  370.             public void setAddress(String address) {
  371.                 this.address = address;
  372.             }
  373.  
  374.             public String getCity() {
  375.                 return city;
  376.             }
  377.  
  378.             public void setCity(String city) {
  379.                 this.city = city;
  380.             }
  381.  
  382.             public String getPostalCode() {
  383.                 return postalCode;
  384.             }
  385.  
  386.             public void setPostalCode(String postalCode) {
  387.                 this.postalCode = postalCode;
  388.             }
  389.  
  390.             public String getCountryCode() {
  391.                 return countryCode;
  392.             }
  393.  
  394.             public void setCountryCode(String countryCode) {
  395.                 this.countryCode = countryCode;
  396.             }
  397.  
  398.         }
  399.  
  400.     }
  401.  
  402. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement