public class ByjunoPaymentInfo
extends java.lang.Object
Address address = new Address("Mark", "Uber", "Amstelstrasse 11", "4123"); address.setCity("Allschwil"); address.setCountryCode("CH"); Customer customer = new Customer(); customer.setId("10067822"); customer.setType("P"); customer.setGender("female"); customer.setAddress(address); customer.setBirthDate(new Date(1986, 5, 14)); customer.setLanguage("DE"); customer.setMailAddress("h.mustermann@intrum.com"); ppa.getPaymentOptions().setCustomer(customer); ByjunoPaymentInfo info = new ByjunoPaymentInfo(); info.setDeviceFingerprintId("deviceFingerprintId-test"); ppa.getPaymentOptions().setByjunoPaymentInfo(info); // optional
Modifier and Type | Field and Description |
---|---|
static int |
BYJUNO_CUSTOM_DATA_LENGTH |
Constructor and Description |
---|
ByjunoPaymentInfo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgsToArguments(java.util.Map<java.lang.String,java.lang.String> arguments) |
void |
setCustomData(java.lang.String[] customData)
Sets an optional list of custom data fields.
|
void |
setCustomerEmailConfirmed(boolean customerEmailConfirmed)
Sets the optional indication that the customer has confirmed the email address to the merchant.
|
void |
setCustomerInfo1(java.lang.String customerInfo1)
Sets the first optional customer information for credit check.
|
void |
setCustomerInfo2(java.lang.String customerInfo2)
Sets the second optional customer information for credit check.
|
void |
setDeliveryMethod(java.lang.String deliveryMethod)
Sets the optional delivery method.
|
void |
setDeviceFingerprintId(java.lang.String deviceFingerprintId)
Sets the optional identification of the customer in the shop.
|
void |
setFirstRateAmount(int firstRateAmount)
Sets the optional amount of the first rate paid by the customer.
|
void |
setPaperInvoice(boolean paperInvoice)
Sets the optional indication whether or not to send a paper invoice.
|
void |
setRepaymentType(int repaymentType)
Sets an optional number from 1 to 20 to indicate the repayment schedule.
|
void |
setRiskOwner(java.lang.String riskOwner)
Sets the optional risk owner.
|
void |
setSiteId(java.lang.String siteId)
Sets the optional site Id.
|
void |
setSubtype(java.lang.String subtype)
Sets the Byjuno specific payment method used for the transaction.
|
void |
setVerifiedDocument1Issuer(java.lang.String verifiedDocument1Issuer)
Sets the optional verified document issuer.
|
void |
setVerifiedDocument1Number(java.lang.String verifiedDocument1Number)
Sets the optional verified document number.
|
void |
setVerifiedDocument1Type(java.lang.String verifiedDocument1Type)
Sets the optional indication if merchant is having verified documents from client request.
|
public static final int BYJUNO_CUSTOM_DATA_LENGTH
public void setSubtype(java.lang.String subtype)
subtype
- The sub payment method. One of: INVOICE, INSTALLMENT, BYJUNO_INVOICE, MONTHLY_INVOICEpublic void setCustomerEmailConfirmed(boolean customerEmailConfirmed)
customerEmailConfirmed
- True, to indicate that the customer has confirmed the email address. False otherwise.public void setCustomerInfo1(java.lang.String customerInfo1)
customerInfo1
- The first customer info.public void setCustomerInfo2(java.lang.String customerInfo2)
customerInfo2
- The second customer info.public void setDeliveryMethod(java.lang.String deliveryMethod)
deliveryMethod
- The delivery method. One of: POST (Delivery by Swiss Post), SHOP (Point of Sale) or HLD (Home Delivery Service)public void setDeviceFingerprintId(java.lang.String deviceFingerprintId)
deviceFingerprintId
- The device fingerprint ID.public void setPaperInvoice(boolean paperInvoice)
paperInvoice
- True, to indicate that a paper invoice will be sent. False otherwise.public void setRepaymentType(int repaymentType)
repaymentType
- The repayment type. Number from 1 to 20.public void setRiskOwner(java.lang.String riskOwner)
riskOwner
- The risk owner. One of: IJ, CLIENTpublic void setSiteId(java.lang.String siteId)
siteId
- The site Id.public void setVerifiedDocument1Type(java.lang.String verifiedDocument1Type)
verifiedDocument1Type
- The verified document type. One of: swiss-travel-pass, otherpublic void setVerifiedDocument1Number(java.lang.String verifiedDocument1Number)
verifiedDocument1Number
- The verified document number.public void setVerifiedDocument1Issuer(java.lang.String verifiedDocument1Issuer)
verifiedDocument1Issuer
- The verified document issuer.public void setCustomData(java.lang.String[] customData)
customData
- The custom data. Can hold up to 10 entries.public void setFirstRateAmount(int firstRateAmount)
firstRateAmount
- The amount of the first rate.protected void addArgsToArguments(java.util.Map<java.lang.String,java.lang.String> arguments)