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,98 @@
|
|
|
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
|
+
# AuthorizationCurrency Model.
|
|
8
|
+
class AuthorizationCurrency < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The identifier code.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :code
|
|
15
|
+
|
|
16
|
+
# The short description of the code.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :short_description
|
|
19
|
+
|
|
20
|
+
# The long description of the code.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :long_description
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['code'] = 'code'
|
|
28
|
+
@_hash['short_description'] = 'shortDescription'
|
|
29
|
+
@_hash['long_description'] = 'longDescription'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
code
|
|
37
|
+
short_description
|
|
38
|
+
long_description
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(code: SKIP, short_description: SKIP, long_description: SKIP,
|
|
48
|
+
additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@code = code unless code == SKIP
|
|
53
|
+
@short_description = short_description unless short_description == SKIP
|
|
54
|
+
@long_description = long_description unless long_description == SKIP
|
|
55
|
+
@additional_properties = additional_properties
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
code = hash.key?('code') ? hash['code'] : SKIP
|
|
64
|
+
short_description =
|
|
65
|
+
hash.key?('shortDescription') ? hash['shortDescription'] : SKIP
|
|
66
|
+
long_description =
|
|
67
|
+
hash.key?('longDescription') ? hash['longDescription'] : SKIP
|
|
68
|
+
|
|
69
|
+
# Create a new hash for additional properties, removing known properties.
|
|
70
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
71
|
+
|
|
72
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
73
|
+
new_hash, proc { |value| value }
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# Create object from extracted values.
|
|
77
|
+
AuthorizationCurrency.new(code: code,
|
|
78
|
+
short_description: short_description,
|
|
79
|
+
long_description: long_description,
|
|
80
|
+
additional_properties: additional_properties)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a human-readable string representation of the object.
|
|
84
|
+
def to_s
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} code: #{@code}, short_description: #{@short_description}, long_description:"\
|
|
87
|
+
" #{@long_description}, additional_properties: #{@additional_properties}>"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
91
|
+
def inspect
|
|
92
|
+
class_name = self.class.name.split('::').last
|
|
93
|
+
"<#{class_name} code: #{@code.inspect}, short_description: #{@short_description.inspect},"\
|
|
94
|
+
" long_description: #{@long_description.inspect}, additional_properties:"\
|
|
95
|
+
" #{@additional_properties}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
# AuthorizationSource Model.
|
|
8
|
+
class AuthorizationSource < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The identifier code.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :code
|
|
15
|
+
|
|
16
|
+
# The short description of the code.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :short_description
|
|
19
|
+
|
|
20
|
+
# The long description of the code.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :long_description
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['code'] = 'code'
|
|
28
|
+
@_hash['short_description'] = 'shortDescription'
|
|
29
|
+
@_hash['long_description'] = 'longDescription'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
code
|
|
37
|
+
short_description
|
|
38
|
+
long_description
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(code: SKIP, short_description: SKIP, long_description: SKIP,
|
|
48
|
+
additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@code = code unless code == SKIP
|
|
53
|
+
@short_description = short_description unless short_description == SKIP
|
|
54
|
+
@long_description = long_description unless long_description == SKIP
|
|
55
|
+
@additional_properties = additional_properties
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
code = hash.key?('code') ? hash['code'] : SKIP
|
|
64
|
+
short_description =
|
|
65
|
+
hash.key?('shortDescription') ? hash['shortDescription'] : SKIP
|
|
66
|
+
long_description =
|
|
67
|
+
hash.key?('longDescription') ? hash['longDescription'] : SKIP
|
|
68
|
+
|
|
69
|
+
# Create a new hash for additional properties, removing known properties.
|
|
70
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
71
|
+
|
|
72
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
73
|
+
new_hash, proc { |value| value }
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# Create object from extracted values.
|
|
77
|
+
AuthorizationSource.new(code: code,
|
|
78
|
+
short_description: short_description,
|
|
79
|
+
long_description: long_description,
|
|
80
|
+
additional_properties: additional_properties)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a human-readable string representation of the object.
|
|
84
|
+
def to_s
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} code: #{@code}, short_description: #{@short_description}, long_description:"\
|
|
87
|
+
" #{@long_description}, additional_properties: #{@additional_properties}>"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
91
|
+
def inspect
|
|
92
|
+
class_name = self.class.name.split('::').last
|
|
93
|
+
"<#{class_name} code: #{@code.inspect}, short_description: #{@short_description.inspect},"\
|
|
94
|
+
" long_description: #{@long_description.inspect}, additional_properties:"\
|
|
95
|
+
" #{@additional_properties}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
# AvsResponseCode Model.
|
|
8
|
+
class AvsResponseCode < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The identifier code.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :code
|
|
15
|
+
|
|
16
|
+
# The short description of the code.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :short_description
|
|
19
|
+
|
|
20
|
+
# The long description of the code.
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :long_description
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['code'] = 'code'
|
|
28
|
+
@_hash['short_description'] = 'shortDescription'
|
|
29
|
+
@_hash['long_description'] = 'longDescription'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
code
|
|
37
|
+
short_description
|
|
38
|
+
long_description
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(code: SKIP, short_description: SKIP, long_description: SKIP,
|
|
48
|
+
additional_properties: nil)
|
|
49
|
+
# Add additional model properties to the instance
|
|
50
|
+
additional_properties = {} if additional_properties.nil?
|
|
51
|
+
|
|
52
|
+
@code = code unless code == SKIP
|
|
53
|
+
@short_description = short_description unless short_description == SKIP
|
|
54
|
+
@long_description = long_description unless long_description == SKIP
|
|
55
|
+
@additional_properties = additional_properties
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Creates an instance of the object from a hash.
|
|
59
|
+
def self.from_hash(hash)
|
|
60
|
+
return nil unless hash
|
|
61
|
+
|
|
62
|
+
# Extract variables from the hash.
|
|
63
|
+
code = hash.key?('code') ? hash['code'] : SKIP
|
|
64
|
+
short_description =
|
|
65
|
+
hash.key?('shortDescription') ? hash['shortDescription'] : SKIP
|
|
66
|
+
long_description =
|
|
67
|
+
hash.key?('longDescription') ? hash['longDescription'] : SKIP
|
|
68
|
+
|
|
69
|
+
# Create a new hash for additional properties, removing known properties.
|
|
70
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
71
|
+
|
|
72
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
73
|
+
new_hash, proc { |value| value }
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# Create object from extracted values.
|
|
77
|
+
AvsResponseCode.new(code: code,
|
|
78
|
+
short_description: short_description,
|
|
79
|
+
long_description: long_description,
|
|
80
|
+
additional_properties: additional_properties)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Provides a human-readable string representation of the object.
|
|
84
|
+
def to_s
|
|
85
|
+
class_name = self.class.name.split('::').last
|
|
86
|
+
"<#{class_name} code: #{@code}, short_description: #{@short_description}, long_description:"\
|
|
87
|
+
" #{@long_description}, additional_properties: #{@additional_properties}>"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
91
|
+
def inspect
|
|
92
|
+
class_name = self.class.name.split('::').last
|
|
93
|
+
"<#{class_name} code: #{@code.inspect}, short_description: #{@short_description.inspect},"\
|
|
94
|
+
" long_description: #{@long_description.inspect}, additional_properties:"\
|
|
95
|
+
" #{@additional_properties}>"
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
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
|
+
# The details of the real-time bank card transaction rejection.
|
|
8
|
+
class BankCardRejRealTimeTransaction < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# The date when the transaction has been processed for settlement between
|
|
13
|
+
# the two parties.
|
|
14
|
+
# @return [Date]
|
|
15
|
+
attr_accessor :process_date
|
|
16
|
+
|
|
17
|
+
# The unique identifier assigned to a group of transactions that were
|
|
18
|
+
# handled together as a single unit.
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :batch_number
|
|
21
|
+
|
|
22
|
+
# The total amount of all the transactions that are part of the batch file.
|
|
23
|
+
# @return [Float]
|
|
24
|
+
attr_accessor :batch_amount
|
|
25
|
+
|
|
26
|
+
# The sale count of the transaction.
|
|
27
|
+
# @return [Integer]
|
|
28
|
+
attr_accessor :sale_count
|
|
29
|
+
|
|
30
|
+
# The sale amount of the transaction.
|
|
31
|
+
# @return [Float]
|
|
32
|
+
attr_accessor :sale_amount
|
|
33
|
+
|
|
34
|
+
# The number of items sent back from a transaction.
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
attr_accessor :return_count
|
|
37
|
+
|
|
38
|
+
# The amount returned from a transaction.
|
|
39
|
+
# @return [Float]
|
|
40
|
+
attr_accessor :return_amount
|
|
41
|
+
|
|
42
|
+
# The amount returned from a transaction.
|
|
43
|
+
# @return [RejectionReason]
|
|
44
|
+
attr_accessor :rejection_reason
|
|
45
|
+
|
|
46
|
+
# The amount returned from a transaction.
|
|
47
|
+
# @return [BatchHoldStatus]
|
|
48
|
+
attr_accessor :batch_hold_status
|
|
49
|
+
|
|
50
|
+
# The amount returned from a transaction.
|
|
51
|
+
# @return [Hierarchy9]
|
|
52
|
+
attr_accessor :hierarchy
|
|
53
|
+
|
|
54
|
+
# A mapping from model property names to API property names.
|
|
55
|
+
def self.names
|
|
56
|
+
@_hash = {} if @_hash.nil?
|
|
57
|
+
@_hash['process_date'] = 'processDate'
|
|
58
|
+
@_hash['batch_number'] = 'batchNumber'
|
|
59
|
+
@_hash['batch_amount'] = 'batchAmount'
|
|
60
|
+
@_hash['sale_count'] = 'saleCount'
|
|
61
|
+
@_hash['sale_amount'] = 'saleAmount'
|
|
62
|
+
@_hash['return_count'] = 'returnCount'
|
|
63
|
+
@_hash['return_amount'] = 'returnAmount'
|
|
64
|
+
@_hash['rejection_reason'] = 'rejectionReason'
|
|
65
|
+
@_hash['batch_hold_status'] = 'batchHoldStatus'
|
|
66
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
67
|
+
@_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# An array for optional fields
|
|
71
|
+
def self.optionals
|
|
72
|
+
%w[
|
|
73
|
+
process_date
|
|
74
|
+
batch_number
|
|
75
|
+
batch_amount
|
|
76
|
+
sale_count
|
|
77
|
+
sale_amount
|
|
78
|
+
return_count
|
|
79
|
+
return_amount
|
|
80
|
+
rejection_reason
|
|
81
|
+
batch_hold_status
|
|
82
|
+
hierarchy
|
|
83
|
+
]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# An array for nullable fields
|
|
87
|
+
def self.nullables
|
|
88
|
+
[]
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def initialize(process_date: SKIP, batch_number: SKIP, batch_amount: SKIP,
|
|
92
|
+
sale_count: SKIP, sale_amount: SKIP, return_count: SKIP,
|
|
93
|
+
return_amount: SKIP, rejection_reason: SKIP,
|
|
94
|
+
batch_hold_status: SKIP, hierarchy: SKIP,
|
|
95
|
+
additional_properties: nil)
|
|
96
|
+
# Add additional model properties to the instance
|
|
97
|
+
additional_properties = {} if additional_properties.nil?
|
|
98
|
+
|
|
99
|
+
@process_date = process_date unless process_date == SKIP
|
|
100
|
+
@batch_number = batch_number unless batch_number == SKIP
|
|
101
|
+
@batch_amount = batch_amount unless batch_amount == SKIP
|
|
102
|
+
@sale_count = sale_count unless sale_count == SKIP
|
|
103
|
+
@sale_amount = sale_amount unless sale_amount == SKIP
|
|
104
|
+
@return_count = return_count unless return_count == SKIP
|
|
105
|
+
@return_amount = return_amount unless return_amount == SKIP
|
|
106
|
+
@rejection_reason = rejection_reason unless rejection_reason == SKIP
|
|
107
|
+
@batch_hold_status = batch_hold_status unless batch_hold_status == SKIP
|
|
108
|
+
@hierarchy = hierarchy unless hierarchy == 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
|
+
process_date = hash.key?('processDate') ? hash['processDate'] : SKIP
|
|
118
|
+
batch_number = hash.key?('batchNumber') ? hash['batchNumber'] : SKIP
|
|
119
|
+
batch_amount = hash.key?('batchAmount') ? hash['batchAmount'] : SKIP
|
|
120
|
+
sale_count = hash.key?('saleCount') ? hash['saleCount'] : SKIP
|
|
121
|
+
sale_amount = hash.key?('saleAmount') ? hash['saleAmount'] : SKIP
|
|
122
|
+
return_count = hash.key?('returnCount') ? hash['returnCount'] : SKIP
|
|
123
|
+
return_amount = hash.key?('returnAmount') ? hash['returnAmount'] : SKIP
|
|
124
|
+
rejection_reason = RejectionReason.from_hash(hash['rejectionReason']) if
|
|
125
|
+
hash['rejectionReason']
|
|
126
|
+
batch_hold_status = BatchHoldStatus.from_hash(hash['batchHoldStatus']) if
|
|
127
|
+
hash['batchHoldStatus']
|
|
128
|
+
hierarchy = Hierarchy9.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
129
|
+
|
|
130
|
+
# Create a new hash for additional properties, removing known properties.
|
|
131
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
132
|
+
|
|
133
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
134
|
+
new_hash, proc { |value| value }
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
# Create object from extracted values.
|
|
138
|
+
BankCardRejRealTimeTransaction.new(process_date: process_date,
|
|
139
|
+
batch_number: batch_number,
|
|
140
|
+
batch_amount: batch_amount,
|
|
141
|
+
sale_count: sale_count,
|
|
142
|
+
sale_amount: sale_amount,
|
|
143
|
+
return_count: return_count,
|
|
144
|
+
return_amount: return_amount,
|
|
145
|
+
rejection_reason: rejection_reason,
|
|
146
|
+
batch_hold_status: batch_hold_status,
|
|
147
|
+
hierarchy: hierarchy,
|
|
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} process_date: #{@process_date}, batch_number: #{@batch_number},"\
|
|
155
|
+
" batch_amount: #{@batch_amount}, sale_count: #{@sale_count}, sale_amount: #{@sale_amount},"\
|
|
156
|
+
" return_count: #{@return_count}, return_amount: #{@return_amount}, rejection_reason:"\
|
|
157
|
+
" #{@rejection_reason}, batch_hold_status: #{@batch_hold_status}, hierarchy: #{@hierarchy},"\
|
|
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} process_date: #{@process_date.inspect}, batch_number:"\
|
|
165
|
+
" #{@batch_number.inspect}, batch_amount: #{@batch_amount.inspect}, sale_count:"\
|
|
166
|
+
" #{@sale_count.inspect}, sale_amount: #{@sale_amount.inspect}, return_count:"\
|
|
167
|
+
" #{@return_count.inspect}, return_amount: #{@return_amount.inspect}, rejection_reason:"\
|
|
168
|
+
" #{@rejection_reason.inspect}, batch_hold_status: #{@batch_hold_status.inspect}, hierarchy:"\
|
|
169
|
+
" #{@hierarchy.inspect}, additional_properties: #{@additional_properties}>"
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
@@ -0,0 +1,159 @@
|
|
|
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 the bank card rejection request fields.
|
|
8
|
+
class BankCardRejectsSearchRequest < 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 [SortResultsBy5]
|
|
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
|
+
# The 11-byte unique identifier assigned to a group of transactions that
|
|
29
|
+
# were handled together as a single unit.
|
|
30
|
+
# @return [Integer]
|
|
31
|
+
attr_accessor :batch_number
|
|
32
|
+
|
|
33
|
+
# Indicates the batch hold status of the transaction.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :batch_hold_status
|
|
36
|
+
|
|
37
|
+
# The total amount of all the transactions that are part of the batch file.
|
|
38
|
+
# @return [Float]
|
|
39
|
+
attr_accessor :batch_amount
|
|
40
|
+
|
|
41
|
+
# The sale amount of the transaction.
|
|
42
|
+
# @return [Float]
|
|
43
|
+
attr_accessor :sale_amount
|
|
44
|
+
|
|
45
|
+
# The return amount of the transaction.
|
|
46
|
+
# @return [Float]
|
|
47
|
+
attr_accessor :return_amount
|
|
48
|
+
|
|
49
|
+
# A mapping from model property names to API property names.
|
|
50
|
+
def self.names
|
|
51
|
+
@_hash = {} if @_hash.nil?
|
|
52
|
+
@_hash['pagination'] = 'pagination'
|
|
53
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
54
|
+
@_hash['sort_results_by'] = 'sortResultsBy'
|
|
55
|
+
@_hash['date_range'] = 'dateRange'
|
|
56
|
+
@_hash['batch_number'] = 'batchNumber'
|
|
57
|
+
@_hash['batch_hold_status'] = 'batchHoldStatus'
|
|
58
|
+
@_hash['batch_amount'] = 'batchAmount'
|
|
59
|
+
@_hash['sale_amount'] = 'saleAmount'
|
|
60
|
+
@_hash['return_amount'] = 'returnAmount'
|
|
61
|
+
@_hash
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for optional fields
|
|
65
|
+
def self.optionals
|
|
66
|
+
%w[
|
|
67
|
+
pagination
|
|
68
|
+
sort_results_by
|
|
69
|
+
batch_number
|
|
70
|
+
batch_hold_status
|
|
71
|
+
batch_amount
|
|
72
|
+
sale_amount
|
|
73
|
+
return_amount
|
|
74
|
+
]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# An array for nullable fields
|
|
78
|
+
def self.nullables
|
|
79
|
+
[]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP,
|
|
83
|
+
sort_results_by: SKIP, batch_number: SKIP,
|
|
84
|
+
batch_hold_status: SKIP, batch_amount: SKIP,
|
|
85
|
+
sale_amount: SKIP, return_amount: SKIP,
|
|
86
|
+
additional_properties: nil)
|
|
87
|
+
# Add additional model properties to the instance
|
|
88
|
+
additional_properties = {} if additional_properties.nil?
|
|
89
|
+
|
|
90
|
+
@pagination = pagination unless pagination == SKIP
|
|
91
|
+
@hierarchy = hierarchy
|
|
92
|
+
@sort_results_by = sort_results_by unless sort_results_by == SKIP
|
|
93
|
+
@date_range = date_range
|
|
94
|
+
@batch_number = batch_number unless batch_number == SKIP
|
|
95
|
+
@batch_hold_status = batch_hold_status unless batch_hold_status == SKIP
|
|
96
|
+
@batch_amount = batch_amount unless batch_amount == SKIP
|
|
97
|
+
@sale_amount = sale_amount unless sale_amount == SKIP
|
|
98
|
+
@return_amount = return_amount unless return_amount == SKIP
|
|
99
|
+
@additional_properties = additional_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Creates an instance of the object from a hash.
|
|
103
|
+
def self.from_hash(hash)
|
|
104
|
+
return nil unless hash
|
|
105
|
+
|
|
106
|
+
# Extract variables from the hash.
|
|
107
|
+
hierarchy = Hierarchy6.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
108
|
+
date_range = DateRange1.from_hash(hash['dateRange']) if hash['dateRange']
|
|
109
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
110
|
+
sort_results_by = SortResultsBy5.from_hash(hash['sortResultsBy']) if hash['sortResultsBy']
|
|
111
|
+
batch_number = hash.key?('batchNumber') ? hash['batchNumber'] : SKIP
|
|
112
|
+
batch_hold_status =
|
|
113
|
+
hash.key?('batchHoldStatus') ? hash['batchHoldStatus'] : SKIP
|
|
114
|
+
batch_amount = hash.key?('batchAmount') ? hash['batchAmount'] : SKIP
|
|
115
|
+
sale_amount = hash.key?('saleAmount') ? hash['saleAmount'] : SKIP
|
|
116
|
+
return_amount = hash.key?('returnAmount') ? hash['returnAmount'] : SKIP
|
|
117
|
+
|
|
118
|
+
# Create a new hash for additional properties, removing known properties.
|
|
119
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
120
|
+
|
|
121
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
122
|
+
new_hash, proc { |value| value }
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
# Create object from extracted values.
|
|
126
|
+
BankCardRejectsSearchRequest.new(hierarchy: hierarchy,
|
|
127
|
+
date_range: date_range,
|
|
128
|
+
pagination: pagination,
|
|
129
|
+
sort_results_by: sort_results_by,
|
|
130
|
+
batch_number: batch_number,
|
|
131
|
+
batch_hold_status: batch_hold_status,
|
|
132
|
+
batch_amount: batch_amount,
|
|
133
|
+
sale_amount: sale_amount,
|
|
134
|
+
return_amount: return_amount,
|
|
135
|
+
additional_properties: additional_properties)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Provides a human-readable string representation of the object.
|
|
139
|
+
def to_s
|
|
140
|
+
class_name = self.class.name.split('::').last
|
|
141
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, sort_results_by:"\
|
|
142
|
+
" #{@sort_results_by}, date_range: #{@date_range}, batch_number: #{@batch_number},"\
|
|
143
|
+
" batch_hold_status: #{@batch_hold_status}, batch_amount: #{@batch_amount}, sale_amount:"\
|
|
144
|
+
" #{@sale_amount}, return_amount: #{@return_amount}, additional_properties:"\
|
|
145
|
+
" #{@additional_properties}>"
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
149
|
+
def inspect
|
|
150
|
+
class_name = self.class.name.split('::').last
|
|
151
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
152
|
+
" sort_results_by: #{@sort_results_by.inspect}, date_range: #{@date_range.inspect},"\
|
|
153
|
+
" batch_number: #{@batch_number.inspect}, batch_hold_status: #{@batch_hold_status.inspect},"\
|
|
154
|
+
" batch_amount: #{@batch_amount.inspect}, sale_amount: #{@sale_amount.inspect},"\
|
|
155
|
+
" return_amount: #{@return_amount.inspect}, additional_properties:"\
|
|
156
|
+
" #{@additional_properties}>"
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|