Roku IAP v0.1.0 RokuIAP View Source

Documentation for RokuIAP.

Link to this section Summary

Link to this section Functions

Link to this function cancel_subscription(api_key, transaction_id, partner_reference_id, cancellation_date) View Source
cancel_subscription(String.t, String.t, String.t, DateTime.t) :: {:ok | :error, String.t}

Validates a refund

Args:

  • api_key - The Roku Developer API Key
  • refund_id - The refund ID to validate with Roku
Link to this function issue_service_credit(api_key, channel_id, partner_reference_id, product_id, roku_customer_id, amount, comment) View Source
issue_service_credit(String.t, String.t, String.t, String.t, String.t, integer, String.t) :: {:ok, String.t | :error, String.t}

Updates a previous transaction with a new billing cycle date

Args:

  • api_key - The Roku Developer API Key
  • channel_id - The channel ID to issue a credit for
  • partner_reference_id
  • product_id
  • roku_customer_id
  • amount - The amount to refund to the customer
  • comment - A comment note for the reason for the credit
Link to this function refund_subscription(api_key, transaction_id, partner_reference_id, amount, comment) View Source
refund_subscription(String.t, String.t, String.t, integer, String.t) :: {:ok, String.t | :error, String.t}

Updates a previous transaction with a new billing cycle date

Args:

  • api_key - The Roku Developer API Key
  • transaction_id - The transaction ID to update
  • partner_reference_id
  • amount - The amount to refund to the customer
  • comment - A comment note for the reason for the refund
Link to this function update_bill_cycle(api_key, transaction_id, new_bill_cycle_date) View Source
update_bill_cycle(String.t, String.t, DateTime.t) :: {:ok | :error, String.t}

Updates a previous transaction with a new billing cycle date

Args:

  • api_key - The Roku Developer API Key
  • transaction_id - The transaction ID to update
  • new_billing_cycle_date - The new date to set the billing cycle
Link to this function validate_refund(api_key, refund_id) View Source
validate_refund(String.t, String.t) :: {:ok, RokuIAP.Transaction.t | :error, String.t}

Validates a refund

Args:

  • api_key - The Roku Developer API Key
  • refund_id - The refund ID to validate with Roku
Link to this function validate_transaction(api_key, transaction_id) View Source
validate_transaction(String.t, String.t) :: {:ok, RokuIAP.Transaction.t | :error, String.t}

Validates a subscription

Args:

  • api_key - The Roku Developer API Key
  • transaction_id - The transaction ID to validate with Roku