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,200 @@
|
|
|
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
|
+
# Search authorization transaction information.
|
|
8
|
+
class SearchAuthTransactions < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [TransactionDetails2]
|
|
14
|
+
attr_accessor :transaction_details
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [CardDetails2]
|
|
18
|
+
attr_accessor :card_details
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [LocationDetails2]
|
|
22
|
+
attr_accessor :location_details
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [InterchangeDetails]
|
|
26
|
+
attr_accessor :interchange_details
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [PremiumPayback]
|
|
30
|
+
attr_accessor :premium_payback
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [OtherServices2]
|
|
34
|
+
attr_accessor :other_services
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [EmvDetails2]
|
|
38
|
+
attr_accessor :emv_details
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [FraudSightDetails2]
|
|
42
|
+
attr_accessor :fraud_sight_details
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [SignifyDetails]
|
|
46
|
+
attr_accessor :signify_details
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [AdditionalDetails]
|
|
50
|
+
attr_accessor :additional_details
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [CustomerFields2]
|
|
54
|
+
attr_accessor :customer_fields
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [PaymentGatewayDetails1]
|
|
58
|
+
attr_accessor :payment_gateway_details
|
|
59
|
+
|
|
60
|
+
# A mapping from model property names to API property names.
|
|
61
|
+
def self.names
|
|
62
|
+
@_hash = {} if @_hash.nil?
|
|
63
|
+
@_hash['transaction_details'] = 'transactionDetails'
|
|
64
|
+
@_hash['card_details'] = 'cardDetails'
|
|
65
|
+
@_hash['location_details'] = 'locationDetails'
|
|
66
|
+
@_hash['interchange_details'] = 'interchangeDetails'
|
|
67
|
+
@_hash['premium_payback'] = 'premiumPayback'
|
|
68
|
+
@_hash['other_services'] = 'otherServices'
|
|
69
|
+
@_hash['emv_details'] = 'emvDetails'
|
|
70
|
+
@_hash['fraud_sight_details'] = 'fraudSightDetails'
|
|
71
|
+
@_hash['signify_details'] = 'signifyDetails'
|
|
72
|
+
@_hash['additional_details'] = 'additionalDetails'
|
|
73
|
+
@_hash['customer_fields'] = 'customerFields'
|
|
74
|
+
@_hash['payment_gateway_details'] = 'paymentGatewayDetails'
|
|
75
|
+
@_hash
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# An array for optional fields
|
|
79
|
+
def self.optionals
|
|
80
|
+
%w[
|
|
81
|
+
transaction_details
|
|
82
|
+
card_details
|
|
83
|
+
location_details
|
|
84
|
+
interchange_details
|
|
85
|
+
premium_payback
|
|
86
|
+
other_services
|
|
87
|
+
emv_details
|
|
88
|
+
fraud_sight_details
|
|
89
|
+
signify_details
|
|
90
|
+
additional_details
|
|
91
|
+
customer_fields
|
|
92
|
+
payment_gateway_details
|
|
93
|
+
]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# An array for nullable fields
|
|
97
|
+
def self.nullables
|
|
98
|
+
[]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def initialize(transaction_details: SKIP, card_details: SKIP,
|
|
102
|
+
location_details: SKIP, interchange_details: SKIP,
|
|
103
|
+
premium_payback: SKIP, other_services: SKIP,
|
|
104
|
+
emv_details: SKIP, fraud_sight_details: SKIP,
|
|
105
|
+
signify_details: SKIP, additional_details: SKIP,
|
|
106
|
+
customer_fields: SKIP, payment_gateway_details: SKIP,
|
|
107
|
+
additional_properties: nil)
|
|
108
|
+
# Add additional model properties to the instance
|
|
109
|
+
additional_properties = {} if additional_properties.nil?
|
|
110
|
+
|
|
111
|
+
@transaction_details = transaction_details unless transaction_details == SKIP
|
|
112
|
+
@card_details = card_details unless card_details == SKIP
|
|
113
|
+
@location_details = location_details unless location_details == SKIP
|
|
114
|
+
@interchange_details = interchange_details unless interchange_details == SKIP
|
|
115
|
+
@premium_payback = premium_payback unless premium_payback == SKIP
|
|
116
|
+
@other_services = other_services unless other_services == SKIP
|
|
117
|
+
@emv_details = emv_details unless emv_details == SKIP
|
|
118
|
+
@fraud_sight_details = fraud_sight_details unless fraud_sight_details == SKIP
|
|
119
|
+
@signify_details = signify_details unless signify_details == SKIP
|
|
120
|
+
@additional_details = additional_details unless additional_details == SKIP
|
|
121
|
+
@customer_fields = customer_fields unless customer_fields == SKIP
|
|
122
|
+
@payment_gateway_details = payment_gateway_details unless payment_gateway_details == SKIP
|
|
123
|
+
@additional_properties = additional_properties
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Creates an instance of the object from a hash.
|
|
127
|
+
def self.from_hash(hash)
|
|
128
|
+
return nil unless hash
|
|
129
|
+
|
|
130
|
+
# Extract variables from the hash.
|
|
131
|
+
transaction_details = TransactionDetails2.from_hash(hash['transactionDetails']) if
|
|
132
|
+
hash['transactionDetails']
|
|
133
|
+
card_details = CardDetails2.from_hash(hash['cardDetails']) if hash['cardDetails']
|
|
134
|
+
location_details = LocationDetails2.from_hash(hash['locationDetails']) if
|
|
135
|
+
hash['locationDetails']
|
|
136
|
+
interchange_details = InterchangeDetails.from_hash(hash['interchangeDetails']) if
|
|
137
|
+
hash['interchangeDetails']
|
|
138
|
+
premium_payback = PremiumPayback.from_hash(hash['premiumPayback']) if hash['premiumPayback']
|
|
139
|
+
other_services = OtherServices2.from_hash(hash['otherServices']) if hash['otherServices']
|
|
140
|
+
emv_details = EmvDetails2.from_hash(hash['emvDetails']) if hash['emvDetails']
|
|
141
|
+
fraud_sight_details = FraudSightDetails2.from_hash(hash['fraudSightDetails']) if
|
|
142
|
+
hash['fraudSightDetails']
|
|
143
|
+
signify_details = SignifyDetails.from_hash(hash['signifyDetails']) if hash['signifyDetails']
|
|
144
|
+
additional_details = AdditionalDetails.from_hash(hash['additionalDetails']) if
|
|
145
|
+
hash['additionalDetails']
|
|
146
|
+
customer_fields = CustomerFields2.from_hash(hash['customerFields']) if
|
|
147
|
+
hash['customerFields']
|
|
148
|
+
payment_gateway_details = PaymentGatewayDetails1.from_hash(hash['paymentGatewayDetails']) if
|
|
149
|
+
hash['paymentGatewayDetails']
|
|
150
|
+
|
|
151
|
+
# Create a new hash for additional properties, removing known properties.
|
|
152
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
153
|
+
|
|
154
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
155
|
+
new_hash, proc { |value| value }
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
# Create object from extracted values.
|
|
159
|
+
SearchAuthTransactions.new(transaction_details: transaction_details,
|
|
160
|
+
card_details: card_details,
|
|
161
|
+
location_details: location_details,
|
|
162
|
+
interchange_details: interchange_details,
|
|
163
|
+
premium_payback: premium_payback,
|
|
164
|
+
other_services: other_services,
|
|
165
|
+
emv_details: emv_details,
|
|
166
|
+
fraud_sight_details: fraud_sight_details,
|
|
167
|
+
signify_details: signify_details,
|
|
168
|
+
additional_details: additional_details,
|
|
169
|
+
customer_fields: customer_fields,
|
|
170
|
+
payment_gateway_details: payment_gateway_details,
|
|
171
|
+
additional_properties: additional_properties)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Provides a human-readable string representation of the object.
|
|
175
|
+
def to_s
|
|
176
|
+
class_name = self.class.name.split('::').last
|
|
177
|
+
"<#{class_name} transaction_details: #{@transaction_details}, card_details:"\
|
|
178
|
+
" #{@card_details}, location_details: #{@location_details}, interchange_details:"\
|
|
179
|
+
" #{@interchange_details}, premium_payback: #{@premium_payback}, other_services:"\
|
|
180
|
+
" #{@other_services}, emv_details: #{@emv_details}, fraud_sight_details:"\
|
|
181
|
+
" #{@fraud_sight_details}, signify_details: #{@signify_details}, additional_details:"\
|
|
182
|
+
" #{@additional_details}, customer_fields: #{@customer_fields}, payment_gateway_details:"\
|
|
183
|
+
" #{@payment_gateway_details}, additional_properties: #{@additional_properties}>"
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
187
|
+
def inspect
|
|
188
|
+
class_name = self.class.name.split('::').last
|
|
189
|
+
"<#{class_name} transaction_details: #{@transaction_details.inspect}, card_details:"\
|
|
190
|
+
" #{@card_details.inspect}, location_details: #{@location_details.inspect},"\
|
|
191
|
+
" interchange_details: #{@interchange_details.inspect}, premium_payback:"\
|
|
192
|
+
" #{@premium_payback.inspect}, other_services: #{@other_services.inspect}, emv_details:"\
|
|
193
|
+
" #{@emv_details.inspect}, fraud_sight_details: #{@fraud_sight_details.inspect},"\
|
|
194
|
+
" signify_details: #{@signify_details.inspect}, additional_details:"\
|
|
195
|
+
" #{@additional_details.inspect}, customer_fields: #{@customer_fields.inspect},"\
|
|
196
|
+
" payment_gateway_details: #{@payment_gateway_details.inspect}, additional_properties:"\
|
|
197
|
+
" #{@additional_properties}>"
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# reporting_settlement_research_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated
|
|
4
|
+
# by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingSettlementResearchApi
|
|
7
|
+
# Provides the details of the all the card transactions grouped by card type,
|
|
8
|
+
# batch number, and process date."
|
|
9
|
+
class SearchDailyTotals < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# The format used to display your resources.
|
|
14
|
+
# @return [PaginationResponse]
|
|
15
|
+
attr_accessor :pagination
|
|
16
|
+
|
|
17
|
+
# Retrieves the daily total information.
|
|
18
|
+
# @return [Array[SearchDailyTotalsDetails]]
|
|
19
|
+
attr_accessor :details
|
|
20
|
+
|
|
21
|
+
# A mapping from model property names to API property names.
|
|
22
|
+
def self.names
|
|
23
|
+
@_hash = {} if @_hash.nil?
|
|
24
|
+
@_hash['pagination'] = 'pagination'
|
|
25
|
+
@_hash['details'] = 'details'
|
|
26
|
+
@_hash
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# An array for optional fields
|
|
30
|
+
def self.optionals
|
|
31
|
+
%w[
|
|
32
|
+
pagination
|
|
33
|
+
details
|
|
34
|
+
]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# An array for nullable fields
|
|
38
|
+
def self.nullables
|
|
39
|
+
[]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def initialize(pagination: SKIP, details: SKIP, additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@pagination = pagination unless pagination == SKIP
|
|
47
|
+
@details = details unless details == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
pagination = PaginationResponse.from_hash(hash['pagination']) if hash['pagination']
|
|
57
|
+
# Parameter is an array, so we need to iterate through it
|
|
58
|
+
details = nil
|
|
59
|
+
unless hash['details'].nil?
|
|
60
|
+
details = []
|
|
61
|
+
hash['details'].each do |structure|
|
|
62
|
+
details << (SearchDailyTotalsDetails.from_hash(structure) if structure)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
details = SKIP unless hash.key?('details')
|
|
67
|
+
|
|
68
|
+
# Create a new hash for additional properties, removing known properties.
|
|
69
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
70
|
+
|
|
71
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
72
|
+
new_hash, proc { |value| value }
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
# Create object from extracted values.
|
|
76
|
+
SearchDailyTotals.new(pagination: pagination,
|
|
77
|
+
details: details,
|
|
78
|
+
additional_properties: additional_properties)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Provides a human-readable string representation of the object.
|
|
82
|
+
def to_s
|
|
83
|
+
class_name = self.class.name.split('::').last
|
|
84
|
+
"<#{class_name} pagination: #{@pagination}, details: #{@details}, additional_properties:"\
|
|
85
|
+
" #{@additional_properties}>"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
89
|
+
def inspect
|
|
90
|
+
class_name = self.class.name.split('::').last
|
|
91
|
+
"<#{class_name} pagination: #{@pagination.inspect}, details: #{@details.inspect},"\
|
|
92
|
+
" additional_properties: #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
# Fields used to search daily totals.
|
|
8
|
+
class SearchDailyTotalsDetails < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The category or classification of a payment card based on the issuing
|
|
13
|
+
# network.
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :card_type
|
|
16
|
+
|
|
17
|
+
# The 11-byte unique identifier assigned to a group of transactions that
|
|
18
|
+
# were handled together as a single unit.
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :batch_number
|
|
21
|
+
|
|
22
|
+
# The date when the transaction has been processed for settlement between
|
|
23
|
+
# the two parties.
|
|
24
|
+
# @return [Date]
|
|
25
|
+
attr_accessor :process_date
|
|
26
|
+
|
|
27
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
28
|
+
# withdraws funds).
|
|
29
|
+
# @return [Date]
|
|
30
|
+
attr_accessor :transaction_date
|
|
31
|
+
|
|
32
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
33
|
+
# withdraws funds).
|
|
34
|
+
# @return [Hierarchy10]
|
|
35
|
+
attr_accessor :hierarchy
|
|
36
|
+
|
|
37
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
38
|
+
# withdraws funds).
|
|
39
|
+
# @return [TransactionSummary]
|
|
40
|
+
attr_accessor :transaction_summary
|
|
41
|
+
|
|
42
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
43
|
+
# withdraws funds).
|
|
44
|
+
# @return [InterchangeDetails1]
|
|
45
|
+
attr_accessor :interchange_details
|
|
46
|
+
|
|
47
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
48
|
+
# withdraws funds).
|
|
49
|
+
# @return [Terminal]
|
|
50
|
+
attr_accessor :terminal
|
|
51
|
+
|
|
52
|
+
# The date and time when the bank has settled the transaction (deposits or
|
|
53
|
+
# withdraws funds).
|
|
54
|
+
# @return [FundedNetSettle2]
|
|
55
|
+
attr_accessor :funded_net_settle
|
|
56
|
+
|
|
57
|
+
# A mapping from model property names to API property names.
|
|
58
|
+
def self.names
|
|
59
|
+
@_hash = {} if @_hash.nil?
|
|
60
|
+
@_hash['card_type'] = 'cardType'
|
|
61
|
+
@_hash['batch_number'] = 'batchNumber'
|
|
62
|
+
@_hash['process_date'] = 'processDate'
|
|
63
|
+
@_hash['transaction_date'] = 'transactionDate'
|
|
64
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
65
|
+
@_hash['transaction_summary'] = 'transactionSummary'
|
|
66
|
+
@_hash['interchange_details'] = 'interchangeDetails'
|
|
67
|
+
@_hash['terminal'] = 'terminal'
|
|
68
|
+
@_hash['funded_net_settle'] = 'fundedNetSettle'
|
|
69
|
+
@_hash
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# An array for optional fields
|
|
73
|
+
def self.optionals
|
|
74
|
+
%w[
|
|
75
|
+
card_type
|
|
76
|
+
batch_number
|
|
77
|
+
process_date
|
|
78
|
+
transaction_date
|
|
79
|
+
hierarchy
|
|
80
|
+
transaction_summary
|
|
81
|
+
interchange_details
|
|
82
|
+
terminal
|
|
83
|
+
funded_net_settle
|
|
84
|
+
]
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# An array for nullable fields
|
|
88
|
+
def self.nullables
|
|
89
|
+
[]
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def initialize(card_type: SKIP, batch_number: SKIP, process_date: SKIP,
|
|
93
|
+
transaction_date: SKIP, hierarchy: SKIP,
|
|
94
|
+
transaction_summary: SKIP, interchange_details: SKIP,
|
|
95
|
+
terminal: SKIP, funded_net_settle: SKIP,
|
|
96
|
+
additional_properties: nil)
|
|
97
|
+
# Add additional model properties to the instance
|
|
98
|
+
additional_properties = {} if additional_properties.nil?
|
|
99
|
+
|
|
100
|
+
@card_type = card_type unless card_type == SKIP
|
|
101
|
+
@batch_number = batch_number unless batch_number == SKIP
|
|
102
|
+
@process_date = process_date unless process_date == SKIP
|
|
103
|
+
@transaction_date = transaction_date unless transaction_date == SKIP
|
|
104
|
+
@hierarchy = hierarchy unless hierarchy == SKIP
|
|
105
|
+
@transaction_summary = transaction_summary unless transaction_summary == SKIP
|
|
106
|
+
@interchange_details = interchange_details unless interchange_details == SKIP
|
|
107
|
+
@terminal = terminal unless terminal == SKIP
|
|
108
|
+
@funded_net_settle = funded_net_settle unless funded_net_settle == SKIP
|
|
109
|
+
@additional_properties = additional_properties
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Creates an instance of the object from a hash.
|
|
113
|
+
def self.from_hash(hash)
|
|
114
|
+
return nil unless hash
|
|
115
|
+
|
|
116
|
+
# Extract variables from the hash.
|
|
117
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
118
|
+
batch_number = hash.key?('batchNumber') ? hash['batchNumber'] : SKIP
|
|
119
|
+
process_date = hash.key?('processDate') ? hash['processDate'] : SKIP
|
|
120
|
+
transaction_date =
|
|
121
|
+
hash.key?('transactionDate') ? hash['transactionDate'] : SKIP
|
|
122
|
+
hierarchy = Hierarchy10.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
123
|
+
transaction_summary = TransactionSummary.from_hash(hash['transactionSummary']) if
|
|
124
|
+
hash['transactionSummary']
|
|
125
|
+
interchange_details = InterchangeDetails1.from_hash(hash['interchangeDetails']) if
|
|
126
|
+
hash['interchangeDetails']
|
|
127
|
+
terminal = Terminal.from_hash(hash['terminal']) if hash['terminal']
|
|
128
|
+
funded_net_settle = FundedNetSettle2.from_hash(hash['fundedNetSettle']) if
|
|
129
|
+
hash['fundedNetSettle']
|
|
130
|
+
|
|
131
|
+
# Create a new hash for additional properties, removing known properties.
|
|
132
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
133
|
+
|
|
134
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
135
|
+
new_hash, proc { |value| value }
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
# Create object from extracted values.
|
|
139
|
+
SearchDailyTotalsDetails.new(card_type: card_type,
|
|
140
|
+
batch_number: batch_number,
|
|
141
|
+
process_date: process_date,
|
|
142
|
+
transaction_date: transaction_date,
|
|
143
|
+
hierarchy: hierarchy,
|
|
144
|
+
transaction_summary: transaction_summary,
|
|
145
|
+
interchange_details: interchange_details,
|
|
146
|
+
terminal: terminal,
|
|
147
|
+
funded_net_settle: funded_net_settle,
|
|
148
|
+
additional_properties: additional_properties)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Provides a human-readable string representation of the object.
|
|
152
|
+
def to_s
|
|
153
|
+
class_name = self.class.name.split('::').last
|
|
154
|
+
"<#{class_name} card_type: #{@card_type}, batch_number: #{@batch_number}, process_date:"\
|
|
155
|
+
" #{@process_date}, transaction_date: #{@transaction_date}, hierarchy: #{@hierarchy},"\
|
|
156
|
+
" transaction_summary: #{@transaction_summary}, interchange_details:"\
|
|
157
|
+
" #{@interchange_details}, terminal: #{@terminal}, funded_net_settle: #{@funded_net_settle},"\
|
|
158
|
+
" additional_properties: #{@additional_properties}>"
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
162
|
+
def inspect
|
|
163
|
+
class_name = self.class.name.split('::').last
|
|
164
|
+
"<#{class_name} card_type: #{@card_type.inspect}, batch_number: #{@batch_number.inspect},"\
|
|
165
|
+
" process_date: #{@process_date.inspect}, transaction_date: #{@transaction_date.inspect},"\
|
|
166
|
+
" hierarchy: #{@hierarchy.inspect}, transaction_summary: #{@transaction_summary.inspect},"\
|
|
167
|
+
" interchange_details: #{@interchange_details.inspect}, terminal: #{@terminal.inspect},"\
|
|
168
|
+
" funded_net_settle: #{@funded_net_settle.inspect}, additional_properties:"\
|
|
169
|
+
" #{@additional_properties}>"
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
# SearchDateRequest Model.
|
|
8
|
+
class SearchDateRequest < 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 [Hierarchy2]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [DateRange1]
|
|
22
|
+
attr_accessor :date_range
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [BatchCardType1]
|
|
26
|
+
attr_accessor :batch_card_type
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [SortResultsBy3]
|
|
30
|
+
attr_accessor :sort_results_by
|
|
31
|
+
|
|
32
|
+
# A mapping from model property names to API property names.
|
|
33
|
+
def self.names
|
|
34
|
+
@_hash = {} if @_hash.nil?
|
|
35
|
+
@_hash['pagination'] = 'pagination'
|
|
36
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
37
|
+
@_hash['date_range'] = 'dateRange'
|
|
38
|
+
@_hash['batch_card_type'] = 'batchCardType'
|
|
39
|
+
@_hash['sort_results_by'] = 'sortResultsBy'
|
|
40
|
+
@_hash
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for optional fields
|
|
44
|
+
def self.optionals
|
|
45
|
+
%w[
|
|
46
|
+
pagination
|
|
47
|
+
batch_card_type
|
|
48
|
+
sort_results_by
|
|
49
|
+
]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# An array for nullable fields
|
|
53
|
+
def self.nullables
|
|
54
|
+
[]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP,
|
|
58
|
+
batch_card_type: SKIP, sort_results_by: SKIP,
|
|
59
|
+
additional_properties: nil)
|
|
60
|
+
# Add additional model properties to the instance
|
|
61
|
+
additional_properties = {} if additional_properties.nil?
|
|
62
|
+
|
|
63
|
+
@pagination = pagination unless pagination == SKIP
|
|
64
|
+
@hierarchy = hierarchy
|
|
65
|
+
@date_range = date_range
|
|
66
|
+
@batch_card_type = batch_card_type unless batch_card_type == SKIP
|
|
67
|
+
@sort_results_by = sort_results_by unless sort_results_by == SKIP
|
|
68
|
+
@additional_properties = additional_properties
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Creates an instance of the object from a hash.
|
|
72
|
+
def self.from_hash(hash)
|
|
73
|
+
return nil unless hash
|
|
74
|
+
|
|
75
|
+
# Extract variables from the hash.
|
|
76
|
+
hierarchy = Hierarchy2.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
77
|
+
date_range = DateRange1.from_hash(hash['dateRange']) if hash['dateRange']
|
|
78
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
79
|
+
batch_card_type =
|
|
80
|
+
hash.key?('batchCardType') ? hash['batchCardType'] : SKIP
|
|
81
|
+
sort_results_by = SortResultsBy3.from_hash(hash['sortResultsBy']) if hash['sortResultsBy']
|
|
82
|
+
|
|
83
|
+
# Create a new hash for additional properties, removing known properties.
|
|
84
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
85
|
+
|
|
86
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
87
|
+
new_hash, proc { |value| value }
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
# Create object from extracted values.
|
|
91
|
+
SearchDateRequest.new(hierarchy: hierarchy,
|
|
92
|
+
date_range: date_range,
|
|
93
|
+
pagination: pagination,
|
|
94
|
+
batch_card_type: batch_card_type,
|
|
95
|
+
sort_results_by: sort_results_by,
|
|
96
|
+
additional_properties: additional_properties)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Provides a human-readable string representation of the object.
|
|
100
|
+
def to_s
|
|
101
|
+
class_name = self.class.name.split('::').last
|
|
102
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, date_range:"\
|
|
103
|
+
" #{@date_range}, batch_card_type: #{@batch_card_type}, sort_results_by:"\
|
|
104
|
+
" #{@sort_results_by}, additional_properties: #{@additional_properties}>"
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
108
|
+
def inspect
|
|
109
|
+
class_name = self.class.name.split('::').last
|
|
110
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
111
|
+
" date_range: #{@date_range.inspect}, batch_card_type: #{@batch_card_type.inspect},"\
|
|
112
|
+
" sort_results_by: #{@sort_results_by.inspect}, additional_properties:"\
|
|
113
|
+
" #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
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
|
+
# SearchDateResponse Model.
|
|
8
|
+
class SearchDateResponse < 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
|
+
# Refers to the settlement batches date details.
|
|
17
|
+
# @return [Array[SettlementBatchesTransactionDate]]
|
|
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 << (SettlementBatchesTransactionDate.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
|
+
SearchDateResponse.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
|