Class: ShellCardManagementApIs::Filters1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::Filters1
- Defined in:
- lib/shell_card_management_ap_is/models/filters1.rb
Overview
Filters1 Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account ID of the customer.<br/> Optional.<br/> This input is a search criterion, if given.
-
#account_number ⇒ String
Account Number of the customer.<br/> Optional.<br/> This input is a search criterion, if given.
-
#card_group_id ⇒ Integer
Card group id.<br /> Optional.
-
#card_group_name ⇒ String
Card group name.<br /> Optional.<br /> This input is a search criterion, if given.<br /> If CardGroupId is provided then this search criterion will be ignored, else, those cards that have the card group name completely matching with the entered value will be returned.
-
#card_segment ⇒ String
Market segment to which card belongs to.<br /> Optional.<br /> Allowed values<br /> • CRT<br /> • Fleet.
-
#card_status ⇒ Array[String]
Status of the card.<br /> Mandatory.<br /> Multiple statuses are allowed to be included in the search criteria.<br /> CardStatus filter accepts either of the two values for each status as described below.
-
#card_type_code ⇒ String
ISO code of the card i.e.
-
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer.
-
#col_co_country_code ⇒ String
The 2 character ISO Code for the customer and card owning country.<br /> Optional If ColCoId or ColCoCode is passed else Mandatory.<br />.
-
#col_co_id ⇒ Integer
Collecting Company Id (in ) of the selected payer.<br /> Optional If ColCo Codeor ColCoCountryCode is passed else Mandatory <br />.
-
#coverage ⇒ String
Cards allowed to used nationally/internationally.<br /> Optional.<br /> Allowed values<br /> -National<br /> -International.
-
#creation_date ⇒ String
Card Creation Date<br /> Optional<br /> Format: yyyyMMdd.
-
#driver_name ⇒ Array[String]
Driver Name embossed on the card<br /> Optional<br /> Up to 10 driver names could be passed in the parameter.<br /> Minimum of 4 characters should be provided for each driver name else not considered.<br /> Those cards will be returned when part of the driver name matches with any of the string passed in the list.<br /> Max Length for each Driver name: 50.
-
#effective_date ⇒ String
Effective date for the Card<br /> Optional<br /> Format: yyyyMMdd.
-
#exclude_bundle_id ⇒ String
Bundle Id for the Card, which needs to be excluded in the response.<br /> Optional.
-
#exclude_cancelled_cards ⇒ TrueClass | FalseClass
Default value is True.<br /> When true, the API will not return cards that are at Cancelled Status in Cards Platform.
-
#exclude_card_group_id ⇒ Integer
Optional<br /> When passed, the API will not return cards that are currently in the Card Group specified.
-
#exclude_card_group_name ⇒ String
Optional<br /> When passed, the API will not return cards that are currently in the Card Group specified.
-
#exclude_cards ⇒ Array[SearchCard]
List of SearchCard entity i.e., Card Id or PAN, which needs to be excluded in the response.
-
#exclude_fraud_cards ⇒ TrueClass | FalseClass
Default value is False.<br /> When true, the API will not return cards that are at Fraud Status in Cards Platform.
-
#exclude_old_cards ⇒ TrueClass | FalseClass
Default Value: False<br /> When this field is set to True, cards with below status 2 years (configurable) ago and earlier are excluded from the result<br /> -Blocked Card<br /> -Expired<br /> -Cancelled<br /> -Suspended<br /> -Blocked<br /> -Expired and Cancelled<br /> -Replaced<br /> -Replaced By<br /> -Closed<br /> -Fraud<br />.
-
#exclude_pending_renewal_cards ⇒ TrueClass | FalseClass
Default value is True.<br /> When true, the API will not return cards that are at Pending Renewal Status in Cards Platform.
-
#exclude_replaced_cards ⇒ TrueClass | FalseClass
Default value is False.<br /> When true, the API will not return cards that are at Replaced Status in Cards Platform.
-
#expiring_in_days ⇒ Integer
Cards active and expiring in given number of days.<br /> Optional<br /> Note: When a value is passed in this parameter, only active cards will be considered while searching.
-
#expiry_month ⇒ String
Month in which the card is expiring.<br /> Optional.<br /> Format: MMYYYY.
-
#include_cards ⇒ Array[SearchCard]
List of SearchCard entity i.e., Card Id or PAN, which needs to be included in the response.<br /> Details of the SerachCard entity are given below.
-
#issued_after ⇒ String
If provided, only list cards issued after the given date<br /> Optional<br /> Format: yyyyMMdd<br /> Note: Clients to convert this to appropriate DateTime type.
-
#network ⇒ String
Cards allowed to be used in site.<br /> Optional.<br /> Allowed values<br /> • ShellSitesOnly<br /> • PartnersSitesIncluded<br />.
-
#pan_ends_with ⇒ String
Last digits of the PAN number<br /> Minimum 4 last digits of the card should be sent for this field to be considered as part of the search criteria.<br /> Optional<br /> Max Length: 50.
-
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer ) of the selected payer.<br /> Optional if PayerNumber is passed else Mandatory.
-
#payer_number ⇒ String
Payer Number of the selected payer.<br /> Optional if PayerId is passed else Mandatory.
-
#purchase_category_code ⇒ String
Purchase category code of the card.<br /> Optional.
-
#reissue_setting ⇒ String
Default Value: All<br /> Optional<br /> This option is used to filter the list of cards with ‘ReissueSetting’.<br /> If ‘True’, the API will return cards with ReIssueSetting value is true.<br /> If ‘False’, the API will return cards with ReIsssueSetting value is false.<br /> If ‘ALL’, API will return cards with ReIssueSetting value True & False both.<br /> Allowed Values:<br /> 1.
-
#request_id ⇒ String
Default Value: All<br /> Optional<br /> This option is used to filter the list of cards with ‘ReissueSetting’.<br /> If ‘True’, the API will return cards with ReIssueSetting value is true.<br /> If ‘False’, the API will return cards with ReIsssueSetting value is false.<br /> If ‘ALL’, API will return cards with ReIssueSetting value True & False both.<br /> Allowed Values:<br /> 1.
-
#vehicle_registration_number ⇒ Array[String]
Vehicle Registration embossed on the card<br /> Optional<br /> Up to 10 vehicle registration numbers could be passed in the parameter.<br /> Minimum of 4 characters should be provided for each VRN else not considered<br /> Those cards will be returned when part of the VRN matches with any of the string passed in the list.<br /> Max Length for each VRN: 50.
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(card_status = nil, request_id = nil, account_id = SKIP, account_number = SKIP, col_co_code = SKIP, col_co_country_code = SKIP, col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP, card_group_id = SKIP, card_group_name = SKIP, expiring_in_days = SKIP, issued_after = SKIP, pan_ends_with = SKIP, driver_name = SKIP, vehicle_registration_number = SKIP, include_cards = SKIP, exclude_cards = SKIP, exclude_bundle_id = SKIP, card_segment = SKIP, purchase_category_code = SKIP, card_type_code = SKIP, exclude_pending_renewal_cards = SKIP, exclude_cancelled_cards = SKIP, exclude_replaced_cards = SKIP, exclude_fraud_cards = SKIP, exclude_card_group_id = SKIP, exclude_card_group_name = SKIP, creation_date = SKIP, effective_date = SKIP, network = SKIP, coverage = SKIP, expiry_month = SKIP, exclude_old_cards = SKIP, reissue_setting = SKIP) ⇒ Filters1
Returns a new instance of Filters1.
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 437 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 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 408 def initialize(card_status = nil, request_id = nil, account_id = SKIP, account_number = SKIP, col_co_code = SKIP, col_co_country_code = SKIP, col_co_id = SKIP, payer_id = SKIP, payer_number = SKIP, card_group_id = SKIP, card_group_name = SKIP, expiring_in_days = SKIP, issued_after = SKIP, pan_ends_with = SKIP, driver_name = SKIP, vehicle_registration_number = SKIP, include_cards = SKIP, exclude_cards = SKIP, exclude_bundle_id = SKIP, card_segment = SKIP, purchase_category_code = SKIP, card_type_code = SKIP, exclude_pending_renewal_cards = SKIP, exclude_cancelled_cards = SKIP, exclude_replaced_cards = SKIP, exclude_fraud_cards = SKIP, exclude_card_group_id = SKIP, exclude_card_group_name = SKIP, creation_date = SKIP, effective_date = SKIP, network = SKIP, coverage = SKIP, expiry_month = SKIP, exclude_old_cards = SKIP, reissue_setting = SKIP) @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @col_co_code = col_co_code unless col_co_code == SKIP @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP @col_co_id = col_co_id unless col_co_id == SKIP @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP @card_group_id = card_group_id unless card_group_id == SKIP @card_group_name = card_group_name unless card_group_name == SKIP @card_status = card_status @expiring_in_days = expiring_in_days unless expiring_in_days == SKIP @issued_after = issued_after unless issued_after == SKIP @pan_ends_with = pan_ends_with unless pan_ends_with == SKIP @driver_name = driver_name unless driver_name == SKIP unless vehicle_registration_number == SKIP @vehicle_registration_number = vehicle_registration_number end @include_cards = include_cards unless include_cards == SKIP @exclude_cards = exclude_cards unless exclude_cards == SKIP @exclude_bundle_id = exclude_bundle_id unless exclude_bundle_id == SKIP @card_segment = card_segment unless card_segment == SKIP @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP @card_type_code = card_type_code unless card_type_code == SKIP unless exclude_pending_renewal_cards == SKIP @exclude_pending_renewal_cards = exclude_pending_renewal_cards end @exclude_cancelled_cards = exclude_cancelled_cards unless exclude_cancelled_cards == SKIP @exclude_replaced_cards = exclude_replaced_cards unless exclude_replaced_cards == SKIP @exclude_fraud_cards = exclude_fraud_cards unless exclude_fraud_cards == SKIP @exclude_card_group_id = exclude_card_group_id unless exclude_card_group_id == SKIP @exclude_card_group_name = exclude_card_group_name unless exclude_card_group_name == SKIP @creation_date = creation_date unless creation_date == SKIP @effective_date = effective_date unless effective_date == SKIP @network = network unless network == SKIP @coverage = coverage unless coverage == SKIP @expiry_month = expiry_month unless expiry_month == SKIP @exclude_old_cards = exclude_old_cards unless exclude_old_cards == SKIP @reissue_setting = reissue_setting unless reissue_setting == SKIP @request_id = request_id end |
Instance Attribute Details
#account_id ⇒ Integer
Account ID of the customer.<br/> Optional.<br/> This input is a search criterion, if given.
15 16 17 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 15 def account_id @account_id end |
#account_number ⇒ String
Account Number of the customer.<br/> Optional.<br/> This input is a search criterion, if given.
20 21 22 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 20 def account_number @account_number end |
#card_group_id ⇒ Integer
Card group id.<br /> Optional. <br /> This input is a search criterion, if given.<br /> When -1 is passed, those cards that does not belong to any card group will be returned.
54 55 56 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 54 def card_group_id @card_group_id end |
#card_group_name ⇒ String
Card group name.<br /> Optional.<br /> This input is a search criterion, if given.<br /> If CardGroupId is provided then this search criterion will be ignored, else, those cards that have the card group name completely matching with the entered value will be returned
63 64 65 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 63 def card_group_name @card_group_name end |
#card_segment ⇒ String
Market segment to which card belongs to.<br /> Optional.<br /> Allowed values<br /> • CRT<br /> • Fleet
164 165 166 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 164 def card_segment @card_segment end |
#card_status ⇒ Array[String]
Status of the card.<br /> Mandatory.<br /> Multiple statuses are allowed to be included in the search criteria.<br /> CardStatus filter accepts either of the two values for each status as described below. However, the output field “StatusDescription” is aligned with second value highlighted in italics.<br /> Below are the possible allowed statuses: <br /> • ACTIVE or Active – Cards at status Active (The result will include all the cards having the following intermediate statuses as defined s, if the IncludeIntermediateStatus flag is true: Active (Block in progress), Active (Cancel in progress), Active (Marked as damaged)), New (Cancel in progress).<br /> • ON_ORDER or New – Cards at status New <br /> • EXPIRED or Expired – Cards at status Expired<br /> • BLOCKED or Blocked Card – Cards at status Block (The result will include all cards having the following intermediate status as defined, if the IncludeIntermediateStatus flag is true: Blocked card (Unblock in progress))<br /> • TEMP_BLOCKED_CUSTOMER or Temporary Block(Customer) – Cards at status Temporary Blocked By Customer<br /> • TEMP_BLOCKED_SHELL or Temporary Block (Shell) – Cards at Status Temporary Blocked by Shell<br /> • CANCELLED or Cancelled – Cards at status Cancelled<br /> • PENDING_RENEWAL or Pending Renewal - Cards that are in renewal process<br /> • REPLACED or Replaced – Cards at Status Replaced<br /> • FRAUD or Fraud – Cards at Status FRAUD<br /> • ALL
94 95 96 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 94 def card_status @card_status end |
#card_type_code ⇒ String
ISO code of the card i.e. first 7 digits of the PAN<br /> Optional.
174 175 176 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 174 def card_type_code @card_type_code end |
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer. <br /> Optional If ColCo Id or ColCoCountryCode is passed else Mandatory.<br />
25 26 27 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 25 def col_co_code @col_co_code end |
#col_co_country_code ⇒ String
The 2 character ISO Code for the customer and card owning country.<br /> Optional If ColCoId or ColCoCode is passed else Mandatory.<br />
30 31 32 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 30 def col_co_country_code @col_co_country_code end |
#col_co_id ⇒ Integer
Collecting Company Id (in ) of the selected payer.<br /> Optional If ColCo Codeor ColCoCountryCode is passed else Mandatory <br />
35 36 37 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 35 def col_co_id @col_co_id end |
#coverage ⇒ String
Cards allowed to used nationally/internationally.<br /> Optional.<br /> Allowed values<br />
-National<br />
-International
238 239 240 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 238 def coverage @coverage end |
#creation_date ⇒ String
Card Creation Date<br /> Optional<br /> Format: yyyyMMdd
216 217 218 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 216 def creation_date @creation_date end |
#driver_name ⇒ Array[String]
Driver Name embossed on the card<br /> Optional<br /> Up to 10 driver names could be passed in the parameter.<br /> Minimum of 4 characters should be provided for each driver name else not considered.<br /> Those cards will be returned when part of the driver name matches with any of the string passed in the list.<br /> Max Length for each Driver name: 50
127 128 129 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 127 def driver_name @driver_name end |
#effective_date ⇒ String
Effective date for the Card<br /> Optional<br /> Format: yyyyMMdd
222 223 224 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 222 def effective_date @effective_date end |
#exclude_bundle_id ⇒ String
Bundle Id for the Card, which needs to be excluded in the response.<br /> Optional
156 157 158 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 156 def exclude_bundle_id @exclude_bundle_id end |
#exclude_cancelled_cards ⇒ TrueClass | FalseClass
Default value is True.<br /> When true, the API will not return cards that are at Cancelled Status in Cards Platform
186 187 188 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 186 def exclude_cancelled_cards @exclude_cancelled_cards end |
#exclude_card_group_id ⇒ Integer
Optional<br /> When passed, the API will not return cards that are currently in the Card Group specified
204 205 206 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 204 def exclude_card_group_id @exclude_card_group_id end |
#exclude_card_group_name ⇒ String
Optional<br /> When passed, the API will not return cards that are currently in the Card Group specified
210 211 212 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 210 def exclude_card_group_name @exclude_card_group_name end |
#exclude_cards ⇒ Array[SearchCard]
List of SearchCard entity i.e., Card Id or PAN, which needs to be excluded in the response. <br /> Details of the SerachCard entity are given below.
151 152 153 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 151 def exclude_cards @exclude_cards end |
#exclude_fraud_cards ⇒ TrueClass | FalseClass
Default value is False.<br /> When true, the API will not return cards that are at Fraud Status in Cards Platform
198 199 200 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 198 def exclude_fraud_cards @exclude_fraud_cards end |
#exclude_old_cards ⇒ TrueClass | FalseClass
Default Value: False<br /> When this field is set to True, cards with below status 2 years (configurable) ago and earlier are excluded from the result<br />
-Blocked Card<br />
-Expired<br />
-Cancelled<br />
-Suspended<br />
-Blocked<br />
-Expired and Cancelled<br />
-Replaced<br />
-Replaced By<br />
-Closed<br />
-Fraud<br />
260 261 262 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 260 def exclude_old_cards @exclude_old_cards end |
#exclude_pending_renewal_cards ⇒ TrueClass | FalseClass
Default value is True.<br /> When true, the API will not return cards that are at Pending Renewal Status in Cards Platform
180 181 182 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 180 def exclude_pending_renewal_cards @exclude_pending_renewal_cards end |
#exclude_replaced_cards ⇒ TrueClass | FalseClass
Default value is False.<br /> When true, the API will not return cards that are at Replaced Status in Cards Platform
192 193 194 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 192 def exclude_replaced_cards @exclude_replaced_cards end |
#expiring_in_days ⇒ Integer
Cards active and expiring in given number of days.<br /> Optional<br /> Note: When a value is passed in this parameter, only active cards will be considered while searching.
101 102 103 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 101 def expiring_in_days @expiring_in_days end |
#expiry_month ⇒ String
Month in which the card is expiring.<br /> Optional.<br /> Format: MMYYYY
244 245 246 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 244 def expiry_month @expiry_month end |
#include_cards ⇒ Array[SearchCard]
List of SearchCard entity i.e., Card Id or PAN, which needs to be included in the response.<br /> Details of the SerachCard entity are given below.
145 146 147 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 145 def include_cards @include_cards end |
#issued_after ⇒ String
If provided, only list cards issued after the given date<br /> Optional<br /> Format: yyyyMMdd<br /> Note: Clients to convert this to appropriate DateTime type.
108 109 110 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 108 def issued_after @issued_after end |
#network ⇒ String
Cards allowed to be used in site.<br /> Optional.<br /> Allowed values<br /> • ShellSitesOnly<br /> • PartnersSitesIncluded<br />
230 231 232 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 230 def network @network end |
#pan_ends_with ⇒ String
Last digits of the PAN number<br /> Minimum 4 last digits of the card should be sent for this field to be considered as part of the search criteria.<br /> Optional<br /> Max Length: 50
116 117 118 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 116 def pan_ends_with @pan_ends_with end |
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer ) of the selected payer.<br /> Optional if PayerNumber is passed else Mandatory
41 42 43 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 41 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number of the selected payer.<br /> Optional if PayerId is passed else Mandatory
46 47 48 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 46 def payer_number @payer_number end |
#purchase_category_code ⇒ String
Purchase category code of the card.<br /> Optional.
169 170 171 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 169 def purchase_category_code @purchase_category_code end |
#reissue_setting ⇒ String
Default Value: All<br /> Optional<br /> This option is used to filter the list of cards with ‘ReissueSetting’.<br /> If ‘True’, the API will return cards with ReIssueSetting value is true.<br /> If ‘False’, the API will return cards with ReIsssueSetting value is false.<br /> If ‘ALL’, API will return cards with ReIssueSetting value True & False both.<br /> Allowed Values:<br />
-
All<br />
-
True<br />
-
False
277 278 279 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 277 def reissue_setting @reissue_setting end |
#request_id ⇒ String
Default Value: All<br /> Optional<br /> This option is used to filter the list of cards with ‘ReissueSetting’.<br /> If ‘True’, the API will return cards with ReIssueSetting value is true.<br /> If ‘False’, the API will return cards with ReIsssueSetting value is false.<br /> If ‘ALL’, API will return cards with ReIssueSetting value True & False both.<br /> Allowed Values:<br />
-
All<br />
-
True<br />
-
False
294 295 296 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 294 def request_id @request_id end |
#vehicle_registration_number ⇒ Array[String]
Vehicle Registration embossed on the card<br /> Optional<br /> Up to 10 vehicle registration numbers could be passed in the parameter.<br /> Minimum of 4 characters should be provided for each VRN else not considered<br /> Those cards will be returned when part of the VRN matches with any of the string passed in the list.<br /> Max Length for each VRN: 50
139 140 141 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 139 def vehicle_registration_number @vehicle_registration_number end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 469 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. card_status = hash.key?('CardStatus') ? hash['CardStatus'] : nil request_id = hash.key?('RequestId') ? hash['RequestId'] : nil account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP col_co_country_code = hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP card_group_name = hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP expiring_in_days = hash.key?('ExpiringInDays') ? hash['ExpiringInDays'] : SKIP issued_after = hash.key?('IssuedAfter') ? hash['IssuedAfter'] : SKIP pan_ends_with = hash.key?('PANEndsWith') ? hash['PANEndsWith'] : SKIP driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP vehicle_registration_number = hash.key?('VehicleRegistrationNumber') ? hash['VehicleRegistrationNumber'] : SKIP # Parameter is an array, so we need to iterate through it include_cards = nil unless hash['IncludeCards'].nil? include_cards = [] hash['IncludeCards'].each do |structure| include_cards << (SearchCard.from_hash(structure) if structure) end end include_cards = SKIP unless hash.key?('IncludeCards') # Parameter is an array, so we need to iterate through it exclude_cards = nil unless hash['ExcludeCards'].nil? exclude_cards = [] hash['ExcludeCards'].each do |structure| exclude_cards << (SearchCard.from_hash(structure) if structure) end end exclude_cards = SKIP unless hash.key?('ExcludeCards') exclude_bundle_id = hash.key?('ExcludeBundleId') ? hash['ExcludeBundleId'] : SKIP card_segment = hash.key?('CardSegment') ? hash['CardSegment'] : SKIP purchase_category_code = hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP exclude_pending_renewal_cards = hash.key?('ExcludePendingRenewalCards') ? hash['ExcludePendingRenewalCards'] : SKIP exclude_cancelled_cards = hash.key?('ExcludeCancelledCards') ? hash['ExcludeCancelledCards'] : SKIP exclude_replaced_cards = hash.key?('ExcludeReplacedCards') ? hash['ExcludeReplacedCards'] : SKIP exclude_fraud_cards = hash.key?('ExcludeFraudCards') ? hash['ExcludeFraudCards'] : SKIP exclude_card_group_id = hash.key?('ExcludeCardGroupId') ? hash['ExcludeCardGroupId'] : SKIP exclude_card_group_name = hash.key?('ExcludeCardGroupName') ? hash['ExcludeCardGroupName'] : SKIP creation_date = hash.key?('CreationDate') ? hash['CreationDate'] : SKIP effective_date = hash.key?('EffectiveDate') ? hash['EffectiveDate'] : SKIP network = hash.key?('Network') ? hash['Network'] : SKIP coverage = hash.key?('Coverage') ? hash['Coverage'] : SKIP expiry_month = hash.key?('ExpiryMonth') ? hash['ExpiryMonth'] : SKIP exclude_old_cards = hash.key?('ExcludeOldCards') ? hash['ExcludeOldCards'] : SKIP reissue_setting = hash.key?('ReissueSetting') ? hash['ReissueSetting'] : SKIP # Create object from extracted values. Filters1.new(card_status, request_id, account_id, account_number, col_co_code, col_co_country_code, col_co_id, payer_id, payer_number, card_group_id, card_group_name, expiring_in_days, issued_after, pan_ends_with, driver_name, vehicle_registration_number, include_cards, exclude_cards, exclude_bundle_id, card_segment, purchase_category_code, card_type_code, exclude_pending_renewal_cards, exclude_cancelled_cards, exclude_replaced_cards, exclude_fraud_cards, exclude_card_group_id, exclude_card_group_name, creation_date, effective_date, network, coverage, expiry_month, exclude_old_cards, reissue_setting) end |
.names ⇒ Object
A mapping from model property names to API property names.
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 297 def self.names @_hash = {} if @_hash.nil? @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['col_co_code'] = 'ColCoCode' @_hash['col_co_country_code'] = 'ColCoCountryCode' @_hash['col_co_id'] = 'ColCoId' @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash['card_group_id'] = 'CardGroupId' @_hash['card_group_name'] = 'CardGroupName' @_hash['card_status'] = 'CardStatus' @_hash['expiring_in_days'] = 'ExpiringInDays' @_hash['issued_after'] = 'IssuedAfter' @_hash['pan_ends_with'] = 'PANEndsWith' @_hash['driver_name'] = 'DriverName' @_hash['vehicle_registration_number'] = 'VehicleRegistrationNumber' @_hash['include_cards'] = 'IncludeCards' @_hash['exclude_cards'] = 'ExcludeCards' @_hash['exclude_bundle_id'] = 'ExcludeBundleId' @_hash['card_segment'] = 'CardSegment' @_hash['purchase_category_code'] = 'PurchaseCategoryCode' @_hash['card_type_code'] = 'CardTypeCode' @_hash['exclude_pending_renewal_cards'] = 'ExcludePendingRenewalCards' @_hash['exclude_cancelled_cards'] = 'ExcludeCancelledCards' @_hash['exclude_replaced_cards'] = 'ExcludeReplacedCards' @_hash['exclude_fraud_cards'] = 'ExcludeFraudCards' @_hash['exclude_card_group_id'] = 'ExcludeCardGroupId' @_hash['exclude_card_group_name'] = 'ExcludeCardGroupName' @_hash['creation_date'] = 'CreationDate' @_hash['effective_date'] = 'EffectiveDate' @_hash['network'] = 'Network' @_hash['coverage'] = 'Coverage' @_hash['expiry_month'] = 'ExpiryMonth' @_hash['exclude_old_cards'] = 'ExcludeOldCards' @_hash['reissue_setting'] = 'ReissueSetting' @_hash['request_id'] = 'RequestId' @_hash end |
.nullables ⇒ Object
An array for nullable fields
377 378 379 380 381 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 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 377 def self.nullables %w[ account_id account_number col_co_code col_co_country_code col_co_id payer_id payer_number card_group_id card_group_name card_status expiring_in_days issued_after pan_ends_with exclude_bundle_id card_segment purchase_category_code card_type_code exclude_card_group_id exclude_card_group_name creation_date effective_date network coverage expiry_month reissue_setting request_id ] end |
.optionals ⇒ Object
An array for optional fields
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 |
# File 'lib/shell_card_management_ap_is/models/filters1.rb', line 338 def self.optionals %w[ account_id account_number col_co_code col_co_country_code col_co_id payer_id payer_number card_group_id card_group_name expiring_in_days issued_after pan_ends_with driver_name vehicle_registration_number include_cards exclude_cards exclude_bundle_id card_segment purchase_category_code card_type_code exclude_pending_renewal_cards exclude_cancelled_cards exclude_replaced_cards exclude_fraud_cards exclude_card_group_id exclude_card_group_name creation_date effective_date network coverage expiry_month exclude_old_cards reissue_setting ] end |