data-and-reporting-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.
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,421 @@
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
+ # Latest statement of the account generated for the given Payer.
8
+ class LastStatementOfAccount < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Invoiced amount and due for payment.
13
+ # @return [Float]
14
+ attr_accessor :amount_due
15
+
16
+ # Invoiced amount and not overdue for payment.
17
+ # @return [Float]
18
+ attr_accessor :amount_not_overdue
19
+
20
+ # Invoiced amount and overdue for payment.
21
+ # @return [Float]
22
+ attr_accessor :amount_overdue
23
+
24
+ # Credit limit.
25
+ # @return [Integer]
26
+ attr_accessor :credit_limit
27
+
28
+ # ISO code of the credit limit’s currency.
29
+ # Example: EUR
30
+ # @return [String]
31
+ attr_accessor :credit_limit_currency_code
32
+
33
+ # Symbol of the credit limit’s currency.
34
+ # Example: €
35
+ # @return [String]
36
+ attr_accessor :credit_limit_currency_symbol
37
+
38
+ # Credit limit in Customer currency.
39
+ # **Note**: For currency details refer the parameters CurrencyCode &
40
+ # CurrencySymbol in the StatementOfAccount response.
41
+ # @return [Float]
42
+ attr_accessor :credit_limit_in_customer_currency
43
+
44
+ # ISO code of SOA currency.
45
+ # Example: EUR
46
+ # @return [String]
47
+ attr_accessor :currency_code
48
+
49
+ # Symbol of SOA currency.
50
+ # Example: €
51
+ # @return [String]
52
+ attr_accessor :currency_symbol
53
+
54
+ # ISO code of Last Payment currency.
55
+ # Example: EUR
56
+ # @return [String]
57
+ attr_accessor :last_payment_currency_code
58
+
59
+ # Symbol of Last Payment currency.
60
+ # Example: €
61
+ # @return [String]
62
+ attr_accessor :last_payment_currency_symbol
63
+
64
+ # Last payment date. Format: yyyyMMdd
65
+ # @return [String]
66
+ attr_accessor :last_payment_date
67
+
68
+ # Last payment value.
69
+ # @return [Float]
70
+ attr_accessor :last_payment_value
71
+
72
+ # Current outstanding balance amount.
73
+ # @return [Float]
74
+ attr_accessor :outstanding_balance
75
+
76
+ # Payment customer id of the customer.
77
+ # @return [Integer]
78
+ attr_accessor :payer_id
79
+
80
+ # Payment customer number.
81
+ # @return [String]
82
+ attr_accessor :payer_number
83
+
84
+ # Due date for payment. Format: yyyyMMdd
85
+ # @return [String]
86
+ attr_accessor :payment_due_date
87
+
88
+ # Payment method description of the Payer.
89
+ # Example: Id & Description
90
+ # • Incoming - Direct Debit
91
+ # • Incoming - Cheque
92
+ # • Incoming - Direct Debit A
93
+ # • Incoming - Bank Transfer
94
+ # • Incoming - Cash
95
+ # @return [String]
96
+ attr_accessor :payment_method
97
+
98
+ # Payment method Id of the Payer.
99
+ # Example: Id & Description
100
+ # • Incoming - Direct Debit
101
+ # • Incoming - Cheque
102
+ # • Incoming - Direct Debit A
103
+ # • Incoming - Bank Transfer
104
+ # • Incoming - Cash
105
+ # @return [Integer]
106
+ attr_accessor :payment_method_id
107
+
108
+ # Payment terms description of the Payer.
109
+ # Example: Id & Description
110
+ # • 14 days after Invoice
111
+ # • 15 days after Invoice
112
+ # • 21 days after Invoice
113
+ # • 30 days after Invoice
114
+ # • 45 days after Invoice
115
+ # • 0 days after invoice
116
+ # • days after invoice
117
+ # • days after invoice
118
+ # • 7 days after invoice
119
+ # • 10th of the following month
120
+ # @return [String]
121
+ attr_accessor :payment_terms
122
+
123
+ # Payment terms Id of the Payer.
124
+ # Example: Id & Description
125
+ # • 14 days after Invoice
126
+ # • 15 days after Invoice
127
+ # • 21 days after Invoice
128
+ # • 30 days after Invoice
129
+ # • 45 days after Invoice
130
+ # • 0 days after invoice
131
+ # • days after invoice
132
+ # • days after invoice
133
+ # • 7 days after invoice
134
+ # • 10th of the following month
135
+ # @return [Integer]
136
+ attr_accessor :payment_terms_id
137
+
138
+ # Statement of account reference number
139
+ # @return [String]
140
+ attr_accessor :so_a_reference_number
141
+
142
+ # Date on which the SOA was generated.
143
+ # Format: yyyyMMdd
144
+ # @return [String]
145
+ attr_accessor :statement_date
146
+
147
+ # Statement of account identifier,
148
+ # Example: 1
149
+ # @return [Integer]
150
+ attr_accessor :statement_of_account_id
151
+
152
+ # Total number of billing documents for this Statement of Account
153
+ # @return [Integer]
154
+ attr_accessor :total_billing_documents
155
+
156
+ # Total number of summary billing documents for this Statement of Account
157
+ # @return [Integer]
158
+ attr_accessor :total_summary_billing_documents
159
+
160
+ # Unallocated payment.
161
+ # When negative, indicates overdue amount.
162
+ # @return [Integer]
163
+ attr_accessor :unallocated_payment
164
+
165
+ # A mapping from model property names to API property names.
166
+ def self.names
167
+ @_hash = {} if @_hash.nil?
168
+ @_hash['amount_due'] = 'AmountDue'
169
+ @_hash['amount_not_overdue'] = 'AmountNotOverdue'
170
+ @_hash['amount_overdue'] = 'AmountOverdue'
171
+ @_hash['credit_limit'] = 'CreditLimit'
172
+ @_hash['credit_limit_currency_code'] = 'CreditLimitCurrencyCode'
173
+ @_hash['credit_limit_currency_symbol'] = 'CreditLimitCurrencySymbol'
174
+ @_hash['credit_limit_in_customer_currency'] =
175
+ 'CreditLimitInCustomerCurrency'
176
+ @_hash['currency_code'] = 'CurrencyCode'
177
+ @_hash['currency_symbol'] = 'CurrencySymbol'
178
+ @_hash['last_payment_currency_code'] = 'LastPaymentCurrencyCode'
179
+ @_hash['last_payment_currency_symbol'] = 'LastPaymentCurrencySymbol'
180
+ @_hash['last_payment_date'] = 'LastPaymentDate'
181
+ @_hash['last_payment_value'] = 'LastPaymentValue'
182
+ @_hash['outstanding_balance'] = 'OutstandingBalance'
183
+ @_hash['payer_id'] = 'PayerId'
184
+ @_hash['payer_number'] = 'PayerNumber'
185
+ @_hash['payment_due_date'] = 'PaymentDueDate'
186
+ @_hash['payment_method'] = 'PaymentMethod'
187
+ @_hash['payment_method_id'] = 'PaymentMethodId'
188
+ @_hash['payment_terms'] = 'PaymentTerms'
189
+ @_hash['payment_terms_id'] = 'PaymentTermsId'
190
+ @_hash['so_a_reference_number'] = 'SoAReferenceNumber'
191
+ @_hash['statement_date'] = 'StatementDate'
192
+ @_hash['statement_of_account_id'] = 'StatementOfAccountId'
193
+ @_hash['total_billing_documents'] = 'TotalBillingDocuments'
194
+ @_hash['total_summary_billing_documents'] =
195
+ 'TotalSummaryBillingDocuments'
196
+ @_hash['unallocated_payment'] = 'UnallocatedPayment'
197
+ @_hash
198
+ end
199
+
200
+ # An array for optional fields
201
+ def self.optionals
202
+ %w[
203
+ amount_due
204
+ amount_not_overdue
205
+ amount_overdue
206
+ credit_limit
207
+ credit_limit_currency_code
208
+ credit_limit_currency_symbol
209
+ credit_limit_in_customer_currency
210
+ currency_code
211
+ currency_symbol
212
+ last_payment_currency_code
213
+ last_payment_currency_symbol
214
+ last_payment_date
215
+ last_payment_value
216
+ outstanding_balance
217
+ payer_id
218
+ payer_number
219
+ payment_due_date
220
+ payment_method
221
+ payment_method_id
222
+ payment_terms
223
+ payment_terms_id
224
+ so_a_reference_number
225
+ statement_date
226
+ statement_of_account_id
227
+ total_billing_documents
228
+ total_summary_billing_documents
229
+ unallocated_payment
230
+ ]
231
+ end
232
+
233
+ # An array for nullable fields
234
+ def self.nullables
235
+ %w[
236
+ amount_due
237
+ amount_not_overdue
238
+ amount_overdue
239
+ credit_limit
240
+ credit_limit_currency_code
241
+ credit_limit_currency_symbol
242
+ credit_limit_in_customer_currency
243
+ currency_code
244
+ currency_symbol
245
+ last_payment_currency_code
246
+ last_payment_currency_symbol
247
+ last_payment_date
248
+ last_payment_value
249
+ outstanding_balance
250
+ payer_id
251
+ payer_number
252
+ payment_due_date
253
+ payment_method
254
+ payment_method_id
255
+ payment_terms
256
+ payment_terms_id
257
+ so_a_reference_number
258
+ statement_date
259
+ statement_of_account_id
260
+ total_billing_documents
261
+ total_summary_billing_documents
262
+ unallocated_payment
263
+ ]
264
+ end
265
+
266
+ def initialize(amount_due = SKIP,
267
+ amount_not_overdue = SKIP,
268
+ amount_overdue = SKIP,
269
+ credit_limit = SKIP,
270
+ credit_limit_currency_code = SKIP,
271
+ credit_limit_currency_symbol = SKIP,
272
+ credit_limit_in_customer_currency = SKIP,
273
+ currency_code = SKIP,
274
+ currency_symbol = SKIP,
275
+ last_payment_currency_code = SKIP,
276
+ last_payment_currency_symbol = SKIP,
277
+ last_payment_date = SKIP,
278
+ last_payment_value = SKIP,
279
+ outstanding_balance = SKIP,
280
+ payer_id = SKIP,
281
+ payer_number = SKIP,
282
+ payment_due_date = SKIP,
283
+ payment_method = SKIP,
284
+ payment_method_id = SKIP,
285
+ payment_terms = SKIP,
286
+ payment_terms_id = SKIP,
287
+ so_a_reference_number = SKIP,
288
+ statement_date = SKIP,
289
+ statement_of_account_id = SKIP,
290
+ total_billing_documents = SKIP,
291
+ total_summary_billing_documents = SKIP,
292
+ unallocated_payment = SKIP)
293
+ @amount_due = amount_due unless amount_due == SKIP
294
+ @amount_not_overdue = amount_not_overdue unless amount_not_overdue == SKIP
295
+ @amount_overdue = amount_overdue unless amount_overdue == SKIP
296
+ @credit_limit = credit_limit unless credit_limit == SKIP
297
+ unless credit_limit_currency_code == SKIP
298
+ @credit_limit_currency_code =
299
+ credit_limit_currency_code
300
+ end
301
+ unless credit_limit_currency_symbol == SKIP
302
+ @credit_limit_currency_symbol =
303
+ credit_limit_currency_symbol
304
+ end
305
+ unless credit_limit_in_customer_currency == SKIP
306
+ @credit_limit_in_customer_currency =
307
+ credit_limit_in_customer_currency
308
+ end
309
+ @currency_code = currency_code unless currency_code == SKIP
310
+ @currency_symbol = currency_symbol unless currency_symbol == SKIP
311
+ unless last_payment_currency_code == SKIP
312
+ @last_payment_currency_code =
313
+ last_payment_currency_code
314
+ end
315
+ unless last_payment_currency_symbol == SKIP
316
+ @last_payment_currency_symbol =
317
+ last_payment_currency_symbol
318
+ end
319
+ @last_payment_date = last_payment_date unless last_payment_date == SKIP
320
+ @last_payment_value = last_payment_value unless last_payment_value == SKIP
321
+ @outstanding_balance = outstanding_balance unless outstanding_balance == SKIP
322
+ @payer_id = payer_id unless payer_id == SKIP
323
+ @payer_number = payer_number unless payer_number == SKIP
324
+ @payment_due_date = payment_due_date unless payment_due_date == SKIP
325
+ @payment_method = payment_method unless payment_method == SKIP
326
+ @payment_method_id = payment_method_id unless payment_method_id == SKIP
327
+ @payment_terms = payment_terms unless payment_terms == SKIP
328
+ @payment_terms_id = payment_terms_id unless payment_terms_id == SKIP
329
+ @so_a_reference_number = so_a_reference_number unless so_a_reference_number == SKIP
330
+ @statement_date = statement_date unless statement_date == SKIP
331
+ @statement_of_account_id = statement_of_account_id unless statement_of_account_id == SKIP
332
+ @total_billing_documents = total_billing_documents unless total_billing_documents == SKIP
333
+ unless total_summary_billing_documents == SKIP
334
+ @total_summary_billing_documents =
335
+ total_summary_billing_documents
336
+ end
337
+ @unallocated_payment = unallocated_payment unless unallocated_payment == SKIP
338
+ end
339
+
340
+ # Creates an instance of the object from a hash.
341
+ def self.from_hash(hash)
342
+ return nil unless hash
343
+
344
+ # Extract variables from the hash.
345
+ amount_due = hash.key?('AmountDue') ? hash['AmountDue'] : SKIP
346
+ amount_not_overdue =
347
+ hash.key?('AmountNotOverdue') ? hash['AmountNotOverdue'] : SKIP
348
+ amount_overdue = hash.key?('AmountOverdue') ? hash['AmountOverdue'] : SKIP
349
+ credit_limit = hash.key?('CreditLimit') ? hash['CreditLimit'] : SKIP
350
+ credit_limit_currency_code =
351
+ hash.key?('CreditLimitCurrencyCode') ? hash['CreditLimitCurrencyCode'] : SKIP
352
+ credit_limit_currency_symbol =
353
+ hash.key?('CreditLimitCurrencySymbol') ? hash['CreditLimitCurrencySymbol'] : SKIP
354
+ credit_limit_in_customer_currency =
355
+ hash.key?('CreditLimitInCustomerCurrency') ? hash['CreditLimitInCustomerCurrency'] : SKIP
356
+ currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
357
+ currency_symbol =
358
+ hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
359
+ last_payment_currency_code =
360
+ hash.key?('LastPaymentCurrencyCode') ? hash['LastPaymentCurrencyCode'] : SKIP
361
+ last_payment_currency_symbol =
362
+ hash.key?('LastPaymentCurrencySymbol') ? hash['LastPaymentCurrencySymbol'] : SKIP
363
+ last_payment_date =
364
+ hash.key?('LastPaymentDate') ? hash['LastPaymentDate'] : SKIP
365
+ last_payment_value =
366
+ hash.key?('LastPaymentValue') ? hash['LastPaymentValue'] : SKIP
367
+ outstanding_balance =
368
+ hash.key?('OutstandingBalance') ? hash['OutstandingBalance'] : SKIP
369
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
370
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
371
+ payment_due_date =
372
+ hash.key?('PaymentDueDate') ? hash['PaymentDueDate'] : SKIP
373
+ payment_method = hash.key?('PaymentMethod') ? hash['PaymentMethod'] : SKIP
374
+ payment_method_id =
375
+ hash.key?('PaymentMethodId') ? hash['PaymentMethodId'] : SKIP
376
+ payment_terms = hash.key?('PaymentTerms') ? hash['PaymentTerms'] : SKIP
377
+ payment_terms_id =
378
+ hash.key?('PaymentTermsId') ? hash['PaymentTermsId'] : SKIP
379
+ so_a_reference_number =
380
+ hash.key?('SoAReferenceNumber') ? hash['SoAReferenceNumber'] : SKIP
381
+ statement_date = hash.key?('StatementDate') ? hash['StatementDate'] : SKIP
382
+ statement_of_account_id =
383
+ hash.key?('StatementOfAccountId') ? hash['StatementOfAccountId'] : SKIP
384
+ total_billing_documents =
385
+ hash.key?('TotalBillingDocuments') ? hash['TotalBillingDocuments'] : SKIP
386
+ total_summary_billing_documents =
387
+ hash.key?('TotalSummaryBillingDocuments') ? hash['TotalSummaryBillingDocuments'] : SKIP
388
+ unallocated_payment =
389
+ hash.key?('UnallocatedPayment') ? hash['UnallocatedPayment'] : SKIP
390
+
391
+ # Create object from extracted values.
392
+ LastStatementOfAccount.new(amount_due,
393
+ amount_not_overdue,
394
+ amount_overdue,
395
+ credit_limit,
396
+ credit_limit_currency_code,
397
+ credit_limit_currency_symbol,
398
+ credit_limit_in_customer_currency,
399
+ currency_code,
400
+ currency_symbol,
401
+ last_payment_currency_code,
402
+ last_payment_currency_symbol,
403
+ last_payment_date,
404
+ last_payment_value,
405
+ outstanding_balance,
406
+ payer_id,
407
+ payer_number,
408
+ payment_due_date,
409
+ payment_method,
410
+ payment_method_id,
411
+ payment_terms,
412
+ payment_terms_id,
413
+ so_a_reference_number,
414
+ statement_date,
415
+ statement_of_account_id,
416
+ total_billing_documents,
417
+ total_summary_billing_documents,
418
+ unallocated_payment)
419
+ end
420
+ end
421
+ end
@@ -0,0 +1,107 @@
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
+ # This entity models the data that is sent in the http request body for Logged
8
+ # In User operation. This class inherits RequestBase class.
9
+ class LoggedInUserRequest < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # True/False. The output will include the payer group information only when
14
+ # true is passed.
15
+ # @return [TrueClass | FalseClass]
16
+ attr_accessor :include_payer_group
17
+
18
+ # True/False. The output will include the EID (Electronic Invoice data)
19
+ # information only when true is passed..
20
+ # @return [TrueClass | FalseClass]
21
+ attr_accessor :include_eid_details
22
+
23
+ # Name of the API on which user access needs to be validated
24
+ # Optional.
25
+ # @return [String]
26
+ attr_accessor :requested_api_name
27
+
28
+ # Payer id of the customer.</br>
29
+ # Optional.</br>
30
+ # This input is a search criterion.</br>
31
+ # Note: If PayerId or PayerNumber is provided in the input, the given payer
32
+ # will be available in the output if the user has access to the given payer.
33
+ # @return [Integer]
34
+ attr_accessor :payer_id
35
+
36
+ # PayerNumber of the customer.</br>
37
+ # Optional</br>
38
+ # This input is a search criterion.</br>
39
+ # Note: If Payerid or PayerNumber is provided in the input, the given payer
40
+ # will be available in the output if the user has access to the given payer.
41
+ # @return [String]
42
+ attr_accessor :payer_number
43
+
44
+ # A mapping from model property names to API property names.
45
+ def self.names
46
+ @_hash = {} if @_hash.nil?
47
+ @_hash['include_payer_group'] = 'IncludePayerGroup'
48
+ @_hash['include_eid_details'] = 'IncludeEIDDetails'
49
+ @_hash['requested_api_name'] = 'RequestedAPIName'
50
+ @_hash['payer_id'] = 'PayerId'
51
+ @_hash['payer_number'] = 'PayerNumber'
52
+ @_hash
53
+ end
54
+
55
+ # An array for optional fields
56
+ def self.optionals
57
+ %w[
58
+ include_payer_group
59
+ include_eid_details
60
+ requested_api_name
61
+ payer_id
62
+ payer_number
63
+ ]
64
+ end
65
+
66
+ # An array for nullable fields
67
+ def self.nullables
68
+ %w[
69
+ requested_api_name
70
+ payer_id
71
+ payer_number
72
+ ]
73
+ end
74
+
75
+ def initialize(include_payer_group = false,
76
+ include_eid_details = false,
77
+ requested_api_name = SKIP,
78
+ payer_id = SKIP,
79
+ payer_number = SKIP)
80
+ @include_payer_group = include_payer_group unless include_payer_group == SKIP
81
+ @include_eid_details = include_eid_details unless include_eid_details == SKIP
82
+ @requested_api_name = requested_api_name unless requested_api_name == SKIP
83
+ @payer_id = payer_id unless payer_id == SKIP
84
+ @payer_number = payer_number unless payer_number == SKIP
85
+ end
86
+
87
+ # Creates an instance of the object from a hash.
88
+ def self.from_hash(hash)
89
+ return nil unless hash
90
+
91
+ # Extract variables from the hash.
92
+ include_payer_group = hash['IncludePayerGroup'] ||= false
93
+ include_eid_details = hash['IncludeEIDDetails'] ||= false
94
+ requested_api_name =
95
+ hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP
96
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
97
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
98
+
99
+ # Create object from extracted values.
100
+ LoggedInUserRequest.new(include_payer_group,
101
+ include_eid_details,
102
+ requested_api_name,
103
+ payer_id,
104
+ payer_number)
105
+ end
106
+ end
107
+ end