Donation class abstract
Donation
Properties:
- currency - The three-character ISO currency code.
- donationType - The type of donation. Possible values: * roundup: a donation where the original transaction amount is rounded up as a donation. * fixedAmounts: a donation where you show fixed donations amounts that the shopper can select from.
- maxRoundupAmount - The maximum amount a transaction can be rounded up to make a donation. This field is only present when
donationTypeis roundup. - type - The type of donation. Possible values: * roundup: a donation where the original transaction amount is rounded up as a donation. * fixedAmounts: a donation where you show fixed donation amounts that the shopper can select from.
- values - The fixed donation amounts in minor units. This field is only present when
donationTypeis fixedAmounts.
- Annotations
-
- @BuiltValue.new()
Constructors
- Donation([void updates(DonationBuilder b)])
-
factory
Properties
- currency → String
-
The three-character ISO currency code.
no setter
- donationType → String
-
The type of donation. Possible values: * roundup: a donation where the original transaction amount is rounded up as a donation. * fixedAmounts: a donation where you show fixed donations amounts that the shopper can select from.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRoundupAmount → int?
-
The maximum amount a transaction can be rounded up to make a donation. This field is only present when
donationTypeis roundup.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of donation. Possible values: * roundup: a donation where the original transaction amount is rounded up as a donation. * fixedAmounts: a donation where you show fixed donation amounts that the shopper can select from.
no setter
-
values
→ BuiltList<
int> ? -
The fixed donation amounts in minor units. This field is only present when
donationTypeis fixedAmounts.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(DonationBuilder)) → Donation -
Rebuilds the instance.
inherited
-
toBuilder(
) → DonationBuilder -
Converts the instance to a builder
B.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Donation> -
no setter