Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 2.77 KB

File metadata and controls

43 lines (36 loc) · 2.77 KB

OpenapiClient::ScoreOnlyRequest

Properties

Name Type Description Notes
merchant_ref String Merchant reference code. Used by FirstAPI and reflected in settlement records and Webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction. [optional]
transaction_type String Type of transaction merchant wants to process.
original_transaction_type String Defines the type of the original transaction that is being evaluated for the Fraud Score.
original_transaction_id String The unique ID of this transaction. Must be unique for the entire system (not just within a specific merchant or industry). Subsequent requests related to the same transaction must have the same transactionId (e.g. transaction/deposit or transaction/authorization-reversal). This field is used for matching transactions with settlement and chargeback information. If there is no such ID available you may wish to compose one from fields available in both systems. Consider including backend, issuer, merchant id, date and time, amount, etc. as necessary.
amount String The amount processed for the original transaction.
currency_code String The currency of the original transaction.
customer Customer [optional]
billing_address BillingAddress [optional]
device Device [optional]
loyalty Loyalty [optional]
payment Payment
merchant Merchant
order FraudOrder [optional]
user_defined Object A JSON object that can carry any additional information that might be helpful for fraud detection. [optional]

Code Sample

require 'OpenapiClient'

instance = OpenapiClient::ScoreOnlyRequest.new(merchant_ref: ffd031516002,
                                 transaction_type: score_only,
                                 original_transaction_type: transaction/authorization,
                                 original_transaction_id: fraudFAPI1231231,
                                 amount: 1100,
                                 currency_code: USD,
                                 customer: null,
                                 billing_address: null,
                                 device: null,
                                 loyalty: null,
                                 payment: null,
                                 merchant: null,
                                 order: null,
                                 user_defined: {"inauthTransId":1234})