- GET_BATCH_LIST =
[
{:includeStatistics => :include_statistics},
{:firstSettlementDate => :first_settlement_date},
{:lastSettlementDate => :last_settlement_date}
]
- GET_TRANSACTION_LIST =
[
{:batchId => :batch_id}
]
- GET_TRANSACTION_DETAILS =
[
{:transId => :transaction_id}
]
- BATCH_STATISTICS_ENTITY_DESCRIPTION =
EntityDescription.new([
{:accountType => :account_type},
{:chargeAmount => :charge_amount, :_converter => :value_to_decimal},
{:chargeCount => :charge_count, :_converter => :value_to_integer},
{:refundAmount => :refund_amount, :_converter => :value_to_decimal},
{:refundCount => :refund_count, :_converter => :value_to_integer},
{:voidCount => :void_count, :_converter => :value_to_integer},
{:declineCount => :decline_count, :_converter => :value_to_integer},
{:errorCount => :error_count, :_converter => :value_to_integer},
{:returnedItemAmount => :returned_item_amount, :_converter => :value_to_decimal},
{:returnedItemCount => :returned_item_count, :_converter => :value_to_integer},
{:chargebackAmount => :chargeback_amount, :_converter => :value_to_decimal},
{:chargebackCount => :chargeback_count, :_converter => :value_to_integer},
{:correctionNoticeCount => :correction_notice_count, :_converter => :value_to_integer},
{:chargeChargeBackAmount => :charge_chargeback_amount, :_converter => :value_to_decimal},
{:chargeChargeBackCount => :charge_chargeback_count, :_converter => :value_to_integer},
{:refundChargeBackAmount => :refund_chargeback_amount, :_converter => :value_to_decimal},
{:refundChargeBackCount => :refund_chargeback_count, :_converter => :value_to_integer},
{:chargeReturnedItemsAmount => :charge_returned_items_amount, :_converter => :value_to_decimal},
{:chargeReturnedItemsCount => :charge_returned_items_count, :_converter => :value_to_integer},
{:refundReturnedItemsAmount => :refund_returned_items_amount, :_converter => :value_to_decimal},
{:refundReturnedItemsCount => :refund_returned_items_count, :_converter => :value_to_integer}
],
AuthorizeNet::Reporting::BatchStatistics
)
- BATCH_ENTITY_DESCRIPTION =
EntityDescription.new([
{:batchId => :id},
{:settlementTimeUTC => :settled_at, :_converter => :value_to_datetime},
{:settlementState => :state},
{:paymentMethod => :payment_method},
{:statistics => [{:statistic => BATCH_STATISTICS_ENTITY_DESCRIPTION, :_multivalue => :statistics}]}
],
AuthorizeNet::Reporting::Batch
)
- FDSFILTER_ENTITY_DESCRIPTION =
EntityDescription.new([
{:name => :name},
{:action => :action}
],
AuthorizeNet::Reporting::FDSFilter
)
- CUSTOMER_ENTITY_DESCRIPTION =
EntityDescription.new([
{:id => :id},
{:email => :email}
],
AuthorizeNet::CIM::CustomerProfile
)
- ORDER_ENTITY_DESCRIPTION =
EntityDescription.new([
{:invoice_number => :invoice_num},
{:description => :description},
{:purchaseOrderNumber => :po_num}
],
AuthorizeNet::Order
)
- LINE_ITEM_ENTITY_DESCRIPTION =
EntityDescription.new([
{:itemId => :id},
{:name => :name},
{:description => :description},
{:quantity => :quantity, :_convert => :value_to_integer},
{:unityPrice => :price, :_convert => :value_to_decimal},
{:taxable => :taxable, :_convert => :value_to_boolean}
],
AuthorizeNet::LineItem
)
- TRANSACTION_DETAILS_ENTITY_DESCRIPTION =
EntityDescription.new([
{:transId => :id},
{:refTransId => :reference_id},
{:splitTenderId => :split_tender_id},
{:transactionType => :type},
{:responseCode => :response_code},
{:responseReasonCode => :response_reason_code},
{:authCode => :auth_code},
{:AVSResponse => :avs_response},
{:cardCodeResponse => :card_code_response},
{:CAVVResponse => :cavv_response},
{:FDSFilterAction => :fds_filter_action},
{:FDSFilters => [{:FDSFilter => FDSFILTER_ENTITY_DESCRIPTION, :_multivalue => :fds_filters}]},
{:batch => BATCH_ENTITY_DESCRIPTION, :_value => :batch},
{:responseReasonDescription => :response_reason_description},
{:submitTimeUTC => :submitted_at, :_converter => :value_to_datetime},
{:transactionStatus => :status},
{:accountType => :account_type},
{:accountNumber => :account_number},
{:order => ORDER_ENTITY_DESCRIPTION, :_value => :order},
{:requestedAmount => :requested_amount, :_converter => :value_to_decimal},
{:authAmount => :auth_amount, :_converter => :value_to_decimal},
{:settleAmount => :settle_amount, :_converter => :value_to_decimal},
{:prepaidBalanceRemaining => :prepaid_balance_remaining, :_converter => :value_to_decimal},
{:payment => [
{:creditCard => AuthorizeNet::CIM::Fields::CREDIT_CARD_ENTITY_DESCRIPTION, :_value => :payment_method},
{:bankAccount => AuthorizeNet::CIM::Fields::ECHECK_ENTITY_DESCRIPTION, :_value => :payment_method}
]},
{:customer => CUSTOMER_ENTITY_DESCRIPTION, :_value => :customer},
{:billTo => AuthorizeNet::CIM::Fields::ADDRESS_ENTITY_DESCRIPTION, :_value => :bill_to},
{:shipTo => AuthorizeNet::CIM::Fields::ADDRESS_ENTITY_DESCRIPTION, :_value => :ship_to},
{:recurringBilling => :recurring_billing, :_convert => :value_to_boolean}
],
AuthorizeNet::Reporting::TransactionDetails
)
- FIELDS =
{
AuthorizeNet::XmlTransaction::Type::REPORT_GET_BATCH_LIST => GET_BATCH_LIST,
AuthorizeNet::XmlTransaction::Type::REPORT_GET_TRANSACTION_LIST => GET_TRANSACTION_LIST,
AuthorizeNet::XmlTransaction::Type::REPORT_GET_TRANSACTION_DETAILS => GET_TRANSACTION_DETAILS
}