Advertisement
Guest User

vendorDetails

a guest
Jan 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. public class VendorDetails extends BaseEntity {
  2. @NotNull
  3. @Valid
  4. private Details details;
  5.  
  6. @Valid
  7. private Contact salesContact;
  8.  
  9. @Valid
  10. private Contact officeContactInfo;
  11.  
  12. @Valid
  13. private InsuranceComplianceInfo insuranceComplianceInfo;
  14.  
  15. @Valid
  16. private Attachments attachments;
  17. }
  18.  
  19. public static class Details {
  20. private String vendorClass;
  21. private String vendorId;
  22. @NotBlank
  23. private String company;
  24. @Valid
  25. private Address address;
  26. private double capacity;
  27. private List<Services> services;
  28. private List<PhoneNumber> phoneNumbers;
  29. private String email;
  30. }
  31. private static class Services {
  32. private String csiCode;
  33. private String name;
  34. }
  35.  
  36. public static class Contact { ///kontakti per qato salescontact,officeContactInfo
  37. @NotBlank
  38. private String firstName;
  39. @NotBlank
  40. private String lastName;
  41. private List<PhoneNumber> phoneNumbers;
  42. @Email(regexp = _Validator.Patterns.EMAIL)
  43. private String email;
  44. }
  45. public static class InsuranceComplianceInfo {
  46. @NotNull
  47. @Valid
  48. private Policy policy;
  49. @Valid
  50. private Address address;
  51. private List<PhoneNumber> phoneNumbers;
  52. private String email;
  53. }
  54.  
  55. public static class Policy {
  56. @NotBlank
  57. private String firstName;
  58. @NotBlank
  59. private String lastName;
  60. @NotBlank
  61. private String number;
  62. @NotBlank
  63. private String typeLiability;
  64. @NotBlank
  65. private String typeOccurrence;
  66. @NonNull
  67. private Date expDate;
  68. }
  69.  
  70. public class Address implements Identity {
  71. @FieldProp(name = "Street")
  72. private String street;
  73. @FieldProp(name = "City")
  74. private String city;
  75. @FieldProp(name = "State")
  76. private String state;
  77. private String stateAbbr;
  78. @FieldProp(name = "Zip")
  79. private String zip;
  80. }
  81.  
  82. public static class Attachments {
  83. @Valid
  84. private Attachment insuranceProof;
  85. @Valid
  86. private Attachment w9Form;
  87. }
  88. public class Attachment extends BaseEntity implements Identity {
  89. public transient static final String FIELD_NAME = "name";
  90. public transient static final String FIELD_DESCRIPTION = "description";
  91. @NotBlank
  92. @FieldProp(name = "Name")
  93. private String name;
  94. @FieldProp(name = "Description")
  95. private String description;
  96. @NotBlank
  97. @URL
  98. @FieldProp(name = "URL")
  99. private String url;
  100. @FieldProp(name = "Attachment Type")
  101. private String contentType;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement