Roku IAP v0.1.0 RokuIAP View Source
Documentation for RokuIAP.
Link to this section Summary
Functions
Validates a refund
Updates a previous transaction with a new billing cycle date
Updates a previous transaction with a new billing cycle date
Updates a previous transaction with a new billing cycle date
Validates a refund
Validates a subscription
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 Keyrefund_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
Updates a previous transaction with a new billing cycle date
Args:
api_key
- The Roku Developer API Keychannel_id
- The channel ID to issue a credit forpartner_reference_id
product_id
roku_customer_id
amount
- The amount to refund to the customercomment
- 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
Updates a previous transaction with a new billing cycle date
Args:
api_key
- The Roku Developer API Keytransaction_id
- The transaction ID to updatepartner_reference_id
amount
- The amount to refund to the customercomment
- 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 Keytransaction_id
- The transaction ID to updatenew_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 Keyrefund_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 Keytransaction_id
- The transaction ID to validate with Roku