Skip to content

Commit fb2902c

Browse files
committed
[CC-2673] Add wero method.
1 parent d05d0a5 commit fb2902c

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

0 commit comments

Comments
 (0)