data-and-reporting-sdk 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -16
- data/lib/shell_data_reporting_ap_is/controllers/base_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/customer_controller.rb +210 -210
- data/lib/shell_data_reporting_ap_is/controllers/invoice_controller.rb +221 -221
- data/lib/shell_data_reporting_ap_is/controllers/o_auth_authorization_controller.rb +9 -9
- data/lib/shell_data_reporting_ap_is/controllers/transaction_controller.rb +354 -354
- data/lib/shell_data_reporting_ap_is/exceptions/default_error_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/error_object_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/error_user_access_error1_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
- data/lib/shell_data_reporting_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_data_reporting_ap_is/models/account_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/account_request.rb +17 -26
- data/lib/shell_data_reporting_ap_is/models/account_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb +29 -53
- data/lib/shell_data_reporting_ap_is/models/accounts.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/address.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/audit_request.rb +17 -25
- data/lib/shell_data_reporting_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/audit_response_audits_items.rb +50 -63
- data/lib/shell_data_reporting_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_data_reporting_ap_is/models/base_model.rb +76 -28
- data/lib/shell_data_reporting_ap_is/models/bonus_configuration.rb +9 -18
- data/lib/shell_data_reporting_ap_is/models/bonus_history.rb +14 -29
- data/lib/shell_data_reporting_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_data_reporting_ap_is/models/card_exceptions.rb +8 -19
- data/lib/shell_data_reporting_ap_is/models/card_group_request.rb +6 -12
- data/lib/shell_data_reporting_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_data_reporting_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_data_reporting_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/card_usage_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/current_volume.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/customer_detail_response.rb +31 -45
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_request.rb +5 -12
- data/lib/shell_data_reporting_ap_is/models/customer_price_list_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/default_error_fault.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_data_reporting_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/eid_document.rb +11 -16
- data/lib/shell_data_reporting_ap_is/models/eid_document_response.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/eid_download_req.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/eid_search_req.rb +10 -15
- data/lib/shell_data_reporting_ap_is/models/eid_search_request.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/error_details.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/error_status.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_product.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/exception_site_location.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/fee_item.rb +35 -71
- data/lib/shell_data_reporting_ap_is/models/fee_item_summary_all_of0.rb +5 -11
- data/lib/shell_data_reporting_ap_is/models/fee_rule_location.rb +4 -10
- data/lib/shell_data_reporting_ap_is/models/fee_rule_product.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/fee_rule_tier.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fee_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fees_fee_rule_tiers.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_card.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_data.rb +9 -20
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_request.rb +7 -14
- data/lib/shell_data_reporting_ap_is/models/fuel_consumption_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_data.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_request_filters.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/invoice_dates_response_data.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_download_req.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/invoice_search_additional_document.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/invoice_search_details.rb +86 -107
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request.rb +5 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_search_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_search_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_request_filters.rb +21 -31
- data/lib/shell_data_reporting_ap_is/models/invoice_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/invoices_summaries.rb +5 -10
- data/lib/shell_data_reporting_ap_is/models/last_statement_of_account.rb +39 -48
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/logged_in_user_response.rb +12 -25
- data/lib/shell_data_reporting_ap_is/models/monthly_invoice_trend.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request.rb +21 -32
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_request_accounts_items.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/multi_priced_transaction_response_transactions_items.rb +70 -122
- data/lib/shell_data_reporting_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/past_statement_of_accounts.rb +11 -22
- data/lib/shell_data_reporting_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/payer_details.rb +49 -92
- data/lib/shell_data_reporting_ap_is/models/payer_request.rb +9 -12
- data/lib/shell_data_reporting_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/payers.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/payments_since_last_soa.rb +8 -17
- data/lib/shell_data_reporting_ap_is/models/pin_advice_types.rb +5 -6
- data/lib/shell_data_reporting_ap_is/models/price_list.rb +25 -45
- data/lib/shell_data_reporting_ap_is/models/price_trans_summary_request.rb +28 -44
- data/lib/shell_data_reporting_ap_is/models/price_transaction_request.rb +41 -59
- data/lib/shell_data_reporting_ap_is/models/priced_request_data.rb +20 -46
- data/lib/shell_data_reporting_ap_is/models/priced_response_data.rb +91 -201
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/priced_trans_summary_response_transactions_summary_items.rb +22 -28
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_items_location_items.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_request_v2.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_transactions_items.rb +91 -141
- data/lib/shell_data_reporting_ap_is/models/priced_transaction_response_v2.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_current_volume.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/pricing_history.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_req.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/recent_transaction_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/recent_transactions.rb +29 -60
- data/lib/shell_data_reporting_ap_is/models/recent_transactions_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/role.rb +3 -6
- data/lib/shell_data_reporting_ap_is/models/search_doc_req.rb +19 -27
- data/lib/shell_data_reporting_ap_is/models/search_documents_invoice.rb +9 -16
- data/lib/shell_data_reporting_ap_is/models/search_documents_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_documents_response.rb +3 -7
- data/lib/shell_data_reporting_ap_is/models/search_soa_req.rb +4 -11
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account.rb +11 -18
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_request.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/search_statement_of_account_response.rb +2 -7
- data/lib/shell_data_reporting_ap_is/models/site_location.rb +11 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_request_filters.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_resp.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/statement_of_account_response.rb +1 -3
- data/lib/shell_data_reporting_ap_is/models/tier.rb +8 -12
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions.rb +47 -92
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_request.rb +12 -21
- data/lib/shell_data_reporting_ap_is/models/transaction_exceptions_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_request.rb +21 -33
- data/lib/shell_data_reporting_ap_is/models/transaction_fees_response.rb +2 -6
- data/lib/shell_data_reporting_ap_is/models/update_odometer.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_reference.rb +1 -2
- data/lib/shell_data_reporting_ap_is/models/update_odometer_request.rb +3 -8
- data/lib/shell_data_reporting_ap_is/models/update_odometer_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/usage_summary.rb +6 -14
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_bonus_response.rb +2 -4
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_request.rb +2 -5
- data/lib/shell_data_reporting_ap_is/models/volume_based_pricing_response.rb +2 -5
- data/lib/shell_data_reporting_ap_is/utilities/file_wrapper.rb +9 -9
- data/lib/shell_data_reporting_ap_is/utilities/union_type_lookup.rb +35 -0
- data/lib/shell_data_reporting_ap_is.rb +3 -0
- data/test/controllers/controller_test_base.rb +0 -5
- data/test/controllers/test_invoice_controller.rb +1 -1
- data/test/controllers/test_transaction_controller.rb +83 -75
- metadata +12 -16
@@ -41,57 +41,57 @@ module ShellDataReportingApIs
|
|
41
41
|
|
42
42
|
# Current billing frequency of the account.
|
43
43
|
# A few of the possible IDs and Description are below:
|
44
|
-
# 1
|
45
|
-
# 2
|
46
|
-
# 3
|
47
|
-
# 4
|
48
|
-
# 5
|
49
|
-
# 6
|
50
|
-
# 7
|
51
|
-
# 8
|
52
|
-
# 9
|
53
|
-
# 10
|
44
|
+
# 1 Daily (all days)
|
45
|
+
# 2 Daily (only working days)
|
46
|
+
# 3 Weekly - Monday
|
47
|
+
# 4 Weekly - Tuesday
|
48
|
+
# 5 Weekly - Wednesday
|
49
|
+
# 6 Weekly - Thursday
|
50
|
+
# 7 Weekly - Friday
|
51
|
+
# 8 Weekly - Saturday
|
52
|
+
# 9 Weekly - Sunday
|
53
|
+
# 10 Monthly - 1st
|
54
54
|
# Example: Weekly – Wednesday
|
55
55
|
# @return [String]
|
56
56
|
attr_accessor :current_billing_frequency
|
57
57
|
|
58
58
|
# Current billing frequency id of the account.
|
59
59
|
# A few of the possible IDs and Description are below:
|
60
|
-
# 1
|
61
|
-
# 2
|
62
|
-
# 3
|
63
|
-
# 4
|
64
|
-
# 5
|
65
|
-
# 6
|
66
|
-
# 7
|
67
|
-
# 8
|
68
|
-
# 9
|
69
|
-
# 10
|
60
|
+
# 1 Daily (all days)
|
61
|
+
# 2 Daily (only working days)
|
62
|
+
# 3 Weekly - Monday
|
63
|
+
# 4 Weekly - Tuesday
|
64
|
+
# 5 Weekly - Wednesday
|
65
|
+
# 6 Weekly - Thursday
|
66
|
+
# 7 Weekly - Friday
|
67
|
+
# 8 Weekly - Saturday
|
68
|
+
# 9 Weekly - Sunday
|
69
|
+
# 10 Monthly - 1st
|
70
70
|
# Example: 5
|
71
71
|
# @return [Integer]
|
72
72
|
attr_accessor :current_billing_frequency_id
|
73
73
|
|
74
74
|
# Current distribution method name of the account.
|
75
75
|
# Example : Id & Description
|
76
|
-
# 1
|
77
|
-
# 2
|
78
|
-
# 3
|
79
|
-
# 4
|
80
|
-
# 5
|
81
|
-
# 6
|
82
|
-
# 7
|
76
|
+
# 1 e-mail
|
77
|
+
# 2 Fax
|
78
|
+
# 3 Courier to Customer
|
79
|
+
# 4 Courier to Client
|
80
|
+
# 5 Print
|
81
|
+
# 6 FTP
|
82
|
+
# 7 SMS
|
83
83
|
# @return [String]
|
84
84
|
attr_accessor :current_distribution_method
|
85
85
|
|
86
86
|
# Current distribution method id of the account.
|
87
87
|
# Example : Id & Description
|
88
|
-
# 1
|
89
|
-
# 2
|
90
|
-
# 3
|
91
|
-
# 4
|
92
|
-
# 5
|
93
|
-
# 6
|
94
|
-
# 7
|
88
|
+
# 1 e-mail
|
89
|
+
# 2 Fax
|
90
|
+
# 3 Courier to Customer
|
91
|
+
# 4 Courier to Client
|
92
|
+
# 5 Print
|
93
|
+
# 6 FTP
|
94
|
+
# 7 SMS
|
95
95
|
# @return [Integer]
|
96
96
|
attr_accessor :current_distribution_method_id
|
97
97
|
|
@@ -194,21 +194,21 @@ module ShellDataReportingApIs
|
|
194
194
|
attr_accessor :payer_number
|
195
195
|
|
196
196
|
# A few of the possible IDs and Descriptions are below:
|
197
|
-
# 1
|
198
|
-
# 2
|
199
|
-
# 3
|
200
|
-
# 4
|
201
|
-
# 5
|
197
|
+
# 1 14 days after Invoice
|
198
|
+
# 2 15 days after Invoice
|
199
|
+
# 3 21 days after Invoice
|
200
|
+
# 4 30 days after Invoice
|
201
|
+
# 5 45 days after Invoice
|
202
202
|
# @return [String]
|
203
203
|
attr_accessor :payment_terms
|
204
204
|
|
205
205
|
# Payment terms id of the payment customer.
|
206
206
|
# A few of the possible IDs and Descriptions are below:
|
207
|
-
# 1
|
208
|
-
# 2
|
209
|
-
# 3
|
210
|
-
# 4
|
211
|
-
# 5
|
207
|
+
# 1 14 days after Invoice
|
208
|
+
# 2 15 days after Invoice
|
209
|
+
# 3 21 days after Invoice
|
210
|
+
# 4 30 days after Invoice
|
211
|
+
# 5 45 days after Invoice
|
212
212
|
# @return [Integer]
|
213
213
|
attr_accessor :payment_terms_id
|
214
214
|
|
@@ -223,32 +223,32 @@ module ShellDataReportingApIs
|
|
223
223
|
attr_accessor :reversal_invoice_id
|
224
224
|
|
225
225
|
# Status of the document. Valid values –
|
226
|
-
# •
|
227
|
-
# •
|
228
|
-
# •
|
226
|
+
# • [Empty] – For all document types except for Invoice and Statement.
|
227
|
+
# • Due – Invoices/Statements due for payment and is within the due date.
|
228
|
+
# • Paid – Fully paid Invoices/Statements.
|
229
229
|
# Overdue – Invoices/Statements due of payment and has crossed the due date.
|
230
230
|
# @return [String]
|
231
231
|
attr_accessor :status
|
232
232
|
|
233
233
|
# Billing type description.
|
234
234
|
# Example: Id & Description
|
235
|
-
# -3
|
236
|
-
# -1
|
237
|
-
# 0
|
238
|
-
# 1
|
239
|
-
# 2
|
240
|
-
# 4
|
235
|
+
# -3 Guarantee History
|
236
|
+
# -1 Initial Balance
|
237
|
+
# 0 Standard Invoice
|
238
|
+
# 1 Immediate Invoice
|
239
|
+
# 2 Guarantee
|
240
|
+
# 4 Advanced DD Invoice
|
241
241
|
# @return [String]
|
242
242
|
attr_accessor :summary_document_billing_type
|
243
243
|
|
244
244
|
# Billing type id.
|
245
245
|
# Example: Id & Description
|
246
|
-
# -3
|
247
|
-
# -1
|
248
|
-
# 0
|
249
|
-
# 1
|
250
|
-
# 2
|
251
|
-
# 4
|
246
|
+
# -3 Guarantee History
|
247
|
+
# -1 Initial Balance
|
248
|
+
# 0 Standard Invoice
|
249
|
+
# 1 Immediate Invoice
|
250
|
+
# 2 Guarantee
|
251
|
+
# 4 Advanced DD Invoice
|
252
252
|
# @return [Integer]
|
253
253
|
attr_accessor :summary_document_billing_type_id
|
254
254
|
|
@@ -305,18 +305,18 @@ module ShellDataReportingApIs
|
|
305
305
|
|
306
306
|
# Invoice type description.
|
307
307
|
# A few of the possible IDs and Description are below:
|
308
|
-
# 1
|
309
|
-
# 2
|
310
|
-
# 3
|
308
|
+
# 1 Original
|
309
|
+
# 2 Reversal
|
310
|
+
# 3 Replacement
|
311
311
|
# Example: Original
|
312
312
|
# @return [String]
|
313
313
|
attr_accessor :type
|
314
314
|
|
315
315
|
# Invoice type id.
|
316
316
|
# A few of the possible IDs and Descriptions are below:
|
317
|
-
# 1
|
318
|
-
# 2
|
319
|
-
# 3
|
317
|
+
# 1 Original
|
318
|
+
# 2 Reversal
|
319
|
+
# 3 Replacement
|
320
320
|
# Example: 1
|
321
321
|
# @return [Integer]
|
322
322
|
attr_accessor :type_id
|
@@ -557,64 +557,43 @@ module ShellDataReportingApIs
|
|
557
557
|
]
|
558
558
|
end
|
559
559
|
|
560
|
-
def initialize(account_full_name = SKIP,
|
561
|
-
|
562
|
-
|
563
|
-
account_short_name = SKIP,
|
564
|
-
col_co_id = SKIP,
|
565
|
-
col_co_op_co_id = SKIP,
|
560
|
+
def initialize(account_full_name = SKIP, account_id = SKIP,
|
561
|
+
account_number = SKIP, account_short_name = SKIP,
|
562
|
+
col_co_id = SKIP, col_co_op_co_id = SKIP,
|
566
563
|
current_billing_frequency = SKIP,
|
567
564
|
current_billing_frequency_id = SKIP,
|
568
565
|
current_distribution_method = SKIP,
|
569
566
|
current_distribution_method_id = SKIP,
|
570
567
|
customer_currency_code = SKIP,
|
571
|
-
customer_currency_symbol = SKIP,
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
document_type = SKIP,
|
576
|
-
document_type_id = SKIP,
|
577
|
-
due_date = SKIP,
|
578
|
-
gross_amount_customer_currency = SKIP,
|
568
|
+
customer_currency_symbol = SKIP, del_co_client_number = SKIP,
|
569
|
+
del_co_id = SKIP, del_co_op_co_id = SKIP,
|
570
|
+
document_type = SKIP, document_type_id = SKIP,
|
571
|
+
due_date = SKIP, gross_amount_customer_currency = SKIP,
|
579
572
|
gross_amount_transaction_currency = SKIP,
|
580
|
-
invoice_date = SKIP,
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
net_amount_transaction_currency = SKIP,
|
589
|
-
payer_id = SKIP,
|
590
|
-
payer_number = SKIP,
|
591
|
-
payment_terms = SKIP,
|
592
|
-
payment_terms_id = SKIP,
|
593
|
-
replacement_invoice_id = SKIP,
|
594
|
-
reversal_invoice_id = SKIP,
|
595
|
-
status = SKIP,
|
573
|
+
invoice_date = SKIP, invoiced_by = SKIP,
|
574
|
+
invoiced_on_behalf_of = SKIP, invoice_id = SKIP,
|
575
|
+
invoice_number = SKIP, is_international = SKIP,
|
576
|
+
is_national = SKIP, net_amount_customer_currency = SKIP,
|
577
|
+
net_amount_transaction_currency = SKIP, payer_id = SKIP,
|
578
|
+
payer_number = SKIP, payment_terms = SKIP,
|
579
|
+
payment_terms_id = SKIP, replacement_invoice_id = SKIP,
|
580
|
+
reversal_invoice_id = SKIP, status = SKIP,
|
596
581
|
summary_document_billing_type = SKIP,
|
597
582
|
summary_document_billing_type_id = SKIP,
|
598
583
|
summary_document_date = SKIP,
|
599
584
|
summary_document_dd_amount = SKIP,
|
600
|
-
summary_document_due_date = SKIP,
|
601
|
-
summary_document_id = SKIP,
|
585
|
+
summary_document_due_date = SKIP, summary_document_id = SKIP,
|
602
586
|
summary_document_is_fully_paid = SKIP,
|
603
587
|
summary_document_number = SKIP,
|
604
588
|
summary_document_paid_amount = SKIP,
|
605
589
|
summary_document_so_a_reference_number = SKIP,
|
606
590
|
summary_document_statement_of_account_id = SKIP,
|
607
591
|
transaction_currency_code = SKIP,
|
608
|
-
transaction_currency_symbol = SKIP,
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
vat_country = SKIP,
|
614
|
-
vat_country_id = SKIP,
|
615
|
-
vat_country_iso_code = SKIP,
|
616
|
-
vat_country_op_co_id = SKIP,
|
617
|
-
document_reference = SKIP,
|
592
|
+
transaction_currency_symbol = SKIP, type = SKIP,
|
593
|
+
type_id = SKIP, vat_amount_customer_currency = SKIP,
|
594
|
+
vat_amount_transaction_currency = SKIP, vat_country = SKIP,
|
595
|
+
vat_country_id = SKIP, vat_country_iso_code = SKIP,
|
596
|
+
vat_country_op_co_id = SKIP, document_reference = SKIP,
|
618
597
|
additional_documents = SKIP)
|
619
598
|
@account_full_name = account_full_name unless account_full_name == SKIP
|
620
599
|
@account_id = account_id unless account_id == SKIP
|
@@ -22,10 +22,10 @@ module ShellDataReportingApIs
|
|
22
22
|
attr_accessor :page
|
23
23
|
|
24
24
|
# Sort option –
|
25
|
-
# 1.
|
26
|
-
# 2.
|
27
|
-
# 3.
|
28
|
-
# 4.
|
25
|
+
# 1. InvoiceDate ASC
|
26
|
+
# 2. InvoiceDate DESC
|
27
|
+
# 3. NetAmountCustomerCurrency ASC
|
28
|
+
# 4. NetAmountCustomerCurrency DESC
|
29
29
|
# Optional
|
30
30
|
# Note:
|
31
31
|
# This option uses a column name with a combination of “ASC or DESC” for
|
@@ -61,9 +61,7 @@ module ShellDataReportingApIs
|
|
61
61
|
[]
|
62
62
|
end
|
63
63
|
|
64
|
-
def initialize(filters = SKIP,
|
65
|
-
page_size = SKIP,
|
66
|
-
page = SKIP,
|
64
|
+
def initialize(filters = SKIP, page_size = SKIP, page = SKIP,
|
67
65
|
sort_by = SKIP)
|
68
66
|
@filters = filters unless filters == SKIP
|
69
67
|
@page_size = page_size unless page_size == SKIP
|
@@ -100,9 +100,9 @@ module ShellDataReportingApIs
|
|
100
100
|
attr_accessor :so_a_reference_number
|
101
101
|
|
102
102
|
# Invoice date search period. Valid values –
|
103
|
-
# 1.
|
104
|
-
# 2.
|
105
|
-
# 3.
|
103
|
+
# 1. Last 7 days – Issued in last 7 days.
|
104
|
+
# 2. Last 30 days – Issued in last 30 days.
|
105
|
+
# 3. Last 90 days – Issued in last 90 days.
|
106
106
|
# Optional.
|
107
107
|
# This input is a search criterion, if given.
|
108
108
|
# Example: 1
|
@@ -110,11 +110,11 @@ module ShellDataReportingApIs
|
|
110
110
|
attr_accessor :period
|
111
111
|
|
112
112
|
# Status of the invoice. Valid values –
|
113
|
-
# •
|
114
|
-
# •
|
115
|
-
# •
|
116
|
-
# •
|
117
|
-
# •
|
113
|
+
# • Due – Invoices due for payment and is within the due date.
|
114
|
+
# • Paid – Fully paid Invoices.
|
115
|
+
# • Overdue – Invoices due of payment and has crossed the due date.
|
116
|
+
# • CreditNote – Credit notes
|
117
|
+
# • CreditStatement
|
118
118
|
# Optional.
|
119
119
|
# This input is a search criterion, if given.
|
120
120
|
# @return [String]
|
@@ -128,8 +128,8 @@ module ShellDataReportingApIs
|
|
128
128
|
# Whether to include the additional invoice details in the API response.
|
129
129
|
# Optional. Default value “False”.
|
130
130
|
# The parameters that are populated
|
131
|
-
# •
|
132
|
-
# •
|
131
|
+
# • DocumentReference
|
132
|
+
# • AdditionalDocuments
|
133
133
|
# The above fields will not be present in the response when the respective
|
134
134
|
# data is not available in the source system.
|
135
135
|
# @return [TrueClass | FalseClass]
|
@@ -154,9 +154,9 @@ module ShellDataReportingApIs
|
|
154
154
|
attr_accessor :accounts
|
155
155
|
|
156
156
|
# Invoice type. Allowed values –
|
157
|
-
# •
|
158
|
-
# •
|
159
|
-
# •
|
157
|
+
# • Original – Original document.
|
158
|
+
# • Reversal – Reversed document.
|
159
|
+
# • Replacement – Replaced document.
|
160
160
|
# Optional. (When not passed all invoice, types are considered for search)
|
161
161
|
# This input is a search criterion, if given.
|
162
162
|
# Example: Original
|
@@ -236,25 +236,15 @@ module ShellDataReportingApIs
|
|
236
236
|
]
|
237
237
|
end
|
238
238
|
|
239
|
-
def initialize(col_co_id = SKIP,
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
to_date = SKIP,
|
246
|
-
invoice_date = SKIP,
|
247
|
-
summary_document_id = SKIP,
|
248
|
-
summary_document_number = SKIP,
|
249
|
-
statement_of_account_id = SKIP,
|
250
|
-
so_a_reference_number = SKIP,
|
251
|
-
period = SKIP,
|
252
|
-
invoice_status = SKIP,
|
239
|
+
def initialize(col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP,
|
240
|
+
invoice_id = SKIP, invoice_number = SKIP, from_date = SKIP,
|
241
|
+
to_date = SKIP, invoice_date = SKIP,
|
242
|
+
summary_document_id = SKIP, summary_document_number = SKIP,
|
243
|
+
statement_of_account_id = SKIP, so_a_reference_number = SKIP,
|
244
|
+
period = SKIP, invoice_status = SKIP,
|
253
245
|
invoiced_on_behalf_of = SKIP,
|
254
|
-
include_e_invoice_details = SKIP,
|
255
|
-
|
256
|
-
accounts = SKIP,
|
257
|
-
type = SKIP)
|
246
|
+
include_e_invoice_details = SKIP, col_co_code = SKIP,
|
247
|
+
accounts = SKIP, type = SKIP)
|
258
248
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
259
249
|
@payer_id = payer_id unless payer_id == SKIP
|
260
250
|
@payer_number = payer_number unless payer_number == SKIP
|
@@ -76,13 +76,8 @@ module ShellDataReportingApIs
|
|
76
76
|
]
|
77
77
|
end
|
78
78
|
|
79
|
-
def initialize(request_id = SKIP,
|
80
|
-
|
81
|
-
data = SKIP,
|
82
|
-
page = SKIP,
|
83
|
-
page_size = SKIP,
|
84
|
-
total_records = SKIP,
|
85
|
-
total_pages = SKIP)
|
79
|
+
def initialize(request_id = SKIP, status = SKIP, data = SKIP, page = SKIP,
|
80
|
+
page_size = SKIP, total_records = SKIP, total_pages = SKIP)
|
86
81
|
@request_id = request_id unless request_id == SKIP
|
87
82
|
@status = status unless status == SKIP
|
88
83
|
@data = data unless data == SKIP
|
@@ -100,9 +100,9 @@ module ShellDataReportingApIs
|
|
100
100
|
attr_accessor :so_a_reference_number
|
101
101
|
|
102
102
|
# Invoice date search period. Valid values –
|
103
|
-
# 1.
|
104
|
-
# 2.
|
105
|
-
# 3.
|
103
|
+
# 1. Last 7 days – Issued in last 7 days.
|
104
|
+
# 2. Last 30 days – Issued in last 30 days.
|
105
|
+
# 3. Last 90 days – Issued in last 90 days.
|
106
106
|
# Optional.
|
107
107
|
# This input is a search criterion, if given.
|
108
108
|
# Example: 1
|
@@ -110,11 +110,11 @@ module ShellDataReportingApIs
|
|
110
110
|
attr_accessor :period
|
111
111
|
|
112
112
|
# Status of the invoice. Valid values –
|
113
|
-
# •
|
114
|
-
# •
|
115
|
-
# •
|
116
|
-
# •
|
117
|
-
# •
|
113
|
+
# • Due – Invoices due for payment and is within the due date.
|
114
|
+
# • Paid – Fully paid Invoices.
|
115
|
+
# • Overdue – Invoices due of payment and has crossed the due date.
|
116
|
+
# • CreditNote – Credit notes
|
117
|
+
# • CreditStatement
|
118
118
|
# Optional.
|
119
119
|
# This input is a search criterion, if given.
|
120
120
|
# @return [String]
|
@@ -128,8 +128,8 @@ module ShellDataReportingApIs
|
|
128
128
|
# Whether to include the additional invoice details in the API response.
|
129
129
|
# Optional. Default value “False”.
|
130
130
|
# The parameters that are populated
|
131
|
-
# •
|
132
|
-
# •
|
131
|
+
# • DocumentReference
|
132
|
+
# • AdditionalDocuments
|
133
133
|
# The above fields will not be present in the response when the respective
|
134
134
|
# data is not available in the source system.
|
135
135
|
# @return [TrueClass | FalseClass]
|
@@ -154,9 +154,9 @@ module ShellDataReportingApIs
|
|
154
154
|
attr_accessor :accounts
|
155
155
|
|
156
156
|
# Invoice type. Allowed values –
|
157
|
-
# •
|
158
|
-
# •
|
159
|
-
# •
|
157
|
+
# • Original – Original document.
|
158
|
+
# • Reversal – Reversed document.
|
159
|
+
# • Replacement – Replaced document.
|
160
160
|
# Optional. (When not passed all invoice, types are considered for search)
|
161
161
|
# This input is a search criterion, if given.
|
162
162
|
# Example: Original
|
@@ -237,25 +237,15 @@ module ShellDataReportingApIs
|
|
237
237
|
]
|
238
238
|
end
|
239
239
|
|
240
|
-
def initialize(col_co_id = SKIP,
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
to_date = SKIP,
|
247
|
-
invoice_date = SKIP,
|
248
|
-
summary_document_id = SKIP,
|
249
|
-
summary_document_number = SKIP,
|
250
|
-
statement_of_account_id = SKIP,
|
251
|
-
so_a_reference_number = SKIP,
|
252
|
-
period = SKIP,
|
253
|
-
invoice_status = SKIP,
|
240
|
+
def initialize(col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP,
|
241
|
+
invoice_id = SKIP, invoice_number = SKIP, from_date = SKIP,
|
242
|
+
to_date = SKIP, invoice_date = SKIP,
|
243
|
+
summary_document_id = SKIP, summary_document_number = SKIP,
|
244
|
+
statement_of_account_id = SKIP, so_a_reference_number = SKIP,
|
245
|
+
period = SKIP, invoice_status = SKIP,
|
254
246
|
invoiced_on_behalf_of = SKIP,
|
255
|
-
include_e_invoice_details = SKIP,
|
256
|
-
|
257
|
-
accounts = SKIP,
|
258
|
-
type = SKIP)
|
247
|
+
include_e_invoice_details = SKIP, col_co_code = SKIP,
|
248
|
+
accounts = SKIP, type = SKIP)
|
259
249
|
@col_co_id = col_co_id unless col_co_id == SKIP
|
260
250
|
@payer_id = payer_id unless payer_id == SKIP
|
261
251
|
@payer_number = payer_number unless payer_number == SKIP
|
@@ -44,9 +44,7 @@ module ShellDataReportingApIs
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(request_id = SKIP,
|
48
|
-
status = SKIP,
|
49
|
-
data = SKIP)
|
47
|
+
def initialize(request_id = SKIP, status = SKIP, data = SKIP)
|
50
48
|
@request_id = request_id unless request_id == SKIP
|
51
49
|
@status = status unless status == SKIP
|
52
50
|
@data = data unless data == SKIP
|
@@ -131,16 +131,11 @@ module ShellDataReportingApIs
|
|
131
131
|
]
|
132
132
|
end
|
133
133
|
|
134
|
-
def initialize(amount_due = SKIP,
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
billing_currency_symbol = SKIP,
|
140
|
-
outstanding_balance = SKIP,
|
141
|
-
payment_due_date = SKIP,
|
142
|
-
summary_document_date = SKIP,
|
143
|
-
total_billing_documents = SKIP,
|
134
|
+
def initialize(amount_due = SKIP, amount_not_overdue = SKIP,
|
135
|
+
amount_overdue = SKIP, amount_paid = SKIP,
|
136
|
+
billing_currency_code = SKIP, billing_currency_symbol = SKIP,
|
137
|
+
outstanding_balance = SKIP, payment_due_date = SKIP,
|
138
|
+
summary_document_date = SKIP, total_billing_documents = SKIP,
|
144
139
|
total_gross_amount_billing_currency = SKIP,
|
145
140
|
total_net_amount_billing_currency = SKIP,
|
146
141
|
total_summary_documents = SKIP,
|
@@ -87,51 +87,51 @@ module ShellDataReportingApIs
|
|
87
87
|
|
88
88
|
# Payment method description of the Payer.
|
89
89
|
# Example: Id & Description
|
90
|
-
# •
|
91
|
-
# •
|
92
|
-
# •
|
93
|
-
# •
|
94
|
-
# •
|
90
|
+
# • Incoming - Direct Debit
|
91
|
+
# • Incoming - Cheque
|
92
|
+
# • Incoming - Direct Debit A
|
93
|
+
# • Incoming - Bank Transfer
|
94
|
+
# • Incoming - Cash
|
95
95
|
# @return [String]
|
96
96
|
attr_accessor :payment_method
|
97
97
|
|
98
98
|
# Payment method Id of the Payer.
|
99
99
|
# Example: Id & Description
|
100
|
-
# •
|
101
|
-
# •
|
102
|
-
# •
|
103
|
-
# •
|
104
|
-
# •
|
100
|
+
# • Incoming - Direct Debit
|
101
|
+
# • Incoming - Cheque
|
102
|
+
# • Incoming - Direct Debit A
|
103
|
+
# • Incoming - Bank Transfer
|
104
|
+
# • Incoming - Cash
|
105
105
|
# @return [Integer]
|
106
106
|
attr_accessor :payment_method_id
|
107
107
|
|
108
108
|
# Payment terms description of the Payer.
|
109
109
|
# Example: Id & Description
|
110
|
-
# •
|
111
|
-
# •
|
112
|
-
# •
|
113
|
-
# •
|
114
|
-
# •
|
115
|
-
# •
|
116
|
-
# •
|
117
|
-
# •
|
118
|
-
# •
|
119
|
-
# •
|
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
120
|
# @return [String]
|
121
121
|
attr_accessor :payment_terms
|
122
122
|
|
123
123
|
# Payment terms Id of the Payer.
|
124
124
|
# Example: Id & Description
|
125
|
-
# •
|
126
|
-
# •
|
127
|
-
# •
|
128
|
-
# •
|
129
|
-
# •
|
130
|
-
# •
|
131
|
-
# •
|
132
|
-
# •
|
133
|
-
# •
|
134
|
-
# •
|
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
135
|
# @return [Integer]
|
136
136
|
attr_accessor :payment_terms_id
|
137
137
|
|
@@ -263,29 +263,20 @@ module ShellDataReportingApIs
|
|
263
263
|
]
|
264
264
|
end
|
265
265
|
|
266
|
-
def initialize(amount_due = SKIP,
|
267
|
-
|
268
|
-
amount_overdue = SKIP,
|
269
|
-
credit_limit = SKIP,
|
266
|
+
def initialize(amount_due = SKIP, amount_not_overdue = SKIP,
|
267
|
+
amount_overdue = SKIP, credit_limit = SKIP,
|
270
268
|
credit_limit_currency_code = SKIP,
|
271
269
|
credit_limit_currency_symbol = SKIP,
|
272
270
|
credit_limit_in_customer_currency = SKIP,
|
273
|
-
currency_code = SKIP,
|
274
|
-
currency_symbol = SKIP,
|
271
|
+
currency_code = SKIP, currency_symbol = SKIP,
|
275
272
|
last_payment_currency_code = SKIP,
|
276
273
|
last_payment_currency_symbol = SKIP,
|
277
|
-
last_payment_date = SKIP,
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
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,
|
274
|
+
last_payment_date = SKIP, last_payment_value = SKIP,
|
275
|
+
outstanding_balance = SKIP, payer_id = SKIP,
|
276
|
+
payer_number = SKIP, payment_due_date = SKIP,
|
277
|
+
payment_method = SKIP, payment_method_id = SKIP,
|
278
|
+
payment_terms = SKIP, payment_terms_id = SKIP,
|
279
|
+
so_a_reference_number = SKIP, statement_date = SKIP,
|
289
280
|
statement_of_account_id = SKIP,
|
290
281
|
total_billing_documents = SKIP,
|
291
282
|
total_summary_billing_documents = SKIP,
|