File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
src/main/java/com/checkout/payments Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .checkout .common .Address ;
4
4
import com .checkout .common .Phone ;
5
+ import com .checkout .sessions .DeliveryTimeframe ;
5
6
import com .google .gson .annotations .SerializedName ;
6
7
import lombok .AllArgsConstructor ;
7
8
import lombok .Builder ;
14
15
@ AllArgsConstructor
15
16
public final class ShippingDetails {
16
17
18
+ @ SerializedName ("first_name" )
19
+ private String firstName ;
20
+
21
+ @ SerializedName ("last_name" )
22
+ private String lastName ;
23
+
24
+ @ SerializedName ("email" )
25
+ private String email ;
26
+
17
27
private Address address ;
18
28
19
29
private Phone phone ;
20
30
21
31
@ SerializedName ("from_address_zip" )
22
32
private String fromAddressZip ;
33
+
34
+ @ SerializedName ("timeframe" )
35
+ private ShippingDetailsTimeframe timeFrame ;
36
+
37
+ @ SerializedName ("method" )
38
+ private ShippingDetailsMethods method ;
23
39
24
40
}
Original file line number Diff line number Diff line change
1
+ package com .checkout .payments ;
2
+
3
+ import com .google .gson .annotations .SerializedName ;
4
+
5
+ public enum ShippingDetailsMethods {
6
+
7
+ @ SerializedName ("Digital" )
8
+ DIGITAL ,
9
+
10
+ @ SerializedName ("PickUp" )
11
+ PICK_UP ,
12
+
13
+ @ SerializedName ("BillingAddress" )
14
+ BILLING_ADDRESS ,
15
+
16
+ @ SerializedName ("OtherAddress" )
17
+ OTHER_ADDRESS ,
18
+ }
Original file line number Diff line number Diff line change
1
+ package com .checkout .payments ;
2
+
3
+ import com .google .gson .annotations .SerializedName ;
4
+
5
+ public enum ShippingDetailsTimeframe {
6
+
7
+ @ SerializedName ("ElectronicDelivery" )
8
+ ELECTRONIC_DELIVERY ,
9
+
10
+ @ SerializedName ("SameDay" )
11
+ SAME_DAY ,
12
+
13
+ @ SerializedName ("Overnight" )
14
+ OVERNIGHT ,
15
+
16
+ @ SerializedName ("TwoDayOrMore" )
17
+ TWO_DAY_OR_MORE
18
+ }
You can’t perform that action at this time.
0 commit comments