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
|
+
# LevelIndicator Model.
|
|
8
|
+
class LevelIndicator < 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
|
+
LevelIndicator.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,199 @@
|
|
|
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 details of the transaction location and merchant related
|
|
8
|
+
# information.
|
|
9
|
+
class LocationDetails < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [Hierarchy10]
|
|
15
|
+
attr_accessor :hierarchy
|
|
16
|
+
|
|
17
|
+
# An alternate 12-16 digit unique identifier assigned to each merchant.
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :alternate_merchant_id
|
|
20
|
+
|
|
21
|
+
# Alternate store number is a secondary ID used to uniquely identify a store
|
|
22
|
+
# within a merchant's hierarchy.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :alternate_store_number
|
|
25
|
+
|
|
26
|
+
# The name of a business or registered name of the company or entity
|
|
27
|
+
# operating the business.
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :merchant_name
|
|
30
|
+
|
|
31
|
+
# Each hierarchy has a generic ACRO defined by default per banking
|
|
32
|
+
# relationship. All merchants have a four character billing acronym.
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :acro
|
|
35
|
+
|
|
36
|
+
# The region where a merchant conducts business, reflecting local time.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :merchant_time_zone
|
|
39
|
+
|
|
40
|
+
# The unique identifier of the Sales Person/Employee/Clerk for transcation
|
|
41
|
+
# handling accountability.
|
|
42
|
+
# @return [Integer]
|
|
43
|
+
attr_accessor :sales_person
|
|
44
|
+
|
|
45
|
+
# The gift card agent allowing merchants to distinguish between different
|
|
46
|
+
# card programs, if necessary. Worldpay assigns these 4-digit values.
|
|
47
|
+
# @return [String]
|
|
48
|
+
attr_accessor :agent_bank
|
|
49
|
+
|
|
50
|
+
# The gift card agent allowing merchants to distinguish between different
|
|
51
|
+
# card programs, if necessary. Worldpay assigns these 4-digit values.
|
|
52
|
+
# @return [CountryOfOrigin]
|
|
53
|
+
attr_accessor :country_of_origin
|
|
54
|
+
|
|
55
|
+
# If the entity is owned, controlled, or influenced by the government for
|
|
56
|
+
# public interest. <br> Possible values are True or False.
|
|
57
|
+
# @return [TrueClass | FalseClass]
|
|
58
|
+
attr_accessor :government_controlled_entity
|
|
59
|
+
|
|
60
|
+
# If the entity is owned, controlled, or influenced by the government for
|
|
61
|
+
# public interest. <br> Possible values are True or False.
|
|
62
|
+
# @return [MerchantCategory]
|
|
63
|
+
attr_accessor :merchant_category
|
|
64
|
+
|
|
65
|
+
# A mapping from model property names to API property names.
|
|
66
|
+
def self.names
|
|
67
|
+
@_hash = {} if @_hash.nil?
|
|
68
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
69
|
+
@_hash['alternate_merchant_id'] = 'alternateMerchantId'
|
|
70
|
+
@_hash['alternate_store_number'] = 'alternateStoreNumber'
|
|
71
|
+
@_hash['merchant_name'] = 'merchantName'
|
|
72
|
+
@_hash['acro'] = 'acro'
|
|
73
|
+
@_hash['merchant_time_zone'] = 'merchantTimeZone'
|
|
74
|
+
@_hash['sales_person'] = 'salesPerson'
|
|
75
|
+
@_hash['agent_bank'] = 'agentBank'
|
|
76
|
+
@_hash['country_of_origin'] = 'countryOfOrigin'
|
|
77
|
+
@_hash['government_controlled_entity'] = 'governmentControlledEntity'
|
|
78
|
+
@_hash['merchant_category'] = 'merchantCategory'
|
|
79
|
+
@_hash
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# An array for optional fields
|
|
83
|
+
def self.optionals
|
|
84
|
+
%w[
|
|
85
|
+
hierarchy
|
|
86
|
+
alternate_merchant_id
|
|
87
|
+
alternate_store_number
|
|
88
|
+
merchant_name
|
|
89
|
+
acro
|
|
90
|
+
merchant_time_zone
|
|
91
|
+
sales_person
|
|
92
|
+
agent_bank
|
|
93
|
+
country_of_origin
|
|
94
|
+
government_controlled_entity
|
|
95
|
+
merchant_category
|
|
96
|
+
]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# An array for nullable fields
|
|
100
|
+
def self.nullables
|
|
101
|
+
[]
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def initialize(hierarchy: SKIP, alternate_merchant_id: SKIP,
|
|
105
|
+
alternate_store_number: SKIP, merchant_name: SKIP,
|
|
106
|
+
acro: SKIP, merchant_time_zone: SKIP, sales_person: SKIP,
|
|
107
|
+
agent_bank: SKIP, country_of_origin: SKIP,
|
|
108
|
+
government_controlled_entity: SKIP, merchant_category: SKIP,
|
|
109
|
+
additional_properties: nil)
|
|
110
|
+
# Add additional model properties to the instance
|
|
111
|
+
additional_properties = {} if additional_properties.nil?
|
|
112
|
+
|
|
113
|
+
@hierarchy = hierarchy unless hierarchy == SKIP
|
|
114
|
+
@alternate_merchant_id = alternate_merchant_id unless alternate_merchant_id == SKIP
|
|
115
|
+
@alternate_store_number = alternate_store_number unless alternate_store_number == SKIP
|
|
116
|
+
@merchant_name = merchant_name unless merchant_name == SKIP
|
|
117
|
+
@acro = acro unless acro == SKIP
|
|
118
|
+
@merchant_time_zone = merchant_time_zone unless merchant_time_zone == SKIP
|
|
119
|
+
@sales_person = sales_person unless sales_person == SKIP
|
|
120
|
+
@agent_bank = agent_bank unless agent_bank == SKIP
|
|
121
|
+
@country_of_origin = country_of_origin unless country_of_origin == SKIP
|
|
122
|
+
unless government_controlled_entity == SKIP
|
|
123
|
+
@government_controlled_entity =
|
|
124
|
+
government_controlled_entity
|
|
125
|
+
end
|
|
126
|
+
@merchant_category = merchant_category unless merchant_category == SKIP
|
|
127
|
+
@additional_properties = additional_properties
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Creates an instance of the object from a hash.
|
|
131
|
+
def self.from_hash(hash)
|
|
132
|
+
return nil unless hash
|
|
133
|
+
|
|
134
|
+
# Extract variables from the hash.
|
|
135
|
+
hierarchy = Hierarchy10.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
136
|
+
alternate_merchant_id =
|
|
137
|
+
hash.key?('alternateMerchantId') ? hash['alternateMerchantId'] : SKIP
|
|
138
|
+
alternate_store_number =
|
|
139
|
+
hash.key?('alternateStoreNumber') ? hash['alternateStoreNumber'] : SKIP
|
|
140
|
+
merchant_name = hash.key?('merchantName') ? hash['merchantName'] : SKIP
|
|
141
|
+
acro = hash.key?('acro') ? hash['acro'] : SKIP
|
|
142
|
+
merchant_time_zone =
|
|
143
|
+
hash.key?('merchantTimeZone') ? hash['merchantTimeZone'] : SKIP
|
|
144
|
+
sales_person = hash.key?('salesPerson') ? hash['salesPerson'] : SKIP
|
|
145
|
+
agent_bank = hash.key?('agentBank') ? hash['agentBank'] : SKIP
|
|
146
|
+
country_of_origin = CountryOfOrigin.from_hash(hash['countryOfOrigin']) if
|
|
147
|
+
hash['countryOfOrigin']
|
|
148
|
+
government_controlled_entity =
|
|
149
|
+
hash.key?('governmentControlledEntity') ? hash['governmentControlledEntity'] : SKIP
|
|
150
|
+
merchant_category = MerchantCategory.from_hash(hash['merchantCategory']) if
|
|
151
|
+
hash['merchantCategory']
|
|
152
|
+
|
|
153
|
+
# Create a new hash for additional properties, removing known properties.
|
|
154
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
155
|
+
|
|
156
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
157
|
+
new_hash, proc { |value| value }
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
# Create object from extracted values.
|
|
161
|
+
LocationDetails.new(hierarchy: hierarchy,
|
|
162
|
+
alternate_merchant_id: alternate_merchant_id,
|
|
163
|
+
alternate_store_number: alternate_store_number,
|
|
164
|
+
merchant_name: merchant_name,
|
|
165
|
+
acro: acro,
|
|
166
|
+
merchant_time_zone: merchant_time_zone,
|
|
167
|
+
sales_person: sales_person,
|
|
168
|
+
agent_bank: agent_bank,
|
|
169
|
+
country_of_origin: country_of_origin,
|
|
170
|
+
government_controlled_entity: government_controlled_entity,
|
|
171
|
+
merchant_category: merchant_category,
|
|
172
|
+
additional_properties: additional_properties)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Provides a human-readable string representation of the object.
|
|
176
|
+
def to_s
|
|
177
|
+
class_name = self.class.name.split('::').last
|
|
178
|
+
"<#{class_name} hierarchy: #{@hierarchy}, alternate_merchant_id: #{@alternate_merchant_id},"\
|
|
179
|
+
" alternate_store_number: #{@alternate_store_number}, merchant_name: #{@merchant_name},"\
|
|
180
|
+
" acro: #{@acro}, merchant_time_zone: #{@merchant_time_zone}, sales_person:"\
|
|
181
|
+
" #{@sales_person}, agent_bank: #{@agent_bank}, country_of_origin: #{@country_of_origin},"\
|
|
182
|
+
" government_controlled_entity: #{@government_controlled_entity}, merchant_category:"\
|
|
183
|
+
" #{@merchant_category}, 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} hierarchy: #{@hierarchy.inspect}, alternate_merchant_id:"\
|
|
190
|
+
" #{@alternate_merchant_id.inspect}, alternate_store_number:"\
|
|
191
|
+
" #{@alternate_store_number.inspect}, merchant_name: #{@merchant_name.inspect}, acro:"\
|
|
192
|
+
" #{@acro.inspect}, merchant_time_zone: #{@merchant_time_zone.inspect}, sales_person:"\
|
|
193
|
+
" #{@sales_person.inspect}, agent_bank: #{@agent_bank.inspect}, country_of_origin:"\
|
|
194
|
+
" #{@country_of_origin.inspect}, government_controlled_entity:"\
|
|
195
|
+
" #{@government_controlled_entity.inspect}, merchant_category:"\
|
|
196
|
+
" #{@merchant_category.inspect}, additional_properties: #{@additional_properties}>"
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
# LocationDetails2 Model.
|
|
8
|
+
class LocationDetails2 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Hierarchy10]
|
|
14
|
+
attr_accessor :hierarchy
|
|
15
|
+
|
|
16
|
+
# An alternate 12-16 digit unique identifier assigned to each merchant.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :alternate_merchant_id
|
|
19
|
+
|
|
20
|
+
# Alternate store number is a secondary ID used to uniquely identify a store
|
|
21
|
+
# within a merchant's hierarchy.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :alternate_store_number
|
|
24
|
+
|
|
25
|
+
# The name of a business or registered name of the company or entity
|
|
26
|
+
# operating the business.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :merchant_name
|
|
29
|
+
|
|
30
|
+
# Each hierarchy has a generic ACRO defined by default per banking
|
|
31
|
+
# relationship. All merchants have a four character billing acronym.
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :acro
|
|
34
|
+
|
|
35
|
+
# The region where a merchant conducts business, reflecting local time.
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :merchant_time_zone
|
|
38
|
+
|
|
39
|
+
# The unique identifier of the Sales Person/Employee/Clerk for transcation
|
|
40
|
+
# handling accountability.
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
attr_accessor :sales_person
|
|
43
|
+
|
|
44
|
+
# The gift card agent allowing merchants to distinguish between different
|
|
45
|
+
# card programs, if necessary. Worldpay assigns these 4-digit values.
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :agent_bank
|
|
48
|
+
|
|
49
|
+
# The gift card agent allowing merchants to distinguish between different
|
|
50
|
+
# card programs, if necessary. Worldpay assigns these 4-digit values.
|
|
51
|
+
# @return [CountryOfOrigin]
|
|
52
|
+
attr_accessor :country_of_origin
|
|
53
|
+
|
|
54
|
+
# If the entity is owned, controlled, or influenced by the government for
|
|
55
|
+
# public interest. <br> Possible values are True or False.
|
|
56
|
+
# @return [TrueClass | FalseClass]
|
|
57
|
+
attr_accessor :government_controlled_entity
|
|
58
|
+
|
|
59
|
+
# If the entity is owned, controlled, or influenced by the government for
|
|
60
|
+
# public interest. <br> Possible values are True or False.
|
|
61
|
+
# @return [MerchantCategory]
|
|
62
|
+
attr_accessor :merchant_category
|
|
63
|
+
|
|
64
|
+
# A mapping from model property names to API property names.
|
|
65
|
+
def self.names
|
|
66
|
+
@_hash = {} if @_hash.nil?
|
|
67
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
68
|
+
@_hash['alternate_merchant_id'] = 'alternateMerchantId'
|
|
69
|
+
@_hash['alternate_store_number'] = 'alternateStoreNumber'
|
|
70
|
+
@_hash['merchant_name'] = 'merchantName'
|
|
71
|
+
@_hash['acro'] = 'acro'
|
|
72
|
+
@_hash['merchant_time_zone'] = 'merchantTimeZone'
|
|
73
|
+
@_hash['sales_person'] = 'salesPerson'
|
|
74
|
+
@_hash['agent_bank'] = 'agentBank'
|
|
75
|
+
@_hash['country_of_origin'] = 'countryOfOrigin'
|
|
76
|
+
@_hash['government_controlled_entity'] = 'governmentControlledEntity'
|
|
77
|
+
@_hash['merchant_category'] = 'merchantCategory'
|
|
78
|
+
@_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# An array for optional fields
|
|
82
|
+
def self.optionals
|
|
83
|
+
%w[
|
|
84
|
+
hierarchy
|
|
85
|
+
alternate_merchant_id
|
|
86
|
+
alternate_store_number
|
|
87
|
+
merchant_name
|
|
88
|
+
acro
|
|
89
|
+
merchant_time_zone
|
|
90
|
+
sales_person
|
|
91
|
+
agent_bank
|
|
92
|
+
country_of_origin
|
|
93
|
+
government_controlled_entity
|
|
94
|
+
merchant_category
|
|
95
|
+
]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# An array for nullable fields
|
|
99
|
+
def self.nullables
|
|
100
|
+
[]
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def initialize(hierarchy: SKIP, alternate_merchant_id: SKIP,
|
|
104
|
+
alternate_store_number: SKIP, merchant_name: SKIP,
|
|
105
|
+
acro: SKIP, merchant_time_zone: SKIP, sales_person: SKIP,
|
|
106
|
+
agent_bank: SKIP, country_of_origin: SKIP,
|
|
107
|
+
government_controlled_entity: SKIP, merchant_category: SKIP,
|
|
108
|
+
additional_properties: nil)
|
|
109
|
+
# Add additional model properties to the instance
|
|
110
|
+
additional_properties = {} if additional_properties.nil?
|
|
111
|
+
|
|
112
|
+
@hierarchy = hierarchy unless hierarchy == SKIP
|
|
113
|
+
@alternate_merchant_id = alternate_merchant_id unless alternate_merchant_id == SKIP
|
|
114
|
+
@alternate_store_number = alternate_store_number unless alternate_store_number == SKIP
|
|
115
|
+
@merchant_name = merchant_name unless merchant_name == SKIP
|
|
116
|
+
@acro = acro unless acro == SKIP
|
|
117
|
+
@merchant_time_zone = merchant_time_zone unless merchant_time_zone == SKIP
|
|
118
|
+
@sales_person = sales_person unless sales_person == SKIP
|
|
119
|
+
@agent_bank = agent_bank unless agent_bank == SKIP
|
|
120
|
+
@country_of_origin = country_of_origin unless country_of_origin == SKIP
|
|
121
|
+
unless government_controlled_entity == SKIP
|
|
122
|
+
@government_controlled_entity =
|
|
123
|
+
government_controlled_entity
|
|
124
|
+
end
|
|
125
|
+
@merchant_category = merchant_category unless merchant_category == SKIP
|
|
126
|
+
@additional_properties = additional_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Creates an instance of the object from a hash.
|
|
130
|
+
def self.from_hash(hash)
|
|
131
|
+
return nil unless hash
|
|
132
|
+
|
|
133
|
+
# Extract variables from the hash.
|
|
134
|
+
hierarchy = Hierarchy10.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
135
|
+
alternate_merchant_id =
|
|
136
|
+
hash.key?('alternateMerchantId') ? hash['alternateMerchantId'] : SKIP
|
|
137
|
+
alternate_store_number =
|
|
138
|
+
hash.key?('alternateStoreNumber') ? hash['alternateStoreNumber'] : SKIP
|
|
139
|
+
merchant_name = hash.key?('merchantName') ? hash['merchantName'] : SKIP
|
|
140
|
+
acro = hash.key?('acro') ? hash['acro'] : SKIP
|
|
141
|
+
merchant_time_zone =
|
|
142
|
+
hash.key?('merchantTimeZone') ? hash['merchantTimeZone'] : SKIP
|
|
143
|
+
sales_person = hash.key?('salesPerson') ? hash['salesPerson'] : SKIP
|
|
144
|
+
agent_bank = hash.key?('agentBank') ? hash['agentBank'] : SKIP
|
|
145
|
+
country_of_origin = CountryOfOrigin.from_hash(hash['countryOfOrigin']) if
|
|
146
|
+
hash['countryOfOrigin']
|
|
147
|
+
government_controlled_entity =
|
|
148
|
+
hash.key?('governmentControlledEntity') ? hash['governmentControlledEntity'] : SKIP
|
|
149
|
+
merchant_category = MerchantCategory.from_hash(hash['merchantCategory']) if
|
|
150
|
+
hash['merchantCategory']
|
|
151
|
+
|
|
152
|
+
# Create a new hash for additional properties, removing known properties.
|
|
153
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
154
|
+
|
|
155
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
156
|
+
new_hash, proc { |value| value }
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
# Create object from extracted values.
|
|
160
|
+
LocationDetails2.new(hierarchy: hierarchy,
|
|
161
|
+
alternate_merchant_id: alternate_merchant_id,
|
|
162
|
+
alternate_store_number: alternate_store_number,
|
|
163
|
+
merchant_name: merchant_name,
|
|
164
|
+
acro: acro,
|
|
165
|
+
merchant_time_zone: merchant_time_zone,
|
|
166
|
+
sales_person: sales_person,
|
|
167
|
+
agent_bank: agent_bank,
|
|
168
|
+
country_of_origin: country_of_origin,
|
|
169
|
+
government_controlled_entity: government_controlled_entity,
|
|
170
|
+
merchant_category: merchant_category,
|
|
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} hierarchy: #{@hierarchy}, alternate_merchant_id: #{@alternate_merchant_id},"\
|
|
178
|
+
" alternate_store_number: #{@alternate_store_number}, merchant_name: #{@merchant_name},"\
|
|
179
|
+
" acro: #{@acro}, merchant_time_zone: #{@merchant_time_zone}, sales_person:"\
|
|
180
|
+
" #{@sales_person}, agent_bank: #{@agent_bank}, country_of_origin: #{@country_of_origin},"\
|
|
181
|
+
" government_controlled_entity: #{@government_controlled_entity}, merchant_category:"\
|
|
182
|
+
" #{@merchant_category}, additional_properties: #{@additional_properties}>"
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
186
|
+
def inspect
|
|
187
|
+
class_name = self.class.name.split('::').last
|
|
188
|
+
"<#{class_name} hierarchy: #{@hierarchy.inspect}, alternate_merchant_id:"\
|
|
189
|
+
" #{@alternate_merchant_id.inspect}, alternate_store_number:"\
|
|
190
|
+
" #{@alternate_store_number.inspect}, merchant_name: #{@merchant_name.inspect}, acro:"\
|
|
191
|
+
" #{@acro.inspect}, merchant_time_zone: #{@merchant_time_zone.inspect}, sales_person:"\
|
|
192
|
+
" #{@sales_person.inspect}, agent_bank: #{@agent_bank.inspect}, country_of_origin:"\
|
|
193
|
+
" #{@country_of_origin.inspect}, government_controlled_entity:"\
|
|
194
|
+
" #{@government_controlled_entity.inspect}, merchant_category:"\
|
|
195
|
+
" #{@merchant_category.inspect}, additional_properties: #{@additional_properties}>"
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
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
|
+
# MailPhoneIndicator Model.
|
|
8
|
+
class MailPhoneIndicator < 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
|
+
MailPhoneIndicator.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
|
+
# MarketSpecificDataIndicator Model.
|
|
8
|
+
class MarketSpecificDataIndicator < 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
|
+
MarketSpecificDataIndicator.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
|