worldpay-apimatic-sdk 0.0.1
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 +147 -0
- data/bin/console +15 -0
- data/lib/reporting_authorization_summary_api/api_helper.rb +10 -0
- data/lib/reporting_authorization_summary_api/apis/authorizations_api.rb +258 -0
- data/lib/reporting_authorization_summary_api/apis/base_api.rb +67 -0
- data/lib/reporting_authorization_summary_api/client.rb +75 -0
- data/lib/reporting_authorization_summary_api/configuration.rb +165 -0
- data/lib/reporting_authorization_summary_api/exceptions/api_exception.rb +21 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_cardnetwork0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_chain0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_division0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_merchant0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_store0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_superchain0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/exceptions/authorizations_summary_transactiondate0_error_exception.rb +55 -0
- data/lib/reporting_authorization_summary_api/http/api_response.rb +19 -0
- data/lib/reporting_authorization_summary_api/http/auth/custom_header_authentication.rb +52 -0
- data/lib/reporting_authorization_summary_api/http/http_call_back.rb +10 -0
- data/lib/reporting_authorization_summary_api/http/http_method_enum.rb +10 -0
- data/lib/reporting_authorization_summary_api/http/http_request.rb +10 -0
- data/lib/reporting_authorization_summary_api/http/http_response.rb +10 -0
- data/lib/reporting_authorization_summary_api/http/proxy_settings.rb +22 -0
- data/lib/reporting_authorization_summary_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/reporting_authorization_summary_api/logging/sdk_logger.rb +17 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_request.rb +107 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_request_by_chain.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_request_by_division.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_request_by_store.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_request_by_super_chain.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_summary_request_by_card_network.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_summary_request_by_merchant.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/auth_transactions_summary_request_by_transaction_date.rb +116 -0
- data/lib/reporting_authorization_summary_api/models/authorizations_summary_cardnetwork_response.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/authorizations_summary_transactiondate_response.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/base_model.rb +110 -0
- data/lib/reporting_authorization_summary_api/models/card_network_type.rb +68 -0
- data/lib/reporting_authorization_summary_api/models/code_and_description.rb +98 -0
- data/lib/reporting_authorization_summary_api/models/common_summary_detail.rb +161 -0
- data/lib/reporting_authorization_summary_api/models/common_summary_responses.rb +213 -0
- data/lib/reporting_authorization_summary_api/models/date_range.rb +82 -0
- data/lib/reporting_authorization_summary_api/models/date_range_type.rb +85 -0
- data/lib/reporting_authorization_summary_api/models/entity.rb +99 -0
- data/lib/reporting_authorization_summary_api/models/entity_division_response.rb +94 -0
- data/lib/reporting_authorization_summary_api/models/entity_store_response.rb +95 -0
- data/lib/reporting_authorization_summary_api/models/error.rb +96 -0
- data/lib/reporting_authorization_summary_api/models/error_response.rb +84 -0
- data/lib/reporting_authorization_summary_api/models/level.rb +67 -0
- data/lib/reporting_authorization_summary_api/models/pagination.rb +87 -0
- data/lib/reporting_authorization_summary_api/models/pagination_response.rb +108 -0
- data/lib/reporting_authorization_summary_api/models/pagination_type.rb +87 -0
- data/lib/reporting_authorization_summary_api/models/summary.rb +183 -0
- data/lib/reporting_authorization_summary_api/models/summary1.rb +173 -0
- data/lib/reporting_authorization_summary_api/models/summary2.rb +190 -0
- data/lib/reporting_authorization_summary_api/models/summary3.rb +189 -0
- data/lib/reporting_authorization_summary_api/models/summary4.rb +174 -0
- data/lib/reporting_authorization_summary_api/models/summary5.rb +174 -0
- data/lib/reporting_authorization_summary_api/models/summary6.rb +173 -0
- data/lib/reporting_authorization_summary_api/models/summary_card_network.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_chain.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_division.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_entity_chain.rb +79 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_entity_entity.rb +79 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_entity_super_chain.rb +78 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_merchant.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_store.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_detail_super_chain.rb +233 -0
- data/lib/reporting_authorization_summary_api/models/summary_responses.rb +202 -0
- data/lib/reporting_authorization_summary_api/models/summary_transaction_date.rb +233 -0
- data/lib/reporting_authorization_summary_api/utilities/date_time_helper.rb +11 -0
- data/lib/reporting_authorization_summary_api/utilities/file_wrapper.rb +28 -0
- data/lib/reporting_authorization_summary_api.rb +132 -0
- metadata +158 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# reporting_authorization_summary_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingAuthorizationSummaryApi
|
|
7
|
+
# AuthTransactionsRequestByStore Model.
|
|
8
|
+
class AuthTransactionsRequestByStore < 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 [Entity]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# The category or classification of a payment card based on the issuing
|
|
21
|
+
# network. Default is Credit.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :card_type
|
|
24
|
+
|
|
25
|
+
# The network the card is associated with that facilitates the payment.
|
|
26
|
+
# <br>Default is All Card Networks.
|
|
27
|
+
# @return [Array[CardNetworkType]]
|
|
28
|
+
attr_accessor :card_networks
|
|
29
|
+
|
|
30
|
+
# The network the card is associated with that facilitates the payment.
|
|
31
|
+
# <br>Default is All Card Networks.
|
|
32
|
+
# @return [DateRange]
|
|
33
|
+
attr_accessor :date_range
|
|
34
|
+
|
|
35
|
+
# A mapping from model property names to API property names.
|
|
36
|
+
def self.names
|
|
37
|
+
@_hash = {} if @_hash.nil?
|
|
38
|
+
@_hash['pagination'] = 'pagination'
|
|
39
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
40
|
+
@_hash['card_type'] = 'cardType'
|
|
41
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
42
|
+
@_hash['date_range'] = 'dateRange'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
pagination
|
|
50
|
+
card_type
|
|
51
|
+
card_networks
|
|
52
|
+
]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# An array for nullable fields
|
|
56
|
+
def self.nullables
|
|
57
|
+
[]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP, card_type: SKIP,
|
|
61
|
+
card_networks: SKIP, additional_properties: nil)
|
|
62
|
+
# Add additional model properties to the instance
|
|
63
|
+
additional_properties = {} if additional_properties.nil?
|
|
64
|
+
|
|
65
|
+
@pagination = pagination unless pagination == SKIP
|
|
66
|
+
@hierarchy = hierarchy
|
|
67
|
+
@card_type = card_type unless card_type == SKIP
|
|
68
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
69
|
+
@date_range = date_range
|
|
70
|
+
@additional_properties = additional_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Creates an instance of the object from a hash.
|
|
74
|
+
def self.from_hash(hash)
|
|
75
|
+
return nil unless hash
|
|
76
|
+
|
|
77
|
+
# Extract variables from the hash.
|
|
78
|
+
hierarchy = Entity.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
79
|
+
date_range = DateRange.from_hash(hash['dateRange']) if hash['dateRange']
|
|
80
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
81
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
82
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
83
|
+
|
|
84
|
+
# Create a new hash for additional properties, removing known properties.
|
|
85
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
86
|
+
|
|
87
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
88
|
+
new_hash, proc { |value| value }
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Create object from extracted values.
|
|
92
|
+
AuthTransactionsRequestByStore.new(hierarchy: hierarchy,
|
|
93
|
+
date_range: date_range,
|
|
94
|
+
pagination: pagination,
|
|
95
|
+
card_type: card_type,
|
|
96
|
+
card_networks: card_networks,
|
|
97
|
+
additional_properties: additional_properties)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a human-readable string representation of the object.
|
|
101
|
+
def to_s
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, card_type:"\
|
|
104
|
+
" #{@card_type}, card_networks: #{@card_networks}, date_range: #{@date_range},"\
|
|
105
|
+
" additional_properties: #{@additional_properties}>"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
109
|
+
def inspect
|
|
110
|
+
class_name = self.class.name.split('::').last
|
|
111
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
112
|
+
" card_type: #{@card_type.inspect}, card_networks: #{@card_networks.inspect}, date_range:"\
|
|
113
|
+
" #{@date_range.inspect}, additional_properties: #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
data/lib/reporting_authorization_summary_api/models/auth_transactions_request_by_super_chain.rb
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# reporting_authorization_summary_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingAuthorizationSummaryApi
|
|
7
|
+
# AuthTransactionsRequestBySuperChain Model.
|
|
8
|
+
class AuthTransactionsRequestBySuperChain < 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 [Entity]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# The category or classification of a payment card based on the issuing
|
|
21
|
+
# network. Default is Credit.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :card_type
|
|
24
|
+
|
|
25
|
+
# The network the card is associated with that facilitates the payment.
|
|
26
|
+
# <br>Default is All Card Networks.
|
|
27
|
+
# @return [Array[CardNetworkType]]
|
|
28
|
+
attr_accessor :card_networks
|
|
29
|
+
|
|
30
|
+
# The network the card is associated with that facilitates the payment.
|
|
31
|
+
# <br>Default is All Card Networks.
|
|
32
|
+
# @return [DateRange]
|
|
33
|
+
attr_accessor :date_range
|
|
34
|
+
|
|
35
|
+
# A mapping from model property names to API property names.
|
|
36
|
+
def self.names
|
|
37
|
+
@_hash = {} if @_hash.nil?
|
|
38
|
+
@_hash['pagination'] = 'pagination'
|
|
39
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
40
|
+
@_hash['card_type'] = 'cardType'
|
|
41
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
42
|
+
@_hash['date_range'] = 'dateRange'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
pagination
|
|
50
|
+
card_type
|
|
51
|
+
card_networks
|
|
52
|
+
]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# An array for nullable fields
|
|
56
|
+
def self.nullables
|
|
57
|
+
[]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP, card_type: SKIP,
|
|
61
|
+
card_networks: SKIP, additional_properties: nil)
|
|
62
|
+
# Add additional model properties to the instance
|
|
63
|
+
additional_properties = {} if additional_properties.nil?
|
|
64
|
+
|
|
65
|
+
@pagination = pagination unless pagination == SKIP
|
|
66
|
+
@hierarchy = hierarchy
|
|
67
|
+
@card_type = card_type unless card_type == SKIP
|
|
68
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
69
|
+
@date_range = date_range
|
|
70
|
+
@additional_properties = additional_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Creates an instance of the object from a hash.
|
|
74
|
+
def self.from_hash(hash)
|
|
75
|
+
return nil unless hash
|
|
76
|
+
|
|
77
|
+
# Extract variables from the hash.
|
|
78
|
+
hierarchy = Entity.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
79
|
+
date_range = DateRange.from_hash(hash['dateRange']) if hash['dateRange']
|
|
80
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
81
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
82
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
83
|
+
|
|
84
|
+
# Create a new hash for additional properties, removing known properties.
|
|
85
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
86
|
+
|
|
87
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
88
|
+
new_hash, proc { |value| value }
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Create object from extracted values.
|
|
92
|
+
AuthTransactionsRequestBySuperChain.new(hierarchy: hierarchy,
|
|
93
|
+
date_range: date_range,
|
|
94
|
+
pagination: pagination,
|
|
95
|
+
card_type: card_type,
|
|
96
|
+
card_networks: card_networks,
|
|
97
|
+
additional_properties: additional_properties)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a human-readable string representation of the object.
|
|
101
|
+
def to_s
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, card_type:"\
|
|
104
|
+
" #{@card_type}, card_networks: #{@card_networks}, date_range: #{@date_range},"\
|
|
105
|
+
" additional_properties: #{@additional_properties}>"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
109
|
+
def inspect
|
|
110
|
+
class_name = self.class.name.split('::').last
|
|
111
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
112
|
+
" card_type: #{@card_type.inspect}, card_networks: #{@card_networks.inspect}, date_range:"\
|
|
113
|
+
" #{@date_range.inspect}, additional_properties: #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# reporting_authorization_summary_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingAuthorizationSummaryApi
|
|
7
|
+
# AuthTransactionsSummaryRequestByCardNetwork Model.
|
|
8
|
+
class AuthTransactionsSummaryRequestByCardNetwork < 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 [Entity]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# The category or classification of a payment card based on the issuing
|
|
21
|
+
# network. Default is Credit.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :card_type
|
|
24
|
+
|
|
25
|
+
# The network the card is associated with that facilitates the payment.
|
|
26
|
+
# <br>Default is All Card Networks.
|
|
27
|
+
# @return [Array[CardNetworkType]]
|
|
28
|
+
attr_accessor :card_networks
|
|
29
|
+
|
|
30
|
+
# The network the card is associated with that facilitates the payment.
|
|
31
|
+
# <br>Default is All Card Networks.
|
|
32
|
+
# @return [DateRange]
|
|
33
|
+
attr_accessor :date_range
|
|
34
|
+
|
|
35
|
+
# A mapping from model property names to API property names.
|
|
36
|
+
def self.names
|
|
37
|
+
@_hash = {} if @_hash.nil?
|
|
38
|
+
@_hash['pagination'] = 'pagination'
|
|
39
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
40
|
+
@_hash['card_type'] = 'cardType'
|
|
41
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
42
|
+
@_hash['date_range'] = 'dateRange'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
pagination
|
|
50
|
+
card_type
|
|
51
|
+
card_networks
|
|
52
|
+
]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# An array for nullable fields
|
|
56
|
+
def self.nullables
|
|
57
|
+
[]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP, card_type: SKIP,
|
|
61
|
+
card_networks: SKIP, additional_properties: nil)
|
|
62
|
+
# Add additional model properties to the instance
|
|
63
|
+
additional_properties = {} if additional_properties.nil?
|
|
64
|
+
|
|
65
|
+
@pagination = pagination unless pagination == SKIP
|
|
66
|
+
@hierarchy = hierarchy
|
|
67
|
+
@card_type = card_type unless card_type == SKIP
|
|
68
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
69
|
+
@date_range = date_range
|
|
70
|
+
@additional_properties = additional_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Creates an instance of the object from a hash.
|
|
74
|
+
def self.from_hash(hash)
|
|
75
|
+
return nil unless hash
|
|
76
|
+
|
|
77
|
+
# Extract variables from the hash.
|
|
78
|
+
hierarchy = Entity.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
79
|
+
date_range = DateRange.from_hash(hash['dateRange']) if hash['dateRange']
|
|
80
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
81
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
82
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
83
|
+
|
|
84
|
+
# Create a new hash for additional properties, removing known properties.
|
|
85
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
86
|
+
|
|
87
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
88
|
+
new_hash, proc { |value| value }
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Create object from extracted values.
|
|
92
|
+
AuthTransactionsSummaryRequestByCardNetwork.new(hierarchy: hierarchy,
|
|
93
|
+
date_range: date_range,
|
|
94
|
+
pagination: pagination,
|
|
95
|
+
card_type: card_type,
|
|
96
|
+
card_networks: card_networks,
|
|
97
|
+
additional_properties: additional_properties)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a human-readable string representation of the object.
|
|
101
|
+
def to_s
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, card_type:"\
|
|
104
|
+
" #{@card_type}, card_networks: #{@card_networks}, date_range: #{@date_range},"\
|
|
105
|
+
" additional_properties: #{@additional_properties}>"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
109
|
+
def inspect
|
|
110
|
+
class_name = self.class.name.split('::').last
|
|
111
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
112
|
+
" card_type: #{@card_type.inspect}, card_networks: #{@card_networks.inspect}, date_range:"\
|
|
113
|
+
" #{@date_range.inspect}, additional_properties: #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
data/lib/reporting_authorization_summary_api/models/auth_transactions_summary_request_by_merchant.rb
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# reporting_authorization_summary_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingAuthorizationSummaryApi
|
|
7
|
+
# AuthTransactionsSummaryRequestByMerchant Model.
|
|
8
|
+
class AuthTransactionsSummaryRequestByMerchant < 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 [Entity]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# The category or classification of a payment card based on the issuing
|
|
21
|
+
# network. Default is Credit.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :card_type
|
|
24
|
+
|
|
25
|
+
# The network the card is associated with that facilitates the payment.
|
|
26
|
+
# <br>Default is All Card Networks.
|
|
27
|
+
# @return [Array[CardNetworkType]]
|
|
28
|
+
attr_accessor :card_networks
|
|
29
|
+
|
|
30
|
+
# The network the card is associated with that facilitates the payment.
|
|
31
|
+
# <br>Default is All Card Networks.
|
|
32
|
+
# @return [DateRange]
|
|
33
|
+
attr_accessor :date_range
|
|
34
|
+
|
|
35
|
+
# A mapping from model property names to API property names.
|
|
36
|
+
def self.names
|
|
37
|
+
@_hash = {} if @_hash.nil?
|
|
38
|
+
@_hash['pagination'] = 'pagination'
|
|
39
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
40
|
+
@_hash['card_type'] = 'cardType'
|
|
41
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
42
|
+
@_hash['date_range'] = 'dateRange'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
pagination
|
|
50
|
+
card_type
|
|
51
|
+
card_networks
|
|
52
|
+
]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# An array for nullable fields
|
|
56
|
+
def self.nullables
|
|
57
|
+
[]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP, card_type: SKIP,
|
|
61
|
+
card_networks: SKIP, additional_properties: nil)
|
|
62
|
+
# Add additional model properties to the instance
|
|
63
|
+
additional_properties = {} if additional_properties.nil?
|
|
64
|
+
|
|
65
|
+
@pagination = pagination unless pagination == SKIP
|
|
66
|
+
@hierarchy = hierarchy
|
|
67
|
+
@card_type = card_type unless card_type == SKIP
|
|
68
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
69
|
+
@date_range = date_range
|
|
70
|
+
@additional_properties = additional_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Creates an instance of the object from a hash.
|
|
74
|
+
def self.from_hash(hash)
|
|
75
|
+
return nil unless hash
|
|
76
|
+
|
|
77
|
+
# Extract variables from the hash.
|
|
78
|
+
hierarchy = Entity.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
79
|
+
date_range = DateRange.from_hash(hash['dateRange']) if hash['dateRange']
|
|
80
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
81
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
82
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
83
|
+
|
|
84
|
+
# Create a new hash for additional properties, removing known properties.
|
|
85
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
86
|
+
|
|
87
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
88
|
+
new_hash, proc { |value| value }
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Create object from extracted values.
|
|
92
|
+
AuthTransactionsSummaryRequestByMerchant.new(hierarchy: hierarchy,
|
|
93
|
+
date_range: date_range,
|
|
94
|
+
pagination: pagination,
|
|
95
|
+
card_type: card_type,
|
|
96
|
+
card_networks: card_networks,
|
|
97
|
+
additional_properties: additional_properties)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a human-readable string representation of the object.
|
|
101
|
+
def to_s
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, card_type:"\
|
|
104
|
+
" #{@card_type}, card_networks: #{@card_networks}, date_range: #{@date_range},"\
|
|
105
|
+
" additional_properties: #{@additional_properties}>"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
109
|
+
def inspect
|
|
110
|
+
class_name = self.class.name.split('::').last
|
|
111
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
112
|
+
" card_type: #{@card_type.inspect}, card_networks: #{@card_networks.inspect}, date_range:"\
|
|
113
|
+
" #{@date_range.inspect}, additional_properties: #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# reporting_authorization_summary_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically
|
|
4
|
+
# generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ReportingAuthorizationSummaryApi
|
|
7
|
+
# AuthTransactionsSummaryRequestByTransactionDate Model.
|
|
8
|
+
class AuthTransactionsSummaryRequestByTransactionDate < 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 [Entity]
|
|
18
|
+
attr_accessor :hierarchy
|
|
19
|
+
|
|
20
|
+
# The category or classification of a payment card based on the issuing
|
|
21
|
+
# network. Default is Credit.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :card_type
|
|
24
|
+
|
|
25
|
+
# The network the card is associated with that facilitates the payment.
|
|
26
|
+
# <br>Default is All Card Networks.
|
|
27
|
+
# @return [Array[CardNetworkType]]
|
|
28
|
+
attr_accessor :card_networks
|
|
29
|
+
|
|
30
|
+
# The network the card is associated with that facilitates the payment.
|
|
31
|
+
# <br>Default is All Card Networks.
|
|
32
|
+
# @return [DateRange]
|
|
33
|
+
attr_accessor :date_range
|
|
34
|
+
|
|
35
|
+
# A mapping from model property names to API property names.
|
|
36
|
+
def self.names
|
|
37
|
+
@_hash = {} if @_hash.nil?
|
|
38
|
+
@_hash['pagination'] = 'pagination'
|
|
39
|
+
@_hash['hierarchy'] = 'hierarchy'
|
|
40
|
+
@_hash['card_type'] = 'cardType'
|
|
41
|
+
@_hash['card_networks'] = 'cardNetworks'
|
|
42
|
+
@_hash['date_range'] = 'dateRange'
|
|
43
|
+
@_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# An array for optional fields
|
|
47
|
+
def self.optionals
|
|
48
|
+
%w[
|
|
49
|
+
pagination
|
|
50
|
+
card_type
|
|
51
|
+
card_networks
|
|
52
|
+
]
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# An array for nullable fields
|
|
56
|
+
def self.nullables
|
|
57
|
+
[]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def initialize(hierarchy:, date_range:, pagination: SKIP, card_type: SKIP,
|
|
61
|
+
card_networks: SKIP, additional_properties: nil)
|
|
62
|
+
# Add additional model properties to the instance
|
|
63
|
+
additional_properties = {} if additional_properties.nil?
|
|
64
|
+
|
|
65
|
+
@pagination = pagination unless pagination == SKIP
|
|
66
|
+
@hierarchy = hierarchy
|
|
67
|
+
@card_type = card_type unless card_type == SKIP
|
|
68
|
+
@card_networks = card_networks unless card_networks == SKIP
|
|
69
|
+
@date_range = date_range
|
|
70
|
+
@additional_properties = additional_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Creates an instance of the object from a hash.
|
|
74
|
+
def self.from_hash(hash)
|
|
75
|
+
return nil unless hash
|
|
76
|
+
|
|
77
|
+
# Extract variables from the hash.
|
|
78
|
+
hierarchy = Entity.from_hash(hash['hierarchy']) if hash['hierarchy']
|
|
79
|
+
date_range = DateRange.from_hash(hash['dateRange']) if hash['dateRange']
|
|
80
|
+
pagination = Pagination.from_hash(hash['pagination']) if hash['pagination']
|
|
81
|
+
card_type = hash.key?('cardType') ? hash['cardType'] : SKIP
|
|
82
|
+
card_networks = hash.key?('cardNetworks') ? hash['cardNetworks'] : SKIP
|
|
83
|
+
|
|
84
|
+
# Create a new hash for additional properties, removing known properties.
|
|
85
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
86
|
+
|
|
87
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
88
|
+
new_hash, proc { |value| value }
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Create object from extracted values.
|
|
92
|
+
AuthTransactionsSummaryRequestByTransactionDate.new(hierarchy: hierarchy,
|
|
93
|
+
date_range: date_range,
|
|
94
|
+
pagination: pagination,
|
|
95
|
+
card_type: card_type,
|
|
96
|
+
card_networks: card_networks,
|
|
97
|
+
additional_properties: additional_properties)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Provides a human-readable string representation of the object.
|
|
101
|
+
def to_s
|
|
102
|
+
class_name = self.class.name.split('::').last
|
|
103
|
+
"<#{class_name} pagination: #{@pagination}, hierarchy: #{@hierarchy}, card_type:"\
|
|
104
|
+
" #{@card_type}, card_networks: #{@card_networks}, date_range: #{@date_range},"\
|
|
105
|
+
" additional_properties: #{@additional_properties}>"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
109
|
+
def inspect
|
|
110
|
+
class_name = self.class.name.split('::').last
|
|
111
|
+
"<#{class_name} pagination: #{@pagination.inspect}, hierarchy: #{@hierarchy.inspect},"\
|
|
112
|
+
" card_type: #{@card_type.inspect}, card_networks: #{@card_networks.inspect}, date_range:"\
|
|
113
|
+
" #{@date_range.inspect}, additional_properties: #{@additional_properties}>"
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|