public class PaymentInstruction extends PayPalModel
Constructor and Description |
---|
PaymentInstruction()
Default Constructor
|
PaymentInstruction(String referenceNumber,
String instructionType,
RecipientBankingInstruction recipientBankingInstruction,
Currency amount)
Parameterized Constructor
|
Modifier and Type | Method and Description |
---|---|
Currency |
getAmount()
Getter for amount
|
String |
getInstructionType()
Getter for instructionType
|
static String |
getLastRequest()
Returns the last request sent to the Service
|
static String |
getLastResponse()
Returns the last response returned by the Service
|
List<Links> |
getLinks()
Getter for links
|
String |
getNote()
Getter for note
|
String |
getPaymentDueDate()
Getter for paymentDueDate
|
RecipientBankingInstruction |
getRecipientBankingInstruction()
Getter for recipientBankingInstruction
|
String |
getReferenceNumber()
Getter for referenceNumber
|
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file)
|
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file)
|
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties
|
PaymentInstruction |
setAmount(Currency amount)
Setter for amount
|
PaymentInstruction |
setInstructionType(String instructionType)
Setter for instructionType
|
PaymentInstruction |
setLinks(List<Links> links)
Setter for links
|
PaymentInstruction |
setNote(String note)
Setter for note
|
PaymentInstruction |
setPaymentDueDate(String paymentDueDate)
Setter for paymentDueDate
|
PaymentInstruction |
setRecipientBankingInstruction(RecipientBankingInstruction recipientBankingInstruction)
Setter for recipientBankingInstruction
|
PaymentInstruction |
setReferenceNumber(String referenceNumber)
Setter for referenceNumber
|
equals, hashCode, toJSON, toString
public PaymentInstruction()
public PaymentInstruction(String referenceNumber, String instructionType, RecipientBankingInstruction recipientBankingInstruction, Currency amount)
public static String getLastRequest()
public static String getLastResponse()
public static OAuthTokenCredential initConfig(InputStream is) throws PayPalRESTException
is
- InputStreamPayPalRESTException
public static OAuthTokenCredential initConfig(File file) throws PayPalRESTException
file
- File object of a properties entityPayPalRESTException
public static OAuthTokenCredential initConfig(Properties properties)
properties
- Properties objectpublic PaymentInstruction setReferenceNumber(String referenceNumber)
public String getReferenceNumber()
public PaymentInstruction setInstructionType(String instructionType)
public String getInstructionType()
public PaymentInstruction setRecipientBankingInstruction(RecipientBankingInstruction recipientBankingInstruction)
public RecipientBankingInstruction getRecipientBankingInstruction()
public PaymentInstruction setAmount(Currency amount)
public Currency getAmount()
public PaymentInstruction setPaymentDueDate(String paymentDueDate)
public String getPaymentDueDate()
public PaymentInstruction setNote(String note)
public String getNote()
public PaymentInstruction setLinks(List<Links> links)
Copyright © 2015. All Rights Reserved.