7
7
import com .stripe .net .ApiResource ;
8
8
import com .stripe .net .RequestOptions ;
9
9
import com .stripe .param .SetupAttemptListParams ;
10
+ import java .util .List ;
10
11
import java .util .Map ;
11
12
import lombok .EqualsAndHashCode ;
12
13
import lombok .Getter ;
@@ -26,6 +27,16 @@ public class SetupAttempt extends ApiResource implements HasId {
26
27
@ Setter (lombok .AccessLevel .NONE )
27
28
ExpandableField <Application > application ;
28
29
30
+ /**
31
+ * If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
32
+ *
33
+ * <p>It can only be used for this Stripe Account’s own money movement flows like InboundTransfer
34
+ * and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer,
35
+ * and defaults to false when attaching a PaymentMethod to a Customer.
36
+ */
37
+ @ SerializedName ("attach_to_self" )
38
+ Boolean attachToSelf ;
39
+
29
40
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
30
41
@ SerializedName ("created" )
31
42
Long created ;
@@ -40,6 +51,17 @@ public class SetupAttempt extends ApiResource implements HasId {
40
51
@ Setter (lombok .AccessLevel .NONE )
41
52
ExpandableField <Customer > customer ;
42
53
54
+ /**
55
+ * Indicates the directions of money movement for which this payment method is intended to be
56
+ * used.
57
+ *
58
+ * <p>Include {@code inbound} if you intend to use the payment method as the origin to pull funds
59
+ * from. Include {@code outbound} if you intend to use the payment method as the destination to
60
+ * send funds to. You can include both if you intend to use the payment method for both purposes.
61
+ */
62
+ @ SerializedName ("flow_directions" )
63
+ List <String > flowDirections ;
64
+
43
65
/** Unique identifier for the object. */
44
66
@ Getter (onMethod_ = {@ Override })
45
67
@ SerializedName ("id" )
0 commit comments