data-and-reporting-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +104 -0
  4. data/lib/shell_data_reporting_ap_is/api_helper.rb +10 -0
  5. data/lib/shell_data_reporting_ap_is/client.rb +84 -0
  6. data/lib/shell_data_reporting_ap_is/configuration.rb +110 -0
  7. data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +66 -0
  8. data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +478 -0
  9. data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +470 -0
  10. data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
  11. data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +878 -0
  12. data/lib/shell_data_reporting_ap_is/exceptions/api_exception.rb +10 -0
  13. data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +32 -0
  14. data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +54 -0
  15. data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
  16. data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
  17. data/lib/shell_data_reporting_ap_is/http/auth/basic_auth.rb +50 -0
  18. data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +89 -0
  19. data/lib/shell_data_reporting_ap_is/http/http_call_back.rb +10 -0
  20. data/lib/shell_data_reporting_ap_is/http/http_method_enum.rb +10 -0
  21. data/lib/shell_data_reporting_ap_is/http/http_request.rb +10 -0
  22. data/lib/shell_data_reporting_ap_is/http/http_response.rb +10 -0
  23. data/lib/shell_data_reporting_ap_is/models/account_access.rb +128 -0
  24. data/lib/shell_data_reporting_ap_is/models/account_request.rb +252 -0
  25. data/lib/shell_data_reporting_ap_is/models/account_response.rb +111 -0
  26. data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +750 -0
  27. data/lib/shell_data_reporting_ap_is/models/accounts.rb +65 -0
  28. data/lib/shell_data_reporting_ap_is/models/address.rb +174 -0
  29. data/lib/shell_data_reporting_ap_is/models/associated_account.rb +98 -0
  30. data/lib/shell_data_reporting_ap_is/models/audit_request.rb +256 -0
  31. data/lib/shell_data_reporting_ap_is/models/audit_response.rb +111 -0
  32. data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +450 -0
  33. data/lib/shell_data_reporting_ap_is/models/bank_account.rb +192 -0
  34. data/lib/shell_data_reporting_ap_is/models/base_model.rb +62 -0
  35. data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +419 -0
  36. data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +444 -0
  37. data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +159 -0
  38. data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +268 -0
  39. data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +178 -0
  40. data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +109 -0
  41. data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +301 -0
  42. data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +145 -0
  43. data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +79 -0
  44. data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
  45. data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +60 -0
  46. data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +281 -0
  47. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +159 -0
  48. data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +79 -0
  49. data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +88 -0
  50. data/lib/shell_data_reporting_ap_is/models/current_volume.rb +99 -0
  51. data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +63 -0
  52. data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +123 -0
  53. data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +437 -0
  54. data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +200 -0
  55. data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +82 -0
  56. data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +60 -0
  57. data/lib/shell_data_reporting_ap_is/models/default_error_fault_detail.rb +50 -0
  58. data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +258 -0
  59. data/lib/shell_data_reporting_ap_is/models/eid_access.rb +75 -0
  60. data/lib/shell_data_reporting_ap_is/models/eid_document.rb +166 -0
  61. data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +140 -0
  62. data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +86 -0
  63. data/lib/shell_data_reporting_ap_is/models/eid_download_request.rb +50 -0
  64. data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +160 -0
  65. data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +70 -0
  66. data/lib/shell_data_reporting_ap_is/models/error_details.rb +81 -0
  67. data/lib/shell_data_reporting_ap_is/models/error_status.rb +60 -0
  68. data/lib/shell_data_reporting_ap_is/models/error_user_access.rb +50 -0
  69. data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +60 -0
  70. data/lib/shell_data_reporting_ap_is/models/exception_product.rb +65 -0
  71. data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +63 -0
  72. data/lib/shell_data_reporting_ap_is/models/fee_item.rb +977 -0
  73. data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +194 -0
  74. data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +153 -0
  75. data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +98 -0
  76. data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +74 -0
  77. data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +85 -0
  78. data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +124 -0
  79. data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +98 -0
  80. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +73 -0
  81. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +267 -0
  82. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +197 -0
  83. data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +79 -0
  84. data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +62 -0
  85. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request.rb +50 -0
  86. data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +146 -0
  87. data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +80 -0
  88. data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +99 -0
  89. data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +99 -0
  90. data/lib/shell_data_reporting_ap_is/models/invoice_download_request.rb +50 -0
  91. data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +80 -0
  92. data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +913 -0
  93. data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +91 -0
  94. data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +344 -0
  95. data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +127 -0
  96. data/lib/shell_data_reporting_ap_is/models/invoice_summary_details.rb +129 -0
  97. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request.rb +50 -0
  98. data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +345 -0
  99. data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +79 -0
  100. data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +221 -0
  101. data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +421 -0
  102. data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +107 -0
  103. data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +394 -0
  104. data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +112 -0
  105. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +360 -0
  106. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +84 -0
  107. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +110 -0
  108. data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +1724 -0
  109. data/lib/shell_data_reporting_ap_is/models/o_auth_provider_error_enum.rb +45 -0
  110. data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +100 -0
  111. data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +502 -0
  112. data/lib/shell_data_reporting_ap_is/models/payer_access.rb +147 -0
  113. data/lib/shell_data_reporting_ap_is/models/payer_details.rb +1412 -0
  114. data/lib/shell_data_reporting_ap_is/models/payer_request.rb +126 -0
  115. data/lib/shell_data_reporting_ap_is/models/payer_response.rb +115 -0
  116. data/lib/shell_data_reporting_ap_is/models/payers.rb +109 -0
  117. data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +322 -0
  118. data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +80 -0
  119. data/lib/shell_data_reporting_ap_is/models/price_list.rb +485 -0
  120. data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +477 -0
  121. data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +572 -0
  122. data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +485 -0
  123. data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +2132 -0
  124. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +79 -0
  125. data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +242 -0
  126. data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +67 -0
  127. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_invoice_status_enum.rb +27 -0
  128. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_period_enum.rb +27 -0
  129. data/lib/shell_data_reporting_ap_is/models/priced_transaction_req_v2_sort_order_enum.rb +37 -0
  130. data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +72 -0
  131. data/lib/shell_data_reporting_ap_is/models/priced_transaction_resp_v2_refund_flag_enum.rb +23 -0
  132. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response.rb +59 -0
  133. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +1719 -0
  134. data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +110 -0
  135. data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +115 -0
  136. data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +105 -0
  137. data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +114 -0
  138. data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +217 -0
  139. data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +66 -0
  140. data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +918 -0
  141. data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +110 -0
  142. data/lib/shell_data_reporting_ap_is/models/role.rb +102 -0
  143. data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +269 -0
  144. data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +204 -0
  145. data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +70 -0
  146. data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +122 -0
  147. data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +197 -0
  148. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +220 -0
  149. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +70 -0
  150. data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +120 -0
  151. data/lib/shell_data_reporting_ap_is/models/site_location.rb +67 -0
  152. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request.rb +50 -0
  153. data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +197 -0
  154. data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +138 -0
  155. data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +80 -0
  156. data/lib/shell_data_reporting_ap_is/models/tier.rb +167 -0
  157. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +1267 -0
  158. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +267 -0
  159. data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +100 -0
  160. data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +348 -0
  161. data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +111 -0
  162. data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +62 -0
  163. data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +67 -0
  164. data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +146 -0
  165. data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +93 -0
  166. data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +202 -0
  167. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +118 -0
  168. data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +120 -0
  169. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +103 -0
  170. data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +120 -0
  171. data/lib/shell_data_reporting_ap_is/utilities/date_time_helper.rb +11 -0
  172. data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +16 -0
  173. data/lib/shell_data_reporting_ap_is.rb +229 -0
  174. data/test/controllers/controller_test_base.rb +34 -0
  175. data/test/controllers/test_invoice_controller.rb +398 -0
  176. data/test/controllers/test_transaction_controller.rb +235 -0
  177. data/test/http_response_catcher.rb +19 -0
  178. metadata +302 -0
@@ -0,0 +1,450 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # AuditResponseAuditsItems Model.
8
+ class AuditResponseAuditsItems < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Account id of the customer.
13
+ # It will be the source account id in case of “Fund Transfer
14
+ # @return [Integer]
15
+ attr_accessor :account_id
16
+
17
+ # Account number of the customer.
18
+ # It will be the source account number in case of “Fund Transfer”
19
+ # @return [String]
20
+ attr_accessor :account_number
21
+
22
+ # Additional information in the request.
23
+ # @return [String]
24
+ attr_accessor :additional_information1
25
+
26
+ # Additional information in the request.
27
+ # @return [String]
28
+ attr_accessor :additional_information2
29
+
30
+ # Additional information in the request.
31
+ # @return [String]
32
+ attr_accessor :additional_information3
33
+
34
+ # Additional information in the request.
35
+ # @return [String]
36
+ attr_accessor :additional_information4
37
+
38
+ # Additional information in the request.
39
+ # @return [String]
40
+ attr_accessor :additional_information5
41
+
42
+ # Additional information in the request.
43
+ # @return [String]
44
+ attr_accessor :additional_information6
45
+
46
+ # Additional information in the request.
47
+ # @return [String]
48
+ attr_accessor :additional_information7
49
+
50
+ # Additional information in the request.
51
+ # @return [String]
52
+ attr_accessor :additional_information8
53
+
54
+ # Additional information in the request.
55
+ # @return [String]
56
+ attr_accessor :additional_information9
57
+
58
+ # Additional information in the request.
59
+ # @return [Integer]
60
+ attr_accessor :card_group_id
61
+
62
+ # Card group name in the request.
63
+ # @return [String]
64
+ attr_accessor :card_group_name
65
+
66
+ # Card Id in the request
67
+ # @return [Integer]
68
+ attr_accessor :card_id
69
+
70
+ # Collecting company code of the customer
71
+ # @return [Integer]
72
+ attr_accessor :col_co_code
73
+
74
+ # Collecting company id of the customer.
75
+ # @return [Integer]
76
+ attr_accessor :col_co_id
77
+
78
+ # Error code of the request
79
+ # @return [String]
80
+ attr_accessor :error_code
81
+
82
+ # Error description of the request
83
+ # @return [String]
84
+ attr_accessor :error_string
85
+
86
+ # Global unique request reference provided by client application.
87
+ # @return [String]
88
+ attr_accessor :global_request_id
89
+
90
+ # PAN in the request.
91
+ # If Mask PAN is enabled at Microservices configuration then all digits of
92
+ # the PAN, except the last 6 digits, will be masked.
93
+ # @return [String]
94
+ attr_accessor :pan
95
+
96
+ # Payer id of the customer.
97
+ # @return [Integer]
98
+ attr_accessor :payer_id
99
+
100
+ # Payer number of the customer.
101
+ # @return [String]
102
+ attr_accessor :payer_number
103
+
104
+ # Request processed date.
105
+ # Format: yyyyMMdd HH:mm: ss
106
+ # @return [String]
107
+ attr_accessor :processed_on
108
+
109
+ # vUUID of the user who submitted this request.
110
+ # It will be the UUID of the Driver in the case of
111
+ # “MobilePaymentRegistration”
112
+ # @return [String]
113
+ attr_accessor :requested_by
114
+
115
+ # User requested operation.
116
+ # Possible values:
117
+ # • OrderCard
118
+ # • CreateCardGroup
119
+ # • PINReminder
120
+ # • MoveCard
121
+ # • UpdateCardStatus
122
+ # • UpdateCardGroup
123
+ # • AutoRenew
124
+ # • BulkCardOrder
125
+ # • BulkCardBlock
126
+ # • BulkCardOrderMultiAccount
127
+ # • MobilePaymentRegistration
128
+ # • UpdateCompanyInfo
129
+ # • BCOSummary
130
+ # • BCOMultiAccountSummary
131
+ # • BCBSummary
132
+ # • FundTransfer
133
+ # • DeliveryAddressUpdate
134
+ # @return [String]
135
+ attr_accessor :requested_operation
136
+
137
+ # Reference number for the requested operation.
138
+ # @return [Integer]
139
+ attr_accessor :request_reference
140
+
141
+ # Request type initiated under the requested operation.
142
+ # Possible values:
143
+ # • OrderCard
144
+ # • CreateCardGroup
145
+ # • PINReminder
146
+ # • MoveCard
147
+ # • UpdateCardStatus
148
+ # • UpdateCardGroup
149
+ # • AutoRenew
150
+ # • BulkCardOrder
151
+ # • BulkCardBlock
152
+ # • BulkCardOrderMultiAccount
153
+ # • MobilePaymentRegistration
154
+ # • UpdateCompanyInfo
155
+ # • BCOSummary
156
+ # • BCOMultiAccountSummary
157
+ # • BCBSummary
158
+ # • FundTransfer
159
+ # • DeliveryAddressUpdate
160
+ # @return [String]
161
+ attr_accessor :request_type
162
+
163
+ # Status of the request.
164
+ # Possible values:
165
+ # • Success
166
+ # • Failed
167
+ # • InProgress
168
+ # • Submitted
169
+ # • Rejected
170
+ # • PendingApproval
171
+ # • MailedToCSC
172
+ # @return [String]
173
+ attr_accessor :status
174
+
175
+ # Request submitted date.
176
+ # Format: yyyyMMdd HH:mm: ss
177
+ # @return [String]
178
+ attr_accessor :submitted_on
179
+
180
+ # Reference number for the individual request type.
181
+ # @return [Integer]
182
+ attr_accessor :sub_request_reference
183
+
184
+ # Display name of the user who submitted this request.
185
+ # It will be the Display Name of the Driver in the case of
186
+ # “MobilePaymentRegistration” in the below format:
187
+ # @return [String]
188
+ attr_accessor :user_display_name
189
+
190
+ # A mapping from model property names to API property names.
191
+ def self.names
192
+ @_hash = {} if @_hash.nil?
193
+ @_hash['account_id'] = 'AccountId'
194
+ @_hash['account_number'] = 'AccountNumber'
195
+ @_hash['additional_information1'] = 'AdditionalInformation1'
196
+ @_hash['additional_information2'] = 'AdditionalInformation2'
197
+ @_hash['additional_information3'] = 'AdditionalInformation3'
198
+ @_hash['additional_information4'] = 'AdditionalInformation4'
199
+ @_hash['additional_information5'] = 'AdditionalInformation5'
200
+ @_hash['additional_information6'] = 'AdditionalInformation6'
201
+ @_hash['additional_information7'] = 'AdditionalInformation7'
202
+ @_hash['additional_information8'] = 'AdditionalInformation8'
203
+ @_hash['additional_information9'] = 'AdditionalInformation9'
204
+ @_hash['card_group_id'] = 'CardGroupId'
205
+ @_hash['card_group_name'] = 'CardGroupName'
206
+ @_hash['card_id'] = 'CardId'
207
+ @_hash['col_co_code'] = 'ColCoCode'
208
+ @_hash['col_co_id'] = 'ColCoId'
209
+ @_hash['error_code'] = 'ErrorCode'
210
+ @_hash['error_string'] = 'ErrorString'
211
+ @_hash['global_request_id'] = 'GlobalRequestID'
212
+ @_hash['pan'] = 'PAN'
213
+ @_hash['payer_id'] = 'PayerId'
214
+ @_hash['payer_number'] = 'PayerNumber'
215
+ @_hash['processed_on'] = 'ProcessedOn'
216
+ @_hash['requested_by'] = 'RequestedBy'
217
+ @_hash['requested_operation'] = 'RequestedOperation'
218
+ @_hash['request_reference'] = 'RequestReference'
219
+ @_hash['request_type'] = 'RequestType'
220
+ @_hash['status'] = 'Status'
221
+ @_hash['submitted_on'] = 'SubmittedOn'
222
+ @_hash['sub_request_reference'] = 'SubRequestReference'
223
+ @_hash['user_display_name'] = 'UserDisplayName'
224
+ @_hash
225
+ end
226
+
227
+ # An array for optional fields
228
+ def self.optionals
229
+ %w[
230
+ account_id
231
+ account_number
232
+ additional_information1
233
+ additional_information2
234
+ additional_information3
235
+ additional_information4
236
+ additional_information5
237
+ additional_information6
238
+ additional_information7
239
+ additional_information8
240
+ additional_information9
241
+ card_group_id
242
+ card_group_name
243
+ card_id
244
+ col_co_code
245
+ col_co_id
246
+ error_code
247
+ error_string
248
+ global_request_id
249
+ pan
250
+ payer_id
251
+ payer_number
252
+ processed_on
253
+ requested_by
254
+ requested_operation
255
+ request_reference
256
+ request_type
257
+ status
258
+ submitted_on
259
+ sub_request_reference
260
+ user_display_name
261
+ ]
262
+ end
263
+
264
+ # An array for nullable fields
265
+ def self.nullables
266
+ %w[
267
+ account_id
268
+ account_number
269
+ additional_information1
270
+ additional_information2
271
+ additional_information3
272
+ additional_information4
273
+ additional_information5
274
+ additional_information6
275
+ additional_information7
276
+ additional_information8
277
+ additional_information9
278
+ card_group_id
279
+ card_group_name
280
+ card_id
281
+ col_co_code
282
+ col_co_id
283
+ error_string
284
+ global_request_id
285
+ pan
286
+ payer_id
287
+ payer_number
288
+ processed_on
289
+ requested_by
290
+ requested_operation
291
+ request_reference
292
+ request_type
293
+ status
294
+ submitted_on
295
+ sub_request_reference
296
+ user_display_name
297
+ ]
298
+ end
299
+
300
+ def initialize(account_id = SKIP,
301
+ account_number = SKIP,
302
+ additional_information1 = SKIP,
303
+ additional_information2 = SKIP,
304
+ additional_information3 = SKIP,
305
+ additional_information4 = SKIP,
306
+ additional_information5 = SKIP,
307
+ additional_information6 = SKIP,
308
+ additional_information7 = SKIP,
309
+ additional_information8 = SKIP,
310
+ additional_information9 = SKIP,
311
+ card_group_id = SKIP,
312
+ card_group_name = SKIP,
313
+ card_id = SKIP,
314
+ col_co_code = SKIP,
315
+ col_co_id = SKIP,
316
+ error_code = SKIP,
317
+ error_string = SKIP,
318
+ global_request_id = SKIP,
319
+ pan = SKIP,
320
+ payer_id = SKIP,
321
+ payer_number = SKIP,
322
+ processed_on = SKIP,
323
+ requested_by = SKIP,
324
+ requested_operation = SKIP,
325
+ request_reference = SKIP,
326
+ request_type = SKIP,
327
+ status = SKIP,
328
+ submitted_on = SKIP,
329
+ sub_request_reference = SKIP,
330
+ user_display_name = SKIP)
331
+ @account_id = account_id unless account_id == SKIP
332
+ @account_number = account_number unless account_number == SKIP
333
+ @additional_information1 = additional_information1 unless additional_information1 == SKIP
334
+ @additional_information2 = additional_information2 unless additional_information2 == SKIP
335
+ @additional_information3 = additional_information3 unless additional_information3 == SKIP
336
+ @additional_information4 = additional_information4 unless additional_information4 == SKIP
337
+ @additional_information5 = additional_information5 unless additional_information5 == SKIP
338
+ @additional_information6 = additional_information6 unless additional_information6 == SKIP
339
+ @additional_information7 = additional_information7 unless additional_information7 == SKIP
340
+ @additional_information8 = additional_information8 unless additional_information8 == SKIP
341
+ @additional_information9 = additional_information9 unless additional_information9 == SKIP
342
+ @card_group_id = card_group_id unless card_group_id == SKIP
343
+ @card_group_name = card_group_name unless card_group_name == SKIP
344
+ @card_id = card_id unless card_id == SKIP
345
+ @col_co_code = col_co_code unless col_co_code == SKIP
346
+ @col_co_id = col_co_id unless col_co_id == SKIP
347
+ @error_code = error_code unless error_code == SKIP
348
+ @error_string = error_string unless error_string == SKIP
349
+ @global_request_id = global_request_id unless global_request_id == SKIP
350
+ @pan = pan unless pan == SKIP
351
+ @payer_id = payer_id unless payer_id == SKIP
352
+ @payer_number = payer_number unless payer_number == SKIP
353
+ @processed_on = processed_on unless processed_on == SKIP
354
+ @requested_by = requested_by unless requested_by == SKIP
355
+ @requested_operation = requested_operation unless requested_operation == SKIP
356
+ @request_reference = request_reference unless request_reference == SKIP
357
+ @request_type = request_type unless request_type == SKIP
358
+ @status = status unless status == SKIP
359
+ @submitted_on = submitted_on unless submitted_on == SKIP
360
+ @sub_request_reference = sub_request_reference unless sub_request_reference == SKIP
361
+ @user_display_name = user_display_name unless user_display_name == SKIP
362
+ end
363
+
364
+ # Creates an instance of the object from a hash.
365
+ def self.from_hash(hash)
366
+ return nil unless hash
367
+
368
+ # Extract variables from the hash.
369
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
370
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
371
+ additional_information1 =
372
+ hash.key?('AdditionalInformation1') ? hash['AdditionalInformation1'] : SKIP
373
+ additional_information2 =
374
+ hash.key?('AdditionalInformation2') ? hash['AdditionalInformation2'] : SKIP
375
+ additional_information3 =
376
+ hash.key?('AdditionalInformation3') ? hash['AdditionalInformation3'] : SKIP
377
+ additional_information4 =
378
+ hash.key?('AdditionalInformation4') ? hash['AdditionalInformation4'] : SKIP
379
+ additional_information5 =
380
+ hash.key?('AdditionalInformation5') ? hash['AdditionalInformation5'] : SKIP
381
+ additional_information6 =
382
+ hash.key?('AdditionalInformation6') ? hash['AdditionalInformation6'] : SKIP
383
+ additional_information7 =
384
+ hash.key?('AdditionalInformation7') ? hash['AdditionalInformation7'] : SKIP
385
+ additional_information8 =
386
+ hash.key?('AdditionalInformation8') ? hash['AdditionalInformation8'] : SKIP
387
+ additional_information9 =
388
+ hash.key?('AdditionalInformation9') ? hash['AdditionalInformation9'] : SKIP
389
+ card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
390
+ card_group_name =
391
+ hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
392
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
393
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
394
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
395
+ error_code = hash.key?('ErrorCode') ? hash['ErrorCode'] : SKIP
396
+ error_string = hash.key?('ErrorString') ? hash['ErrorString'] : SKIP
397
+ global_request_id =
398
+ hash.key?('GlobalRequestID') ? hash['GlobalRequestID'] : SKIP
399
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
400
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
401
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
402
+ processed_on = hash.key?('ProcessedOn') ? hash['ProcessedOn'] : SKIP
403
+ requested_by = hash.key?('RequestedBy') ? hash['RequestedBy'] : SKIP
404
+ requested_operation =
405
+ hash.key?('RequestedOperation') ? hash['RequestedOperation'] : SKIP
406
+ request_reference =
407
+ hash.key?('RequestReference') ? hash['RequestReference'] : SKIP
408
+ request_type = hash.key?('RequestType') ? hash['RequestType'] : SKIP
409
+ status = hash.key?('Status') ? hash['Status'] : SKIP
410
+ submitted_on = hash.key?('SubmittedOn') ? hash['SubmittedOn'] : SKIP
411
+ sub_request_reference =
412
+ hash.key?('SubRequestReference') ? hash['SubRequestReference'] : SKIP
413
+ user_display_name =
414
+ hash.key?('UserDisplayName') ? hash['UserDisplayName'] : SKIP
415
+
416
+ # Create object from extracted values.
417
+ AuditResponseAuditsItems.new(account_id,
418
+ account_number,
419
+ additional_information1,
420
+ additional_information2,
421
+ additional_information3,
422
+ additional_information4,
423
+ additional_information5,
424
+ additional_information6,
425
+ additional_information7,
426
+ additional_information8,
427
+ additional_information9,
428
+ card_group_id,
429
+ card_group_name,
430
+ card_id,
431
+ col_co_code,
432
+ col_co_id,
433
+ error_code,
434
+ error_string,
435
+ global_request_id,
436
+ pan,
437
+ payer_id,
438
+ payer_number,
439
+ processed_on,
440
+ requested_by,
441
+ requested_operation,
442
+ request_reference,
443
+ request_type,
444
+ status,
445
+ submitted_on,
446
+ sub_request_reference,
447
+ user_display_name)
448
+ end
449
+ end
450
+ end
@@ -0,0 +1,192 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # BankAccount Model.
8
+ class BankAccount < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Account Number
13
+ # @return [String]
14
+ attr_accessor :account_number
15
+
16
+ # Bank Name
17
+ # @return [String]
18
+ attr_accessor :bank_name
19
+
20
+ # Account Name
21
+ # @return [String]
22
+ attr_accessor :account_name
23
+
24
+ # Bank Account effective date for the payer
25
+ # @return [String]
26
+ attr_accessor :date_effective
27
+
28
+ # Bank Account terminated date. Default is null
29
+ # @return [String]
30
+ attr_accessor :date_terminated
31
+
32
+ # Bank Account IBAN for Payer
33
+ # @return [String]
34
+ attr_accessor :iban
35
+
36
+ # Bank Account currency ISO code.
37
+ # @return [String]
38
+ attr_accessor :currency_code
39
+
40
+ # Bank Account currency Symbol.
41
+ # @return [String]
42
+ attr_accessor :currency_symbol
43
+
44
+ # Bank Account Country ISO Code
45
+ # @return [String]
46
+ attr_accessor :country_iso_code
47
+
48
+ # Bank Account Country Name
49
+ # 1-Austria
50
+ # 2-Belgium
51
+ # 3-Bulgaria
52
+ # 4-Croatia
53
+ # 5-Czech Republic
54
+ # @return [String]
55
+ attr_accessor :country
56
+
57
+ # Payer bank Sort Code
58
+ # @return [String]
59
+ attr_accessor :sort_code
60
+
61
+ # Payer Bank Swift Code
62
+ # @return [String]
63
+ attr_accessor :swift_code
64
+
65
+ # Bank Type Id and Description
66
+ # @return [String]
67
+ attr_accessor :bank_type
68
+
69
+ # A mapping from model property names to API property names.
70
+ def self.names
71
+ @_hash = {} if @_hash.nil?
72
+ @_hash['account_number'] = 'AccountNumber'
73
+ @_hash['bank_name'] = 'BankName'
74
+ @_hash['account_name'] = 'AccountName'
75
+ @_hash['date_effective'] = 'DateEffective'
76
+ @_hash['date_terminated'] = 'DateTerminated'
77
+ @_hash['iban'] = 'IBAN'
78
+ @_hash['currency_code'] = 'CurrencyCode'
79
+ @_hash['currency_symbol'] = 'CurrencySymbol'
80
+ @_hash['country_iso_code'] = 'CountryISOCode'
81
+ @_hash['country'] = 'Country'
82
+ @_hash['sort_code'] = 'SortCode'
83
+ @_hash['swift_code'] = 'SwiftCode'
84
+ @_hash['bank_type'] = 'BankType'
85
+ @_hash
86
+ end
87
+
88
+ # An array for optional fields
89
+ def self.optionals
90
+ %w[
91
+ account_number
92
+ bank_name
93
+ account_name
94
+ date_effective
95
+ date_terminated
96
+ iban
97
+ currency_code
98
+ currency_symbol
99
+ country_iso_code
100
+ country
101
+ sort_code
102
+ swift_code
103
+ bank_type
104
+ ]
105
+ end
106
+
107
+ # An array for nullable fields
108
+ def self.nullables
109
+ %w[
110
+ account_number
111
+ bank_name
112
+ account_name
113
+ date_effective
114
+ date_terminated
115
+ iban
116
+ currency_code
117
+ currency_symbol
118
+ country_iso_code
119
+ country
120
+ sort_code
121
+ swift_code
122
+ bank_type
123
+ ]
124
+ end
125
+
126
+ def initialize(account_number = SKIP,
127
+ bank_name = SKIP,
128
+ account_name = SKIP,
129
+ date_effective = SKIP,
130
+ date_terminated = SKIP,
131
+ iban = SKIP,
132
+ currency_code = SKIP,
133
+ currency_symbol = SKIP,
134
+ country_iso_code = SKIP,
135
+ country = SKIP,
136
+ sort_code = SKIP,
137
+ swift_code = SKIP,
138
+ bank_type = SKIP)
139
+ @account_number = account_number unless account_number == SKIP
140
+ @bank_name = bank_name unless bank_name == SKIP
141
+ @account_name = account_name unless account_name == SKIP
142
+ @date_effective = date_effective unless date_effective == SKIP
143
+ @date_terminated = date_terminated unless date_terminated == SKIP
144
+ @iban = iban unless iban == SKIP
145
+ @currency_code = currency_code unless currency_code == SKIP
146
+ @currency_symbol = currency_symbol unless currency_symbol == SKIP
147
+ @country_iso_code = country_iso_code unless country_iso_code == SKIP
148
+ @country = country unless country == SKIP
149
+ @sort_code = sort_code unless sort_code == SKIP
150
+ @swift_code = swift_code unless swift_code == SKIP
151
+ @bank_type = bank_type unless bank_type == SKIP
152
+ end
153
+
154
+ # Creates an instance of the object from a hash.
155
+ def self.from_hash(hash)
156
+ return nil unless hash
157
+
158
+ # Extract variables from the hash.
159
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
160
+ bank_name = hash.key?('BankName') ? hash['BankName'] : SKIP
161
+ account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
162
+ date_effective = hash.key?('DateEffective') ? hash['DateEffective'] : SKIP
163
+ date_terminated =
164
+ hash.key?('DateTerminated') ? hash['DateTerminated'] : SKIP
165
+ iban = hash.key?('IBAN') ? hash['IBAN'] : SKIP
166
+ currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
167
+ currency_symbol =
168
+ hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
169
+ country_iso_code =
170
+ hash.key?('CountryISOCode') ? hash['CountryISOCode'] : SKIP
171
+ country = hash.key?('Country') ? hash['Country'] : SKIP
172
+ sort_code = hash.key?('SortCode') ? hash['SortCode'] : SKIP
173
+ swift_code = hash.key?('SwiftCode') ? hash['SwiftCode'] : SKIP
174
+ bank_type = hash.key?('BankType') ? hash['BankType'] : SKIP
175
+
176
+ # Create object from extracted values.
177
+ BankAccount.new(account_number,
178
+ bank_name,
179
+ account_name,
180
+ date_effective,
181
+ date_terminated,
182
+ iban,
183
+ currency_code,
184
+ currency_symbol,
185
+ country_iso_code,
186
+ country,
187
+ sort_code,
188
+ swift_code,
189
+ bank_type)
190
+ end
191
+ end
192
+ end
@@ -0,0 +1,62 @@
1
+ # shell_data_reporting_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellDataReportingApIs
7
+ # Base model.
8
+ class BaseModel < CoreLibrary::BaseModel
9
+ # Returns a Hash representation of the current object.
10
+ def to_hash
11
+ # validating the model being serialized
12
+ self.class.validate(self) if self.class.respond_to?(:validate)
13
+
14
+ hash = {}
15
+ instance_variables.each do |name|
16
+ value = instance_variable_get(name)
17
+ name = name[1..]
18
+ key = self.class.names.key?(name) ? self.class.names[name] : name
19
+ optional_fields = self.class.optionals
20
+ nullable_fields = self.class.nullables
21
+ if value.nil?
22
+ next unless nullable_fields.include?(name)
23
+
24
+ if !optional_fields.include?(name) && !nullable_fields.include?(name)
25
+ raise ArgumentError,
26
+ "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
27
+ end
28
+ end
29
+
30
+ hash[key] = nil
31
+ unless value.nil?
32
+ if respond_to?("to_custom_#{name}")
33
+ if (value.instance_of? Array) || (value.instance_of? Hash)
34
+ params = [hash, key]
35
+ hash[key] = send("to_custom_#{name}", *params)
36
+ else
37
+ hash[key] = send("to_custom_#{name}")
38
+ end
39
+ elsif respond_to?("to_union_type_#{name}")
40
+ hash[key] = send("to_union_type_#{name}")
41
+ elsif value.instance_of? Array
42
+ hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
43
+ elsif value.instance_of? Hash
44
+ hash[key] = {}
45
+ value.each do |k, v|
46
+ hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
47
+ end
48
+ else
49
+ hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
50
+ end
51
+ end
52
+ end
53
+ hash
54
+ end
55
+
56
+ # Returns a JSON representation of the curent object.
57
+ def to_json(options = {})
58
+ hash = to_hash
59
+ hash.to_json(options)
60
+ end
61
+ end
62
+ end