public class V1PaymentDiscount extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
V1PaymentDiscount.Builder
Class to build instances of
V1PaymentDiscount. |
| Modifier | Constructor and Description |
|---|---|
protected |
V1PaymentDiscount(io.apimatic.core.types.OptionalNullable<String> name,
V1Money appliedMoney,
io.apimatic.core.types.OptionalNullable<String> discountId)
Initialization constructor.
|
|
V1PaymentDiscount(String name,
V1Money appliedMoney,
String discountId)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
V1Money |
getAppliedMoney()
Getter for AppliedMoney.
|
String |
getDiscountId()
Getter for DiscountId.
|
String |
getName()
Getter for Name.
|
int |
hashCode() |
protected io.apimatic.core.types.OptionalNullable<String> |
internalGetDiscountId()
Internal Getter for DiscountId.
|
protected io.apimatic.core.types.OptionalNullable<String> |
internalGetName()
Internal Getter for Name.
|
V1PaymentDiscount.Builder |
toBuilder()
Builds a new
V1PaymentDiscount.Builder object. |
String |
toString()
Converts this V1PaymentDiscount into string format.
|
public V1PaymentDiscount(String name, V1Money appliedMoney, String discountId)
name - String value for name.appliedMoney - V1Money value for appliedMoney.discountId - String value for discountId.protected V1PaymentDiscount(io.apimatic.core.types.OptionalNullable<String> name, V1Money appliedMoney, io.apimatic.core.types.OptionalNullable<String> discountId)
name - String value for name.appliedMoney - V1Money value for appliedMoney.discountId - String value for discountId.protected io.apimatic.core.types.OptionalNullable<String> internalGetName()
public String getName()
public V1Money getAppliedMoney()
protected io.apimatic.core.types.OptionalNullable<String> internalGetDiscountId()
public String getDiscountId()
public String toString()
public V1PaymentDiscount.Builder toBuilder()
V1PaymentDiscount.Builder object.
Creates the instance with the state of the current model.V1PaymentDiscount.Builder objectCopyright © 2024. All rights reserved.