Package com.stripe.model.v2.billing
Class IntentAction.Apply.InvoiceDiscountRule
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.IntentAction.Apply.InvoiceDiscountRule
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- IntentAction.Apply
Details for applying a discount rule to future invoices.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration for percentage off discount. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe entity that the discount rule applies to, for example, the Billing Cadence.The ID of the created discount rule.Configuration for percentage off discount.getType()Type of the discount rule.inthashCode()voidsetAppliesTo(String appliesTo) The entity that the discount rule applies to, for example, the Billing Cadence.voidsetInvoiceDiscountRule(String invoiceDiscountRule) The ID of the created discount rule.voidConfiguration for percentage off discount.voidType of the discount rule.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
InvoiceDiscountRule
public InvoiceDiscountRule()
-
-
Method Details
-
getAppliesTo
The entity that the discount rule applies to, for example, the Billing Cadence.Equal to
cadence. -
getInvoiceDiscountRule
The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created. -
getPercentOff
Configuration for percentage off discount. -
getType
Type of the discount rule.Equal to
percent_off. -
setAppliesTo
The entity that the discount rule applies to, for example, the Billing Cadence.Equal to
cadence. -
setInvoiceDiscountRule
The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created. -
setPercentOff
Configuration for percentage off discount. -
setType
Type of the discount rule.Equal to
percent_off. -
equals
-
canEqual
-
hashCode
public int hashCode()
-