Class CollectionSettingVersion

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.CollectionSettingVersion
All Implemented Interfaces:
HasId, StripeObjectInterface

public class CollectionSettingVersion extends StripeObject implements HasId
  • Constructor Details

    • CollectionSettingVersion

      public CollectionSettingVersion()
  • Method Details

    • getCollectionMethod

      public String getCollectionMethod()
      Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this bill at the end of the period using the payment method attached to the payer profile. When sending an invoice, Stripe will email your payer profile an invoice with payment instructions. Defaults to automatic.

      One of automatic, or send_invoice.

    • getCreated

      public Instant getCreated()
      Timestamp of when the object was created.
    • getEmailDelivery

      public CollectionSettingVersion.EmailDelivery getEmailDelivery()
      Email delivery settings.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.collection_setting_version.

    • getPaymentMethodConfiguration

      public String getPaymentMethodConfiguration()
      The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
    • getPaymentMethodOptions

      public CollectionSettingVersion.PaymentMethodOptions getPaymentMethodOptions()
      Payment Method specific configuration stored on the object.
    • setCollectionMethod

      public void setCollectionMethod(String collectionMethod)
      Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this bill at the end of the period using the payment method attached to the payer profile. When sending an invoice, Stripe will email your payer profile an invoice with payment instructions. Defaults to automatic.

      One of automatic, or send_invoice.

    • setCreated

      public void setCreated(Instant created)
      Timestamp of when the object was created.
    • setEmailDelivery

      public void setEmailDelivery(CollectionSettingVersion.EmailDelivery emailDelivery)
      Email delivery settings.
    • setId

      public void setId(String id)
      The ID of the CollectionSettingVersion object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.collection_setting_version.

    • setPaymentMethodConfiguration

      public void setPaymentMethodConfiguration(String paymentMethodConfiguration)
      The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
    • setPaymentMethodOptions

      public void setPaymentMethodOptions(CollectionSettingVersion.PaymentMethodOptions paymentMethodOptions)
      Payment Method specific configuration stored on the object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      The ID of the CollectionSettingVersion object.
      Specified by:
      getId in interface HasId