File tree Expand file tree Collapse file tree
src/main/java/com/unzer/payment/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .unzer .payment .models ;
2+
3+ import com .google .gson .annotations .SerializedName ;
4+ import lombok .Data ;
5+
6+ /**
7+ * Event dependent payment configuration for Wero payments.
8+ */
9+ @ Data
10+ public class EventDependentPayment {
11+ private CaptureTrigger captureTrigger ;
12+ private AmountPaymentType amountPaymentType ;
13+ /**
14+ * Maximum time from authorization to capture in seconds.
15+ */
16+ private Integer maxAuthToCaptureTime ;
17+ /**
18+ * Whether multiple captures are allowed.
19+ */
20+ private Boolean multiCapturesAllowed ;
21+
22+ public enum CaptureTrigger {
23+ @ SerializedName ("shipping" )
24+ SHIPPING ,
25+ @ SerializedName ("delivery" )
26+ DELIVERY ,
27+ @ SerializedName ("availability" )
28+ AVAILABILITY ,
29+ @ SerializedName ("servicefulfilment" )
30+ SERVICEFULFILMENT ,
31+ @ SerializedName ("other" )
32+ OTHER
33+ }
34+
35+ public enum AmountPaymentType {
36+ @ SerializedName ("pay" )
37+ PAY ,
38+ @ SerializedName ("payupto" )
39+ PAYUPTO
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments