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.CustomTypeAdapterFactorystatic classSourceOfFunds.TypeEnumThe type of the source of funds.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACQUIRING_BUSINESS_LINE_IDstatic StringSERIALIZED_NAME_ADYEN_PROCESSED_FUNDSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description SourceOfFunds()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceOfFundsacquiringBusinessLineId(String acquiringBusinessLineId)SourceOfFundsadyenProcessedFunds(Boolean adyenProcessedFunds)SourceOfFundsdescription(String description)booleanequals(Object o)static SourceOfFundsfromJson(String jsonString)Create an instance of SourceOfFunds given an JSON stringStringgetAcquiringBusinessLineId()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.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)voidsetAdyenProcessedFunds(Boolean adyenProcessedFunds)voidsetDescription(String description)voidsetType(SourceOfFunds.TypeEnum type)StringtoJson()Convert an instance of SourceOfFunds to an JSON stringStringtoString()SourceOfFundstype(SourceOfFunds.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACQUIRING_BUSINESS_LINE_ID
public static final String SERIALIZED_NAME_ACQUIRING_BUSINESS_LINE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADYEN_PROCESSED_FUNDS
public static final String SERIALIZED_NAME_ADYEN_PROCESSED_FUNDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquiringBusinessLineId
public SourceOfFunds acquiringBusinessLineId(String acquiringBusinessLineId)
-
getAcquiringBusinessLineId
public String getAcquiringBusinessLineId()
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
public void setAcquiringBusinessLineId(String 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)
-
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 the business. Required when `adyenProcessedFunds` is **false**.- Returns:
- description
-
setDescription
public void setDescription(String 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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SourceOfFunds
-
fromJson
public static SourceOfFunds fromJson(String jsonString) throws IOException
Create an instance of SourceOfFunds given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SourceOfFunds
- Throws:
IOException- if the JSON string is invalid with respect to SourceOfFunds
-
toJson
public String toJson()
Convert an instance of SourceOfFunds to an JSON string- Returns:
- JSON string
-
-