Class PaymentLink


  • public class PaymentLink
    extends java.lang.Object
    • Constructor Detail

      • PaymentLink

        public PaymentLink​(java.lang.String code,
                           Mode mode,
                           PaymentLinkStatus status,
                           java.lang.String partnerAccountID,
                           java.lang.String merchantAccountID,
                           java.lang.String merchantPaymentMethodID,
                           java.lang.String link,
                           Amount amount,
                           long uses,
                           java.util.Optional<java.lang.Long> maxUses,
                           java.util.Optional<java.time.OffsetDateTime> lastUsedOn,
                           java.util.Optional<java.time.OffsetDateTime> expiresOn,
                           PaymentLinkDisplayOptions display,
                           PaymentLinkCustomerOptions customer,
                           java.util.Optional<? extends PaymentLinkPaymentDetails> payment,
                           java.util.Optional<? extends PaymentLinkPayoutDetails> payout,
                           java.time.OffsetDateTime createdOn,
                           java.time.OffsetDateTime updatedOn,
                           java.util.Optional<java.time.OffsetDateTime> disabledOn)
      • PaymentLink

        public PaymentLink​(java.lang.String code,
                           Mode mode,
                           PaymentLinkStatus status,
                           java.lang.String partnerAccountID,
                           java.lang.String merchantAccountID,
                           java.lang.String merchantPaymentMethodID,
                           java.lang.String link,
                           Amount amount,
                           long uses,
                           PaymentLinkDisplayOptions display,
                           PaymentLinkCustomerOptions customer,
                           java.time.OffsetDateTime createdOn,
                           java.time.OffsetDateTime updatedOn)
    • Method Detail

      • code

        public java.lang.String code()
        Unique code identifying this payment link.
      • mode

        public Mode mode()
        The operating mode for an account.
      • partnerAccountID

        public java.lang.String partnerAccountID()
        The partner's Moov account ID.
      • merchantAccountID

        public java.lang.String merchantAccountID()
        The merchant's Moov account ID.
      • merchantPaymentMethodID

        public java.lang.String merchantPaymentMethodID()
        The merchant's preferred payment method ID. Must be a wallet payment method.
      • link

        public java.lang.String link()
        Link to the payment landing page for this payment link.
      • amount

        public Amount amount()
      • uses

        public long uses()
        The number of times this payment link has been used.
      • maxUses

        public java.util.Optional<java.lang.Long> maxUses()
        An optional limit on the number of times this payment link can be used.

        **For payouts, `maxUses` is always 1.**

      • lastUsedOn

        public java.util.Optional<java.time.OffsetDateTime> lastUsedOn()
        The timestamp when this payment link was last used.
      • expiresOn

        public java.util.Optional<java.time.OffsetDateTime> expiresOn()
        An optional expiration date for this payment link.
      • payment

        public java.util.Optional<PaymentLinkPaymentDetails> payment()
        Options for payment links used to collect payment.
      • createdOn

        public java.time.OffsetDateTime createdOn()
      • updatedOn

        public java.time.OffsetDateTime updatedOn()
      • disabledOn

        public java.util.Optional<java.time.OffsetDateTime> disabledOn()
      • withCode

        public PaymentLink withCode​(java.lang.String code)
        Unique code identifying this payment link.
      • withMode

        public PaymentLink withMode​(Mode mode)
        The operating mode for an account.
      • withPartnerAccountID

        public PaymentLink withPartnerAccountID​(java.lang.String partnerAccountID)
        The partner's Moov account ID.
      • withMerchantAccountID

        public PaymentLink withMerchantAccountID​(java.lang.String merchantAccountID)
        The merchant's Moov account ID.
      • withMerchantPaymentMethodID

        public PaymentLink withMerchantPaymentMethodID​(java.lang.String merchantPaymentMethodID)
        The merchant's preferred payment method ID. Must be a wallet payment method.
      • withLink

        public PaymentLink withLink​(java.lang.String link)
        Link to the payment landing page for this payment link.
      • withUses

        public PaymentLink withUses​(long uses)
        The number of times this payment link has been used.
      • withMaxUses

        public PaymentLink withMaxUses​(long maxUses)
        An optional limit on the number of times this payment link can be used.

        **For payouts, `maxUses` is always 1.**

      • withMaxUses

        public PaymentLink withMaxUses​(java.util.Optional<java.lang.Long> maxUses)
        An optional limit on the number of times this payment link can be used.

        **For payouts, `maxUses` is always 1.**

      • withLastUsedOn

        public PaymentLink withLastUsedOn​(java.time.OffsetDateTime lastUsedOn)
        The timestamp when this payment link was last used.
      • withLastUsedOn

        public PaymentLink withLastUsedOn​(java.util.Optional<java.time.OffsetDateTime> lastUsedOn)
        The timestamp when this payment link was last used.
      • withExpiresOn

        public PaymentLink withExpiresOn​(java.time.OffsetDateTime expiresOn)
        An optional expiration date for this payment link.
      • withExpiresOn

        public PaymentLink withExpiresOn​(java.util.Optional<java.time.OffsetDateTime> expiresOn)
        An optional expiration date for this payment link.
      • withCreatedOn

        public PaymentLink withCreatedOn​(java.time.OffsetDateTime createdOn)
      • withUpdatedOn

        public PaymentLink withUpdatedOn​(java.time.OffsetDateTime updatedOn)
      • withDisabledOn

        public PaymentLink withDisabledOn​(java.time.OffsetDateTime disabledOn)
      • withDisabledOn

        public PaymentLink withDisabledOn​(java.util.Optional<java.time.OffsetDateTime> disabledOn)
      • equals

        public boolean equals​(java.lang.Object o)
        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