Class BulletPayment

    • Method Detail

      • getCurrency

        public Currency getCurrency()
        Gets the currency of this payment.
        Returns:
        the payment currency
      • allCurrencies

        public com.google.common.collect.ImmutableSet<Currency> allCurrencies()
        Description copied from interface: Product
        Returns the set of currencies the product refers to.

        This returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.

        Specified by:
        allCurrencies in interface Product
        Returns:
        the set of currencies the product refers to
      • resolve

        public ResolvedBulletPayment resolve​(ReferenceData refData)
        Description copied from interface: Resolvable
        Resolves this object using the specified reference data.

        This converts the object implementing this interface to the equivalent resolved form. All ReferenceDataId identifiers in this instance will be resolved. The resolved form will typically be a type that is optimized for pricing.

        Resolved objects may be bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

        Specified by:
        resolve in interface Resolvable<ResolvedBulletPayment>
        Parameters:
        refData - the reference data to use when resolving
        Returns:
        the resolved instance
      • meta

        public static BulletPayment.Meta meta()
        The meta-bean for BulletPayment.
        Returns:
        the meta-bean, not null
      • builder

        public static BulletPayment.Builder builder()
        Returns a builder used to create an instance of the bean.
        Returns:
        the builder, not null
      • getPayReceive

        public PayReceive getPayReceive()
        Gets whether the payment is to be paid or received.

        A value of 'Pay' implies that the amount is paid to the counterparty. A value of 'Receive' implies that the amount is received from the counterparty.

        Returns:
        the value of the property, not null
      • getValue

        public CurrencyAmount getValue()
        Gets the amount of the payment.

        The amount is unsigned, with the direction implied by payReceive.

        Returns:
        the value of the property, not null
      • getDate

        public AdjustableDate getDate()
        Gets the date that the payment is made.

        This date should normally be a valid business day.

        Returns:
        the value of the property, not null
      • toBuilder

        public BulletPayment.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        Returns:
        the mutable builder, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object