PaymentRefund

September 24, 2019 ยท View on GitHub

Description

Represents a refund of a payment made using Square. Contains information on the original payment and the amount of money refunded.

Properties

NameGetterSetterTypeDescriptionNotes
idgetId()setId($value)stringUnique ID for this refund, generated by Square.
statusgetStatus()setStatus($value)stringThe refund's status: - `PENDING` - awaiting approval - `COMPLETED` - successfully completed - `REJECTED` - the refund was rejected - `FAILED` - an error occurred[optional]
location_idgetLocationId()setLocationId($value)stringLocation ID associated with the payment this refund is attached to.[optional]
amount_moneygetAmountMoney()setAmountMoney($value)\SquareConnect\Model\MoneyThe amount of money refunded, specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents.
app_fee_moneygetAppFeeMoney()setAppFeeMoney($value)\SquareConnect\Model\MoneyAmount of money the app developer contributed to help cover the refunded amount. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. See Working with monetary amounts for details.[optional]
processing_feegetProcessingFee()setProcessingFee($value)\SquareConnect\Model\ProcessingFee[]Processing fees and fee adjustments assessed by Square on this refund.[optional]
payment_idgetPaymentId()setPaymentId($value)stringThe ID of the payment assocated with this refund.[optional]
order_idgetOrderId()setOrderId($value)stringThe ID of the order associated with the refund.[optional]
reasongetReason()setReason($value)stringThe reason for the refund.[optional]
created_atgetCreatedAt()setCreatedAt($value)stringTimestamp of when the refund was created, in RFC 3339 format.[optional]
updated_atgetUpdatedAt()setUpdatedAt($value)stringTimestamp of when the refund was last updated, in RFC 3339 format.[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]