Class: WindcaveRest::TransactionsApi
- Defined in:
- lib/windcave_rest/api/transactions_api.rb
Instance Attribute Summary
Attributes inherited from BaseApi
Instance Method Summary collapse
-
#transactions_create(opts = {}) ⇒ Transaction
Create a Transaction Creates a Windcave Transaction.
-
#transactions_create_with_http_info(opts = {}) ⇒ Array<(Transaction, Fixnum, Hash)>
Create a Transaction Creates a Windcave Transaction.
Methods inherited from BaseApi
Constructor Details
This class inherits a constructor from WindcaveRest::BaseApi
Instance Method Details
#transactions_create(opts = {}) ⇒ Transaction
Create a Transaction Creates a Windcave Transaction. During the Transaction process a customer can apply for credit decisioning in real-time. This means the Transaction needs to represent a good picture of known customer details along with order information and the Transaction entity represents this as a resource. For more information on how to Transaction with Windcave see the px5.docs.apiary.io/#reference/0/transactions/create-Transaction guide.
8 9 10 11 |
# File 'lib/windcave_rest/api/transactions_api.rb', line 8 def transactions_create(opts = {}) data, _status_code, _headers = transactions_create_with_http_info(opts) return data end |
#transactions_create_with_http_info(opts = {}) ⇒ Array<(Transaction, Fixnum, Hash)>
Create a Transaction Creates a Windcave Transaction. During the Transaction process a customer can apply for credit decisioning in real-time. This means the Transaction needs to represent a good picture of known customer details along with order information and the Transaction entity represents this as a resource. For more information on how to Transaction with Windcave see the #model:Z2QcrzRGHACY8wM6G guide.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/windcave_rest/api/transactions_api.rb', line 18 def transactions_create_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: TransactionsApi.transactions_create ..." end # resource path local_var_path = "/transactions" # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['Authorization'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Transaction') if @api_client.config.debugging @api_client.config.logger.debug "API called: TransactionsApi#transactions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |