GiftCardActivityRedeem class

Annotations
  • @JsonSerializable()

Constructors

GiftCardActivityRedeem({required Money amountMoney, String? paymentId, String? referenceId, GiftCardActivityRedeemStatus? status})
const
GiftCardActivityRedeem.fromJson(Map<String, dynamic> json)
Converts a Map<String, dynamic> to a GiftCardActivityRedeem
factory

Properties

amountMoney Money
The amount deducted from the gift card for the redemption. This value is a positive integer.
final
hashCode int
The hash code for this object.
no setterinherited
paymentId String?
Read only The ID of the payment that represents the gift card redemption. Square populates this field if the payment was processed by Square.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
referenceId String?
A client-specified ID that associates the gift card activity with an entity in another system.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status GiftCardActivityRedeemStatus?
Read only The status of the gift card redemption. Gift cards redeemed from Square Point of Sale or the Square Seller Dashboard use a two-state process: PENDING to COMPLETED or PENDING to CANCELED. Gift cards redeemed using the Gift Card Activities API always have a COMPLETED status.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a GiftCardActivityRedeem to a Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited