wp-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +152 -0
- data/bin/console +15 -0
- data/lib/reporting_settlement_research_api/api_helper.rb +10 -0
- data/lib/reporting_settlement_research_api/apis/base_api.rb +65 -0
- data/lib/reporting_settlement_research_api/apis/settlement_batches_api.rb +67 -0
- data/lib/reporting_settlement_research_api/apis/settlement_daily_totals_api.rb +39 -0
- data/lib/reporting_settlement_research_api/apis/settlement_errors_api.rb +67 -0
- data/lib/reporting_settlement_research_api/apis/settlements_api.rb +40 -0
- data/lib/reporting_settlement_research_api/apis/transaction_status_api.rb +33 -0
- data/lib/reporting_settlement_research_api/apis/transaction_type_api.rb +33 -0
- data/lib/reporting_settlement_research_api/client.rb +105 -0
- data/lib/reporting_settlement_research_api/configuration.rb +164 -0
- data/lib/reporting_settlement_research_api/exceptions/api_exception.rb +21 -0
- data/lib/reporting_settlement_research_api/exceptions/search_date0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/search_store0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlementerrors_pendingsettlementbatches_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlementerrors_settlementfileerrors_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlements_daily_totals_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/settlements_search0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/transaction_statuses0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/exceptions/transaction_types0_error_exception.rb +58 -0
- data/lib/reporting_settlement_research_api/http/api_response.rb +19 -0
- data/lib/reporting_settlement_research_api/http/auth/custom_header_authentication.rb +52 -0
- data/lib/reporting_settlement_research_api/http/http_call_back.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_method_enum.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_request.rb +10 -0
- data/lib/reporting_settlement_research_api/http/http_response.rb +10 -0
- data/lib/reporting_settlement_research_api/http/proxy_settings.rb +22 -0
- data/lib/reporting_settlement_research_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/reporting_settlement_research_api/logging/sdk_logger.rb +17 -0
- data/lib/reporting_settlement_research_api/models/account_name_inquiry.rb +98 -0
- data/lib/reporting_settlement_research_api/models/aci.rb +98 -0
- data/lib/reporting_settlement_research_api/models/additional_details.rb +135 -0
- data/lib/reporting_settlement_research_api/models/authorization_currency.rb +98 -0
- data/lib/reporting_settlement_research_api/models/authorization_source.rb +98 -0
- data/lib/reporting_settlement_research_api/models/avs_response_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rej_real_time_transaction.rb +172 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rejects_search_request.rb +159 -0
- data/lib/reporting_settlement_research_api/models/bank_card_rejects_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/base_model.rb +110 -0
- data/lib/reporting_settlement_research_api/models/batch_card_type.rb +41 -0
- data/lib/reporting_settlement_research_api/models/batch_card_type1.rb +41 -0
- data/lib/reporting_settlement_research_api/models/batch_hold_status.rb +98 -0
- data/lib/reporting_settlement_research_api/models/billing_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_account_term.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_details.rb +381 -0
- data/lib/reporting_settlement_research_api/models/card_details2.rb +381 -0
- data/lib/reporting_settlement_research_api/models/card_network.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_networks.rb +118 -0
- data/lib/reporting_settlement_research_api/models/card_product_results.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_product_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/card_types.rb +49 -0
- data/lib/reporting_settlement_research_api/models/card_types1.rb +44 -0
- data/lib/reporting_settlement_research_api/models/cardholder_id.rb +98 -0
- data/lib/reporting_settlement_research_api/models/code_and_description.rb +98 -0
- data/lib/reporting_settlement_research_api/models/code_and_description1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/country_of_origin.rb +98 -0
- data/lib/reporting_settlement_research_api/models/credit_additional_details.rb +135 -0
- data/lib/reporting_settlement_research_api/models/credit_card_details.rb +230 -0
- data/lib/reporting_settlement_research_api/models/credit_interchange_details.rb +215 -0
- data/lib/reporting_settlement_research_api/models/credit_merchant_hierarchy_details.rb +112 -0
- data/lib/reporting_settlement_research_api/models/credit_other_services_details.rb +157 -0
- data/lib/reporting_settlement_research_api/models/credit_premium_payback_details.rb +120 -0
- data/lib/reporting_settlement_research_api/models/credit_transaction_details.rb +435 -0
- data/lib/reporting_settlement_research_api/models/customer_fields.rb +95 -0
- data/lib/reporting_settlement_research_api/models/customer_fields2.rb +95 -0
- data/lib/reporting_settlement_research_api/models/cvv2_presence_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/cvv2_response_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/date_range1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/date_type.rb +36 -0
- data/lib/reporting_settlement_research_api/models/daterange.rb +85 -0
- data/lib/reporting_settlement_research_api/models/emv_details.rb +113 -0
- data/lib/reporting_settlement_research_api/models/emv_details2.rb +113 -0
- data/lib/reporting_settlement_research_api/models/entity.rb +99 -0
- data/lib/reporting_settlement_research_api/models/entry_mode.rb +98 -0
- data/lib/reporting_settlement_research_api/models/error.rb +96 -0
- data/lib/reporting_settlement_research_api/models/field_name.rb +93 -0
- data/lib/reporting_settlement_research_api/models/field_name1.rb +69 -0
- data/lib/reporting_settlement_research_api/models/field_name2.rb +57 -0
- data/lib/reporting_settlement_research_api/models/field_name3.rb +57 -0
- data/lib/reporting_settlement_research_api/models/field_name4.rb +61 -0
- data/lib/reporting_settlement_research_api/models/field_name5.rb +49 -0
- data/lib/reporting_settlement_research_api/models/fraud_coverage_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_detection_stage.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields.rb +99 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields2.rb +99 -0
- data/lib/reporting_settlement_research_api/models/fraud_fields_fraud_score.rb +86 -0
- data/lib/reporting_settlement_research_api/models/fraud_response_code.rb +52 -0
- data/lib/reporting_settlement_research_api/models/fraud_response_code2.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_rule_result.rb +49 -0
- data/lib/reporting_settlement_research_api/models/fraud_rule_result2.rb +98 -0
- data/lib/reporting_settlement_research_api/models/fraud_score.rb +85 -0
- data/lib/reporting_settlement_research_api/models/fraud_sight_details.rb +124 -0
- data/lib/reporting_settlement_research_api/models/fraud_sight_details2.rb +124 -0
- data/lib/reporting_settlement_research_api/models/funded_net_settle.rb +110 -0
- data/lib/reporting_settlement_research_api/models/funded_net_settle2.rb +110 -0
- data/lib/reporting_settlement_research_api/models/hierarchy.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy1.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy10.rb +141 -0
- data/lib/reporting_settlement_research_api/models/hierarchy2.rb +85 -0
- data/lib/reporting_settlement_research_api/models/hierarchy4.rb +112 -0
- data/lib/reporting_settlement_research_api/models/hierarchy6.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy7.rb +131 -0
- data/lib/reporting_settlement_research_api/models/hierarchy9.rb +119 -0
- data/lib/reporting_settlement_research_api/models/hierarchy_level.rb +99 -0
- data/lib/reporting_settlement_research_api/models/hierarchy_levels.rb +99 -0
- data/lib/reporting_settlement_research_api/models/interchange_code.rb +85 -0
- data/lib/reporting_settlement_research_api/models/interchange_data.rb +116 -0
- data/lib/reporting_settlement_research_api/models/interchange_details.rb +215 -0
- data/lib/reporting_settlement_research_api/models/interchange_details1.rb +116 -0
- data/lib/reporting_settlement_research_api/models/international_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/level.rb +45 -0
- data/lib/reporting_settlement_research_api/models/level1.rb +49 -0
- data/lib/reporting_settlement_research_api/models/level2.rb +37 -0
- data/lib/reporting_settlement_research_api/models/level3.rb +67 -0
- data/lib/reporting_settlement_research_api/models/level_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/location_details.rb +199 -0
- data/lib/reporting_settlement_research_api/models/location_details2.rb +198 -0
- data/lib/reporting_settlement_research_api/models/mail_phone_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/market_specific_data_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/mastercard_tic_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/merchant_category.rb +98 -0
- data/lib/reporting_settlement_research_api/models/merchant_hierarchy.rb +119 -0
- data/lib/reporting_settlement_research_api/models/merchant_hierarchy_detail.rb +131 -0
- data/lib/reporting_settlement_research_api/models/merchant_info.rb +141 -0
- data/lib/reporting_settlement_research_api/models/network_group.rb +98 -0
- data/lib/reporting_settlement_research_api/models/order_by.rb +36 -0
- data/lib/reporting_settlement_research_api/models/order_by_for_settled_daily_totals.rb +85 -0
- data/lib/reporting_settlement_research_api/models/order_by_for_settled_transactions_type.rb +85 -0
- data/lib/reporting_settlement_research_api/models/origin_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/other_services.rb +179 -0
- data/lib/reporting_settlement_research_api/models/other_services2.rb +179 -0
- data/lib/reporting_settlement_research_api/models/pagination.rb +87 -0
- data/lib/reporting_settlement_research_api/models/pagination4.rb +108 -0
- data/lib/reporting_settlement_research_api/models/pagination_response.rb +108 -0
- data/lib/reporting_settlement_research_api/models/paginationtype.rb +87 -0
- data/lib/reporting_settlement_research_api/models/payment_gateway_details.rb +127 -0
- data/lib/reporting_settlement_research_api/models/payment_gateway_details1.rb +127 -0
- data/lib/reporting_settlement_research_api/models/pin_less.rb +98 -0
- data/lib/reporting_settlement_research_api/models/pos_condition_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/premium_payback.rb +120 -0
- data/lib/reporting_settlement_research_api/models/processdaterange.rb +85 -0
- data/lib/reporting_settlement_research_api/models/rejection_reason.rb +98 -0
- data/lib/reporting_settlement_research_api/models/search_auth_transactions.rb +200 -0
- data/lib/reporting_settlement_research_api/models/search_daily_totals.rb +95 -0
- data/lib/reporting_settlement_research_api/models/search_daily_totals_details.rb +172 -0
- data/lib/reporting_settlement_research_api/models/search_date_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/search_date_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/search_requesttransaction_amount_range.rb +105 -0
- data/lib/reporting_settlement_research_api/models/search_settle_daily_totals_request.rb +135 -0
- data/lib/reporting_settlement_research_api/models/search_settle_transactions_request.rb +248 -0
- data/lib/reporting_settlement_research_api/models/search_store_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/search_store_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/search_transaction_details_response.rb +95 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_date_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_date_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_entity.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_hierarchy.rb +112 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_sort_store.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_sortbankcarddetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_store_request.rb +116 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_store_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_transaction_date.rb +195 -0
- data/lib/reporting_settlement_research_api/models/settlement_batches_transaction_store.rb +195 -0
- data/lib/reporting_settlement_research_api/models/settlement_rej_real_time_transaction.rb +152 -0
- data/lib/reporting_settlement_research_api/models/settlement_rejects_search_request.rb +104 -0
- data/lib/reporting_settlement_research_api/models/settlement_rejects_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_pendingsettlementbatches_search_request.rb +159 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_pendingsettlementbatches_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_settlementfileerrors_search_request.rb +104 -0
- data/lib/reporting_settlement_research_api/models/settlementerrors_settlementfileerrors_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlements_daily_totals_search_request.rb +135 -0
- data/lib/reporting_settlement_research_api/models/settlements_daily_totals_search_response.rb +94 -0
- data/lib/reporting_settlement_research_api/models/settlements_search_request.rb +248 -0
- data/lib/reporting_settlement_research_api/models/settlements_search_response.rb +95 -0
- data/lib/reporting_settlement_research_api/models/signature_capabilities_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signature_compression.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signature_pen.rb +98 -0
- data/lib/reporting_settlement_research_api/models/signify_details.rb +103 -0
- data/lib/reporting_settlement_research_api/models/signifyd_detail.rb +103 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by1.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by2.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by3.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by4.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sort_results_by5.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sortbankcarddetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/sortsettlementfiledetails.rb +85 -0
- data/lib/reporting_settlement_research_api/models/stand_in_indicator.rb +98 -0
- data/lib/reporting_settlement_research_api/models/stand_in_level.rb +98 -0
- data/lib/reporting_settlement_research_api/models/surcharge_reason.rb +85 -0
- data/lib/reporting_settlement_research_api/models/terminal.rb +109 -0
- data/lib/reporting_settlement_research_api/models/terminal_capability.rb +98 -0
- data/lib/reporting_settlement_research_api/models/terminal_details.rb +109 -0
- data/lib/reporting_settlement_research_api/models/transaction_amount_range.rb +105 -0
- data/lib/reporting_settlement_research_api/models/transaction_details.rb +723 -0
- data/lib/reporting_settlement_research_api/models/transaction_details2.rb +723 -0
- data/lib/reporting_settlement_research_api/models/transaction_status.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_status_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_status_code1.rb +1029 -0
- data/lib/reporting_settlement_research_api/models/transaction_summary.rb +182 -0
- data/lib/reporting_settlement_research_api/models/transaction_summary_data.rb +182 -0
- data/lib/reporting_settlement_research_api/models/transaction_type.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_type_code.rb +98 -0
- data/lib/reporting_settlement_research_api/models/transaction_type_code1.rb +221 -0
- data/lib/reporting_settlement_research_api/utilities/date_time_helper.rb +11 -0
- data/lib/reporting_settlement_research_api/utilities/file_wrapper.rb +28 -0
- data/lib/reporting_settlement_research_api.rb +302 -0
- metadata +294 -0
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module ReportingSettlementResearchApi
|
|
8
|
+
# Provides transaction amount related information.
|
|
9
|
+
class TransactionDetails < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
14
|
+
# transaction and from the electronic transfer of funds.
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :transaction_id
|
|
17
|
+
|
|
18
|
+
# Refers to the date when the transaction has been processed for settlement
|
|
19
|
+
# between the two parties.
|
|
20
|
+
# @return [Date]
|
|
21
|
+
attr_accessor :process_date
|
|
22
|
+
|
|
23
|
+
# Refers to the date and time when the bank has settled the transaction
|
|
24
|
+
# (deposits or withdraws funds).
|
|
25
|
+
# @return [DateTime]
|
|
26
|
+
attr_accessor :transaction_date_time
|
|
27
|
+
|
|
28
|
+
# The approved amount of money to be charged.
|
|
29
|
+
# @return [Float]
|
|
30
|
+
attr_accessor :authorization_amount
|
|
31
|
+
|
|
32
|
+
# The agreed upon sum for a transaction after authorization and processing
|
|
33
|
+
# steps.
|
|
34
|
+
# @return [Float]
|
|
35
|
+
attr_accessor :approved_amount
|
|
36
|
+
|
|
37
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
38
|
+
# the sale.
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :authorization_code
|
|
41
|
+
|
|
42
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
43
|
+
# the sale.
|
|
44
|
+
# @return [AuthorizationCurrency]
|
|
45
|
+
attr_accessor :authorization_currency
|
|
46
|
+
|
|
47
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
48
|
+
# the sale.
|
|
49
|
+
# @return [AuthorizationSource]
|
|
50
|
+
attr_accessor :authorization_source
|
|
51
|
+
|
|
52
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
53
|
+
# the sale.
|
|
54
|
+
# @return [TransactionType]
|
|
55
|
+
attr_accessor :transaction_type
|
|
56
|
+
|
|
57
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
58
|
+
# the sale.
|
|
59
|
+
# @return [TransactionStatus]
|
|
60
|
+
attr_accessor :transaction_status
|
|
61
|
+
|
|
62
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
63
|
+
# the sale.
|
|
64
|
+
# @return [EntryMode]
|
|
65
|
+
attr_accessor :entry_mode
|
|
66
|
+
|
|
67
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
68
|
+
# the sale.
|
|
69
|
+
# @return [AvsResponseCode]
|
|
70
|
+
attr_accessor :avs_response_code
|
|
71
|
+
|
|
72
|
+
# The six number code from the issuing bank to the vendor that authorizes
|
|
73
|
+
# the sale.
|
|
74
|
+
# @return [CardholderId]
|
|
75
|
+
attr_accessor :cardholder_id
|
|
76
|
+
|
|
77
|
+
# Te unique order identifier indicating the transaction or event sequence.
|
|
78
|
+
# @return [String]
|
|
79
|
+
attr_accessor :sequence_number
|
|
80
|
+
|
|
81
|
+
# The ecommerce authorization identifier.
|
|
82
|
+
# @return [String]
|
|
83
|
+
attr_accessor :authorization_identifier
|
|
84
|
+
|
|
85
|
+
# The unique identifier of the purchaser associated with the transaction.
|
|
86
|
+
# @return [String]
|
|
87
|
+
attr_accessor :customer_identifier
|
|
88
|
+
|
|
89
|
+
# The merchant-designated identifier for this transaction.
|
|
90
|
+
# @return [String]
|
|
91
|
+
attr_accessor :merchant_order_identifier
|
|
92
|
+
|
|
93
|
+
# The merchant-specified identifier used to track transactions associated
|
|
94
|
+
# with specific marketing campaigns.
|
|
95
|
+
# @return [String]
|
|
96
|
+
attr_accessor :campaign
|
|
97
|
+
|
|
98
|
+
# The merchant-specified identifier used to track transactions associated
|
|
99
|
+
# with your affiliate organizations.
|
|
100
|
+
# @return [String]
|
|
101
|
+
attr_accessor :affiliate
|
|
102
|
+
|
|
103
|
+
# The merchant-specified identifier for grouping transactions by an
|
|
104
|
+
# additional transaction level id outside of affiliate or campaign.
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :merchant_grouping_identifier
|
|
107
|
+
|
|
108
|
+
# The reporting group category to which the transaction belongs.
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :report_group
|
|
111
|
+
|
|
112
|
+
# The reporting group category to which the transaction belongs.
|
|
113
|
+
# @return [Aci]
|
|
114
|
+
attr_accessor :aci
|
|
115
|
+
|
|
116
|
+
# The reporting group category to which the transaction belongs.
|
|
117
|
+
# @return [MailPhoneIndicator]
|
|
118
|
+
attr_accessor :mail_phone_indicator
|
|
119
|
+
|
|
120
|
+
# The reporting group category to which the transaction belongs.
|
|
121
|
+
# @return [OriginType]
|
|
122
|
+
attr_accessor :origin_type
|
|
123
|
+
|
|
124
|
+
# The validation code for Visa card network transactions.
|
|
125
|
+
# @return [String]
|
|
126
|
+
attr_accessor :validation_code
|
|
127
|
+
|
|
128
|
+
# The unique identifier assigned to a point-of-sale terminal for tracking
|
|
129
|
+
# transactions and managing sales data.
|
|
130
|
+
# @return [String]
|
|
131
|
+
attr_accessor :pos_register_number
|
|
132
|
+
|
|
133
|
+
# The eight-digit sequence of characters used by financial institutions to
|
|
134
|
+
# monitor which terminal is used to process a transaction.
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :terminal_number
|
|
137
|
+
|
|
138
|
+
# The key to uniquely identify a card transaction based on the ISO 8583
|
|
139
|
+
# standard.
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :reference_number
|
|
142
|
+
|
|
143
|
+
# The merchant reference or draft locator number.
|
|
144
|
+
# @return [String]
|
|
145
|
+
attr_accessor :draft_locator
|
|
146
|
+
|
|
147
|
+
# The merchant reference or draft locator number.
|
|
148
|
+
# @return [TerminalCapability]
|
|
149
|
+
attr_accessor :terminal_capability
|
|
150
|
+
|
|
151
|
+
# The date when funds or securities are delivered to complete the
|
|
152
|
+
# transaction.
|
|
153
|
+
# @return [Date]
|
|
154
|
+
attr_accessor :arrival_date
|
|
155
|
+
|
|
156
|
+
# The classification of the transaction processing method for financial
|
|
157
|
+
# reconciliation.
|
|
158
|
+
# @return [String]
|
|
159
|
+
attr_accessor :settlement_type
|
|
160
|
+
|
|
161
|
+
# Process of converting debit card transactions to signature based
|
|
162
|
+
# transactions. Possible values are True or False.
|
|
163
|
+
# @return [TrueClass | FalseClass]
|
|
164
|
+
attr_accessor :signature_debit_conversion
|
|
165
|
+
|
|
166
|
+
# The unique 15-digit identification number for the terminal.
|
|
167
|
+
# @return [String]
|
|
168
|
+
attr_accessor :terminal_id
|
|
169
|
+
|
|
170
|
+
# The location identifier or address for the physical point-of-sale device
|
|
171
|
+
# or processing equipment.
|
|
172
|
+
# @return [String]
|
|
173
|
+
attr_accessor :terminal_address
|
|
174
|
+
|
|
175
|
+
# The city where the physical point-of-sale device or processing equipment
|
|
176
|
+
# is located.
|
|
177
|
+
# @return [String]
|
|
178
|
+
attr_accessor :terminal_city
|
|
179
|
+
|
|
180
|
+
# The state where the physical point-of-sale device or processing equipment
|
|
181
|
+
# is located.
|
|
182
|
+
# @return [String]
|
|
183
|
+
attr_accessor :terminal_state
|
|
184
|
+
|
|
185
|
+
# Mechanism to resolve disputes or conflicts in settlements.
|
|
186
|
+
# @return [String]
|
|
187
|
+
attr_accessor :tie_breaker
|
|
188
|
+
|
|
189
|
+
# The amount of the previous transaction a merchant submitted to the
|
|
190
|
+
# customer's issuing bank for approval.
|
|
191
|
+
# @return [Float]
|
|
192
|
+
attr_accessor :old_authorization_amount
|
|
193
|
+
|
|
194
|
+
# The 11-byte unique identifier assigned to a group of transactions that
|
|
195
|
+
# were handled together as a single unit.
|
|
196
|
+
# @return [Integer]
|
|
197
|
+
attr_accessor :batch_number
|
|
198
|
+
|
|
199
|
+
# The amount refunded to the cardholder's account that is a small percentage
|
|
200
|
+
# of the sum spent on purchases.
|
|
201
|
+
# @return [Float]
|
|
202
|
+
attr_accessor :cashback_amount
|
|
203
|
+
|
|
204
|
+
# The additional amount given in appreciation for a service.
|
|
205
|
+
# @return [Float]
|
|
206
|
+
attr_accessor :gratuity_amount
|
|
207
|
+
|
|
208
|
+
# Indicates network id
|
|
209
|
+
# @return [String]
|
|
210
|
+
attr_accessor :network_id
|
|
211
|
+
|
|
212
|
+
# Indicates network id
|
|
213
|
+
# @return [NetworkGroup]
|
|
214
|
+
attr_accessor :network_group
|
|
215
|
+
|
|
216
|
+
# The initial justification for reauthorizing a transaction.
|
|
217
|
+
# @return [String]
|
|
218
|
+
attr_accessor :original_re_authorization_reason
|
|
219
|
+
|
|
220
|
+
# The unique reference number associated with a voucher.
|
|
221
|
+
# @return [String]
|
|
222
|
+
attr_accessor :voucher_number
|
|
223
|
+
|
|
224
|
+
# The unique reference number associated with a voucher.
|
|
225
|
+
# @return [PosConditionCode]
|
|
226
|
+
attr_accessor :pos_condition_code
|
|
227
|
+
|
|
228
|
+
# The unique identifier and the brief description.
|
|
229
|
+
# @return [CodeAndDescription]
|
|
230
|
+
attr_accessor :to_account_type
|
|
231
|
+
|
|
232
|
+
# The unique identifier and the brief description.
|
|
233
|
+
# @return [CodeAndDescription]
|
|
234
|
+
attr_accessor :from_account_type
|
|
235
|
+
|
|
236
|
+
# The amount still owed after a payment.
|
|
237
|
+
# @return [Float]
|
|
238
|
+
attr_accessor :remaining_balance
|
|
239
|
+
|
|
240
|
+
# If a financial transaction is completed and settled.
|
|
241
|
+
# @return [TrueClass | FalseClass]
|
|
242
|
+
attr_accessor :settled
|
|
243
|
+
|
|
244
|
+
# If a financial transaction is completed and settled.
|
|
245
|
+
# @return [PinLess]
|
|
246
|
+
attr_accessor :pin_less
|
|
247
|
+
|
|
248
|
+
# If a financial transaction is completed and settled.
|
|
249
|
+
# @return [AccountNameInquiry]
|
|
250
|
+
attr_accessor :account_name_inquiry
|
|
251
|
+
|
|
252
|
+
# The unique identifier associated with a specific transaction that helps in
|
|
253
|
+
# tracking and reconciling payments across different systems.
|
|
254
|
+
# @return [String]
|
|
255
|
+
attr_accessor :mastercard_transaction_link_id
|
|
256
|
+
|
|
257
|
+
# A mapping from model property names to API property names.
|
|
258
|
+
def self.names
|
|
259
|
+
@_hash = {} if @_hash.nil?
|
|
260
|
+
@_hash['transaction_id'] = 'transactionId'
|
|
261
|
+
@_hash['process_date'] = 'processDate'
|
|
262
|
+
@_hash['transaction_date_time'] = 'transactionDateTime'
|
|
263
|
+
@_hash['authorization_amount'] = 'authorizationAmount'
|
|
264
|
+
@_hash['approved_amount'] = 'approvedAmount'
|
|
265
|
+
@_hash['authorization_code'] = 'authorizationCode'
|
|
266
|
+
@_hash['authorization_currency'] = 'authorizationCurrency'
|
|
267
|
+
@_hash['authorization_source'] = 'authorizationSource'
|
|
268
|
+
@_hash['transaction_type'] = 'transactionType'
|
|
269
|
+
@_hash['transaction_status'] = 'transactionStatus'
|
|
270
|
+
@_hash['entry_mode'] = 'entryMode'
|
|
271
|
+
@_hash['avs_response_code'] = 'avsResponseCode'
|
|
272
|
+
@_hash['cardholder_id'] = 'cardholderId'
|
|
273
|
+
@_hash['sequence_number'] = 'sequenceNumber'
|
|
274
|
+
@_hash['authorization_identifier'] = 'authorizationIdentifier'
|
|
275
|
+
@_hash['customer_identifier'] = 'customerIdentifier'
|
|
276
|
+
@_hash['merchant_order_identifier'] = 'merchantOrderIdentifier'
|
|
277
|
+
@_hash['campaign'] = 'campaign'
|
|
278
|
+
@_hash['affiliate'] = 'affiliate'
|
|
279
|
+
@_hash['merchant_grouping_identifier'] = 'merchantGroupingIdentifier'
|
|
280
|
+
@_hash['report_group'] = 'reportGroup'
|
|
281
|
+
@_hash['aci'] = 'aci'
|
|
282
|
+
@_hash['mail_phone_indicator'] = 'mailPhoneIndicator'
|
|
283
|
+
@_hash['origin_type'] = 'originType'
|
|
284
|
+
@_hash['validation_code'] = 'validationCode'
|
|
285
|
+
@_hash['pos_register_number'] = 'posRegisterNumber'
|
|
286
|
+
@_hash['terminal_number'] = 'terminalNumber'
|
|
287
|
+
@_hash['reference_number'] = 'referenceNumber'
|
|
288
|
+
@_hash['draft_locator'] = 'draftLocator'
|
|
289
|
+
@_hash['terminal_capability'] = 'terminalCapability'
|
|
290
|
+
@_hash['arrival_date'] = 'arrivalDate'
|
|
291
|
+
@_hash['settlement_type'] = 'settlementType'
|
|
292
|
+
@_hash['signature_debit_conversion'] = 'signatureDebitConversion'
|
|
293
|
+
@_hash['terminal_id'] = 'terminalId'
|
|
294
|
+
@_hash['terminal_address'] = 'terminalAddress'
|
|
295
|
+
@_hash['terminal_city'] = 'terminalCity'
|
|
296
|
+
@_hash['terminal_state'] = 'terminalState'
|
|
297
|
+
@_hash['tie_breaker'] = 'tieBreaker'
|
|
298
|
+
@_hash['old_authorization_amount'] = 'oldAuthorizationAmount'
|
|
299
|
+
@_hash['batch_number'] = 'batchNumber'
|
|
300
|
+
@_hash['cashback_amount'] = 'cashbackAmount'
|
|
301
|
+
@_hash['gratuity_amount'] = 'gratuityAmount'
|
|
302
|
+
@_hash['network_id'] = 'networkId'
|
|
303
|
+
@_hash['network_group'] = 'networkGroup'
|
|
304
|
+
@_hash['original_re_authorization_reason'] =
|
|
305
|
+
'originalReAuthorizationReason'
|
|
306
|
+
@_hash['voucher_number'] = 'voucherNumber'
|
|
307
|
+
@_hash['pos_condition_code'] = 'posConditionCode'
|
|
308
|
+
@_hash['to_account_type'] = 'toAccountType'
|
|
309
|
+
@_hash['from_account_type'] = 'fromAccountType'
|
|
310
|
+
@_hash['remaining_balance'] = 'remainingBalance'
|
|
311
|
+
@_hash['settled'] = 'settled'
|
|
312
|
+
@_hash['pin_less'] = 'pinLess'
|
|
313
|
+
@_hash['account_name_inquiry'] = 'accountNameInquiry'
|
|
314
|
+
@_hash['mastercard_transaction_link_id'] = 'mastercardTransactionLinkID'
|
|
315
|
+
@_hash
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# An array for optional fields
|
|
319
|
+
def self.optionals
|
|
320
|
+
%w[
|
|
321
|
+
transaction_id
|
|
322
|
+
process_date
|
|
323
|
+
transaction_date_time
|
|
324
|
+
authorization_amount
|
|
325
|
+
approved_amount
|
|
326
|
+
authorization_code
|
|
327
|
+
authorization_currency
|
|
328
|
+
authorization_source
|
|
329
|
+
transaction_type
|
|
330
|
+
transaction_status
|
|
331
|
+
entry_mode
|
|
332
|
+
avs_response_code
|
|
333
|
+
cardholder_id
|
|
334
|
+
sequence_number
|
|
335
|
+
authorization_identifier
|
|
336
|
+
customer_identifier
|
|
337
|
+
merchant_order_identifier
|
|
338
|
+
campaign
|
|
339
|
+
affiliate
|
|
340
|
+
merchant_grouping_identifier
|
|
341
|
+
report_group
|
|
342
|
+
aci
|
|
343
|
+
mail_phone_indicator
|
|
344
|
+
origin_type
|
|
345
|
+
validation_code
|
|
346
|
+
pos_register_number
|
|
347
|
+
terminal_number
|
|
348
|
+
reference_number
|
|
349
|
+
draft_locator
|
|
350
|
+
terminal_capability
|
|
351
|
+
arrival_date
|
|
352
|
+
settlement_type
|
|
353
|
+
signature_debit_conversion
|
|
354
|
+
terminal_id
|
|
355
|
+
terminal_address
|
|
356
|
+
terminal_city
|
|
357
|
+
terminal_state
|
|
358
|
+
tie_breaker
|
|
359
|
+
old_authorization_amount
|
|
360
|
+
batch_number
|
|
361
|
+
cashback_amount
|
|
362
|
+
gratuity_amount
|
|
363
|
+
network_id
|
|
364
|
+
network_group
|
|
365
|
+
original_re_authorization_reason
|
|
366
|
+
voucher_number
|
|
367
|
+
pos_condition_code
|
|
368
|
+
to_account_type
|
|
369
|
+
from_account_type
|
|
370
|
+
remaining_balance
|
|
371
|
+
settled
|
|
372
|
+
pin_less
|
|
373
|
+
account_name_inquiry
|
|
374
|
+
mastercard_transaction_link_id
|
|
375
|
+
]
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# An array for nullable fields
|
|
379
|
+
def self.nullables
|
|
380
|
+
[]
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
def initialize(transaction_id: SKIP, process_date: SKIP,
|
|
384
|
+
transaction_date_time: SKIP, authorization_amount: SKIP,
|
|
385
|
+
approved_amount: SKIP, authorization_code: SKIP,
|
|
386
|
+
authorization_currency: SKIP, authorization_source: SKIP,
|
|
387
|
+
transaction_type: SKIP, transaction_status: SKIP,
|
|
388
|
+
entry_mode: SKIP, avs_response_code: SKIP,
|
|
389
|
+
cardholder_id: SKIP, sequence_number: SKIP,
|
|
390
|
+
authorization_identifier: SKIP, customer_identifier: SKIP,
|
|
391
|
+
merchant_order_identifier: SKIP, campaign: SKIP,
|
|
392
|
+
affiliate: SKIP, merchant_grouping_identifier: SKIP,
|
|
393
|
+
report_group: SKIP, aci: SKIP, mail_phone_indicator: SKIP,
|
|
394
|
+
origin_type: SKIP, validation_code: SKIP,
|
|
395
|
+
pos_register_number: SKIP, terminal_number: SKIP,
|
|
396
|
+
reference_number: SKIP, draft_locator: SKIP,
|
|
397
|
+
terminal_capability: SKIP, arrival_date: SKIP,
|
|
398
|
+
settlement_type: SKIP, signature_debit_conversion: SKIP,
|
|
399
|
+
terminal_id: SKIP, terminal_address: SKIP,
|
|
400
|
+
terminal_city: SKIP, terminal_state: SKIP, tie_breaker: SKIP,
|
|
401
|
+
old_authorization_amount: SKIP, batch_number: SKIP,
|
|
402
|
+
cashback_amount: SKIP, gratuity_amount: SKIP,
|
|
403
|
+
network_id: SKIP, network_group: SKIP,
|
|
404
|
+
original_re_authorization_reason: SKIP, voucher_number: SKIP,
|
|
405
|
+
pos_condition_code: SKIP, to_account_type: SKIP,
|
|
406
|
+
from_account_type: SKIP, remaining_balance: SKIP,
|
|
407
|
+
settled: SKIP, pin_less: SKIP, account_name_inquiry: SKIP,
|
|
408
|
+
mastercard_transaction_link_id: SKIP,
|
|
409
|
+
additional_properties: nil)
|
|
410
|
+
# Add additional model properties to the instance
|
|
411
|
+
additional_properties = {} if additional_properties.nil?
|
|
412
|
+
|
|
413
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
|
414
|
+
@process_date = process_date unless process_date == SKIP
|
|
415
|
+
@transaction_date_time = transaction_date_time unless transaction_date_time == SKIP
|
|
416
|
+
@authorization_amount = authorization_amount unless authorization_amount == SKIP
|
|
417
|
+
@approved_amount = approved_amount unless approved_amount == SKIP
|
|
418
|
+
@authorization_code = authorization_code unless authorization_code == SKIP
|
|
419
|
+
@authorization_currency = authorization_currency unless authorization_currency == SKIP
|
|
420
|
+
@authorization_source = authorization_source unless authorization_source == SKIP
|
|
421
|
+
@transaction_type = transaction_type unless transaction_type == SKIP
|
|
422
|
+
@transaction_status = transaction_status unless transaction_status == SKIP
|
|
423
|
+
@entry_mode = entry_mode unless entry_mode == SKIP
|
|
424
|
+
@avs_response_code = avs_response_code unless avs_response_code == SKIP
|
|
425
|
+
@cardholder_id = cardholder_id unless cardholder_id == SKIP
|
|
426
|
+
@sequence_number = sequence_number unless sequence_number == SKIP
|
|
427
|
+
@authorization_identifier = authorization_identifier unless authorization_identifier == SKIP
|
|
428
|
+
@customer_identifier = customer_identifier unless customer_identifier == SKIP
|
|
429
|
+
unless merchant_order_identifier == SKIP
|
|
430
|
+
@merchant_order_identifier =
|
|
431
|
+
merchant_order_identifier
|
|
432
|
+
end
|
|
433
|
+
@campaign = campaign unless campaign == SKIP
|
|
434
|
+
@affiliate = affiliate unless affiliate == SKIP
|
|
435
|
+
unless merchant_grouping_identifier == SKIP
|
|
436
|
+
@merchant_grouping_identifier =
|
|
437
|
+
merchant_grouping_identifier
|
|
438
|
+
end
|
|
439
|
+
@report_group = report_group unless report_group == SKIP
|
|
440
|
+
@aci = aci unless aci == SKIP
|
|
441
|
+
@mail_phone_indicator = mail_phone_indicator unless mail_phone_indicator == SKIP
|
|
442
|
+
@origin_type = origin_type unless origin_type == SKIP
|
|
443
|
+
@validation_code = validation_code unless validation_code == SKIP
|
|
444
|
+
@pos_register_number = pos_register_number unless pos_register_number == SKIP
|
|
445
|
+
@terminal_number = terminal_number unless terminal_number == SKIP
|
|
446
|
+
@reference_number = reference_number unless reference_number == SKIP
|
|
447
|
+
@draft_locator = draft_locator unless draft_locator == SKIP
|
|
448
|
+
@terminal_capability = terminal_capability unless terminal_capability == SKIP
|
|
449
|
+
@arrival_date = arrival_date unless arrival_date == SKIP
|
|
450
|
+
@settlement_type = settlement_type unless settlement_type == SKIP
|
|
451
|
+
unless signature_debit_conversion == SKIP
|
|
452
|
+
@signature_debit_conversion =
|
|
453
|
+
signature_debit_conversion
|
|
454
|
+
end
|
|
455
|
+
@terminal_id = terminal_id unless terminal_id == SKIP
|
|
456
|
+
@terminal_address = terminal_address unless terminal_address == SKIP
|
|
457
|
+
@terminal_city = terminal_city unless terminal_city == SKIP
|
|
458
|
+
@terminal_state = terminal_state unless terminal_state == SKIP
|
|
459
|
+
@tie_breaker = tie_breaker unless tie_breaker == SKIP
|
|
460
|
+
@old_authorization_amount = old_authorization_amount unless old_authorization_amount == SKIP
|
|
461
|
+
@batch_number = batch_number unless batch_number == SKIP
|
|
462
|
+
@cashback_amount = cashback_amount unless cashback_amount == SKIP
|
|
463
|
+
@gratuity_amount = gratuity_amount unless gratuity_amount == SKIP
|
|
464
|
+
@network_id = network_id unless network_id == SKIP
|
|
465
|
+
@network_group = network_group unless network_group == SKIP
|
|
466
|
+
unless original_re_authorization_reason == SKIP
|
|
467
|
+
@original_re_authorization_reason =
|
|
468
|
+
original_re_authorization_reason
|
|
469
|
+
end
|
|
470
|
+
@voucher_number = voucher_number unless voucher_number == SKIP
|
|
471
|
+
@pos_condition_code = pos_condition_code unless pos_condition_code == SKIP
|
|
472
|
+
@to_account_type = to_account_type unless to_account_type == SKIP
|
|
473
|
+
@from_account_type = from_account_type unless from_account_type == SKIP
|
|
474
|
+
@remaining_balance = remaining_balance unless remaining_balance == SKIP
|
|
475
|
+
@settled = settled unless settled == SKIP
|
|
476
|
+
@pin_less = pin_less unless pin_less == SKIP
|
|
477
|
+
@account_name_inquiry = account_name_inquiry unless account_name_inquiry == SKIP
|
|
478
|
+
unless mastercard_transaction_link_id == SKIP
|
|
479
|
+
@mastercard_transaction_link_id =
|
|
480
|
+
mastercard_transaction_link_id
|
|
481
|
+
end
|
|
482
|
+
@additional_properties = additional_properties
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# Creates an instance of the object from a hash.
|
|
486
|
+
def self.from_hash(hash)
|
|
487
|
+
return nil unless hash
|
|
488
|
+
|
|
489
|
+
# Extract variables from the hash.
|
|
490
|
+
transaction_id = hash.key?('transactionId') ? hash['transactionId'] : SKIP
|
|
491
|
+
process_date = hash.key?('processDate') ? hash['processDate'] : SKIP
|
|
492
|
+
transaction_date_time = if hash.key?('transactionDateTime')
|
|
493
|
+
(DateTimeHelper.from_rfc3339(hash['transactionDateTime']) if hash['transactionDateTime'])
|
|
494
|
+
else
|
|
495
|
+
SKIP
|
|
496
|
+
end
|
|
497
|
+
authorization_amount =
|
|
498
|
+
hash.key?('authorizationAmount') ? hash['authorizationAmount'] : SKIP
|
|
499
|
+
approved_amount =
|
|
500
|
+
hash.key?('approvedAmount') ? hash['approvedAmount'] : SKIP
|
|
501
|
+
authorization_code =
|
|
502
|
+
hash.key?('authorizationCode') ? hash['authorizationCode'] : SKIP
|
|
503
|
+
authorization_currency = AuthorizationCurrency.from_hash(hash['authorizationCurrency']) if
|
|
504
|
+
hash['authorizationCurrency']
|
|
505
|
+
authorization_source = AuthorizationSource.from_hash(hash['authorizationSource']) if
|
|
506
|
+
hash['authorizationSource']
|
|
507
|
+
transaction_type = TransactionType.from_hash(hash['transactionType']) if
|
|
508
|
+
hash['transactionType']
|
|
509
|
+
transaction_status = TransactionStatus.from_hash(hash['transactionStatus']) if
|
|
510
|
+
hash['transactionStatus']
|
|
511
|
+
entry_mode = EntryMode.from_hash(hash['entryMode']) if hash['entryMode']
|
|
512
|
+
avs_response_code = AvsResponseCode.from_hash(hash['avsResponseCode']) if
|
|
513
|
+
hash['avsResponseCode']
|
|
514
|
+
cardholder_id = CardholderId.from_hash(hash['cardholderId']) if hash['cardholderId']
|
|
515
|
+
sequence_number =
|
|
516
|
+
hash.key?('sequenceNumber') ? hash['sequenceNumber'] : SKIP
|
|
517
|
+
authorization_identifier =
|
|
518
|
+
hash.key?('authorizationIdentifier') ? hash['authorizationIdentifier'] : SKIP
|
|
519
|
+
customer_identifier =
|
|
520
|
+
hash.key?('customerIdentifier') ? hash['customerIdentifier'] : SKIP
|
|
521
|
+
merchant_order_identifier =
|
|
522
|
+
hash.key?('merchantOrderIdentifier') ? hash['merchantOrderIdentifier'] : SKIP
|
|
523
|
+
campaign = hash.key?('campaign') ? hash['campaign'] : SKIP
|
|
524
|
+
affiliate = hash.key?('affiliate') ? hash['affiliate'] : SKIP
|
|
525
|
+
merchant_grouping_identifier =
|
|
526
|
+
hash.key?('merchantGroupingIdentifier') ? hash['merchantGroupingIdentifier'] : SKIP
|
|
527
|
+
report_group = hash.key?('reportGroup') ? hash['reportGroup'] : SKIP
|
|
528
|
+
aci = Aci.from_hash(hash['aci']) if hash['aci']
|
|
529
|
+
mail_phone_indicator = MailPhoneIndicator.from_hash(hash['mailPhoneIndicator']) if
|
|
530
|
+
hash['mailPhoneIndicator']
|
|
531
|
+
origin_type = OriginType.from_hash(hash['originType']) if hash['originType']
|
|
532
|
+
validation_code =
|
|
533
|
+
hash.key?('validationCode') ? hash['validationCode'] : SKIP
|
|
534
|
+
pos_register_number =
|
|
535
|
+
hash.key?('posRegisterNumber') ? hash['posRegisterNumber'] : SKIP
|
|
536
|
+
terminal_number =
|
|
537
|
+
hash.key?('terminalNumber') ? hash['terminalNumber'] : SKIP
|
|
538
|
+
reference_number =
|
|
539
|
+
hash.key?('referenceNumber') ? hash['referenceNumber'] : SKIP
|
|
540
|
+
draft_locator = hash.key?('draftLocator') ? hash['draftLocator'] : SKIP
|
|
541
|
+
terminal_capability = TerminalCapability.from_hash(hash['terminalCapability']) if
|
|
542
|
+
hash['terminalCapability']
|
|
543
|
+
arrival_date = hash.key?('arrivalDate') ? hash['arrivalDate'] : SKIP
|
|
544
|
+
settlement_type =
|
|
545
|
+
hash.key?('settlementType') ? hash['settlementType'] : SKIP
|
|
546
|
+
signature_debit_conversion =
|
|
547
|
+
hash.key?('signatureDebitConversion') ? hash['signatureDebitConversion'] : SKIP
|
|
548
|
+
terminal_id = hash.key?('terminalId') ? hash['terminalId'] : SKIP
|
|
549
|
+
terminal_address =
|
|
550
|
+
hash.key?('terminalAddress') ? hash['terminalAddress'] : SKIP
|
|
551
|
+
terminal_city = hash.key?('terminalCity') ? hash['terminalCity'] : SKIP
|
|
552
|
+
terminal_state = hash.key?('terminalState') ? hash['terminalState'] : SKIP
|
|
553
|
+
tie_breaker = hash.key?('tieBreaker') ? hash['tieBreaker'] : SKIP
|
|
554
|
+
old_authorization_amount =
|
|
555
|
+
hash.key?('oldAuthorizationAmount') ? hash['oldAuthorizationAmount'] : SKIP
|
|
556
|
+
batch_number = hash.key?('batchNumber') ? hash['batchNumber'] : SKIP
|
|
557
|
+
cashback_amount =
|
|
558
|
+
hash.key?('cashbackAmount') ? hash['cashbackAmount'] : SKIP
|
|
559
|
+
gratuity_amount =
|
|
560
|
+
hash.key?('gratuityAmount') ? hash['gratuityAmount'] : SKIP
|
|
561
|
+
network_id = hash.key?('networkId') ? hash['networkId'] : SKIP
|
|
562
|
+
network_group = NetworkGroup.from_hash(hash['networkGroup']) if hash['networkGroup']
|
|
563
|
+
original_re_authorization_reason =
|
|
564
|
+
hash.key?('originalReAuthorizationReason') ? hash['originalReAuthorizationReason'] : SKIP
|
|
565
|
+
voucher_number = hash.key?('voucherNumber') ? hash['voucherNumber'] : SKIP
|
|
566
|
+
pos_condition_code = PosConditionCode.from_hash(hash['posConditionCode']) if
|
|
567
|
+
hash['posConditionCode']
|
|
568
|
+
to_account_type = CodeAndDescription.from_hash(hash['toAccountType']) if
|
|
569
|
+
hash['toAccountType']
|
|
570
|
+
from_account_type = CodeAndDescription.from_hash(hash['fromAccountType']) if
|
|
571
|
+
hash['fromAccountType']
|
|
572
|
+
remaining_balance =
|
|
573
|
+
hash.key?('remainingBalance') ? hash['remainingBalance'] : SKIP
|
|
574
|
+
settled = hash.key?('settled') ? hash['settled'] : SKIP
|
|
575
|
+
pin_less = PinLess.from_hash(hash['pinLess']) if hash['pinLess']
|
|
576
|
+
account_name_inquiry = AccountNameInquiry.from_hash(hash['accountNameInquiry']) if
|
|
577
|
+
hash['accountNameInquiry']
|
|
578
|
+
mastercard_transaction_link_id =
|
|
579
|
+
hash.key?('mastercardTransactionLinkID') ? hash['mastercardTransactionLinkID'] : SKIP
|
|
580
|
+
|
|
581
|
+
# Create a new hash for additional properties, removing known properties.
|
|
582
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
583
|
+
|
|
584
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
585
|
+
new_hash, proc { |value| value }
|
|
586
|
+
)
|
|
587
|
+
|
|
588
|
+
# Create object from extracted values.
|
|
589
|
+
TransactionDetails.new(transaction_id: transaction_id,
|
|
590
|
+
process_date: process_date,
|
|
591
|
+
transaction_date_time: transaction_date_time,
|
|
592
|
+
authorization_amount: authorization_amount,
|
|
593
|
+
approved_amount: approved_amount,
|
|
594
|
+
authorization_code: authorization_code,
|
|
595
|
+
authorization_currency: authorization_currency,
|
|
596
|
+
authorization_source: authorization_source,
|
|
597
|
+
transaction_type: transaction_type,
|
|
598
|
+
transaction_status: transaction_status,
|
|
599
|
+
entry_mode: entry_mode,
|
|
600
|
+
avs_response_code: avs_response_code,
|
|
601
|
+
cardholder_id: cardholder_id,
|
|
602
|
+
sequence_number: sequence_number,
|
|
603
|
+
authorization_identifier: authorization_identifier,
|
|
604
|
+
customer_identifier: customer_identifier,
|
|
605
|
+
merchant_order_identifier: merchant_order_identifier,
|
|
606
|
+
campaign: campaign,
|
|
607
|
+
affiliate: affiliate,
|
|
608
|
+
merchant_grouping_identifier: merchant_grouping_identifier,
|
|
609
|
+
report_group: report_group,
|
|
610
|
+
aci: aci,
|
|
611
|
+
mail_phone_indicator: mail_phone_indicator,
|
|
612
|
+
origin_type: origin_type,
|
|
613
|
+
validation_code: validation_code,
|
|
614
|
+
pos_register_number: pos_register_number,
|
|
615
|
+
terminal_number: terminal_number,
|
|
616
|
+
reference_number: reference_number,
|
|
617
|
+
draft_locator: draft_locator,
|
|
618
|
+
terminal_capability: terminal_capability,
|
|
619
|
+
arrival_date: arrival_date,
|
|
620
|
+
settlement_type: settlement_type,
|
|
621
|
+
signature_debit_conversion: signature_debit_conversion,
|
|
622
|
+
terminal_id: terminal_id,
|
|
623
|
+
terminal_address: terminal_address,
|
|
624
|
+
terminal_city: terminal_city,
|
|
625
|
+
terminal_state: terminal_state,
|
|
626
|
+
tie_breaker: tie_breaker,
|
|
627
|
+
old_authorization_amount: old_authorization_amount,
|
|
628
|
+
batch_number: batch_number,
|
|
629
|
+
cashback_amount: cashback_amount,
|
|
630
|
+
gratuity_amount: gratuity_amount,
|
|
631
|
+
network_id: network_id,
|
|
632
|
+
network_group: network_group,
|
|
633
|
+
original_re_authorization_reason: original_re_authorization_reason,
|
|
634
|
+
voucher_number: voucher_number,
|
|
635
|
+
pos_condition_code: pos_condition_code,
|
|
636
|
+
to_account_type: to_account_type,
|
|
637
|
+
from_account_type: from_account_type,
|
|
638
|
+
remaining_balance: remaining_balance,
|
|
639
|
+
settled: settled,
|
|
640
|
+
pin_less: pin_less,
|
|
641
|
+
account_name_inquiry: account_name_inquiry,
|
|
642
|
+
mastercard_transaction_link_id: mastercard_transaction_link_id,
|
|
643
|
+
additional_properties: additional_properties)
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
def to_custom_transaction_date_time
|
|
647
|
+
DateTimeHelper.to_rfc3339(transaction_date_time)
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# Provides a human-readable string representation of the object.
|
|
651
|
+
def to_s
|
|
652
|
+
class_name = self.class.name.split('::').last
|
|
653
|
+
"<#{class_name} transaction_id: #{@transaction_id}, process_date: #{@process_date},"\
|
|
654
|
+
" transaction_date_time: #{@transaction_date_time}, authorization_amount:"\
|
|
655
|
+
" #{@authorization_amount}, approved_amount: #{@approved_amount}, authorization_code:"\
|
|
656
|
+
" #{@authorization_code}, authorization_currency: #{@authorization_currency},"\
|
|
657
|
+
" authorization_source: #{@authorization_source}, transaction_type: #{@transaction_type},"\
|
|
658
|
+
" transaction_status: #{@transaction_status}, entry_mode: #{@entry_mode}, avs_response_code:"\
|
|
659
|
+
" #{@avs_response_code}, cardholder_id: #{@cardholder_id}, sequence_number:"\
|
|
660
|
+
" #{@sequence_number}, authorization_identifier: #{@authorization_identifier},"\
|
|
661
|
+
" customer_identifier: #{@customer_identifier}, merchant_order_identifier:"\
|
|
662
|
+
" #{@merchant_order_identifier}, campaign: #{@campaign}, affiliate: #{@affiliate},"\
|
|
663
|
+
" merchant_grouping_identifier: #{@merchant_grouping_identifier}, report_group:"\
|
|
664
|
+
" #{@report_group}, aci: #{@aci}, mail_phone_indicator: #{@mail_phone_indicator},"\
|
|
665
|
+
" origin_type: #{@origin_type}, validation_code: #{@validation_code}, pos_register_number:"\
|
|
666
|
+
" #{@pos_register_number}, terminal_number: #{@terminal_number}, reference_number:"\
|
|
667
|
+
" #{@reference_number}, draft_locator: #{@draft_locator}, terminal_capability:"\
|
|
668
|
+
" #{@terminal_capability}, arrival_date: #{@arrival_date}, settlement_type:"\
|
|
669
|
+
" #{@settlement_type}, signature_debit_conversion: #{@signature_debit_conversion},"\
|
|
670
|
+
" terminal_id: #{@terminal_id}, terminal_address: #{@terminal_address}, terminal_city:"\
|
|
671
|
+
" #{@terminal_city}, terminal_state: #{@terminal_state}, tie_breaker: #{@tie_breaker},"\
|
|
672
|
+
" old_authorization_amount: #{@old_authorization_amount}, batch_number: #{@batch_number},"\
|
|
673
|
+
" cashback_amount: #{@cashback_amount}, gratuity_amount: #{@gratuity_amount}, network_id:"\
|
|
674
|
+
" #{@network_id}, network_group: #{@network_group}, original_re_authorization_reason:"\
|
|
675
|
+
" #{@original_re_authorization_reason}, voucher_number: #{@voucher_number},"\
|
|
676
|
+
" pos_condition_code: #{@pos_condition_code}, to_account_type: #{@to_account_type},"\
|
|
677
|
+
" from_account_type: #{@from_account_type}, remaining_balance: #{@remaining_balance},"\
|
|
678
|
+
" settled: #{@settled}, pin_less: #{@pin_less}, account_name_inquiry:"\
|
|
679
|
+
" #{@account_name_inquiry}, mastercard_transaction_link_id:"\
|
|
680
|
+
" #{@mastercard_transaction_link_id}, additional_properties: #{@additional_properties}>"
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
684
|
+
def inspect
|
|
685
|
+
class_name = self.class.name.split('::').last
|
|
686
|
+
"<#{class_name} transaction_id: #{@transaction_id.inspect}, process_date:"\
|
|
687
|
+
" #{@process_date.inspect}, transaction_date_time: #{@transaction_date_time.inspect},"\
|
|
688
|
+
" authorization_amount: #{@authorization_amount.inspect}, approved_amount:"\
|
|
689
|
+
" #{@approved_amount.inspect}, authorization_code: #{@authorization_code.inspect},"\
|
|
690
|
+
" authorization_currency: #{@authorization_currency.inspect}, authorization_source:"\
|
|
691
|
+
" #{@authorization_source.inspect}, transaction_type: #{@transaction_type.inspect},"\
|
|
692
|
+
" transaction_status: #{@transaction_status.inspect}, entry_mode: #{@entry_mode.inspect},"\
|
|
693
|
+
" avs_response_code: #{@avs_response_code.inspect}, cardholder_id:"\
|
|
694
|
+
" #{@cardholder_id.inspect}, sequence_number: #{@sequence_number.inspect},"\
|
|
695
|
+
" authorization_identifier: #{@authorization_identifier.inspect}, customer_identifier:"\
|
|
696
|
+
" #{@customer_identifier.inspect}, merchant_order_identifier:"\
|
|
697
|
+
" #{@merchant_order_identifier.inspect}, campaign: #{@campaign.inspect}, affiliate:"\
|
|
698
|
+
" #{@affiliate.inspect}, merchant_grouping_identifier:"\
|
|
699
|
+
" #{@merchant_grouping_identifier.inspect}, report_group: #{@report_group.inspect}, aci:"\
|
|
700
|
+
" #{@aci.inspect}, mail_phone_indicator: #{@mail_phone_indicator.inspect}, origin_type:"\
|
|
701
|
+
" #{@origin_type.inspect}, validation_code: #{@validation_code.inspect},"\
|
|
702
|
+
" pos_register_number: #{@pos_register_number.inspect}, terminal_number:"\
|
|
703
|
+
" #{@terminal_number.inspect}, reference_number: #{@reference_number.inspect},"\
|
|
704
|
+
" draft_locator: #{@draft_locator.inspect}, terminal_capability:"\
|
|
705
|
+
" #{@terminal_capability.inspect}, arrival_date: #{@arrival_date.inspect}, settlement_type:"\
|
|
706
|
+
" #{@settlement_type.inspect}, signature_debit_conversion:"\
|
|
707
|
+
" #{@signature_debit_conversion.inspect}, terminal_id: #{@terminal_id.inspect},"\
|
|
708
|
+
" terminal_address: #{@terminal_address.inspect}, terminal_city: #{@terminal_city.inspect},"\
|
|
709
|
+
" terminal_state: #{@terminal_state.inspect}, tie_breaker: #{@tie_breaker.inspect},"\
|
|
710
|
+
" old_authorization_amount: #{@old_authorization_amount.inspect}, batch_number:"\
|
|
711
|
+
" #{@batch_number.inspect}, cashback_amount: #{@cashback_amount.inspect}, gratuity_amount:"\
|
|
712
|
+
" #{@gratuity_amount.inspect}, network_id: #{@network_id.inspect}, network_group:"\
|
|
713
|
+
" #{@network_group.inspect}, original_re_authorization_reason:"\
|
|
714
|
+
" #{@original_re_authorization_reason.inspect}, voucher_number: #{@voucher_number.inspect},"\
|
|
715
|
+
" pos_condition_code: #{@pos_condition_code.inspect}, to_account_type:"\
|
|
716
|
+
" #{@to_account_type.inspect}, from_account_type: #{@from_account_type.inspect},"\
|
|
717
|
+
" remaining_balance: #{@remaining_balance.inspect}, settled: #{@settled.inspect}, pin_less:"\
|
|
718
|
+
" #{@pin_less.inspect}, account_name_inquiry: #{@account_name_inquiry.inspect},"\
|
|
719
|
+
" mastercard_transaction_link_id: #{@mastercard_transaction_link_id.inspect},"\
|
|
720
|
+
" additional_properties: #{@additional_properties}>"
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
end
|