enum

Polar::Models::RefundReason

Inherits Enum < Comparable < Value < Object

Constants

Duplicate = 0
Fraudulent = 1
CustomerRequest = 2
ServiceDisruption = 3
SatisfactionGuarantee = 4
Other = 5

Constructors

from_json(parser : JSON::PullParser) : self

Deserialize from JSON

Source

Instance methods

customer_request?

Returns true if this enum value equals CustomerRequest

Source
duplicate?

Returns true if this enum value equals Duplicate

Source
fraudulent?

Returns true if this enum value equals Fraudulent

Source
other?

Returns true if this enum value equals Other

Source
satisfaction_guarantee?

Returns true if this enum value equals SatisfactionGuarantee

Source
service_disruption?

Returns true if this enum value equals ServiceDisruption

Source
to_json(json : JSON::Builder)

Serialize to JSON using snake_case string values

Source