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,135 @@
|
|
|
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
|
+
# Provides additional details on the credit transaction.
|
|
8
|
+
class CreditAdditionalDetails < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Refers to any adjustment made in the records.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :has_adjustment_records
|
|
15
|
+
|
|
16
|
+
# Possible values are True or False.
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :force_post
|
|
19
|
+
|
|
20
|
+
# Unique identifier for the airline invoice billing transactions.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :airline_invoice_number
|
|
23
|
+
|
|
24
|
+
# Unique identifier for the airline ticket billing transactions.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :airline_ticket_number
|
|
27
|
+
|
|
28
|
+
# The scheduled day a flight leaves.
|
|
29
|
+
# @return [Date]
|
|
30
|
+
attr_accessor :airline_departure_date
|
|
31
|
+
|
|
32
|
+
# Indicates funds without corresponding transaction records in the accounts.
|
|
33
|
+
# Possible values are true or false.
|
|
34
|
+
# @return [TrueClass | FalseClass]
|
|
35
|
+
attr_accessor :unmatched_credit
|
|
36
|
+
|
|
37
|
+
# A mapping from model property names to API property names.
|
|
38
|
+
def self.names
|
|
39
|
+
@_hash = {} if @_hash.nil?
|
|
40
|
+
@_hash['has_adjustment_records'] = 'hasAdjustmentRecords'
|
|
41
|
+
@_hash['force_post'] = 'forcePost'
|
|
42
|
+
@_hash['airline_invoice_number'] = 'airlineInvoiceNumber'
|
|
43
|
+
@_hash['airline_ticket_number'] = 'airlineTicketNumber'
|
|
44
|
+
@_hash['airline_departure_date'] = 'airlineDepartureDate'
|
|
45
|
+
@_hash['unmatched_credit'] = 'unmatchedCredit'
|
|
46
|
+
@_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# An array for optional fields
|
|
50
|
+
def self.optionals
|
|
51
|
+
%w[
|
|
52
|
+
has_adjustment_records
|
|
53
|
+
force_post
|
|
54
|
+
airline_invoice_number
|
|
55
|
+
airline_ticket_number
|
|
56
|
+
airline_departure_date
|
|
57
|
+
unmatched_credit
|
|
58
|
+
]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# An array for nullable fields
|
|
62
|
+
def self.nullables
|
|
63
|
+
[]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def initialize(has_adjustment_records: SKIP, force_post: SKIP,
|
|
67
|
+
airline_invoice_number: SKIP, airline_ticket_number: SKIP,
|
|
68
|
+
airline_departure_date: SKIP, unmatched_credit: SKIP,
|
|
69
|
+
additional_properties: nil)
|
|
70
|
+
# Add additional model properties to the instance
|
|
71
|
+
additional_properties = {} if additional_properties.nil?
|
|
72
|
+
|
|
73
|
+
@has_adjustment_records = has_adjustment_records unless has_adjustment_records == SKIP
|
|
74
|
+
@force_post = force_post unless force_post == SKIP
|
|
75
|
+
@airline_invoice_number = airline_invoice_number unless airline_invoice_number == SKIP
|
|
76
|
+
@airline_ticket_number = airline_ticket_number unless airline_ticket_number == SKIP
|
|
77
|
+
@airline_departure_date = airline_departure_date unless airline_departure_date == SKIP
|
|
78
|
+
@unmatched_credit = unmatched_credit unless unmatched_credit == SKIP
|
|
79
|
+
@additional_properties = additional_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Creates an instance of the object from a hash.
|
|
83
|
+
def self.from_hash(hash)
|
|
84
|
+
return nil unless hash
|
|
85
|
+
|
|
86
|
+
# Extract variables from the hash.
|
|
87
|
+
has_adjustment_records =
|
|
88
|
+
hash.key?('hasAdjustmentRecords') ? hash['hasAdjustmentRecords'] : SKIP
|
|
89
|
+
force_post = hash.key?('forcePost') ? hash['forcePost'] : SKIP
|
|
90
|
+
airline_invoice_number =
|
|
91
|
+
hash.key?('airlineInvoiceNumber') ? hash['airlineInvoiceNumber'] : SKIP
|
|
92
|
+
airline_ticket_number =
|
|
93
|
+
hash.key?('airlineTicketNumber') ? hash['airlineTicketNumber'] : SKIP
|
|
94
|
+
airline_departure_date =
|
|
95
|
+
hash.key?('airlineDepartureDate') ? hash['airlineDepartureDate'] : SKIP
|
|
96
|
+
unmatched_credit =
|
|
97
|
+
hash.key?('unmatchedCredit') ? hash['unmatchedCredit'] : SKIP
|
|
98
|
+
|
|
99
|
+
# Create a new hash for additional properties, removing known properties.
|
|
100
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
101
|
+
|
|
102
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
103
|
+
new_hash, proc { |value| value }
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
# Create object from extracted values.
|
|
107
|
+
CreditAdditionalDetails.new(has_adjustment_records: has_adjustment_records,
|
|
108
|
+
force_post: force_post,
|
|
109
|
+
airline_invoice_number: airline_invoice_number,
|
|
110
|
+
airline_ticket_number: airline_ticket_number,
|
|
111
|
+
airline_departure_date: airline_departure_date,
|
|
112
|
+
unmatched_credit: unmatched_credit,
|
|
113
|
+
additional_properties: additional_properties)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Provides a human-readable string representation of the object.
|
|
117
|
+
def to_s
|
|
118
|
+
class_name = self.class.name.split('::').last
|
|
119
|
+
"<#{class_name} has_adjustment_records: #{@has_adjustment_records}, force_post:"\
|
|
120
|
+
" #{@force_post}, airline_invoice_number: #{@airline_invoice_number}, airline_ticket_number:"\
|
|
121
|
+
" #{@airline_ticket_number}, airline_departure_date: #{@airline_departure_date},"\
|
|
122
|
+
" unmatched_credit: #{@unmatched_credit}, additional_properties: #{@additional_properties}>"
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
126
|
+
def inspect
|
|
127
|
+
class_name = self.class.name.split('::').last
|
|
128
|
+
"<#{class_name} has_adjustment_records: #{@has_adjustment_records.inspect}, force_post:"\
|
|
129
|
+
" #{@force_post.inspect}, airline_invoice_number: #{@airline_invoice_number.inspect},"\
|
|
130
|
+
" airline_ticket_number: #{@airline_ticket_number.inspect}, airline_departure_date:"\
|
|
131
|
+
" #{@airline_departure_date.inspect}, unmatched_credit: #{@unmatched_credit.inspect},"\
|
|
132
|
+
" additional_properties: #{@additional_properties}>"
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
@@ -0,0 +1,230 @@
|
|
|
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
|
+
# Provides card related information.
|
|
8
|
+
class CreditCardDetails < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The number found on the card used to make a purchase, also referred to as
|
|
13
|
+
# the bank or credit card number. <br>Searches can be done on the full card
|
|
14
|
+
# number, on the first six and last four digits, or on the last four
|
|
15
|
+
# digits."
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :card_number
|
|
18
|
+
|
|
19
|
+
# The category or classification of a payment card based on the issuing
|
|
20
|
+
# network. <br> Possible values are CREDIT, DEBIT, and GIFT.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :card_type
|
|
23
|
+
|
|
24
|
+
# The set time when a card will need to be replaced.
|
|
25
|
+
# @return [Date]
|
|
26
|
+
attr_accessor :expiration_date
|
|
27
|
+
|
|
28
|
+
# The set time when a card will need to be replaced.
|
|
29
|
+
# @return [CardNetwork]
|
|
30
|
+
attr_accessor :card_network
|
|
31
|
+
|
|
32
|
+
# The set time when a card will need to be replaced.
|
|
33
|
+
# @return [Cvv2ResponseCode]
|
|
34
|
+
attr_accessor :cvv2_response_code
|
|
35
|
+
|
|
36
|
+
# The set time when a card will need to be replaced.
|
|
37
|
+
# @return [Cvv2PresenceIndicator]
|
|
38
|
+
attr_accessor :cvv2_presence_indicator
|
|
39
|
+
|
|
40
|
+
# The numeric value that is the same length as the card number and is used
|
|
41
|
+
# as a substitution with proxy data. Max length of the token is 19
|
|
42
|
+
# characters.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :token
|
|
45
|
+
|
|
46
|
+
# The host-generated numeric value created during the tokenization process
|
|
47
|
+
# using a token key assigned to a merchant. This value is returned to the
|
|
48
|
+
# point-of-sale when tokenization is requested along with the token for
|
|
49
|
+
# utilization.
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :token_id
|
|
52
|
+
|
|
53
|
+
# A request and response field. The score or confidence level that
|
|
54
|
+
# determines the expected level of assurance associated with the approved
|
|
55
|
+
# token requestor and the identification and verification method performed
|
|
56
|
+
# at the time of token request.
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :token_assurance_level
|
|
59
|
+
|
|
60
|
+
# The expiration date of the token in the YYYY-MM format with a fixed length
|
|
61
|
+
# of 6.
|
|
62
|
+
# @return [Date]
|
|
63
|
+
attr_accessor :token_expiration_date
|
|
64
|
+
|
|
65
|
+
# The expiration date of the token in the YYYY-MM format with a fixed length
|
|
66
|
+
# of 6.
|
|
67
|
+
# @return [InternationalIndicator]
|
|
68
|
+
attr_accessor :international_indicator
|
|
69
|
+
|
|
70
|
+
# Possible values are true and false.
|
|
71
|
+
# @return [TrueClass | FalseClass]
|
|
72
|
+
attr_accessor :network_reject_indicator
|
|
73
|
+
|
|
74
|
+
# Indentifier for digital payment transactions.
|
|
75
|
+
# @return [String]
|
|
76
|
+
attr_accessor :network_payment_token_number
|
|
77
|
+
|
|
78
|
+
# A mapping from model property names to API property names.
|
|
79
|
+
def self.names
|
|
80
|
+
@_hash = {} if @_hash.nil?
|
|
81
|
+
@_hash['card_number'] = 'cardNumber'
|
|
82
|
+
@_hash['card_type'] = 'cardType'
|
|
83
|
+
@_hash['expiration_date'] = 'expirationDate'
|
|
84
|
+
@_hash['card_network'] = 'cardNetwork'
|
|
85
|
+
@_hash['cvv2_response_code'] = 'cvv2ResponseCode'
|
|
86
|
+
@_hash['cvv2_presence_indicator'] = 'cvv2PresenceIndicator'
|
|
87
|
+
@_hash['token'] = 'token'
|
|
88
|
+
@_hash['token_id'] = 'tokenId'
|
|
89
|
+
@_hash['token_assurance_level'] = 'tokenAssuranceLevel'
|
|
90
|
+
@_hash['token_expiration_date'] = 'tokenExpirationDate'
|
|
91
|
+
@_hash['international_indicator'] = 'internationalIndicator'
|
|
92
|
+
@_hash['network_reject_indicator'] = 'networkRejectIndicator'
|
|
93
|
+
@_hash['network_payment_token_number'] = 'networkPaymentTokenNumber'
|
|
94
|
+
@_hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# An array for optional fields
|
|
98
|
+
def self.optionals
|
|
99
|
+
%w[
|
|
100
|
+
card_number
|
|
101
|
+
card_type
|
|
102
|
+
expiration_date
|
|
103
|
+
card_network
|
|
104
|
+
cvv2_response_code
|
|
105
|
+
cvv2_presence_indicator
|
|
106
|
+
token
|
|
107
|
+
token_id
|
|
108
|
+
token_assurance_level
|
|
109
|
+
token_expiration_date
|
|
110
|
+
international_indicator
|
|
111
|
+
network_reject_indicator
|
|
112
|
+
network_payment_token_number
|
|
113
|
+
]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# An array for nullable fields
|
|
117
|
+
def self.nullables
|
|
118
|
+
[]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
def initialize(card_number: SKIP, card_type: SKIP, expiration_date: SKIP,
|
|
122
|
+
card_network: SKIP, cvv2_response_code: SKIP,
|
|
123
|
+
cvv2_presence_indicator: SKIP, token: SKIP, token_id: SKIP,
|
|
124
|
+
token_assurance_level: SKIP, token_expiration_date: SKIP,
|
|
125
|
+
international_indicator: SKIP,
|
|
126
|
+
network_reject_indicator: SKIP,
|
|
127
|
+
network_payment_token_number: SKIP,
|
|
128
|
+
additional_properties: nil)
|
|
129
|
+
# Add additional model properties to the instance
|
|
130
|
+
additional_properties = {} if additional_properties.nil?
|
|
131
|
+
|
|
132
|
+
@card_number = card_number unless card_number == SKIP
|
|
133
|
+
@card_type = card_type unless card_type == SKIP
|
|
134
|
+
@expiration_date = expiration_date unless expiration_date == SKIP
|
|
135
|
+
@card_network = card_network unless card_network == SKIP
|
|
136
|
+
@cvv2_response_code = cvv2_response_code unless cvv2_response_code == SKIP
|
|
137
|
+
@cvv2_presence_indicator = cvv2_presence_indicator unless cvv2_presence_indicator == SKIP
|
|
138
|
+
@token = token unless token == SKIP
|
|
139
|
+
@token_id = token_id unless token_id == SKIP
|
|
140
|
+
@token_assurance_level = token_assurance_level unless token_assurance_level == SKIP
|
|
141
|
+
@token_expiration_date = token_expiration_date unless token_expiration_date == SKIP
|
|
142
|
+
@international_indicator = international_indicator unless international_indicator == SKIP
|
|
143
|
+
@network_reject_indicator = network_reject_indicator unless network_reject_indicator == SKIP
|
|
144
|
+
unless network_payment_token_number == SKIP
|
|
145
|
+
@network_payment_token_number =
|
|
146
|
+
network_payment_token_number
|
|
147
|
+
end
|
|
148
|
+
@additional_properties = additional_properties
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Creates an instance of the object from a hash.
|
|
152
|
+
def self.from_hash(hash)
|
|
153
|
+
return nil unless hash
|
|
154
|
+
|
|
155
|
+
# Extract variables from the hash.
|
|
156
|
+
card_number = hash.key?('cardNumber') ? hash['cardNumber'] : SKIP
|
|
157
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
158
|
+
expiration_date =
|
|
159
|
+
hash.key?('expirationDate') ? hash['expirationDate'] : SKIP
|
|
160
|
+
card_network = CardNetwork.from_hash(hash['cardNetwork']) if hash['cardNetwork']
|
|
161
|
+
cvv2_response_code = Cvv2ResponseCode.from_hash(hash['cvv2ResponseCode']) if
|
|
162
|
+
hash['cvv2ResponseCode']
|
|
163
|
+
cvv2_presence_indicator = Cvv2PresenceIndicator.from_hash(hash['cvv2PresenceIndicator']) if
|
|
164
|
+
hash['cvv2PresenceIndicator']
|
|
165
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
166
|
+
token_id = hash.key?('tokenId') ? hash['tokenId'] : SKIP
|
|
167
|
+
token_assurance_level =
|
|
168
|
+
hash.key?('tokenAssuranceLevel') ? hash['tokenAssuranceLevel'] : SKIP
|
|
169
|
+
token_expiration_date =
|
|
170
|
+
hash.key?('tokenExpirationDate') ? hash['tokenExpirationDate'] : SKIP
|
|
171
|
+
international_indicator = InternationalIndicator.from_hash(hash['internationalIndicator']) if
|
|
172
|
+
hash['internationalIndicator']
|
|
173
|
+
network_reject_indicator =
|
|
174
|
+
hash.key?('networkRejectIndicator') ? hash['networkRejectIndicator'] : SKIP
|
|
175
|
+
network_payment_token_number =
|
|
176
|
+
hash.key?('networkPaymentTokenNumber') ? hash['networkPaymentTokenNumber'] : SKIP
|
|
177
|
+
|
|
178
|
+
# Create a new hash for additional properties, removing known properties.
|
|
179
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
180
|
+
|
|
181
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
182
|
+
new_hash, proc { |value| value }
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
# Create object from extracted values.
|
|
186
|
+
CreditCardDetails.new(card_number: card_number,
|
|
187
|
+
card_type: card_type,
|
|
188
|
+
expiration_date: expiration_date,
|
|
189
|
+
card_network: card_network,
|
|
190
|
+
cvv2_response_code: cvv2_response_code,
|
|
191
|
+
cvv2_presence_indicator: cvv2_presence_indicator,
|
|
192
|
+
token: token,
|
|
193
|
+
token_id: token_id,
|
|
194
|
+
token_assurance_level: token_assurance_level,
|
|
195
|
+
token_expiration_date: token_expiration_date,
|
|
196
|
+
international_indicator: international_indicator,
|
|
197
|
+
network_reject_indicator: network_reject_indicator,
|
|
198
|
+
network_payment_token_number: network_payment_token_number,
|
|
199
|
+
additional_properties: additional_properties)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Provides a human-readable string representation of the object.
|
|
203
|
+
def to_s
|
|
204
|
+
class_name = self.class.name.split('::').last
|
|
205
|
+
"<#{class_name} card_number: #{@card_number}, card_type: #{@card_type}, expiration_date:"\
|
|
206
|
+
" #{@expiration_date}, card_network: #{@card_network}, cvv2_response_code:"\
|
|
207
|
+
" #{@cvv2_response_code}, cvv2_presence_indicator: #{@cvv2_presence_indicator}, token:"\
|
|
208
|
+
" #{@token}, token_id: #{@token_id}, token_assurance_level: #{@token_assurance_level},"\
|
|
209
|
+
" token_expiration_date: #{@token_expiration_date}, international_indicator:"\
|
|
210
|
+
" #{@international_indicator}, network_reject_indicator: #{@network_reject_indicator},"\
|
|
211
|
+
" network_payment_token_number: #{@network_payment_token_number}, additional_properties:"\
|
|
212
|
+
" #{@additional_properties}>"
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
216
|
+
def inspect
|
|
217
|
+
class_name = self.class.name.split('::').last
|
|
218
|
+
"<#{class_name} card_number: #{@card_number.inspect}, card_type: #{@card_type.inspect},"\
|
|
219
|
+
" expiration_date: #{@expiration_date.inspect}, card_network: #{@card_network.inspect},"\
|
|
220
|
+
" cvv2_response_code: #{@cvv2_response_code.inspect}, cvv2_presence_indicator:"\
|
|
221
|
+
" #{@cvv2_presence_indicator.inspect}, token: #{@token.inspect}, token_id:"\
|
|
222
|
+
" #{@token_id.inspect}, token_assurance_level: #{@token_assurance_level.inspect},"\
|
|
223
|
+
" token_expiration_date: #{@token_expiration_date.inspect}, international_indicator:"\
|
|
224
|
+
" #{@international_indicator.inspect}, network_reject_indicator:"\
|
|
225
|
+
" #{@network_reject_indicator.inspect}, network_payment_token_number:"\
|
|
226
|
+
" #{@network_payment_token_number.inspect}, additional_properties:"\
|
|
227
|
+
" #{@additional_properties}>"
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
# Provides information on interchange related details.
|
|
8
|
+
class CreditInterchangeDetails < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [CardProductResults]
|
|
14
|
+
attr_accessor :card_product_results
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [CardProductType]
|
|
18
|
+
attr_accessor :card_product_type
|
|
19
|
+
|
|
20
|
+
# The number of days late.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :days_late
|
|
23
|
+
|
|
24
|
+
# The amount of the discount applied.
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :discount_amount
|
|
27
|
+
|
|
28
|
+
# The amount of the discount applied.
|
|
29
|
+
# @return [InterchangeCode]
|
|
30
|
+
attr_accessor :interchange_code
|
|
31
|
+
|
|
32
|
+
# Fees between banks for processing credit and debit transactions
|
|
33
|
+
# interchangeably.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :interchange_fee
|
|
36
|
+
|
|
37
|
+
# Indicator of organization interchange.
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :original_interchange_indicator
|
|
40
|
+
|
|
41
|
+
# The additional fee added to the original cost or payment.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :surcharge_amount
|
|
44
|
+
|
|
45
|
+
# The additional fee added to the original cost or payment.
|
|
46
|
+
# @return [SurchargeReason]
|
|
47
|
+
attr_accessor :surcharge_reason
|
|
48
|
+
|
|
49
|
+
# The additional fee imposed by a merchant for using a particular payment
|
|
50
|
+
# method or service.
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :merchant_surcharge_amount
|
|
53
|
+
|
|
54
|
+
# The charge for the convenience of using a service or making a transaction,
|
|
55
|
+
# typically online.
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :convenience_fee
|
|
58
|
+
|
|
59
|
+
# The charge for the convenience of using a service or making a transaction,
|
|
60
|
+
# typically online.
|
|
61
|
+
# @return [BillingIndicator]
|
|
62
|
+
attr_accessor :billing_indicator
|
|
63
|
+
|
|
64
|
+
# A mapping from model property names to API property names.
|
|
65
|
+
def self.names
|
|
66
|
+
@_hash = {} if @_hash.nil?
|
|
67
|
+
@_hash['card_product_results'] = 'cardProductResults'
|
|
68
|
+
@_hash['card_product_type'] = 'cardProductType'
|
|
69
|
+
@_hash['days_late'] = 'daysLate'
|
|
70
|
+
@_hash['discount_amount'] = 'discountAmount'
|
|
71
|
+
@_hash['interchange_code'] = 'interchangeCode'
|
|
72
|
+
@_hash['interchange_fee'] = 'interchangeFee'
|
|
73
|
+
@_hash['original_interchange_indicator'] =
|
|
74
|
+
'originalInterchangeIndicator'
|
|
75
|
+
@_hash['surcharge_amount'] = 'surchargeAmount'
|
|
76
|
+
@_hash['surcharge_reason'] = 'surchargeReason'
|
|
77
|
+
@_hash['merchant_surcharge_amount'] = 'merchantSurchargeAmount'
|
|
78
|
+
@_hash['convenience_fee'] = 'convenienceFee'
|
|
79
|
+
@_hash['billing_indicator'] = 'billingIndicator'
|
|
80
|
+
@_hash
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# An array for optional fields
|
|
84
|
+
def self.optionals
|
|
85
|
+
%w[
|
|
86
|
+
card_product_results
|
|
87
|
+
card_product_type
|
|
88
|
+
days_late
|
|
89
|
+
discount_amount
|
|
90
|
+
interchange_code
|
|
91
|
+
interchange_fee
|
|
92
|
+
original_interchange_indicator
|
|
93
|
+
surcharge_amount
|
|
94
|
+
surcharge_reason
|
|
95
|
+
merchant_surcharge_amount
|
|
96
|
+
convenience_fee
|
|
97
|
+
billing_indicator
|
|
98
|
+
]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# An array for nullable fields
|
|
102
|
+
def self.nullables
|
|
103
|
+
[]
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def initialize(card_product_results: SKIP, card_product_type: SKIP,
|
|
107
|
+
days_late: SKIP, discount_amount: SKIP,
|
|
108
|
+
interchange_code: SKIP, interchange_fee: SKIP,
|
|
109
|
+
original_interchange_indicator: SKIP, surcharge_amount: SKIP,
|
|
110
|
+
surcharge_reason: SKIP, merchant_surcharge_amount: SKIP,
|
|
111
|
+
convenience_fee: SKIP, billing_indicator: SKIP,
|
|
112
|
+
additional_properties: nil)
|
|
113
|
+
# Add additional model properties to the instance
|
|
114
|
+
additional_properties = {} if additional_properties.nil?
|
|
115
|
+
|
|
116
|
+
@card_product_results = card_product_results unless card_product_results == SKIP
|
|
117
|
+
@card_product_type = card_product_type unless card_product_type == SKIP
|
|
118
|
+
@days_late = days_late unless days_late == SKIP
|
|
119
|
+
@discount_amount = discount_amount unless discount_amount == SKIP
|
|
120
|
+
@interchange_code = interchange_code unless interchange_code == SKIP
|
|
121
|
+
@interchange_fee = interchange_fee unless interchange_fee == SKIP
|
|
122
|
+
unless original_interchange_indicator == SKIP
|
|
123
|
+
@original_interchange_indicator =
|
|
124
|
+
original_interchange_indicator
|
|
125
|
+
end
|
|
126
|
+
@surcharge_amount = surcharge_amount unless surcharge_amount == SKIP
|
|
127
|
+
@surcharge_reason = surcharge_reason unless surcharge_reason == SKIP
|
|
128
|
+
unless merchant_surcharge_amount == SKIP
|
|
129
|
+
@merchant_surcharge_amount =
|
|
130
|
+
merchant_surcharge_amount
|
|
131
|
+
end
|
|
132
|
+
@convenience_fee = convenience_fee unless convenience_fee == SKIP
|
|
133
|
+
@billing_indicator = billing_indicator unless billing_indicator == SKIP
|
|
134
|
+
@additional_properties = additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Creates an instance of the object from a hash.
|
|
138
|
+
def self.from_hash(hash)
|
|
139
|
+
return nil unless hash
|
|
140
|
+
|
|
141
|
+
# Extract variables from the hash.
|
|
142
|
+
card_product_results = CardProductResults.from_hash(hash['cardProductResults']) if
|
|
143
|
+
hash['cardProductResults']
|
|
144
|
+
card_product_type = CardProductType.from_hash(hash['cardProductType']) if
|
|
145
|
+
hash['cardProductType']
|
|
146
|
+
days_late = hash.key?('daysLate') ? hash['daysLate'] : SKIP
|
|
147
|
+
discount_amount =
|
|
148
|
+
hash.key?('discountAmount') ? hash['discountAmount'] : SKIP
|
|
149
|
+
interchange_code = InterchangeCode.from_hash(hash['interchangeCode']) if
|
|
150
|
+
hash['interchangeCode']
|
|
151
|
+
interchange_fee =
|
|
152
|
+
hash.key?('interchangeFee') ? hash['interchangeFee'] : SKIP
|
|
153
|
+
original_interchange_indicator =
|
|
154
|
+
hash.key?('originalInterchangeIndicator') ? hash['originalInterchangeIndicator'] : SKIP
|
|
155
|
+
surcharge_amount =
|
|
156
|
+
hash.key?('surchargeAmount') ? hash['surchargeAmount'] : SKIP
|
|
157
|
+
surcharge_reason = SurchargeReason.from_hash(hash['surchargeReason']) if
|
|
158
|
+
hash['surchargeReason']
|
|
159
|
+
merchant_surcharge_amount =
|
|
160
|
+
hash.key?('merchantSurchargeAmount') ? hash['merchantSurchargeAmount'] : SKIP
|
|
161
|
+
convenience_fee =
|
|
162
|
+
hash.key?('convenienceFee') ? hash['convenienceFee'] : SKIP
|
|
163
|
+
billing_indicator = BillingIndicator.from_hash(hash['billingIndicator']) if
|
|
164
|
+
hash['billingIndicator']
|
|
165
|
+
|
|
166
|
+
# Create a new hash for additional properties, removing known properties.
|
|
167
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
168
|
+
|
|
169
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
170
|
+
new_hash, proc { |value| value }
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
# Create object from extracted values.
|
|
174
|
+
CreditInterchangeDetails.new(card_product_results: card_product_results,
|
|
175
|
+
card_product_type: card_product_type,
|
|
176
|
+
days_late: days_late,
|
|
177
|
+
discount_amount: discount_amount,
|
|
178
|
+
interchange_code: interchange_code,
|
|
179
|
+
interchange_fee: interchange_fee,
|
|
180
|
+
original_interchange_indicator: original_interchange_indicator,
|
|
181
|
+
surcharge_amount: surcharge_amount,
|
|
182
|
+
surcharge_reason: surcharge_reason,
|
|
183
|
+
merchant_surcharge_amount: merchant_surcharge_amount,
|
|
184
|
+
convenience_fee: convenience_fee,
|
|
185
|
+
billing_indicator: billing_indicator,
|
|
186
|
+
additional_properties: additional_properties)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Provides a human-readable string representation of the object.
|
|
190
|
+
def to_s
|
|
191
|
+
class_name = self.class.name.split('::').last
|
|
192
|
+
"<#{class_name} card_product_results: #{@card_product_results}, card_product_type:"\
|
|
193
|
+
" #{@card_product_type}, days_late: #{@days_late}, discount_amount: #{@discount_amount},"\
|
|
194
|
+
" interchange_code: #{@interchange_code}, interchange_fee: #{@interchange_fee},"\
|
|
195
|
+
" original_interchange_indicator: #{@original_interchange_indicator}, surcharge_amount:"\
|
|
196
|
+
" #{@surcharge_amount}, surcharge_reason: #{@surcharge_reason}, merchant_surcharge_amount:"\
|
|
197
|
+
" #{@merchant_surcharge_amount}, convenience_fee: #{@convenience_fee}, billing_indicator:"\
|
|
198
|
+
" #{@billing_indicator}, additional_properties: #{@additional_properties}>"
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
202
|
+
def inspect
|
|
203
|
+
class_name = self.class.name.split('::').last
|
|
204
|
+
"<#{class_name} card_product_results: #{@card_product_results.inspect}, card_product_type:"\
|
|
205
|
+
" #{@card_product_type.inspect}, days_late: #{@days_late.inspect}, discount_amount:"\
|
|
206
|
+
" #{@discount_amount.inspect}, interchange_code: #{@interchange_code.inspect},"\
|
|
207
|
+
" interchange_fee: #{@interchange_fee.inspect}, original_interchange_indicator:"\
|
|
208
|
+
" #{@original_interchange_indicator.inspect}, surcharge_amount:"\
|
|
209
|
+
" #{@surcharge_amount.inspect}, surcharge_reason: #{@surcharge_reason.inspect},"\
|
|
210
|
+
" merchant_surcharge_amount: #{@merchant_surcharge_amount.inspect}, convenience_fee:"\
|
|
211
|
+
" #{@convenience_fee.inspect}, billing_indicator: #{@billing_indicator.inspect},"\
|
|
212
|
+
" additional_properties: #{@additional_properties}>"
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
end
|