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,435 @@
|
|
|
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 CreditTransactionDetails < 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
|
+
# A mapping from model property names to API property names.
|
|
152
|
+
def self.names
|
|
153
|
+
@_hash = {} if @_hash.nil?
|
|
154
|
+
@_hash['transaction_id'] = 'transactionId'
|
|
155
|
+
@_hash['process_date'] = 'processDate'
|
|
156
|
+
@_hash['transaction_date_time'] = 'transactionDateTime'
|
|
157
|
+
@_hash['authorization_amount'] = 'authorizationAmount'
|
|
158
|
+
@_hash['approved_amount'] = 'approvedAmount'
|
|
159
|
+
@_hash['authorization_code'] = 'authorizationCode'
|
|
160
|
+
@_hash['authorization_currency'] = 'authorizationCurrency'
|
|
161
|
+
@_hash['authorization_source'] = 'authorizationSource'
|
|
162
|
+
@_hash['transaction_type'] = 'transactionType'
|
|
163
|
+
@_hash['transaction_status'] = 'transactionStatus'
|
|
164
|
+
@_hash['entry_mode'] = 'entryMode'
|
|
165
|
+
@_hash['avs_response_code'] = 'avsResponseCode'
|
|
166
|
+
@_hash['cardholder_id'] = 'cardholderId'
|
|
167
|
+
@_hash['sequence_number'] = 'sequenceNumber'
|
|
168
|
+
@_hash['authorization_identifier'] = 'authorizationIdentifier'
|
|
169
|
+
@_hash['customer_identifier'] = 'customerIdentifier'
|
|
170
|
+
@_hash['merchant_order_identifier'] = 'merchantOrderIdentifier'
|
|
171
|
+
@_hash['campaign'] = 'campaign'
|
|
172
|
+
@_hash['affiliate'] = 'affiliate'
|
|
173
|
+
@_hash['merchant_grouping_identifier'] = 'merchantGroupingIdentifier'
|
|
174
|
+
@_hash['report_group'] = 'reportGroup'
|
|
175
|
+
@_hash['aci'] = 'aci'
|
|
176
|
+
@_hash['mail_phone_indicator'] = 'mailPhoneIndicator'
|
|
177
|
+
@_hash['origin_type'] = 'originType'
|
|
178
|
+
@_hash['validation_code'] = 'validationCode'
|
|
179
|
+
@_hash['pos_register_number'] = 'posRegisterNumber'
|
|
180
|
+
@_hash['terminal_number'] = 'terminalNumber'
|
|
181
|
+
@_hash['reference_number'] = 'referenceNumber'
|
|
182
|
+
@_hash['draft_locator'] = 'draftLocator'
|
|
183
|
+
@_hash['terminal_capability'] = 'terminalCapability'
|
|
184
|
+
@_hash
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# An array for optional fields
|
|
188
|
+
def self.optionals
|
|
189
|
+
%w[
|
|
190
|
+
transaction_id
|
|
191
|
+
process_date
|
|
192
|
+
transaction_date_time
|
|
193
|
+
authorization_amount
|
|
194
|
+
approved_amount
|
|
195
|
+
authorization_code
|
|
196
|
+
authorization_currency
|
|
197
|
+
authorization_source
|
|
198
|
+
transaction_type
|
|
199
|
+
transaction_status
|
|
200
|
+
entry_mode
|
|
201
|
+
avs_response_code
|
|
202
|
+
cardholder_id
|
|
203
|
+
sequence_number
|
|
204
|
+
authorization_identifier
|
|
205
|
+
customer_identifier
|
|
206
|
+
merchant_order_identifier
|
|
207
|
+
campaign
|
|
208
|
+
affiliate
|
|
209
|
+
merchant_grouping_identifier
|
|
210
|
+
report_group
|
|
211
|
+
aci
|
|
212
|
+
mail_phone_indicator
|
|
213
|
+
origin_type
|
|
214
|
+
validation_code
|
|
215
|
+
pos_register_number
|
|
216
|
+
terminal_number
|
|
217
|
+
reference_number
|
|
218
|
+
draft_locator
|
|
219
|
+
terminal_capability
|
|
220
|
+
]
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# An array for nullable fields
|
|
224
|
+
def self.nullables
|
|
225
|
+
[]
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
def initialize(transaction_id: SKIP, process_date: SKIP,
|
|
229
|
+
transaction_date_time: SKIP, authorization_amount: SKIP,
|
|
230
|
+
approved_amount: SKIP, authorization_code: SKIP,
|
|
231
|
+
authorization_currency: SKIP, authorization_source: SKIP,
|
|
232
|
+
transaction_type: SKIP, transaction_status: SKIP,
|
|
233
|
+
entry_mode: SKIP, avs_response_code: SKIP,
|
|
234
|
+
cardholder_id: SKIP, sequence_number: SKIP,
|
|
235
|
+
authorization_identifier: SKIP, customer_identifier: SKIP,
|
|
236
|
+
merchant_order_identifier: SKIP, campaign: SKIP,
|
|
237
|
+
affiliate: SKIP, merchant_grouping_identifier: SKIP,
|
|
238
|
+
report_group: SKIP, aci: SKIP, mail_phone_indicator: SKIP,
|
|
239
|
+
origin_type: SKIP, validation_code: SKIP,
|
|
240
|
+
pos_register_number: SKIP, terminal_number: SKIP,
|
|
241
|
+
reference_number: SKIP, draft_locator: SKIP,
|
|
242
|
+
terminal_capability: SKIP, additional_properties: nil)
|
|
243
|
+
# Add additional model properties to the instance
|
|
244
|
+
additional_properties = {} if additional_properties.nil?
|
|
245
|
+
|
|
246
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
|
247
|
+
@process_date = process_date unless process_date == SKIP
|
|
248
|
+
@transaction_date_time = transaction_date_time unless transaction_date_time == SKIP
|
|
249
|
+
@authorization_amount = authorization_amount unless authorization_amount == SKIP
|
|
250
|
+
@approved_amount = approved_amount unless approved_amount == SKIP
|
|
251
|
+
@authorization_code = authorization_code unless authorization_code == SKIP
|
|
252
|
+
@authorization_currency = authorization_currency unless authorization_currency == SKIP
|
|
253
|
+
@authorization_source = authorization_source unless authorization_source == SKIP
|
|
254
|
+
@transaction_type = transaction_type unless transaction_type == SKIP
|
|
255
|
+
@transaction_status = transaction_status unless transaction_status == SKIP
|
|
256
|
+
@entry_mode = entry_mode unless entry_mode == SKIP
|
|
257
|
+
@avs_response_code = avs_response_code unless avs_response_code == SKIP
|
|
258
|
+
@cardholder_id = cardholder_id unless cardholder_id == SKIP
|
|
259
|
+
@sequence_number = sequence_number unless sequence_number == SKIP
|
|
260
|
+
@authorization_identifier = authorization_identifier unless authorization_identifier == SKIP
|
|
261
|
+
@customer_identifier = customer_identifier unless customer_identifier == SKIP
|
|
262
|
+
unless merchant_order_identifier == SKIP
|
|
263
|
+
@merchant_order_identifier =
|
|
264
|
+
merchant_order_identifier
|
|
265
|
+
end
|
|
266
|
+
@campaign = campaign unless campaign == SKIP
|
|
267
|
+
@affiliate = affiliate unless affiliate == SKIP
|
|
268
|
+
unless merchant_grouping_identifier == SKIP
|
|
269
|
+
@merchant_grouping_identifier =
|
|
270
|
+
merchant_grouping_identifier
|
|
271
|
+
end
|
|
272
|
+
@report_group = report_group unless report_group == SKIP
|
|
273
|
+
@aci = aci unless aci == SKIP
|
|
274
|
+
@mail_phone_indicator = mail_phone_indicator unless mail_phone_indicator == SKIP
|
|
275
|
+
@origin_type = origin_type unless origin_type == SKIP
|
|
276
|
+
@validation_code = validation_code unless validation_code == SKIP
|
|
277
|
+
@pos_register_number = pos_register_number unless pos_register_number == SKIP
|
|
278
|
+
@terminal_number = terminal_number unless terminal_number == SKIP
|
|
279
|
+
@reference_number = reference_number unless reference_number == SKIP
|
|
280
|
+
@draft_locator = draft_locator unless draft_locator == SKIP
|
|
281
|
+
@terminal_capability = terminal_capability unless terminal_capability == SKIP
|
|
282
|
+
@additional_properties = additional_properties
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Creates an instance of the object from a hash.
|
|
286
|
+
def self.from_hash(hash)
|
|
287
|
+
return nil unless hash
|
|
288
|
+
|
|
289
|
+
# Extract variables from the hash.
|
|
290
|
+
transaction_id = hash.key?('transactionId') ? hash['transactionId'] : SKIP
|
|
291
|
+
process_date = hash.key?('processDate') ? hash['processDate'] : SKIP
|
|
292
|
+
transaction_date_time = if hash.key?('transactionDateTime')
|
|
293
|
+
(DateTimeHelper.from_rfc3339(hash['transactionDateTime']) if hash['transactionDateTime'])
|
|
294
|
+
else
|
|
295
|
+
SKIP
|
|
296
|
+
end
|
|
297
|
+
authorization_amount =
|
|
298
|
+
hash.key?('authorizationAmount') ? hash['authorizationAmount'] : SKIP
|
|
299
|
+
approved_amount =
|
|
300
|
+
hash.key?('approvedAmount') ? hash['approvedAmount'] : SKIP
|
|
301
|
+
authorization_code =
|
|
302
|
+
hash.key?('authorizationCode') ? hash['authorizationCode'] : SKIP
|
|
303
|
+
authorization_currency = AuthorizationCurrency.from_hash(hash['authorizationCurrency']) if
|
|
304
|
+
hash['authorizationCurrency']
|
|
305
|
+
authorization_source = AuthorizationSource.from_hash(hash['authorizationSource']) if
|
|
306
|
+
hash['authorizationSource']
|
|
307
|
+
transaction_type = TransactionType.from_hash(hash['transactionType']) if
|
|
308
|
+
hash['transactionType']
|
|
309
|
+
transaction_status = TransactionStatus.from_hash(hash['transactionStatus']) if
|
|
310
|
+
hash['transactionStatus']
|
|
311
|
+
entry_mode = EntryMode.from_hash(hash['entryMode']) if hash['entryMode']
|
|
312
|
+
avs_response_code = AvsResponseCode.from_hash(hash['avsResponseCode']) if
|
|
313
|
+
hash['avsResponseCode']
|
|
314
|
+
cardholder_id = CardholderId.from_hash(hash['cardholderId']) if hash['cardholderId']
|
|
315
|
+
sequence_number =
|
|
316
|
+
hash.key?('sequenceNumber') ? hash['sequenceNumber'] : SKIP
|
|
317
|
+
authorization_identifier =
|
|
318
|
+
hash.key?('authorizationIdentifier') ? hash['authorizationIdentifier'] : SKIP
|
|
319
|
+
customer_identifier =
|
|
320
|
+
hash.key?('customerIdentifier') ? hash['customerIdentifier'] : SKIP
|
|
321
|
+
merchant_order_identifier =
|
|
322
|
+
hash.key?('merchantOrderIdentifier') ? hash['merchantOrderIdentifier'] : SKIP
|
|
323
|
+
campaign = hash.key?('campaign') ? hash['campaign'] : SKIP
|
|
324
|
+
affiliate = hash.key?('affiliate') ? hash['affiliate'] : SKIP
|
|
325
|
+
merchant_grouping_identifier =
|
|
326
|
+
hash.key?('merchantGroupingIdentifier') ? hash['merchantGroupingIdentifier'] : SKIP
|
|
327
|
+
report_group = hash.key?('reportGroup') ? hash['reportGroup'] : SKIP
|
|
328
|
+
aci = Aci.from_hash(hash['aci']) if hash['aci']
|
|
329
|
+
mail_phone_indicator = MailPhoneIndicator.from_hash(hash['mailPhoneIndicator']) if
|
|
330
|
+
hash['mailPhoneIndicator']
|
|
331
|
+
origin_type = OriginType.from_hash(hash['originType']) if hash['originType']
|
|
332
|
+
validation_code =
|
|
333
|
+
hash.key?('validationCode') ? hash['validationCode'] : SKIP
|
|
334
|
+
pos_register_number =
|
|
335
|
+
hash.key?('posRegisterNumber') ? hash['posRegisterNumber'] : SKIP
|
|
336
|
+
terminal_number =
|
|
337
|
+
hash.key?('terminalNumber') ? hash['terminalNumber'] : SKIP
|
|
338
|
+
reference_number =
|
|
339
|
+
hash.key?('referenceNumber') ? hash['referenceNumber'] : SKIP
|
|
340
|
+
draft_locator = hash.key?('draftLocator') ? hash['draftLocator'] : SKIP
|
|
341
|
+
terminal_capability = TerminalCapability.from_hash(hash['terminalCapability']) if
|
|
342
|
+
hash['terminalCapability']
|
|
343
|
+
|
|
344
|
+
# Create a new hash for additional properties, removing known properties.
|
|
345
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
346
|
+
|
|
347
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
348
|
+
new_hash, proc { |value| value }
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
# Create object from extracted values.
|
|
352
|
+
CreditTransactionDetails.new(transaction_id: transaction_id,
|
|
353
|
+
process_date: process_date,
|
|
354
|
+
transaction_date_time: transaction_date_time,
|
|
355
|
+
authorization_amount: authorization_amount,
|
|
356
|
+
approved_amount: approved_amount,
|
|
357
|
+
authorization_code: authorization_code,
|
|
358
|
+
authorization_currency: authorization_currency,
|
|
359
|
+
authorization_source: authorization_source,
|
|
360
|
+
transaction_type: transaction_type,
|
|
361
|
+
transaction_status: transaction_status,
|
|
362
|
+
entry_mode: entry_mode,
|
|
363
|
+
avs_response_code: avs_response_code,
|
|
364
|
+
cardholder_id: cardholder_id,
|
|
365
|
+
sequence_number: sequence_number,
|
|
366
|
+
authorization_identifier: authorization_identifier,
|
|
367
|
+
customer_identifier: customer_identifier,
|
|
368
|
+
merchant_order_identifier: merchant_order_identifier,
|
|
369
|
+
campaign: campaign,
|
|
370
|
+
affiliate: affiliate,
|
|
371
|
+
merchant_grouping_identifier: merchant_grouping_identifier,
|
|
372
|
+
report_group: report_group,
|
|
373
|
+
aci: aci,
|
|
374
|
+
mail_phone_indicator: mail_phone_indicator,
|
|
375
|
+
origin_type: origin_type,
|
|
376
|
+
validation_code: validation_code,
|
|
377
|
+
pos_register_number: pos_register_number,
|
|
378
|
+
terminal_number: terminal_number,
|
|
379
|
+
reference_number: reference_number,
|
|
380
|
+
draft_locator: draft_locator,
|
|
381
|
+
terminal_capability: terminal_capability,
|
|
382
|
+
additional_properties: additional_properties)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
def to_custom_transaction_date_time
|
|
386
|
+
DateTimeHelper.to_rfc3339(transaction_date_time)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Provides a human-readable string representation of the object.
|
|
390
|
+
def to_s
|
|
391
|
+
class_name = self.class.name.split('::').last
|
|
392
|
+
"<#{class_name} transaction_id: #{@transaction_id}, process_date: #{@process_date},"\
|
|
393
|
+
" transaction_date_time: #{@transaction_date_time}, authorization_amount:"\
|
|
394
|
+
" #{@authorization_amount}, approved_amount: #{@approved_amount}, authorization_code:"\
|
|
395
|
+
" #{@authorization_code}, authorization_currency: #{@authorization_currency},"\
|
|
396
|
+
" authorization_source: #{@authorization_source}, transaction_type: #{@transaction_type},"\
|
|
397
|
+
" transaction_status: #{@transaction_status}, entry_mode: #{@entry_mode}, avs_response_code:"\
|
|
398
|
+
" #{@avs_response_code}, cardholder_id: #{@cardholder_id}, sequence_number:"\
|
|
399
|
+
" #{@sequence_number}, authorization_identifier: #{@authorization_identifier},"\
|
|
400
|
+
" customer_identifier: #{@customer_identifier}, merchant_order_identifier:"\
|
|
401
|
+
" #{@merchant_order_identifier}, campaign: #{@campaign}, affiliate: #{@affiliate},"\
|
|
402
|
+
" merchant_grouping_identifier: #{@merchant_grouping_identifier}, report_group:"\
|
|
403
|
+
" #{@report_group}, aci: #{@aci}, mail_phone_indicator: #{@mail_phone_indicator},"\
|
|
404
|
+
" origin_type: #{@origin_type}, validation_code: #{@validation_code}, pos_register_number:"\
|
|
405
|
+
" #{@pos_register_number}, terminal_number: #{@terminal_number}, reference_number:"\
|
|
406
|
+
" #{@reference_number}, draft_locator: #{@draft_locator}, terminal_capability:"\
|
|
407
|
+
" #{@terminal_capability}, additional_properties: #{@additional_properties}>"
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
411
|
+
def inspect
|
|
412
|
+
class_name = self.class.name.split('::').last
|
|
413
|
+
"<#{class_name} transaction_id: #{@transaction_id.inspect}, process_date:"\
|
|
414
|
+
" #{@process_date.inspect}, transaction_date_time: #{@transaction_date_time.inspect},"\
|
|
415
|
+
" authorization_amount: #{@authorization_amount.inspect}, approved_amount:"\
|
|
416
|
+
" #{@approved_amount.inspect}, authorization_code: #{@authorization_code.inspect},"\
|
|
417
|
+
" authorization_currency: #{@authorization_currency.inspect}, authorization_source:"\
|
|
418
|
+
" #{@authorization_source.inspect}, transaction_type: #{@transaction_type.inspect},"\
|
|
419
|
+
" transaction_status: #{@transaction_status.inspect}, entry_mode: #{@entry_mode.inspect},"\
|
|
420
|
+
" avs_response_code: #{@avs_response_code.inspect}, cardholder_id:"\
|
|
421
|
+
" #{@cardholder_id.inspect}, sequence_number: #{@sequence_number.inspect},"\
|
|
422
|
+
" authorization_identifier: #{@authorization_identifier.inspect}, customer_identifier:"\
|
|
423
|
+
" #{@customer_identifier.inspect}, merchant_order_identifier:"\
|
|
424
|
+
" #{@merchant_order_identifier.inspect}, campaign: #{@campaign.inspect}, affiliate:"\
|
|
425
|
+
" #{@affiliate.inspect}, merchant_grouping_identifier:"\
|
|
426
|
+
" #{@merchant_grouping_identifier.inspect}, report_group: #{@report_group.inspect}, aci:"\
|
|
427
|
+
" #{@aci.inspect}, mail_phone_indicator: #{@mail_phone_indicator.inspect}, origin_type:"\
|
|
428
|
+
" #{@origin_type.inspect}, validation_code: #{@validation_code.inspect},"\
|
|
429
|
+
" pos_register_number: #{@pos_register_number.inspect}, terminal_number:"\
|
|
430
|
+
" #{@terminal_number.inspect}, reference_number: #{@reference_number.inspect},"\
|
|
431
|
+
" draft_locator: #{@draft_locator.inspect}, terminal_capability:"\
|
|
432
|
+
" #{@terminal_capability.inspect}, additional_properties: #{@additional_properties}>"
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# The customer details.
|
|
8
|
+
class CustomerFields < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Field one for the customer details.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :field1
|
|
15
|
+
|
|
16
|
+
# Field two for the customer details.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :field2
|
|
19
|
+
|
|
20
|
+
# Field three for the customer details.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :field3
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['field1'] = 'field1'
|
|
28
|
+
@_hash['field2'] = 'field2'
|
|
29
|
+
@_hash['field3'] = 'field3'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
field1
|
|
37
|
+
field2
|
|
38
|
+
field3
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(field1: SKIP, field2: SKIP, field3: SKIP,
|
|
48
|
+
additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@field1 = field1 unless field1 == SKIP
|
|
53
|
+
@field2 = field2 unless field2 == SKIP
|
|
54
|
+
@field3 = field3 unless field3 == SKIP
|
|
55
|
+
@additional_properties = additional_properties
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
field1 = hash.key?('field1') ? hash['field1'] : SKIP
|
|
64
|
+
field2 = hash.key?('field2') ? hash['field2'] : SKIP
|
|
65
|
+
field3 = hash.key?('field3') ? hash['field3'] : SKIP
|
|
66
|
+
|
|
67
|
+
# Create a new hash for additional properties, removing known properties.
|
|
68
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
69
|
+
|
|
70
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
71
|
+
new_hash, proc { |value| value }
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
CustomerFields.new(field1: field1,
|
|
76
|
+
field2: field2,
|
|
77
|
+
field3: field3,
|
|
78
|
+
additional_properties: additional_properties)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} field1: #{@field1}, field2: #{@field2}, field3: #{@field3},"\
|
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} field1: #{@field1.inspect}, field2: #{@field2.inspect}, field3:"\
|
|
92
|
+
" #{@field3.inspect}, additional_properties: #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# CustomerFields2 Model.
|
|
8
|
+
class CustomerFields2 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Field one for the customer details.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :field1
|
|
15
|
+
|
|
16
|
+
# Field two for the customer details.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :field2
|
|
19
|
+
|
|
20
|
+
# Field three for the customer details.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :field3
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['field1'] = 'field1'
|
|
28
|
+
@_hash['field2'] = 'field2'
|
|
29
|
+
@_hash['field3'] = 'field3'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
field1
|
|
37
|
+
field2
|
|
38
|
+
field3
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(field1: SKIP, field2: SKIP, field3: SKIP,
|
|
48
|
+
additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@field1 = field1 unless field1 == SKIP
|
|
53
|
+
@field2 = field2 unless field2 == SKIP
|
|
54
|
+
@field3 = field3 unless field3 == SKIP
|
|
55
|
+
@additional_properties = additional_properties
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
field1 = hash.key?('field1') ? hash['field1'] : SKIP
|
|
64
|
+
field2 = hash.key?('field2') ? hash['field2'] : SKIP
|
|
65
|
+
field3 = hash.key?('field3') ? hash['field3'] : SKIP
|
|
66
|
+
|
|
67
|
+
# Create a new hash for additional properties, removing known properties.
|
|
68
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
69
|
+
|
|
70
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
71
|
+
new_hash, proc { |value| value }
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
CustomerFields2.new(field1: field1,
|
|
76
|
+
field2: field2,
|
|
77
|
+
field3: field3,
|
|
78
|
+
additional_properties: additional_properties)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} field1: #{@field1}, field2: #{@field2}, field3: #{@field3},"\
|
|
85
|
+
" additional_properties: #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} field1: #{@field1.inspect}, field2: #{@field2.inspect}, field3:"\
|
|
92
|
+
" #{@field3.inspect}, additional_properties: #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|