Package com.caplin.motif.mm.rates
Class RateSubjectInfo
- java.lang.Object
-
- com.caplin.motif.mm.rates.RateSubjectInfo
-
- All Implemented Interfaces:
SubjectInfo
public class RateSubjectInfo extends Object implements SubjectInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAmount()
String
getCurrency()
Returns the currency for the subscription.String
getMarginBand()
Returns the margin band for the subscription.String
getMaturityDate()
String
getStartDate()
String
getSubject()
Returns the original subject that was parsed to create this SubjectInfoint
hashCode()
String
toString()
-
-
-
Constructor Detail
-
RateSubjectInfo
public RateSubjectInfo(String subject, String currency, String marginBand, String startDate, String maturityDate, String amount)
Constructs an RateSubjectInfo based on the provided subscription parameters.- Parameters:
subject
- The full requested subjectcurrency
- The requested currency pair.marginBand
- The margin band for the subscription. Sometimes referred to as the price tier.amount
- The principal amount of the requested ratestartDate
- The start date of the requestmaturityDate
- The maturity date of the request
-
-
Method Detail
-
getCurrency
public String getCurrency()
Returns the currency for the subscription.- Returns:
- The currency in the deposit request.
-
getMarginBand
public String getMarginBand()
Returns the margin band for the subscription. Sometimes referred to as the price tier. This is usually mapped on to the request by Liberator using the permissioning system rather than specified by the client, because clients are usually not in control of (or aware of) which price tier they have been assigned to.- Returns:
- The margin band.
-
getSubject
public String getSubject()
Description copied from interface:SubjectInfo
Returns the original subject that was parsed to create this SubjectInfo- Specified by:
getSubject
in interfaceSubjectInfo
- Returns:
- The original subject.
-
getStartDate
public String getStartDate()
- Returns:
- The start date of the request, meaning the initial loan or deposit day. In the format YYYY-MM-DD.
-
getMaturityDate
public String getMaturityDate()
- Returns:
- The maturity date of the request, meaning the date the loan or deposit pays out. In the format YYYY-MM-DD.
-
getAmount
public String getAmount()
-
-