View Source GoogleApi.AndroidPublisher.V3.Model.VoidedPurchase (google_api_android_publisher v0.34.1)

A VoidedPurchase resource indicates a purchase that was either canceled/refunded/charged-back.

Attributes

  • kind (type: String.t, default: nil) - This kind represents a voided purchase object in the androidpublisher service.
  • orderId (type: String.t, default: nil) - The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal.
  • purchaseTimeMillis (type: String.t, default: nil) - The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
  • purchaseToken (type: String.t, default: nil) - The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).
  • voidedQuantity (type: integer(), default: nil) - The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true.
  • voidedReason (type: integer(), default: nil) - The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback
  • voidedSource (type: integer(), default: nil) - The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google
  • voidedTimeMillis (type: String.t, default: nil) - The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AndroidPublisher.V3.Model.VoidedPurchase{
  kind: String.t() | nil,
  orderId: String.t() | nil,
  purchaseTimeMillis: String.t() | nil,
  purchaseToken: String.t() | nil,
  voidedQuantity: integer() | nil,
  voidedReason: integer() | nil,
  voidedSource: integer() | nil,
  voidedTimeMillis: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.