Customer.java 661 Bytes
Newer Older
jorgecacs committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package com.rshk.demo.beans;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Customer {

	@JsonProperty(value = "customer_id", required = true)
	private int id;
jorgecacs committed
16

jorgecacs committed
17 18
	@JsonProperty(value = "customer_name", required = true)
	private String name;
jorgecacs committed
19

jorgecacs committed
20 21 22 23 24
	@JsonProperty(value = "customer_address", required = true)
	private String address;

	@JsonProperty(value = "customer_number", required = true)
	private String phoneNumber;
jorgecacs committed
25 26 27 28

	@JsonProperty(value = "customer_document", required = true)
	private String document;

jorgecacs committed
29
}