Affirm v0.1.2 Affirm.Response

Affirm defines all of the useful response data points in their API. This module houses a struct of those and provides a function for building the struct given a response map.

Link to this section Summary

Functions

Function builds a response object based on parsed json return map send back from Affirm

Link to this section Types

Link to this type t()
t() :: %Affirm.Response{amount: pos_integer(), charge_id: String.t(), created: String.t(), currency: String.t(), events: [map()], fee: String.t(), fee_refunded: String.t(), id: String.t(), message: String.t(), order_id: String.t(), status: String.t(), transaction_id: String.t(), type: String.t()}

Link to this section Functions

Link to this function new(response, is_transactional \\ true)
new(map(), boolean()) :: t()

Function builds a response object based on parsed json return map send back from Affirm.