/UniwareCore/src/main/java/com/uniware/core/vo/PaymentReconciliation.java

https://bitbucket.org/piyushgd10/bhumi · Java · 286 lines · 220 code · 63 blank · 3 comment · 0 complexity · af3ff8c5379127b65ded2dd021861cf2 MD5 · raw file

  1. package com.uniware.core.vo;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import org.springframework.data.annotation.Id;
  5. import org.springframework.data.mongodb.core.mapping.Document;
  6. /**
  7. * Created by akshayag on 9/12/16.
  8. */
  9. @Document(collection = "paymentReconciliation")
  10. public class PaymentReconciliation {
  11. public enum ReconciliationStatus {
  12. RECONCILED,
  13. AWAITING_PAYMENT,
  14. DISPUTED,
  15. UNRECONCILED,
  16. UNRECONCILABLE
  17. };
  18. public enum ReconcileType {
  19. CREDIT_INITIATE,
  20. DEBIT_INITIATE
  21. };
  22. public enum UnReconcileXML {
  23. UnreonciliedItem,
  24. ReconciliationIdentifier,
  25. SellingPrice,
  26. ShippingCharges,
  27. ExpectedEarning,
  28. OrderTransactionDate,
  29. StatusCode
  30. }
  31. @Id
  32. private String id;
  33. private String orderReferenceId;
  34. private Integer settlementReferenceId;
  35. private String tenantCode;
  36. private String statusCode = ReconciliationStatus.AWAITING_PAYMENT.name();
  37. private String currencyCode;
  38. private BigDecimal receivedAmount = BigDecimal.ZERO;
  39. private Date settlementDate;
  40. private Pricing pricing;
  41. private Date created;
  42. private Date updated;
  43. public static class Pricing {
  44. private BigDecimal transferPrice;
  45. private BigDecimal costPrice;
  46. private BigDecimal channelTransferPrice;
  47. private BigDecimal commissionPercentage;
  48. private BigDecimal paymentGatewayCharge;
  49. private BigDecimal logisticsCost;
  50. private BigDecimal dropshipShippingCharges = BigDecimal.ZERO;
  51. private BigDecimal dropshipCommission = BigDecimal.ZERO;
  52. private BigDecimal giftWrapCharges = BigDecimal.ZERO;
  53. private BigDecimal totalPrice;
  54. private BigDecimal sellingPrice;
  55. private BigDecimal discount = BigDecimal.ZERO;
  56. private BigDecimal prepaidAmount = BigDecimal.ZERO;
  57. private BigDecimal shippingCharges = BigDecimal.ZERO;
  58. private BigDecimal shippingMethodCharges = BigDecimal.ZERO;
  59. private BigDecimal cashOnDeliveryCharges = BigDecimal.ZERO;
  60. public BigDecimal getTransferPrice() {
  61. return transferPrice;
  62. }
  63. public void setTransferPrice(BigDecimal transferPrice) {
  64. this.transferPrice = transferPrice;
  65. }
  66. public BigDecimal getCostPrice() {
  67. return costPrice;
  68. }
  69. public void setCostPrice(BigDecimal costPrice) {
  70. this.costPrice = costPrice;
  71. }
  72. public BigDecimal getChannelTransferPrice() {
  73. return channelTransferPrice;
  74. }
  75. public void setChannelTransferPrice(BigDecimal channelTransferPrice) {
  76. this.channelTransferPrice = channelTransferPrice;
  77. }
  78. public BigDecimal getCommissionPercentage() {
  79. return commissionPercentage;
  80. }
  81. public void setCommissionPercentage(BigDecimal commissionPercentage) {
  82. this.commissionPercentage = commissionPercentage;
  83. }
  84. public BigDecimal getPaymentGatewayCharge() {
  85. return paymentGatewayCharge;
  86. }
  87. public void setPaymentGatewayCharge(BigDecimal paymentGatewayCharge) {
  88. this.paymentGatewayCharge = paymentGatewayCharge;
  89. }
  90. public BigDecimal getLogisticsCost() {
  91. return logisticsCost;
  92. }
  93. public void setLogisticsCost(BigDecimal logisticsCost) {
  94. this.logisticsCost = logisticsCost;
  95. }
  96. public BigDecimal getDropshipShippingCharges() {
  97. return dropshipShippingCharges;
  98. }
  99. public void setDropshipShippingCharges(BigDecimal dropshipShippingCharges) {
  100. this.dropshipShippingCharges = dropshipShippingCharges;
  101. }
  102. public BigDecimal getDropshipCommission() {
  103. return dropshipCommission;
  104. }
  105. public void setDropshipCommission(BigDecimal dropshipCommission) {
  106. this.dropshipCommission = dropshipCommission;
  107. }
  108. public BigDecimal getGiftWrapCharges() {
  109. return giftWrapCharges;
  110. }
  111. public void setGiftWrapCharges(BigDecimal giftWrapCharges) {
  112. this.giftWrapCharges = giftWrapCharges;
  113. }
  114. public BigDecimal getTotalPrice() {
  115. return totalPrice;
  116. }
  117. public void setTotalPrice(BigDecimal totalPrice) {
  118. this.totalPrice = totalPrice;
  119. }
  120. public BigDecimal getSellingPrice() {
  121. return sellingPrice;
  122. }
  123. public void setSellingPrice(BigDecimal sellingPrice) {
  124. this.sellingPrice = sellingPrice;
  125. }
  126. public BigDecimal getDiscount() {
  127. return discount;
  128. }
  129. public void setDiscount(BigDecimal discount) {
  130. this.discount = discount;
  131. }
  132. public BigDecimal getPrepaidAmount() {
  133. return prepaidAmount;
  134. }
  135. public void setPrepaidAmount(BigDecimal prepaidAmount) {
  136. this.prepaidAmount = prepaidAmount;
  137. }
  138. public BigDecimal getShippingCharges() {
  139. return shippingCharges;
  140. }
  141. public void setShippingCharges(BigDecimal shippingCharges) {
  142. this.shippingCharges = shippingCharges;
  143. }
  144. public BigDecimal getShippingMethodCharges() {
  145. return shippingMethodCharges;
  146. }
  147. public void setShippingMethodCharges(BigDecimal shippingMethodCharges) {
  148. this.shippingMethodCharges = shippingMethodCharges;
  149. }
  150. public BigDecimal getCashOnDeliveryCharges() {
  151. return cashOnDeliveryCharges;
  152. }
  153. public void setCashOnDeliveryCharges(BigDecimal cashOnDeliveryCharges) {
  154. this.cashOnDeliveryCharges = cashOnDeliveryCharges;
  155. }
  156. }
  157. public String getId() {
  158. return id;
  159. }
  160. public void setId(String id) {
  161. this.id = id;
  162. }
  163. public String getOrderReferenceId() {
  164. return orderReferenceId;
  165. }
  166. public void setOrderReferenceId(String orderReferenceId) {
  167. this.orderReferenceId = orderReferenceId;
  168. }
  169. public Integer getSettlementReferenceId() {
  170. return settlementReferenceId;
  171. }
  172. public void setSettlementReferenceId(Integer settlementReferenceId) {
  173. this.settlementReferenceId = settlementReferenceId;
  174. }
  175. public String getTenantCode() {
  176. return tenantCode;
  177. }
  178. public void setTenantCode(String tenantCode) {
  179. this.tenantCode = tenantCode;
  180. }
  181. public String getStatusCode() {
  182. return statusCode;
  183. }
  184. public void setStatusCode(String statusCode) {
  185. this.statusCode = statusCode;
  186. }
  187. public String getCurrencyCode() {
  188. return currencyCode;
  189. }
  190. public void setCurrencyCode(String currencyCode) {
  191. this.currencyCode = currencyCode;
  192. }
  193. public BigDecimal getReceivedAmount() {
  194. return receivedAmount;
  195. }
  196. public void setReceivedAmount(BigDecimal receivedAmount) {
  197. this.receivedAmount = receivedAmount;
  198. }
  199. public Date getSettlementDate() {
  200. return settlementDate;
  201. }
  202. public void setSettlementDate(Date settlementDate) {
  203. this.settlementDate = settlementDate;
  204. }
  205. public Pricing getPricing() {
  206. return pricing;
  207. }
  208. public void setPricing(Pricing pricing) {
  209. this.pricing = pricing;
  210. }
  211. public Date getCreated() {
  212. return created;
  213. }
  214. public void setCreated(Date created) {
  215. this.created = created;
  216. }
  217. public Date getUpdated() {
  218. return updated;
  219. }
  220. public void setUpdated(Date updated) {
  221. this.updated = updated;
  222. }
  223. }