Scrip v1.0.0 Scrip.IAPReceipt View Source

Contains the in-app purchase receipt fields for all in-app purchase transactions.

See: https://developer.apple.com/documentation/appstorereceipts/responsebody/receipt/in_app

Link to this section Summary

Types

An indicator of whether an auto-renewable subscription is in the introductory price period.

An indicator of whether an auto-renewable subscription is in the free trial period.

t()

Contains the in-app purchase receipt fields for all in-app purchase transactions.

Functions

Converts response map to %Elixir.Scrip.IAPReceipt struct

Link to this section Types

Link to this type

is_in_intro_offer_period()

View Source

Specs

is_in_intro_offer_period() :: boolean() | nil

An indicator of whether an auto-renewable subscription is in the introductory price period.

Possible values

true The customer’s subscription is in an introductory price period

false The subscription is not in an introductory price period.

Specs

is_trial_period() :: boolean()

An indicator of whether an auto-renewable subscription is in the free trial period.

Possible Values

true The subscription is in the free trial period.

false The subscription is not in the free trial period.

Specs

t() :: %Scrip.IAPReceipt{
  expires_date: DateTime.t(),
  expires_date_ms: Scrip.timestamp(),
  is_in_intro_offer_period: is_in_intro_offer_period(),
  is_trial_period: is_trial_period(),
  original_purchase_date: DateTime.t(),
  original_purchase_date_ms: Scrip.timestamp(),
  original_transaction_id: String.t(),
  product_id: String.t(),
  purchase_date: DateTime.t(),
  purchase_date_ms: Scrip.timestamp(),
  quantity: String.t(),
  subscription_group_identifier: String.t(),
  transaction_id: String.t(),
  web_order_line_item_id: String.t()
}

Contains the in-app purchase receipt fields for all in-app purchase transactions.

See: https://developer.apple.com/documentation/appstorereceipts/responsebody/receipt/in_app

Link to this section Functions

Link to this function

%Scrip.IAPReceipt{}

View Source (struct)

The Elixir.Scrip.IAPReceipt struct

Contains the in-app purchase receipt fields for all in-app purchase transactions.

Specs

new(response :: map()) :: t()

Converts response map to %Elixir.Scrip.IAPReceipt struct