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,104 @@
|
|
|
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
|
+
# SettlementerrorsSettlementfileerrorsSearchRequest Model.
|
|
8
|
+
class SettlementerrorsSettlementfileerrorsSearchRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Pagination]
|
|
14
|
+
attr_accessor :pagination
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Hierarchy6]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [SortResultsBy4]
|
|
22
|
+
attr_accessor :sort_results_by
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [DateRange1]
|
|
26
|
+
attr_accessor :date_range
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['pagination'] = 'pagination'
|
|
32
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
33
|
+
@_hash['sort_results_by'] = 'sortResultsBy'
|
|
34
|
+
@_hash['date_range'] = 'dateRange'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
%w[
|
|
41
|
+
pagination
|
|
42
|
+
sort_results_by
|
|
43
|
+
]
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for nullable fields
|
|
47
|
+
def self.nullables
|
|
48
|
+
[]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP,
|
|
52
|
+
sort_results_by: SKIP, additional_properties: nil)
|
|
53
|
+
# Add additional model properties to the instance
|
|
54
|
+
additional_properties = {} if additional_properties.nil?
|
|
55
|
+
|
|
56
|
+
@pagination = pagination unless pagination == SKIP
|
|
57
|
+
@hierarchy = hierarchy
|
|
58
|
+
@sort_results_by = sort_results_by unless sort_results_by == SKIP
|
|
59
|
+
@date_range = date_range
|
|
60
|
+
@additional_properties = additional_properties
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Creates an instance of the object from a hash.
|
|
64
|
+
def self.from_hash(hash)
|
|
65
|
+
return nil unless hash
|
|
66
|
+
|
|
67
|
+
# Extract variables from the hash.
|
|
68
|
+
hierarchy = Hierarchy6.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
69
|
+
date_range = DateRange1.from_hash(hash['dateRange']) if hash['dateRange']
|
|
70
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
71
|
+
sort_results_by = SortResultsBy4.from_hash(hash['sortResultsBy']) if hash['sortResultsBy']
|
|
72
|
+
|
|
73
|
+
# Create a new hash for additional properties, removing known properties.
|
|
74
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
75
|
+
|
|
76
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
77
|
+
new_hash, proc { |value| value }
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# Create object from extracted values.
|
|
81
|
+
SettlementerrorsSettlementfileerrorsSearchRequest.new(hierarchy: hierarchy,
|
|
82
|
+
date_range: date_range,
|
|
83
|
+
pagination: pagination,
|
|
84
|
+
sort_results_by: sort_results_by,
|
|
85
|
+
additional_properties: additional_properties)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a human-readable string representation of the object.
|
|
89
|
+
def to_s
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, sort_results_by:"\
|
|
92
|
+
" #{@sort_results_by}, date_range: #{@date_range}, additional_properties:"\
|
|
93
|
+
" #{@additional_properties}>"
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
97
|
+
def inspect
|
|
98
|
+
class_name = self.class.name.split('::').last
|
|
99
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
100
|
+
" sort_results_by: #{@sort_results_by.inspect}, date_range: #{@date_range.inspect},"\
|
|
101
|
+
" additional_properties: #{@additional_properties}>"
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# SettlementerrorsSettlementfileerrorsSearchResponse Model.
|
|
8
|
+
class SettlementerrorsSettlementfileerrorsSearchResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Pagination4]
|
|
14
|
+
attr_accessor :pagination
|
|
15
|
+
|
|
16
|
+
# The settlement rejection details.
|
|
17
|
+
# @return [Array[SettlementRejRealTimeTransaction]]
|
|
18
|
+
attr_accessor :details
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['pagination'] = 'pagination'
|
|
24
|
+
@_hash['details'] = 'details'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
pagination
|
|
32
|
+
details
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(pagination: SKIP, details: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@pagination = pagination unless pagination == SKIP
|
|
46
|
+
@details = details unless details == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
pagination = Pagination4.from_hash(hash['pagination']) if hash['pagination']
|
|
56
|
+
# Parameter is an array, so we need to iterate through it
|
|
57
|
+
details = nil
|
|
58
|
+
unless hash['details'].nil?
|
|
59
|
+
details = []
|
|
60
|
+
hash['details'].each do |structure|
|
|
61
|
+
details << (SettlementRejRealTimeTransaction.from_hash(structure) if structure)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
details = SKIP unless hash.key?('details')
|
|
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
|
+
SettlementerrorsSettlementfileerrorsSearchResponse.new(pagination: pagination,
|
|
76
|
+
details: details,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} pagination: #{@pagination}, details: #{@details}, additional_properties:"\
|
|
84
|
+
" #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} pagination: #{@pagination.inspect}, details: #{@details.inspect},"\
|
|
91
|
+
" additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -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
|
+
# SettlementsDailyTotalsSearchRequest Model.
|
|
8
|
+
class SettlementsDailyTotalsSearchRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Pagination]
|
|
14
|
+
attr_accessor :pagination
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [SortResultsBy1]
|
|
18
|
+
attr_accessor :sort_results_by
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Hierarchy1]
|
|
22
|
+
attr_accessor :hierarchy
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [DateType]
|
|
26
|
+
attr_accessor :date_type
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [DateRange1]
|
|
30
|
+
attr_accessor :date_range
|
|
31
|
+
|
|
32
|
+
# The category or classification of a payment card based on the issuing
|
|
33
|
+
# network. Possible values are CREDIT, DEBIT, GIFT, and EBT.
|
|
34
|
+
# @return [Array[CardTypes1]]
|
|
35
|
+
attr_accessor :card_types
|
|
36
|
+
|
|
37
|
+
# Display the terminal data.
|
|
38
|
+
# @return [TrueClass | FalseClass]
|
|
39
|
+
attr_accessor :terminal_data
|
|
40
|
+
|
|
41
|
+
# A mapping from model property names to API property names.
|
|
42
|
+
def self.names
|
|
43
|
+
@_hash = {} if @_hash.nil?
|
|
44
|
+
@_hash['pagination'] = 'pagination'
|
|
45
|
+
@_hash['sort_results_by'] = 'sortResultsBy'
|
|
46
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
47
|
+
@_hash['date_type'] = 'dateType'
|
|
48
|
+
@_hash['date_range'] = 'dateRange'
|
|
49
|
+
@_hash['card_types'] = 'cardTypes'
|
|
50
|
+
@_hash['terminal_data'] = 'terminalData'
|
|
51
|
+
@_hash
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# An array for optional fields
|
|
55
|
+
def self.optionals
|
|
56
|
+
%w[
|
|
57
|
+
pagination
|
|
58
|
+
sort_results_by
|
|
59
|
+
card_types
|
|
60
|
+
terminal_data
|
|
61
|
+
]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for nullable fields
|
|
65
|
+
def self.nullables
|
|
66
|
+
[]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def initialize(hierarchy:, date_type:, date_range:, pagination: SKIP,
|
|
70
|
+
sort_results_by: SKIP, card_types: SKIP, terminal_data: SKIP,
|
|
71
|
+
additional_properties: nil)
|
|
72
|
+
# Add additional model properties to the instance
|
|
73
|
+
additional_properties = {} if additional_properties.nil?
|
|
74
|
+
|
|
75
|
+
@pagination = pagination unless pagination == SKIP
|
|
76
|
+
@sort_results_by = sort_results_by unless sort_results_by == SKIP
|
|
77
|
+
@hierarchy = hierarchy
|
|
78
|
+
@date_type = date_type
|
|
79
|
+
@date_range = date_range
|
|
80
|
+
@card_types = card_types unless card_types == SKIP
|
|
81
|
+
@terminal_data = terminal_data unless terminal_data == SKIP
|
|
82
|
+
@additional_properties = additional_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Creates an instance of the object from a hash.
|
|
86
|
+
def self.from_hash(hash)
|
|
87
|
+
return nil unless hash
|
|
88
|
+
|
|
89
|
+
# Extract variables from the hash.
|
|
90
|
+
hierarchy = Hierarchy1.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
91
|
+
date_type = hash.key?('dateType') ? hash['dateType'] : nil
|
|
92
|
+
date_range = DateRange1.from_hash(hash['dateRange']) if hash['dateRange']
|
|
93
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
94
|
+
sort_results_by = SortResultsBy1.from_hash(hash['sortResultsBy']) if hash['sortResultsBy']
|
|
95
|
+
card_types = hash.key?('cardTypes') ? hash['cardTypes'] : SKIP
|
|
96
|
+
terminal_data = hash.key?('terminalData') ? hash['terminalData'] : SKIP
|
|
97
|
+
|
|
98
|
+
# Create a new hash for additional properties, removing known properties.
|
|
99
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
100
|
+
|
|
101
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
102
|
+
new_hash, proc { |value| value }
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Create object from extracted values.
|
|
106
|
+
SettlementsDailyTotalsSearchRequest.new(hierarchy: hierarchy,
|
|
107
|
+
date_type: date_type,
|
|
108
|
+
date_range: date_range,
|
|
109
|
+
pagination: pagination,
|
|
110
|
+
sort_results_by: sort_results_by,
|
|
111
|
+
card_types: card_types,
|
|
112
|
+
terminal_data: terminal_data,
|
|
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} pagination: #{@pagination}, sort_results_by: #{@sort_results_by},"\
|
|
120
|
+
" hierarchy: #{@hierarchy}, date_type: #{@date_type}, date_range: #{@date_range},"\
|
|
121
|
+
" card_types: #{@card_types}, terminal_data: #{@terminal_data}, additional_properties:"\
|
|
122
|
+
" #{@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} pagination: #{@pagination.inspect}, sort_results_by:"\
|
|
129
|
+
" #{@sort_results_by.inspect}, hierarchy: #{@hierarchy.inspect}, date_type:"\
|
|
130
|
+
" #{@date_type.inspect}, date_range: #{@date_range.inspect}, card_types:"\
|
|
131
|
+
" #{@card_types.inspect}, terminal_data: #{@terminal_data.inspect}, additional_properties:"\
|
|
132
|
+
" #{@additional_properties}>"
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# SettlementsDailyTotalsSearchResponse Model.
|
|
8
|
+
class SettlementsDailyTotalsSearchResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The format used to display your resources.
|
|
13
|
+
# @return [PaginationResponse]
|
|
14
|
+
attr_accessor :pagination
|
|
15
|
+
|
|
16
|
+
# Retrieves the daily total information.
|
|
17
|
+
# @return [Array[SearchDailyTotalsDetails]]
|
|
18
|
+
attr_accessor :details
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['pagination'] = 'pagination'
|
|
24
|
+
@_hash['details'] = 'details'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
pagination
|
|
32
|
+
details
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(pagination: SKIP, details: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@pagination = pagination unless pagination == SKIP
|
|
46
|
+
@details = details unless details == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
56
|
+
# Parameter is an array, so we need to iterate through it
|
|
57
|
+
details = nil
|
|
58
|
+
unless hash['details'].nil?
|
|
59
|
+
details = []
|
|
60
|
+
hash['details'].each do |structure|
|
|
61
|
+
details << (SearchDailyTotalsDetails.from_hash(structure) if structure)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
details = SKIP unless hash.key?('details')
|
|
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
|
+
SettlementsDailyTotalsSearchResponse.new(pagination: pagination,
|
|
76
|
+
details: details,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} pagination: #{@pagination}, details: #{@details}, additional_properties:"\
|
|
84
|
+
" #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} pagination: #{@pagination.inspect}, details: #{@details.inspect},"\
|
|
91
|
+
" additional_properties: #{@additional_properties}>"
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
# SettlementsSearchRequest Model.
|
|
8
|
+
class SettlementsSearchRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Pagination]
|
|
14
|
+
attr_accessor :pagination
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [SortResultsBy]
|
|
18
|
+
attr_accessor :sort_results_by
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Hierarchy]
|
|
22
|
+
attr_accessor :hierarchy
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [DateType]
|
|
26
|
+
attr_accessor :date_type
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [DateRange1]
|
|
30
|
+
attr_accessor :date_range
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [CardTypes]
|
|
34
|
+
attr_accessor :card_types
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [CardNetworks]
|
|
38
|
+
attr_accessor :card_networks
|
|
39
|
+
|
|
40
|
+
# The number found on the card used to make a purchase, also referred to as
|
|
41
|
+
# the bank or credit card number. Searches can be done on the full card
|
|
42
|
+
# number, on the first six and last four digits, on the first six digits, or
|
|
43
|
+
# on the last four digit.
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :card_number
|
|
46
|
+
|
|
47
|
+
# The numeric value that is the same length as the card number and is used
|
|
48
|
+
# as a substitution with proxy data. Max length of the token is 19
|
|
49
|
+
# characters.
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
attr_accessor :token
|
|
52
|
+
|
|
53
|
+
# The key to uniquely identify a card transaction based on the ISO 8583
|
|
54
|
+
# standard. <br> Card Type is mandatory for passing search by Reference
|
|
55
|
+
# Number.
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :reference_number
|
|
58
|
+
|
|
59
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
60
|
+
# transaction and from the electronic transfer of funds.
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :transaction_id
|
|
63
|
+
|
|
64
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
65
|
+
# transaction and from the electronic transfer of funds.
|
|
66
|
+
# @return [TransactionTypeCode1]
|
|
67
|
+
attr_accessor :transaction_type_code
|
|
68
|
+
|
|
69
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
70
|
+
# transaction and from the electronic transfer of funds.
|
|
71
|
+
# @return [TransactionStatusCode1]
|
|
72
|
+
attr_accessor :transaction_status_code
|
|
73
|
+
|
|
74
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
75
|
+
# transaction and from the electronic transfer of funds.
|
|
76
|
+
# @return [TransactionAmountRange]
|
|
77
|
+
attr_accessor :transaction_amount_range
|
|
78
|
+
|
|
79
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
80
|
+
# transaction and from the electronic transfer of funds.
|
|
81
|
+
# @return [FraudFields2]
|
|
82
|
+
attr_accessor :fraud_fields
|
|
83
|
+
|
|
84
|
+
# The unique 12-19 digit identifier that is generated with every card
|
|
85
|
+
# transaction and from the electronic transfer of funds.
|
|
86
|
+
# @return [CustomerFields2]
|
|
87
|
+
attr_accessor :customer_fields
|
|
88
|
+
|
|
89
|
+
# A mapping from model property names to API property names.
|
|
90
|
+
def self.names
|
|
91
|
+
@_hash = {} if @_hash.nil?
|
|
92
|
+
@_hash['pagination'] = 'pagination'
|
|
93
|
+
@_hash['sort_results_by'] = 'sortResultsBy'
|
|
94
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
95
|
+
@_hash['date_type'] = 'dateType'
|
|
96
|
+
@_hash['date_range'] = 'dateRange'
|
|
97
|
+
@_hash['card_types'] = 'cardTypes'
|
|
98
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
99
|
+
@_hash['card_number'] = 'cardNumber'
|
|
100
|
+
@_hash['token'] = 'token'
|
|
101
|
+
@_hash['reference_number'] = 'referenceNumber'
|
|
102
|
+
@_hash['transaction_id'] = 'transactionId'
|
|
103
|
+
@_hash['transaction_type_code'] = 'transactionTypeCode'
|
|
104
|
+
@_hash['transaction_status_code'] = 'transactionStatusCode'
|
|
105
|
+
@_hash['transaction_amount_range'] = 'transactionAmountRange'
|
|
106
|
+
@_hash['fraud_fields'] = 'fraudFields'
|
|
107
|
+
@_hash['customer_fields'] = 'customerFields'
|
|
108
|
+
@_hash
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# An array for optional fields
|
|
112
|
+
def self.optionals
|
|
113
|
+
%w[
|
|
114
|
+
pagination
|
|
115
|
+
sort_results_by
|
|
116
|
+
date_type
|
|
117
|
+
card_types
|
|
118
|
+
card_networks
|
|
119
|
+
card_number
|
|
120
|
+
token
|
|
121
|
+
reference_number
|
|
122
|
+
transaction_id
|
|
123
|
+
transaction_type_code
|
|
124
|
+
transaction_status_code
|
|
125
|
+
transaction_amount_range
|
|
126
|
+
fraud_fields
|
|
127
|
+
customer_fields
|
|
128
|
+
]
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# An array for nullable fields
|
|
132
|
+
def self.nullables
|
|
133
|
+
[]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP,
|
|
137
|
+
sort_results_by: SKIP, date_type: SKIP, card_types: SKIP,
|
|
138
|
+
card_networks: SKIP, card_number: SKIP, token: SKIP,
|
|
139
|
+
reference_number: SKIP, transaction_id: SKIP,
|
|
140
|
+
transaction_type_code: SKIP, transaction_status_code: SKIP,
|
|
141
|
+
transaction_amount_range: SKIP, fraud_fields: SKIP,
|
|
142
|
+
customer_fields: SKIP, additional_properties: nil)
|
|
143
|
+
# Add additional model properties to the instance
|
|
144
|
+
additional_properties = {} if additional_properties.nil?
|
|
145
|
+
|
|
146
|
+
@pagination = pagination unless pagination == SKIP
|
|
147
|
+
@sort_results_by = sort_results_by unless sort_results_by == SKIP
|
|
148
|
+
@hierarchy = hierarchy
|
|
149
|
+
@date_type = date_type unless date_type == SKIP
|
|
150
|
+
@date_range = date_range
|
|
151
|
+
@card_types = card_types unless card_types == SKIP
|
|
152
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
153
|
+
@card_number = card_number unless card_number == SKIP
|
|
154
|
+
@token = token unless token == SKIP
|
|
155
|
+
@reference_number = reference_number unless reference_number == SKIP
|
|
156
|
+
@transaction_id = transaction_id unless transaction_id == SKIP
|
|
157
|
+
@transaction_type_code = transaction_type_code unless transaction_type_code == SKIP
|
|
158
|
+
@transaction_status_code = transaction_status_code unless transaction_status_code == SKIP
|
|
159
|
+
@transaction_amount_range = transaction_amount_range unless transaction_amount_range == SKIP
|
|
160
|
+
@fraud_fields = fraud_fields unless fraud_fields == SKIP
|
|
161
|
+
@customer_fields = customer_fields unless customer_fields == SKIP
|
|
162
|
+
@additional_properties = additional_properties
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Creates an instance of the object from a hash.
|
|
166
|
+
def self.from_hash(hash)
|
|
167
|
+
return nil unless hash
|
|
168
|
+
|
|
169
|
+
# Extract variables from the hash.
|
|
170
|
+
hierarchy = Hierarchy.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
171
|
+
date_range = DateRange1.from_hash(hash['dateRange']) if hash['dateRange']
|
|
172
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
173
|
+
sort_results_by = SortResultsBy.from_hash(hash['sortResultsBy']) if hash['sortResultsBy']
|
|
174
|
+
date_type = hash.key?('dateType') ? hash['dateType'] : SKIP
|
|
175
|
+
card_types = hash.key?('cardTypes') ? hash['cardTypes'] : SKIP
|
|
176
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
177
|
+
card_number = hash.key?('cardNumber') ? hash['cardNumber'] : SKIP
|
|
178
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
179
|
+
reference_number =
|
|
180
|
+
hash.key?('referenceNumber') ? hash['referenceNumber'] : SKIP
|
|
181
|
+
transaction_id = hash.key?('transactionId') ? hash['transactionId'] : SKIP
|
|
182
|
+
transaction_type_code =
|
|
183
|
+
hash.key?('transactionTypeCode') ? hash['transactionTypeCode'] : SKIP
|
|
184
|
+
transaction_status_code =
|
|
185
|
+
hash.key?('transactionStatusCode') ? hash['transactionStatusCode'] : SKIP
|
|
186
|
+
transaction_amount_range = TransactionAmountRange.from_hash(hash['transactionAmountRange']) if
|
|
187
|
+
hash['transactionAmountRange']
|
|
188
|
+
fraud_fields = FraudFields2.from_hash(hash['fraudFields']) if hash['fraudFields']
|
|
189
|
+
customer_fields = CustomerFields2.from_hash(hash['customerFields']) if
|
|
190
|
+
hash['customerFields']
|
|
191
|
+
|
|
192
|
+
# Create a new hash for additional properties, removing known properties.
|
|
193
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
194
|
+
|
|
195
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
196
|
+
new_hash, proc { |value| value }
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
# Create object from extracted values.
|
|
200
|
+
SettlementsSearchRequest.new(hierarchy: hierarchy,
|
|
201
|
+
date_range: date_range,
|
|
202
|
+
pagination: pagination,
|
|
203
|
+
sort_results_by: sort_results_by,
|
|
204
|
+
date_type: date_type,
|
|
205
|
+
card_types: card_types,
|
|
206
|
+
card_networks: card_networks,
|
|
207
|
+
card_number: card_number,
|
|
208
|
+
token: token,
|
|
209
|
+
reference_number: reference_number,
|
|
210
|
+
transaction_id: transaction_id,
|
|
211
|
+
transaction_type_code: transaction_type_code,
|
|
212
|
+
transaction_status_code: transaction_status_code,
|
|
213
|
+
transaction_amount_range: transaction_amount_range,
|
|
214
|
+
fraud_fields: fraud_fields,
|
|
215
|
+
customer_fields: customer_fields,
|
|
216
|
+
additional_properties: additional_properties)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Provides a human-readable string representation of the object.
|
|
220
|
+
def to_s
|
|
221
|
+
class_name = self.class.name.split('::').last
|
|
222
|
+
"<#{class_name} pagination: #{@pagination}, sort_results_by: #{@sort_results_by},"\
|
|
223
|
+
" hierarchy: #{@hierarchy}, date_type: #{@date_type}, date_range: #{@date_range},"\
|
|
224
|
+
" card_types: #{@card_types}, card_networks: #{@card_networks}, card_number:"\
|
|
225
|
+
" #{@card_number}, token: #{@token}, reference_number: #{@reference_number}, transaction_id:"\
|
|
226
|
+
" #{@transaction_id}, transaction_type_code: #{@transaction_type_code},"\
|
|
227
|
+
" transaction_status_code: #{@transaction_status_code}, transaction_amount_range:"\
|
|
228
|
+
" #{@transaction_amount_range}, fraud_fields: #{@fraud_fields}, customer_fields:"\
|
|
229
|
+
" #{@customer_fields}, additional_properties: #{@additional_properties}>"
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
233
|
+
def inspect
|
|
234
|
+
class_name = self.class.name.split('::').last
|
|
235
|
+
"<#{class_name} pagination: #{@pagination.inspect}, sort_results_by:"\
|
|
236
|
+
" #{@sort_results_by.inspect}, hierarchy: #{@hierarchy.inspect}, date_type:"\
|
|
237
|
+
" #{@date_type.inspect}, date_range: #{@date_range.inspect}, card_types:"\
|
|
238
|
+
" #{@card_types.inspect}, card_networks: #{@card_networks.inspect}, card_number:"\
|
|
239
|
+
" #{@card_number.inspect}, token: #{@token.inspect}, reference_number:"\
|
|
240
|
+
" #{@reference_number.inspect}, transaction_id: #{@transaction_id.inspect},"\
|
|
241
|
+
" transaction_type_code: #{@transaction_type_code.inspect}, transaction_status_code:"\
|
|
242
|
+
" #{@transaction_status_code.inspect}, transaction_amount_range:"\
|
|
243
|
+
" #{@transaction_amount_range.inspect}, fraud_fields: #{@fraud_fields.inspect},"\
|
|
244
|
+
" customer_fields: #{@customer_fields.inspect}, additional_properties:"\
|
|
245
|
+
" #{@additional_properties}>"
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|