Class: ShellDataReportingApIs::AccountResponseAccountsItems
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellDataReportingApIs::AccountResponseAccountsItems
- Defined in:
- lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb
Overview
AccountResponseAccountsItems Model.
Instance Attribute Summary collapse
-
#account_full_name ⇒ String
Account Full Name.
-
#account_id ⇒ Integer
Account Id.
-
#account_number ⇒ String
Account Number.
-
#account_short_name ⇒ String
Account Short Name.
-
#best_of_indicator ⇒ TrueClass | FalseClass
Best of Indicator of the Pricing customer/account configured.
-
#billing_frequency_type ⇒ String
Billing/Invoice frequency.
-
#billing_frequency_type_id ⇒ Integer
Billing/Invoice frequency Identifier.
-
#billing_run_frequency ⇒ String
Frequency at which the billing process is triggered.
-
#billing_run_frequency_type_id ⇒ Integer
Frequency at which the billing process is triggered.
-
#col_co_country_code ⇒ String
The 2-character ISO Code for the customer and card owning country.
-
#contracts ⇒ Array[CustomerContract]
Colco country type id in e-TM system.
-
#currency_code ⇒ String
ISO code of customer currency.
-
#currency_symbol ⇒ String
€.
-
#day1_run ⇒ Integer
The first day in a month when the billing should run in case of multiple billing runs configured with in a single month.
-
#day2_run ⇒ Integer
The second day in a month when the billing should run in case of multiple billing runs configured with in a single month.
-
#day3_run ⇒ Integer
The third day in a month when the billing should run in case of multiple billing runs configured with in a single month.
-
#day4_run ⇒ Integer
The fourth day in a month when the billing should run in case of multiple billing runs configured with in a single month.
-
#frequency_type ⇒ String
Frequency type unit id & description E.g.: 1 - Daily 2 - Weekly 3 - Monthly 4 - Invoicing 6 - Calendar quarter.
-
#gross_amount ⇒ Float
Gross amount in customer currency.
-
#international_pos_language_code ⇒ String
POS international language code.
-
#international_pos_language_id ⇒ Integer
POS international language ID.
-
#invoice_account_id ⇒ Integer
The Account ID of the account on which the invoice is generated.
-
#invoice_account_number ⇒ String
The Account Number of the account on which the invoice is generated.
-
#invoice_account_short_name ⇒ String
The Account Short Name of the account on which the invoice is generated.
-
#invoice_distribution_methods ⇒ Array[InvoiceDistributionMethod]
The Account Short Name of the account on which the invoice is generated.
-
#is_consortium_member ⇒ String
true.
-
#is_international ⇒ TrueClass | FalseClass
Whether the account is international.
-
#is_invoice_point ⇒ TrueClass | FalseClass
Whether the account is an invoice point.
-
#is_partner_card ⇒ Integer
The account / sub-account is partner card account or not.
-
#last_modified_date ⇒ String
Account last modified date and time.
-
#local_currency_code ⇒ String
ISO code of customer currency.
-
#local_currency_symbol ⇒ String
Customer currency symbol.
-
#local_pos_language_code ⇒ String
POS local language code.
-
#local_pos_language_id ⇒ Integer
POS local language ID.
-
#net_amount ⇒ Float
Net amount in customer currency.
-
#outstanding_balance ⇒ Float
Outstanding balance in customer currency.
-
#paid_amount ⇒ Float
Amount paid in customer currency.
-
#status ⇒ String
Account Status.
-
#status_reason ⇒ String
Account status change reason id-description for the Status Reason, if any.
-
#tolls_colco_country_type_id ⇒ String
Colco country type id in e-TM system.
-
#tolls_customer_id ⇒ String
Customer id in e-TM system.
-
#total_active_card_groups ⇒ Integer
Total number of active card groups under the account.
-
#total_active_cards ⇒ Integer
Total number of active cards under the account.
-
#total_blocked_cards ⇒ Integer
Total number of cards under the account that are permanently blocked.
-
#total_cancelled_cards ⇒ Integer
Total number of cards under the account that are cancelled.
-
#total_cards ⇒ Integer
Total number of cards under the account.
-
#total_expired_cards ⇒ Integer
Total number of expired cards under the account.
-
#total_fraud_cards ⇒ Integer
Total number of cards in Fraud status.
-
#total_new_cards ⇒ Integer
Total number of cards in “New” status.
-
#total_renewal_pending_cards ⇒ Integer
Total number of Renewal Pending account under the payer.
-
#total_replaced_cards ⇒ Integer
Total number of cards under the account with status as “Replaced”.
-
#total_temporary_block_cards_by_customer ⇒ Integer
Total number of cards under the account that are temporarily blocked by customer.
-
#total_temporary_block_cards_by_shell ⇒ Integer
Total number of cards under the account that are temporarily blocked by Shell.
-
#vat_amount ⇒ Float
VAT amount in customer currency.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
#initialize(account_full_name = SKIP, account_id = SKIP, account_number = SKIP, account_short_name = SKIP, best_of_indicator = SKIP, billing_frequency_type = SKIP, billing_frequency_type_id = SKIP, billing_run_frequency = SKIP, billing_run_frequency_type_id = SKIP, col_co_country_code = SKIP, currency_code = SKIP, currency_symbol = SKIP, day1_run = SKIP, day2_run = SKIP, day3_run = SKIP, day4_run = SKIP, frequency_type = SKIP, gross_amount = SKIP, international_pos_language_code = SKIP, international_pos_language_id = SKIP, invoice_account_id = SKIP, invoice_account_number = SKIP, invoice_account_short_name = SKIP, invoice_distribution_methods = SKIP, is_international = SKIP, is_invoice_point = SKIP, last_modified_date = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, local_pos_language_code = SKIP, local_pos_language_id = SKIP, net_amount = SKIP, outstanding_balance = SKIP, paid_amount = SKIP, status = SKIP, status_reason = SKIP, total_active_card_groups = SKIP, total_active_cards = SKIP, total_blocked_cards = SKIP, total_cancelled_cards = SKIP, total_cards = SKIP, total_expired_cards = SKIP, total_fraud_cards = SKIP, total_new_cards = SKIP, total_renewal_pending_cards = SKIP, total_replaced_cards = SKIP, total_temporary_block_cards_by_customer = SKIP, total_temporary_block_cards_by_shell = SKIP, vat_amount = SKIP, is_partner_card = SKIP, tolls_customer_id = SKIP, tolls_colco_country_type_id = SKIP, contracts = SKIP, is_consortium_member = SKIP) ⇒ AccountResponseAccountsItems
Returns a new instance of AccountResponseAccountsItems.
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 438 def initialize(account_full_name = SKIP, account_id = SKIP, account_number = SKIP, account_short_name = SKIP, best_of_indicator = SKIP, billing_frequency_type = SKIP, billing_frequency_type_id = SKIP, billing_run_frequency = SKIP, billing_run_frequency_type_id = SKIP, col_co_country_code = SKIP, currency_code = SKIP, currency_symbol = SKIP, day1_run = SKIP, day2_run = SKIP, day3_run = SKIP, day4_run = SKIP, frequency_type = SKIP, gross_amount = SKIP, international_pos_language_code = SKIP, international_pos_language_id = SKIP, invoice_account_id = SKIP, invoice_account_number = SKIP, invoice_account_short_name = SKIP, invoice_distribution_methods = SKIP, is_international = SKIP, is_invoice_point = SKIP, last_modified_date = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, local_pos_language_code = SKIP, local_pos_language_id = SKIP, net_amount = SKIP, outstanding_balance = SKIP, paid_amount = SKIP, status = SKIP, status_reason = SKIP, total_active_card_groups = SKIP, total_active_cards = SKIP, total_blocked_cards = SKIP, total_cancelled_cards = SKIP, total_cards = SKIP, total_expired_cards = SKIP, total_fraud_cards = SKIP, total_new_cards = SKIP, total_renewal_pending_cards = SKIP, total_replaced_cards = SKIP, total_temporary_block_cards_by_customer = SKIP, total_temporary_block_cards_by_shell = SKIP, vat_amount = SKIP, is_partner_card = SKIP, tolls_customer_id = SKIP, tolls_colco_country_type_id = SKIP, contracts = SKIP, is_consortium_member = SKIP) @account_full_name = account_full_name unless account_full_name == SKIP @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @account_short_name = account_short_name unless account_short_name == SKIP @best_of_indicator = best_of_indicator unless best_of_indicator == SKIP @billing_frequency_type = billing_frequency_type unless billing_frequency_type == SKIP unless billing_frequency_type_id == SKIP @billing_frequency_type_id = billing_frequency_type_id end @billing_run_frequency = billing_run_frequency unless billing_run_frequency == SKIP unless billing_run_frequency_type_id == SKIP @billing_run_frequency_type_id = billing_run_frequency_type_id end @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP @currency_code = currency_code unless currency_code == SKIP @currency_symbol = currency_symbol unless currency_symbol == SKIP @day1_run = day1_run unless day1_run == SKIP @day2_run = day2_run unless day2_run == SKIP @day3_run = day3_run unless day3_run == SKIP @day4_run = day4_run unless day4_run == SKIP @frequency_type = frequency_type unless frequency_type == SKIP @gross_amount = gross_amount unless gross_amount == SKIP unless international_pos_language_code == SKIP @international_pos_language_code = international_pos_language_code end unless international_pos_language_id == SKIP @international_pos_language_id = international_pos_language_id end @invoice_account_id = invoice_account_id unless invoice_account_id == SKIP @invoice_account_number = invoice_account_number unless invoice_account_number == SKIP unless invoice_account_short_name == SKIP @invoice_account_short_name = invoice_account_short_name end unless invoice_distribution_methods == SKIP @invoice_distribution_methods = invoice_distribution_methods end @is_international = is_international unless is_international == SKIP @is_invoice_point = is_invoice_point unless is_invoice_point == SKIP @last_modified_date = last_modified_date unless last_modified_date == SKIP @local_currency_code = local_currency_code unless local_currency_code == SKIP @local_currency_symbol = local_currency_symbol unless local_currency_symbol == SKIP @local_pos_language_code = local_pos_language_code unless local_pos_language_code == SKIP @local_pos_language_id = local_pos_language_id unless local_pos_language_id == SKIP @net_amount = net_amount unless net_amount == SKIP @outstanding_balance = outstanding_balance unless outstanding_balance == SKIP @paid_amount = paid_amount unless paid_amount == SKIP @status = status unless status == SKIP @status_reason = status_reason unless status_reason == SKIP @total_active_card_groups = total_active_card_groups unless total_active_card_groups == SKIP @total_active_cards = total_active_cards unless total_active_cards == SKIP @total_blocked_cards = total_blocked_cards unless total_blocked_cards == SKIP @total_cancelled_cards = total_cancelled_cards unless total_cancelled_cards == SKIP @total_cards = total_cards unless total_cards == SKIP @total_expired_cards = total_expired_cards unless total_expired_cards == SKIP @total_fraud_cards = total_fraud_cards unless total_fraud_cards == SKIP @total_new_cards = total_new_cards unless total_new_cards == SKIP unless total_renewal_pending_cards == SKIP @total_renewal_pending_cards = total_renewal_pending_cards end @total_replaced_cards = total_replaced_cards unless total_replaced_cards == SKIP unless total_temporary_block_cards_by_customer == SKIP @total_temporary_block_cards_by_customer = total_temporary_block_cards_by_customer end unless total_temporary_block_cards_by_shell == SKIP @total_temporary_block_cards_by_shell = total_temporary_block_cards_by_shell end @vat_amount = vat_amount unless vat_amount == SKIP @is_partner_card = is_partner_card unless is_partner_card == SKIP @tolls_customer_id = tolls_customer_id unless tolls_customer_id == SKIP unless tolls_colco_country_type_id == SKIP @tolls_colco_country_type_id = tolls_colco_country_type_id end @contracts = contracts unless contracts == SKIP @is_consortium_member = is_consortium_member unless is_consortium_member == SKIP end |
Instance Attribute Details
#account_full_name ⇒ String
Account Full Name
14 15 16 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 14 def account_full_name @account_full_name end |
#account_id ⇒ Integer
Account Id
18 19 20 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 18 def account_id @account_id end |
#account_number ⇒ String
Account Number
22 23 24 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 22 def account_number @account_number end |
#account_short_name ⇒ String
Account Short Name
26 27 28 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 26 def account_short_name @account_short_name end |
#best_of_indicator ⇒ TrueClass | FalseClass
Best of Indicator of the Pricing customer/account configured.
30 31 32 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 30 def best_of_indicator @best_of_indicator end |
#billing_frequency_type ⇒ String
Billing/Invoice frequency. The frequency in which the transactions will be considered for invoicing in a bulling run E.g.: 1 Daily (all days) 2 Daily (only working days) 3 Weekly - Monday 4 Weekly – Tuesday Etc.
41 42 43 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 41 def billing_frequency_type @billing_frequency_type end |
#billing_frequency_type_id ⇒ Integer
Billing/Invoice frequency Identifier. Indicates the frequency in which the transactions will be considered for invoicing in a bulling run
46 47 48 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 46 def billing_frequency_type_id @billing_frequency_type_id end |
#billing_run_frequency ⇒ String
Frequency at which the billing process is triggered. E.g.: 1 Daily (all days) 2 Daily (only working days) 3 Weekly - Monday 4 Weekly – Tuesday Etc.
55 56 57 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 55 def billing_run_frequency @billing_run_frequency end |
#billing_run_frequency_type_id ⇒ Integer
Frequency at which the billing process is triggered. E.g.: 1, 2, 3, etc.
60 61 62 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 60 def billing_run_frequency_type_id @billing_run_frequency_type_id end |
#col_co_country_code ⇒ String
The 2-character ISO Code for the customer and card owning country.
64 65 66 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 64 def col_co_country_code @col_co_country_code end |
#contracts ⇒ Array[CustomerContract]
Colco country type id in e-TM system
252 253 254 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 252 def contracts @contracts end |
#currency_code ⇒ String
ISO code of customer currency.
68 69 70 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 68 def currency_code @currency_code end |
#currency_symbol ⇒ String
€
72 73 74 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 72 def currency_symbol @currency_symbol end |
#day1_run ⇒ Integer
The first day in a month when the billing should run in case of multiple billing runs configured with in a single month
77 78 79 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 77 def day1_run @day1_run end |
#day2_run ⇒ Integer
The second day in a month when the billing should run in case of multiple billing runs configured with in a single month
82 83 84 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 82 def day2_run @day2_run end |
#day3_run ⇒ Integer
The third day in a month when the billing should run in case of multiple billing runs configured with in a single month
87 88 89 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 87 def day3_run @day3_run end |
#day4_run ⇒ Integer
The fourth day in a month when the billing should run in case of multiple billing runs configured with in a single month
92 93 94 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 92 def day4_run @day4_run end |
#frequency_type ⇒ String
Frequency type unit id & description E.g.: 1 - Daily 2 - Weekly 3 - Monthly 4 - Invoicing 6 - Calendar quarter
102 103 104 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 102 def frequency_type @frequency_type end |
#gross_amount ⇒ Float
Gross amount in customer currency.
106 107 108 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 106 def gross_amount @gross_amount end |
#international_pos_language_code ⇒ String
POS international language code
110 111 112 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 110 def international_pos_language_code @international_pos_language_code end |
#international_pos_language_id ⇒ Integer
POS international language ID
114 115 116 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 114 def international_pos_language_id @international_pos_language_id end |
#invoice_account_id ⇒ Integer
The Account ID of the account on which the invoice is generated.
118 119 120 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 118 def invoice_account_id @invoice_account_id end |
#invoice_account_number ⇒ String
The Account Number of the account on which the invoice is generated.
122 123 124 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 122 def invoice_account_number @invoice_account_number end |
#invoice_account_short_name ⇒ String
The Account Short Name of the account on which the invoice is generated.
126 127 128 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 126 def invoice_account_short_name @invoice_account_short_name end |
#invoice_distribution_methods ⇒ Array[InvoiceDistributionMethod]
The Account Short Name of the account on which the invoice is generated.
130 131 132 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 130 def invoice_distribution_methods @invoice_distribution_methods end |
#is_consortium_member ⇒ String
true
256 257 258 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 256 def is_consortium_member @is_consortium_member end |
#is_international ⇒ TrueClass | FalseClass
Whether the account is international.
134 135 136 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 134 def is_international @is_international end |
#is_invoice_point ⇒ TrueClass | FalseClass
Whether the account is an invoice point.
138 139 140 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 138 def is_invoice_point @is_invoice_point end |
#is_partner_card ⇒ Integer
The account / sub-account is partner card account or not. Possible values (1= Non-PC account, 2= PC account, 3= PC Payer with Card Types, 4= PC Payer) Note: A partner card account is assumed to have only partner card card-types associated
240 241 242 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 240 def is_partner_card @is_partner_card end |
#last_modified_date ⇒ String
Account last modified date and time
142 143 144 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 142 def last_modified_date @last_modified_date end |
#local_currency_code ⇒ String
ISO code of customer currency.
146 147 148 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 146 def local_currency_code @local_currency_code end |
#local_currency_symbol ⇒ String
Customer currency symbol.
150 151 152 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 150 def local_currency_symbol @local_currency_symbol end |
#local_pos_language_code ⇒ String
POS local language code
154 155 156 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 154 def local_pos_language_code @local_pos_language_code end |
#local_pos_language_id ⇒ Integer
POS local language ID
158 159 160 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 158 def local_pos_language_id @local_pos_language_id end |
#net_amount ⇒ Float
Net amount in customer currency.
162 163 164 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 162 def net_amount @net_amount end |
#outstanding_balance ⇒ Float
Outstanding balance in customer currency.
166 167 168 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 166 def outstanding_balance @outstanding_balance end |
#paid_amount ⇒ Float
Amount paid in customer currency.
170 171 172 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 170 def paid_amount @paid_amount end |
#status ⇒ String
Account Status
174 175 176 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 174 def status @status end |
#status_reason ⇒ String
Account status change reason id-description for the Status Reason, if any
178 179 180 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 178 def status_reason @status_reason end |
#tolls_colco_country_type_id ⇒ String
Colco country type id in e-TM system
248 249 250 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 248 def tolls_colco_country_type_id @tolls_colco_country_type_id end |
#tolls_customer_id ⇒ String
Customer id in e-TM system
244 245 246 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 244 def tolls_customer_id @tolls_customer_id end |
#total_active_card_groups ⇒ Integer
Total number of active card groups under the account
182 183 184 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 182 def total_active_card_groups @total_active_card_groups end |
#total_active_cards ⇒ Integer
Total number of active cards under the account.
186 187 188 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 186 def total_active_cards @total_active_cards end |
#total_blocked_cards ⇒ Integer
Total number of cards under the account that are permanently blocked
190 191 192 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 190 def total_blocked_cards @total_blocked_cards end |
#total_cancelled_cards ⇒ Integer
Total number of cards under the account that are cancelled
194 195 196 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 194 def total_cancelled_cards @total_cancelled_cards end |
#total_cards ⇒ Integer
Total number of cards under the account.
198 199 200 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 198 def total_cards @total_cards end |
#total_expired_cards ⇒ Integer
Total number of expired cards under the account.
202 203 204 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 202 def total_expired_cards @total_expired_cards end |
#total_fraud_cards ⇒ Integer
Total number of cards in Fraud status.
206 207 208 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 206 def total_fraud_cards @total_fraud_cards end |
#total_new_cards ⇒ Integer
Total number of cards in “New” status.
210 211 212 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 210 def total_new_cards @total_new_cards end |
#total_renewal_pending_cards ⇒ Integer
Total number of Renewal Pending account under the payer
214 215 216 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 214 def total_renewal_pending_cards @total_renewal_pending_cards end |
#total_replaced_cards ⇒ Integer
Total number of cards under the account with status as “Replaced”
218 219 220 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 218 def total_replaced_cards @total_replaced_cards end |
#total_temporary_block_cards_by_customer ⇒ Integer
Total number of cards under the account that are temporarily blocked by customer.
223 224 225 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 223 def total_temporary_block_cards_by_customer @total_temporary_block_cards_by_customer end |
#total_temporary_block_cards_by_shell ⇒ Integer
Total number of cards under the account that are temporarily blocked by Shell.
228 229 230 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 228 def total_temporary_block_cards_by_shell @total_temporary_block_cards_by_shell end |
#vat_amount ⇒ Float
VAT amount in customer currency.
232 233 234 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 232 def vat_amount @vat_amount end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 555 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_full_name = hash.key?('AccountFullName') ? hash['AccountFullName'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP account_short_name = hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP best_of_indicator = hash.key?('BestOfIndicator') ? hash['BestOfIndicator'] : SKIP billing_frequency_type = hash.key?('BillingFrequencyType') ? hash['BillingFrequencyType'] : SKIP billing_frequency_type_id = hash.key?('BillingFrequencyTypeId') ? hash['BillingFrequencyTypeId'] : SKIP billing_run_frequency = hash.key?('BillingRunFrequency') ? hash['BillingRunFrequency'] : SKIP billing_run_frequency_type_id = hash.key?('BillingRunFrequencyTypeId') ? hash['BillingRunFrequencyTypeId'] : SKIP col_co_country_code = hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP currency_symbol = hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP day1_run = hash.key?('Day1Run') ? hash['Day1Run'] : SKIP day2_run = hash.key?('Day2Run') ? hash['Day2Run'] : SKIP day3_run = hash.key?('Day3Run') ? hash['Day3Run'] : SKIP day4_run = hash.key?('Day4Run') ? hash['Day4Run'] : SKIP frequency_type = hash.key?('FrequencyType') ? hash['FrequencyType'] : SKIP gross_amount = hash.key?('GrossAmount') ? hash['GrossAmount'] : SKIP international_pos_language_code = hash.key?('InternationalPOSLanguageCode') ? hash['InternationalPOSLanguageCode'] : SKIP international_pos_language_id = hash.key?('InternationalPOSLanguageID') ? hash['InternationalPOSLanguageID'] : SKIP invoice_account_id = hash.key?('InvoiceAccountID') ? hash['InvoiceAccountID'] : SKIP invoice_account_number = hash.key?('InvoiceAccountNumber') ? hash['InvoiceAccountNumber'] : SKIP invoice_account_short_name = hash.key?('InvoiceAccountShortName') ? hash['InvoiceAccountShortName'] : SKIP # Parameter is an array, so we need to iterate through it invoice_distribution_methods = nil unless hash['InvoiceDistributionMethods'].nil? invoice_distribution_methods = [] hash['InvoiceDistributionMethods'].each do |structure| invoice_distribution_methods << (InvoiceDistributionMethod.from_hash(structure) if structure) end end invoice_distribution_methods = SKIP unless hash.key?('InvoiceDistributionMethods') is_international = hash.key?('IsInternational') ? hash['IsInternational'] : SKIP is_invoice_point = hash.key?('IsInvoicePoint') ? hash['IsInvoicePoint'] : SKIP last_modified_date = hash.key?('LastModifiedDate') ? hash['LastModifiedDate'] : SKIP local_currency_code = hash.key?('LocalCurrencyCode') ? hash['LocalCurrencyCode'] : SKIP local_currency_symbol = hash.key?('LocalCurrencySymbol') ? hash['LocalCurrencySymbol'] : SKIP local_pos_language_code = hash.key?('LocalPOSLanguageCode') ? hash['LocalPOSLanguageCode'] : SKIP local_pos_language_id = hash.key?('LocalPOSLanguageID') ? hash['LocalPOSLanguageID'] : SKIP net_amount = hash.key?('NetAmount') ? hash['NetAmount'] : SKIP outstanding_balance = hash.key?('OutstandingBalance') ? hash['OutstandingBalance'] : SKIP paid_amount = hash.key?('PaidAmount') ? hash['PaidAmount'] : SKIP status = hash.key?('Status') ? hash['Status'] : SKIP status_reason = hash.key?('StatusReason') ? hash['StatusReason'] : SKIP total_active_card_groups = hash.key?('TotalActiveCardGroups') ? hash['TotalActiveCardGroups'] : SKIP total_active_cards = hash.key?('TotalActiveCards') ? hash['TotalActiveCards'] : SKIP total_blocked_cards = hash.key?('TotalBlockedCards') ? hash['TotalBlockedCards'] : SKIP total_cancelled_cards = hash.key?('TotalCancelledCards') ? hash['TotalCancelledCards'] : SKIP total_cards = hash.key?('TotalCards') ? hash['TotalCards'] : SKIP total_expired_cards = hash.key?('TotalExpiredCards') ? hash['TotalExpiredCards'] : SKIP total_fraud_cards = hash.key?('TotalFraudCards') ? hash['TotalFraudCards'] : SKIP total_new_cards = hash.key?('TotalNewCards') ? hash['TotalNewCards'] : SKIP total_renewal_pending_cards = hash.key?('TotalRenewalPendingCards') ? hash['TotalRenewalPendingCards'] : SKIP total_replaced_cards = hash.key?('TotalReplacedCards') ? hash['TotalReplacedCards'] : SKIP total_temporary_block_cards_by_customer = hash.key?('TotalTemporaryBlockCardsByCustomer') ? hash['TotalTemporaryBlockCardsByCustomer'] : SKIP total_temporary_block_cards_by_shell = hash.key?('TotalTemporaryBlockCardsByShell') ? hash['TotalTemporaryBlockCardsByShell'] : SKIP vat_amount = hash.key?('VATAmount') ? hash['VATAmount'] : SKIP is_partner_card = hash.key?('IsPartnerCard') ? hash['IsPartnerCard'] : SKIP tolls_customer_id = hash.key?('TollsCustomerId') ? hash['TollsCustomerId'] : SKIP tolls_colco_country_type_id = hash.key?('TollsColcoCountryTypeId') ? hash['TollsColcoCountryTypeId'] : SKIP # Parameter is an array, so we need to iterate through it contracts = nil unless hash['Contracts'].nil? contracts = [] hash['Contracts'].each do |structure| contracts << (CustomerContract.from_hash(structure) if structure) end end contracts = SKIP unless hash.key?('Contracts') is_consortium_member = hash.key?('IsConsortiumMember') ? hash['IsConsortiumMember'] : SKIP # Create object from extracted values. AccountResponseAccountsItems.new(account_full_name, account_id, account_number, account_short_name, best_of_indicator, billing_frequency_type, billing_frequency_type_id, billing_run_frequency, billing_run_frequency_type_id, col_co_country_code, currency_code, currency_symbol, day1_run, day2_run, day3_run, day4_run, frequency_type, gross_amount, international_pos_language_code, international_pos_language_id, invoice_account_id, invoice_account_number, invoice_account_short_name, invoice_distribution_methods, is_international, is_invoice_point, last_modified_date, local_currency_code, local_currency_symbol, local_pos_language_code, local_pos_language_id, net_amount, outstanding_balance, paid_amount, status, status_reason, total_active_card_groups, total_active_cards, total_blocked_cards, total_cancelled_cards, total_cards, total_expired_cards, total_fraud_cards, total_new_cards, total_renewal_pending_cards, total_replaced_cards, total_temporary_block_cards_by_customer, total_temporary_block_cards_by_shell, vat_amount, is_partner_card, tolls_customer_id, tolls_colco_country_type_id, contracts, is_consortium_member) end |
.names ⇒ Object
A mapping from model property names to API property names.
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 259 def self.names @_hash = {} if @_hash.nil? @_hash['account_full_name'] = 'AccountFullName' @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['account_short_name'] = 'AccountShortName' @_hash['best_of_indicator'] = 'BestOfIndicator' @_hash['billing_frequency_type'] = 'BillingFrequencyType' @_hash['billing_frequency_type_id'] = 'BillingFrequencyTypeId' @_hash['billing_run_frequency'] = 'BillingRunFrequency' @_hash['billing_run_frequency_type_id'] = 'BillingRunFrequencyTypeId' @_hash['col_co_country_code'] = 'ColCoCountryCode' @_hash['currency_code'] = 'CurrencyCode' @_hash['currency_symbol'] = 'CurrencySymbol' @_hash['day1_run'] = 'Day1Run' @_hash['day2_run'] = 'Day2Run' @_hash['day3_run'] = 'Day3Run' @_hash['day4_run'] = 'Day4Run' @_hash['frequency_type'] = 'FrequencyType' @_hash['gross_amount'] = 'GrossAmount' @_hash['international_pos_language_code'] = 'InternationalPOSLanguageCode' @_hash['international_pos_language_id'] = 'InternationalPOSLanguageID' @_hash['invoice_account_id'] = 'InvoiceAccountID' @_hash['invoice_account_number'] = 'InvoiceAccountNumber' @_hash['invoice_account_short_name'] = 'InvoiceAccountShortName' @_hash['invoice_distribution_methods'] = 'InvoiceDistributionMethods' @_hash['is_international'] = 'IsInternational' @_hash['is_invoice_point'] = 'IsInvoicePoint' @_hash['last_modified_date'] = 'LastModifiedDate' @_hash['local_currency_code'] = 'LocalCurrencyCode' @_hash['local_currency_symbol'] = 'LocalCurrencySymbol' @_hash['local_pos_language_code'] = 'LocalPOSLanguageCode' @_hash['local_pos_language_id'] = 'LocalPOSLanguageID' @_hash['net_amount'] = 'NetAmount' @_hash['outstanding_balance'] = 'OutstandingBalance' @_hash['paid_amount'] = 'PaidAmount' @_hash['status'] = 'Status' @_hash['status_reason'] = 'StatusReason' @_hash['total_active_card_groups'] = 'TotalActiveCardGroups' @_hash['total_active_cards'] = 'TotalActiveCards' @_hash['total_blocked_cards'] = 'TotalBlockedCards' @_hash['total_cancelled_cards'] = 'TotalCancelledCards' @_hash['total_cards'] = 'TotalCards' @_hash['total_expired_cards'] = 'TotalExpiredCards' @_hash['total_fraud_cards'] = 'TotalFraudCards' @_hash['total_new_cards'] = 'TotalNewCards' @_hash['total_renewal_pending_cards'] = 'TotalRenewalPendingCards' @_hash['total_replaced_cards'] = 'TotalReplacedCards' @_hash['total_temporary_block_cards_by_customer'] = 'TotalTemporaryBlockCardsByCustomer' @_hash['total_temporary_block_cards_by_shell'] = 'TotalTemporaryBlockCardsByShell' @_hash['vat_amount'] = 'VATAmount' @_hash['is_partner_card'] = 'IsPartnerCard' @_hash['tolls_customer_id'] = 'TollsCustomerId' @_hash['tolls_colco_country_type_id'] = 'TollsColcoCountryTypeId' @_hash['contracts'] = 'Contracts' @_hash['is_consortium_member'] = 'IsConsortiumMember' @_hash end |
.nullables ⇒ Object
An array for nullable fields
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 382 def self.nullables %w[ account_full_name account_id account_number account_short_name billing_frequency_type billing_frequency_type_id billing_run_frequency billing_run_frequency_type_id col_co_country_code currency_code currency_symbol day1_run day2_run day3_run day4_run frequency_type gross_amount international_pos_language_code international_pos_language_id invoice_account_id invoice_account_number invoice_account_short_name is_international is_invoice_point last_modified_date local_currency_code local_currency_symbol local_pos_language_code local_pos_language_id net_amount outstanding_balance paid_amount status status_reason total_active_card_groups total_active_cards total_blocked_cards total_cancelled_cards total_cards total_expired_cards total_fraud_cards total_new_cards total_renewal_pending_cards total_replaced_cards total_temporary_block_cards_by_customer total_temporary_block_cards_by_shell vat_amount is_partner_card tolls_customer_id tolls_colco_country_type_id is_consortium_member ] end |
.optionals ⇒ Object
An array for optional fields
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/shell_data_reporting_ap_is/models/account_response_accounts_items.rb', line 322 def self.optionals %w[ account_full_name account_id account_number account_short_name best_of_indicator billing_frequency_type billing_frequency_type_id billing_run_frequency billing_run_frequency_type_id col_co_country_code currency_code currency_symbol day1_run day2_run day3_run day4_run frequency_type gross_amount international_pos_language_code international_pos_language_id invoice_account_id invoice_account_number invoice_account_short_name invoice_distribution_methods is_international is_invoice_point last_modified_date local_currency_code local_currency_symbol local_pos_language_code local_pos_language_id net_amount outstanding_balance paid_amount status status_reason total_active_card_groups total_active_cards total_blocked_cards total_cancelled_cards total_cards total_expired_cards total_fraud_cards total_new_cards total_renewal_pending_cards total_replaced_cards total_temporary_block_cards_by_customer total_temporary_block_cards_by_shell vat_amount is_partner_card tolls_customer_id tolls_colco_country_type_id contracts is_consortium_member ] end |