Class SourceOfFunds
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.SourceOfFunds
-
public class SourceOfFunds extends Object
SourceOfFunds
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceOfFunds.TypeEnumThe type of the source of funds.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRING_BUSINESS_LINE_IDstatic StringJSON_PROPERTY_ADYEN_PROCESSED_FUNDSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description SourceOfFunds()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SourceOfFundsacquiringBusinessLineId(String acquiringBusinessLineId)Deprecated.SourceOfFundsadyenProcessedFunds(Boolean adyenProcessedFunds)SourceOfFundsdescription(String description)booleanequals(Object o)Return true if this SourceOfFunds object is equal to o.static SourceOfFundsfromJson(String jsonString)Create an instance of SourceOfFunds given an JSON stringStringgetAcquiringBusinessLineId()Deprecated.BooleangetAdyenProcessedFunds()Indicates whether the funds are coming from transactions processed by Adyen.StringgetDescription()Text describing the source of funds.SourceOfFunds.TypeEnumgetType()The type of the source of funds.inthashCode()voidsetAcquiringBusinessLineId(String acquiringBusinessLineId)Deprecated.voidsetAdyenProcessedFunds(Boolean adyenProcessedFunds)Indicates whether the funds are coming from transactions processed by Adyen.voidsetDescription(String description)Text describing the source of funds.voidsetType(SourceOfFunds.TypeEnum type)The type of the source of funds.StringtoJson()Convert an instance of SourceOfFunds to an JSON stringStringtoString()SourceOfFundstype(SourceOfFunds.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID
public static final String JSON_PROPERTY_ACQUIRING_BUSINESS_LINE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADYEN_PROCESSED_FUNDS
public static final String JSON_PROPERTY_ADYEN_PROCESSED_FUNDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquiringBusinessLineId
@Deprecated public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId)
Deprecated.
-
getAcquiringBusinessLineId
@Deprecated public String getAcquiringBusinessLineId()
Deprecated.The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability.- Returns:
- acquiringBusinessLineId
-
setAcquiringBusinessLineId
@Deprecated public void setAcquiringBusinessLineId(String acquiringBusinessLineId)
Deprecated.The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability.- Parameters:
acquiringBusinessLineId-
-
adyenProcessedFunds
public SourceOfFunds adyenProcessedFunds(Boolean adyenProcessedFunds)
-
getAdyenProcessedFunds
public Boolean getAdyenProcessedFunds()
Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required.- Returns:
- adyenProcessedFunds
-
setAdyenProcessedFunds
public void setAdyenProcessedFunds(Boolean adyenProcessedFunds)
Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required.- Parameters:
adyenProcessedFunds-
-
description
public SourceOfFunds description(String description)
-
getDescription
public String getDescription()
Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**.- Returns:
- description
-
setDescription
public void setDescription(String description)
Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**.- Parameters:
description-
-
type
public SourceOfFunds type(SourceOfFunds.TypeEnum type)
-
getType
public SourceOfFunds.TypeEnum getType()
The type of the source of funds. Possible value: **business**.- Returns:
- type
-
setType
public void setType(SourceOfFunds.TypeEnum type)
The type of the source of funds. Possible value: **business**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this SourceOfFunds object is equal to o.
-
fromJson
public static SourceOfFunds fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SourceOfFunds given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SourceOfFunds
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SourceOfFunds
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SourceOfFunds to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-