receipt_verifier v0.6.0 ReceiptVerifier.PendingRenewalReceipt

The struct to represent the Pending Renewal Receipt

A pending renewal may refer to a renewal that is scheduled in the future or a renewal that failed in the past for some reason.

Link to this section Summary

Functions

Parse the Pending Renewal Receipt, returns the parsed struct

Link to this section Types

Link to this type t()
t() :: %ReceiptVerifier.PendingRenewalReceipt{auto_renew_product_id: String.t, auto_renew_status: String.t, expiration_intent: String.t, is_in_billing_retry_period: boolean, product_id: String.t}

Link to this section Functions

Link to this function parse(data)
parse(map) :: t

Parse the Pending Renewal Receipt, returns the parsed struct

Example

iex> ReceiptVerifier.PendingRenewalReceipt.parse(data)
...> %ReceiptVerifier.PendingRenewalReceipt{auto_renew_product_id: "com.sumiapp.GridDiary.pro_subscription",
 auto_renew_status: "0", expiration_intent: "1",
 is_in_billing_retry_period: false,
 product_id: "com.sumiapp.GridDiary.pro_subscription"}