public class AccountParams
extends java.lang.Object
| Constructor and Description |
|---|
AccountParams() |
| Modifier and Type | Method and Description |
|---|---|
static AccountParams |
createAccountParams(boolean tosShownAndAccepted,
java.util.Map<java.lang.String,java.lang.Object> legalEntity) |
AccountParams |
setLegalEntity(java.util.Map<java.lang.String,java.lang.Object> legalEntity) |
AccountParams |
setTosShownAndAccepted(boolean tosShownAndAccepted) |
java.util.Map<java.lang.String,java.lang.Object> |
toParamMap()
Create a string-keyed map representing this object that is
ready to be sent over the network.
|
public static AccountParams createAccountParams(boolean tosShownAndAccepted, java.util.Map<java.lang.String,java.lang.Object> legalEntity)
tosShownAndAccepted - indicates that the platform showed the user the appropriate text
and links to Stripe's terms of service. Tokens will only generated
when this is true.legalEntity - map that specifies the legal entity for which the connect account is being
created. Can contain any of the fields specified by legal_entity in the
API docs.
See
The object in the map is expected to be a string or a list or map of
strings. All StripeJsonModel types have a toMap() function that
can be used to convert the StripeJsonModel to map representation
that can be passed in here.public AccountParams setTosShownAndAccepted(boolean tosShownAndAccepted)
tosShownAndAccepted - whether the platform showed the user the appropriate text
and links to Stripe's terms of service. Tokens will only generated
when this is true.this, for chaining purposespublic AccountParams setLegalEntity(java.util.Map<java.lang.String,java.lang.Object> legalEntity)
legalEntity - map that specifies the legal entity for which the connect account is being
created. Can contain any of the fields specified by legal_entity in the
API docs.
See
The object in the map is expected to be a string or a list or map of
strings. All StripeJsonModel types have a toMap() function that
can be used to convert the StripeJsonModel to map representation
that can be passed in here.this, for chaining purposespublic java.util.Map<java.lang.String,java.lang.Object> toParamMap()