Skip to content

Commit 2ef5ed8

Browse files
committed
add new fields
1 parent 8b4bfd8 commit 2ef5ed8

File tree

5 files changed

+543
-0
lines changed

5 files changed

+543
-0
lines changed

payments-api/src/main/java/com/intuit/payment/data/Card.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public class Card extends Entity {
5454
private String entityType = null;
5555
private String entityVersion = null;
5656

57+
private CardPresent cardPresent = null;
58+
5759

5860
public Card() {
5961
}
@@ -77,6 +79,7 @@ private Card(Builder builder) {
7779
this.entityId = builder.entityId;
7880
this.entityType = builder.entityType;
7981
this.entityVersion = builder.entityVersion;
82+
this.cardPresent = builder.cardPresent;
8083
}
8184

8285
/**
@@ -359,6 +362,14 @@ public void setEntityVersion(String entityVersion) {
359362
this.entityVersion = entityVersion;
360363
}
361364

365+
public CardPresent getCardPresent() {
366+
return cardPresent;
367+
}
368+
369+
public void setCardPresent(CardPresent cardPresent) {
370+
this.cardPresent = cardPresent;
371+
}
372+
362373
@Override
363374
public String toString() {
364375
return ReflectionToStringBuilder.toString(this);
@@ -390,6 +401,7 @@ public static class Builder {
390401
private String entityId = null;
391402
private String entityType = null;
392403
private String entityVersion = null;
404+
private CardPresent cardPresent = null;
393405

394406
public Builder() {
395407
}
@@ -483,6 +495,11 @@ public Builder entityVersion(String entityVersion) {
483495
this.entityVersion = entityVersion;
484496
return this;
485497
}
498+
499+
public Builder cardPresent(CardPresent cardPresent) {
500+
this.cardPresent = cardPresent;
501+
return this;
502+
}
486503

487504
public Card build() {
488505
return new Card(this);
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2019 Intuit
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*******************************************************************************/
16+
package com.intuit.payment.data;
17+
18+
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
19+
20+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21+
22+
/**
23+
* @author dderose
24+
*
25+
*/
26+
@JsonIgnoreProperties(ignoreUnknown = true)
27+
public class CardPresent extends Entity {
28+
29+
private static final long serialVersionUID = 1L;
30+
31+
private String track1 = null;
32+
private String track2 = null;
33+
private String ksn = null;
34+
private String pinBlock = null;
35+
36+
public CardPresent() {
37+
38+
}
39+
40+
private CardPresent(Builder builder) {
41+
this.track1 = builder.track1;
42+
this.track2 = builder.track2;
43+
this.ksn = builder.ksn;
44+
this.pinBlock = builder.pinBlock;
45+
}
46+
47+
public String getTrack1() {
48+
return track1;
49+
}
50+
51+
public void setTrack1(String track1) {
52+
this.track1 = track1;
53+
}
54+
55+
public String getTrack2() {
56+
return track2;
57+
}
58+
59+
public void setTrack2(String track2) {
60+
this.track2 = track2;
61+
}
62+
63+
public String getKsn() {
64+
return ksn;
65+
}
66+
67+
public void setKsn(String ksn) {
68+
this.ksn = ksn;
69+
}
70+
71+
public String getPinBlock() {
72+
return pinBlock;
73+
}
74+
75+
public void setPinBlock(String pinBlock) {
76+
this.pinBlock = pinBlock;
77+
}
78+
79+
@Override
80+
public String toString() {
81+
return ReflectionToStringBuilder.toString(this);
82+
}
83+
84+
/**
85+
* Builder class for Card
86+
*
87+
* @author dderose
88+
*
89+
*/
90+
public static class Builder {
91+
92+
private String track1 = null;
93+
private String track2 = null;
94+
private String ksn = null;
95+
private String pinBlock = null;
96+
97+
public Builder() {
98+
}
99+
100+
public Builder track1(String track1) {
101+
this.track1 = track1;
102+
return this;
103+
}
104+
105+
public Builder track2(String track2) {
106+
this.track2 = track2;
107+
return this;
108+
}
109+
110+
public Builder ksn(String ksn) {
111+
this.ksn = ksn;
112+
return this;
113+
}
114+
115+
public Builder pinBlock(String pinBlock) {
116+
this.pinBlock = pinBlock;
117+
return this;
118+
}
119+
120+
public CardPresent build() {
121+
return new CardPresent(this);
122+
}
123+
124+
125+
}
126+
127+
}
128+
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2019 Intuit
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*******************************************************************************/
16+
package com.intuit.payment.data;
17+
18+
import java.math.BigDecimal;
19+
import java.util.Date;
20+
21+
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
22+
23+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24+
25+
/**
26+
* @author dderose
27+
*
28+
*/
29+
@JsonIgnoreProperties(ignoreUnknown = true)
30+
public class Lodging extends Entity {
31+
32+
private static final long serialVersionUID = 1L;
33+
34+
private String folioID = null;
35+
private String chargeType = null;
36+
private Date checkInDate = null;
37+
private Date checkOutDate = null;
38+
private String lengthOfStay = null;
39+
private BigDecimal roomRate = null;
40+
private String[] extraCharges = null;
41+
private String specialProgram = null;
42+
private BigDecimal totalAuthAmount = null;
43+
44+
45+
public Lodging() {
46+
}
47+
48+
private Lodging(Builder builder) {
49+
this.folioID = builder.folioID;
50+
this.chargeType = builder.chargeType;
51+
this.checkInDate = builder.checkInDate;
52+
this.checkOutDate = builder.checkOutDate;
53+
this.lengthOfStay = builder.lengthOfStay;
54+
this.roomRate = builder.roomRate;
55+
this.extraCharges = builder.extraCharges;
56+
this.specialProgram = builder.specialProgram;
57+
this.totalAuthAmount = builder.totalAuthAmount;
58+
}
59+
60+
public String getFolioID() {
61+
return folioID;
62+
}
63+
64+
public void setFolioID(String folioID) {
65+
this.folioID = folioID;
66+
}
67+
68+
public String getChargeType() {
69+
return chargeType;
70+
}
71+
72+
public void setChargeType(String chargeType) {
73+
this.chargeType = chargeType;
74+
}
75+
76+
public Date getCheckInDate() {
77+
return checkInDate;
78+
}
79+
80+
public void setCheckInDate(Date checkInDate) {
81+
this.checkInDate = checkInDate;
82+
}
83+
84+
public Date getCheckOutDate() {
85+
return checkOutDate;
86+
}
87+
88+
public void setCheckOutDate(Date checkOutDate) {
89+
this.checkOutDate = checkOutDate;
90+
}
91+
92+
public String getLengthOfStay() {
93+
return lengthOfStay;
94+
}
95+
96+
public void setLengthOfStay(String lengthOfStay) {
97+
this.lengthOfStay = lengthOfStay;
98+
}
99+
100+
public BigDecimal getRoomRate() {
101+
return roomRate;
102+
}
103+
104+
public void setRoomRate(BigDecimal roomRate) {
105+
this.roomRate = roomRate;
106+
}
107+
108+
public String[] getExtraCharges() {
109+
return extraCharges;
110+
}
111+
112+
public void setExtraCharges(String[] extraCharges) {
113+
this.extraCharges = extraCharges;
114+
}
115+
116+
public String getSpecialProgram() {
117+
return specialProgram;
118+
}
119+
120+
public void setSpecialProgram(String specialProgram) {
121+
this.specialProgram = specialProgram;
122+
}
123+
124+
public BigDecimal getTotalAuthAmount() {
125+
return totalAuthAmount;
126+
}
127+
128+
public void setTotalAuthAmount(BigDecimal totalAuthAmount) {
129+
this.totalAuthAmount = totalAuthAmount;
130+
}
131+
132+
@Override
133+
public String toString() {
134+
return ReflectionToStringBuilder.toString(this);
135+
}
136+
137+
/**
138+
* Builder class for PaymentContext
139+
*
140+
* @author dderose
141+
*
142+
*/
143+
public static class Builder {
144+
145+
private String folioID = null;
146+
private String chargeType = null;
147+
private Date checkInDate = null;
148+
private Date checkOutDate = null;
149+
private String lengthOfStay = null;
150+
private BigDecimal roomRate = null;
151+
private String[] extraCharges = null;
152+
private String specialProgram = null;
153+
private BigDecimal totalAuthAmount = null;
154+
155+
public Builder() {
156+
}
157+
158+
public Builder folioID(String folioID) {
159+
this.folioID = folioID;
160+
return this;
161+
}
162+
163+
public Builder chargeType(String chargeType) {
164+
this.chargeType = chargeType;
165+
return this;
166+
}
167+
168+
public Builder checkInDate(Date checkInDate) {
169+
this.checkInDate = checkInDate;
170+
return this;
171+
}
172+
173+
public Builder checkOutDate(Date checkOutDate) {
174+
this.checkOutDate = checkOutDate;
175+
return this;
176+
}
177+
178+
public Builder lengthOfStay(String lengthOfStay) {
179+
this.lengthOfStay = lengthOfStay;
180+
return this;
181+
}
182+
183+
public Builder roomRate(BigDecimal roomRate) {
184+
this.roomRate = roomRate;
185+
return this;
186+
}
187+
188+
public Builder extraCharges(String[] extraCharges) {
189+
this.extraCharges = extraCharges;
190+
return this;
191+
}
192+
193+
public Builder specialProgram(String specialProgram) {
194+
this.specialProgram = specialProgram;
195+
return this;
196+
}
197+
198+
public Builder totalAuthAmount(BigDecimal totalAuthAmount) {
199+
this.totalAuthAmount = totalAuthAmount;
200+
return this;
201+
}
202+
203+
public Lodging build() {
204+
return new Lodging(this);
205+
}
206+
207+
}
208+
209+
}
210+

0 commit comments

Comments
 (0)