card-management-sdk 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -19
  3. data/lib/shell_card_management_ap_is/client.rb +2 -3
  4. data/lib/shell_card_management_ap_is/configuration.rb +15 -22
  5. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
  6. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +434 -434
  7. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +261 -262
  8. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +11 -11
  9. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +421 -291
  10. data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
  11. data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +17 -17
  12. data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +20 -20
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
  19. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
  20. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
  21. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
  22. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
  23. data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
  24. data/lib/shell_card_management_ap_is/models/account_request.rb +17 -26
  25. data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
  26. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +29 -53
  27. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -10
  28. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
  29. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
  30. data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
  31. data/lib/shell_card_management_ap_is/models/address.rb +4 -11
  32. data/lib/shell_card_management_ap_is/models/audit_request.rb +37 -33
  33. data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
  34. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +50 -63
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
  36. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +13 -5
  37. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
  38. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -3
  39. data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
  40. data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
  41. data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
  42. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
  43. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +86 -103
  44. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +185 -0
  45. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
  46. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +82 -0
  47. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
  48. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
  49. data/lib/shell_card_management_ap_is/models/card.rb +43 -51
  50. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
  51. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
  52. data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
  53. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
  54. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
  55. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
  56. data/lib/shell_card_management_ap_is/models/card_detail.rb +50 -61
  57. data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
  58. data/lib/shell_card_management_ap_is/models/card_details_response.rb +52 -89
  59. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
  60. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
  61. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
  62. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
  63. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
  64. data/lib/shell_card_management_ap_is/models/card_group_request.rb +6 -12
  65. data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
  66. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  67. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
  68. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
  69. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
  70. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
  71. data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
  72. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
  73. data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
  74. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
  75. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
  76. data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
  77. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
  78. data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
  79. data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
  80. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
  81. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
  82. data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
  83. data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
  84. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  85. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
  86. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
  87. data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
  88. data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
  89. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +64 -62
  90. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
  91. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
  92. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
  93. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
  94. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
  95. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
  96. data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
  97. data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
  98. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
  99. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +31 -45
  100. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
  101. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +52 -82
  102. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
  103. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
  104. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
  105. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
  106. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
  107. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
  108. data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
  109. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
  110. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
  111. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
  112. data/lib/shell_card_management_ap_is/models/detail.rb +50 -0
  113. data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
  114. data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
  115. data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
  116. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
  117. data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
  118. data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
  119. data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
  120. data/lib/shell_card_management_ap_is/models/filters2.rb +200 -0
  121. data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
  122. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
  123. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → fleetmanagement_v1_customer_payers400_error1.rb} +10 -10
  124. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  125. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  126. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  127. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  128. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  129. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  130. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  131. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  132. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
  133. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
  134. data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
  135. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
  136. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +12 -25
  137. data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
  138. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
  139. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +48 -45
  140. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +5 -12
  141. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
  142. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
  143. data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
  144. data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
  145. data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
  146. data/lib/shell_card_management_ap_is/models/payer_details.rb +55 -96
  147. data/lib/shell_card_management_ap_is/models/payer_request.rb +9 -12
  148. data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
  149. data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
  150. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +5 -6
  151. data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
  152. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
  153. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
  154. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
  155. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
  156. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +19 -17
  157. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
  158. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
  159. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
  160. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
  161. data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
  162. data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
  163. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
  164. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +10 -15
  165. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
  166. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
  167. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +25 -40
  168. data/lib/shell_card_management_ap_is/models/restriction.rb +82 -0
  169. data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
  170. data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +69 -82
  171. data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
  172. data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
  173. data/lib/shell_card_management_ap_is/models/role.rb +3 -6
  174. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +42 -39
  175. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
  176. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
  177. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
  178. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
  179. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
  180. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -3
  181. data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
  182. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
  183. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
  184. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
  185. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
  186. data/lib/shell_card_management_ap_is/models/search_request.rb +25 -47
  187. data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
  188. data/lib/shell_card_management_ap_is/models/submitted_card.rb +24 -9
  189. data/lib/shell_card_management_ap_is/models/summary_request.rb +21 -39
  190. data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
  191. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
  192. data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
  193. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +65 -70
  194. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
  195. data/lib/shell_card_management_ap_is/models/update_card.rb +31 -20
  196. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +9 -17
  197. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
  198. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
  199. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +5 -11
  200. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
  201. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
  202. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
  203. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
  204. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +3 -5
  205. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
  206. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
  207. data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
  208. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  209. data/lib/shell_card_management_ap_is.rb +139 -95
  210. metadata +74 -38
  211. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
  212. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
  213. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
  214. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
  215. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
  216. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
  217. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
  218. data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -4,140 +4,101 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # RestrictionSearchCardResponseDataItems Model.
8
- class RestrictionSearchCardResponseDataItems < BaseModel
7
+ # RestrictionCardList Model.
8
+ class RestrictionCardList < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Bundle Id associated with card
12
+ # Unique Card Id
13
13
  # @return [Integer]
14
- attr_accessor :bundle_id
15
-
16
- # Bundle Id associated with card
17
- # @return [SearchCardResponseRestrictions]
18
- attr_accessor :restrictions
14
+ attr_accessor :card_id
19
15
 
20
- # ISO currency code of the country.
16
+ # Card PAN
21
17
  # @return [String]
22
- attr_accessor :restriction_currency_code
18
+ attr_accessor :pan
23
19
 
24
- # Currency symbol of the country.
20
+ # Expiry date of the card
21
+ # Format: yyyyMMdd
22
+ # Note: Clients to convert this to appropriate DateTime type.
25
23
  # @return [String]
26
- attr_accessor :restriction_currency_symbol
24
+ attr_accessor :expiry_date
27
25
 
28
- # Account ID
26
+ # Card Status id
29
27
  # @return [Integer]
30
- attr_accessor :account_id
28
+ attr_accessor :status_id
31
29
 
32
- # Account Name
30
+ # Status Description (Active, Temporarily Blocked, etc.,)
33
31
  # @return [String]
34
- attr_accessor :account_name
32
+ attr_accessor :status_description
35
33
 
36
- # Account Number
34
+ # Driver name
35
+ # Example: ANDREW GILBERRY
37
36
  # @return [String]
38
- attr_accessor :account_number
37
+ attr_accessor :driver_name
39
38
 
40
- # AccountShortName
39
+ # Vehicle registration number
40
+ # Example: MV65YLH
41
41
  # @return [String]
42
- attr_accessor :account_short_name
43
-
44
- # Unique Card
45
- # @return [Integer]
46
- attr_accessor :card_id
42
+ attr_accessor :vrn
47
43
 
48
- # ISO code of the card i.e. first 7 digits of the PAN
44
+ # Issue date
45
+ # Format: yyyyMMdd
46
+ # Note: Clients to convert this to appropriate DateTime type.
49
47
  # @return [String]
50
- attr_accessor :card_type_code
48
+ attr_accessor :issue_date
51
49
 
52
- # Card Type ID
53
- # Example Id & Description:
54
- # 1 - Philippines CRT 7077861
55
- # 2- Philippines Fleet 7002861
56
- # 5-SHELL FLEET- HONG KONG 7002821
57
- # 6-SHELL NHF- HONG KONG 7002821
58
- # 7-SHELL CRT- HONG KONG 7077821
50
+ # Issue Number
59
51
  # @return [Integer]
60
- attr_accessor :card_type_id
52
+ attr_accessor :issue_number
61
53
 
62
- # Card Type Name
63
- # Example Id & Description:
64
- # 1 - Philippines CRT 7077861
65
- # 2- Philippines Fleet 7002861
66
- # 5-SHELL FLEET- HONG KONG 7002821
67
- # 6-SHELL NHF- HONG KONG 7002821
68
- # 7-SHELL CRT- HONG KONG 7077821
54
+ # Account ID
55
+ # Example: 29484
56
+ # @return [Integer]
57
+ attr_accessor :account_id
58
+
59
+ # Account Number
60
+ # Example: GB99215176
69
61
  # @return [String]
70
- attr_accessor :card_type_name
62
+ attr_accessor :account_number
71
63
 
72
- # ISO currency code of the country
64
+ # Account Name
65
+ # Example: MATTHEW ALGIE & COMPANY LIMITED
73
66
  # @return [String]
74
- attr_accessor :col_co_currency_code
67
+ attr_accessor :account_name
75
68
 
76
- # Currency symbol of the country
69
+ # Account Short Name
77
70
  # @return [String]
78
- attr_accessor :col_co_currency_symbol
71
+ attr_accessor :account_short_name
79
72
 
80
73
  # ISO currency code of the Customer Currency
74
+ # Example: GBP
81
75
  # @return [String]
82
76
  attr_accessor :currency_code
83
77
 
84
- # Currency symbol of the Customer Currency Code
78
+ # ISO currency code of the country.
79
+ # Example: GBP
85
80
  # @return [String]
86
- attr_accessor :currency_symbol
81
+ attr_accessor :col_co_currency_code
87
82
 
88
- # Driver name
83
+ # Currency symbol of the country.
84
+ # Example: £, $
89
85
  # @return [String]
90
- attr_accessor :driver_name
86
+ attr_accessor :col_co_currency_symbol
91
87
 
92
- # Expiry date of the card
93
- # Format: yyyyMMdd
88
+ # ISO currency code of the country.
89
+ # Example: GBP
94
90
  # @return [String]
95
- attr_accessor :expiry_date
96
-
97
- # True if it is a CRT type card, else false
98
- # @return [TrueClass | FalseClass]
99
- attr_accessor :is_crt
100
-
101
- # True if it is a Fleet type card, else false
102
- # @return [TrueClass | FalseClass]
103
- attr_accessor :is_fleet
104
-
105
- # True if it is an international card, else false
106
- # @return [TrueClass | FalseClass]
107
- attr_accessor :is_international
108
-
109
- # True if it is a national card, else false
110
- # @return [TrueClass | FalseClass]
111
- attr_accessor :is_national
112
-
113
- # True if it is allowed at all partner sites, else false
114
- # @return [TrueClass | FalseClass]
115
- attr_accessor :is_partner_sites_included
116
-
117
- # True if it is only allowed at Shell sites, else false
118
- # @return [TrueClass | FalseClass]
119
- attr_accessor :is_shell_sites_only
91
+ attr_accessor :restriction_currency_code
120
92
 
121
- # Issue date
122
- # Format: yyyyMMdd
93
+ # Currency symbol of the country.
94
+ # Example: £, $
123
95
  # @return [String]
124
- attr_accessor :issue_date
125
-
126
- # Issue Number
127
- # @return [Integer]
128
- attr_accessor :issue_number
129
-
130
- # True if a new card is issued with the same PAN, else false
131
- # @return [TrueClass | FalseClass]
132
- attr_accessor :is_superseded
133
-
134
- # True if it is a virtual card, else false
135
- # @return [TrueClass | FalseClass]
136
- attr_accessor :is_virtual_card
96
+ attr_accessor :restriction_currency_symbol
137
97
 
138
- # Card PAN
98
+ # Purchase category Id
99
+ # Example: 123, 124, etc.,
139
100
  # @return [String]
140
- attr_accessor :pan
101
+ attr_accessor :purchase_category_id
141
102
 
142
103
  # Purchase category code
143
104
  # Example:
@@ -153,10 +114,6 @@ module ShellCardManagementApIs
153
114
  # @return [String]
154
115
  attr_accessor :purchase_category_code
155
116
 
156
- # Purchase category Id
157
- # @return [Integer]
158
- attr_accessor :purchase_category_id
159
-
160
117
  # Purchase category name
161
118
  # Example:
162
119
  # 0 - All Fuels (without VP) and Lubricants
@@ -171,17 +128,76 @@ module ShellCardManagementApIs
171
128
  # @return [String]
172
129
  attr_accessor :purchase_category_name
173
130
 
174
- # Status Description (Active, Temporarily Blocked, etc.,)
175
- # @return [String]
176
- attr_accessor :status_description
131
+ # True/False
132
+ # True if a new card is issued with the same PAN, else false
133
+ # @return [TrueClass | FalseClass]
134
+ attr_accessor :is_superseded
177
135
 
178
- # Card Status id
136
+ # True/False
137
+ # True if it is a virtual card, else false
138
+ # @return [TrueClass | FalseClass]
139
+ attr_accessor :is_virtual_card
140
+
141
+ # True/False
142
+ # True if it is a national card, else false
143
+ # @return [TrueClass | FalseClass]
144
+ attr_accessor :is_national
145
+
146
+ # True/False
147
+ # True if it is an international card, else false
148
+ # @return [TrueClass | FalseClass]
149
+ attr_accessor :is_international
150
+
151
+ # True/False
152
+ # True if it is a CRT type card, else false
153
+ # @return [TrueClass | FalseClass]
154
+ attr_accessor :is_crt
155
+
156
+ # True/False
157
+ # True if it is a Fleet type card, else false
158
+ # @return [TrueClass | FalseClass]
159
+ attr_accessor :is_fleet
160
+
161
+ # True/False
162
+ # True if it is only allowed at Shell sites, else false
163
+ # @return [TrueClass | FalseClass]
164
+ attr_accessor :is_shell_sites_only
165
+
166
+ # True/False
167
+ # True if it is allowed at all partner sites, else false
168
+ # @return [TrueClass | FalseClass]
169
+ attr_accessor :is_partner_sites_included
170
+
171
+ # Card Type ID
172
+ # Example Id & Description:
173
+ # 1 - Philippines CRT 7077861
174
+ # 2- Philippines Fleet 7002861
175
+ # 5-SHELL FLEET- HONG KONG 7002821
176
+ # 6-SHELL NHF- HONG KONG 7002821
177
+ # 7-SHELL CRT- HONG KONG 7077821
179
178
  # @return [Integer]
180
- attr_accessor :status_id
179
+ attr_accessor :card_type_id
181
180
 
182
- # Vehicle registration number
181
+ # ISO code of the card i.e. first 7 digits of the PAN
183
182
  # @return [String]
184
- attr_accessor :vrn
183
+ attr_accessor :card_type_code
184
+
185
+ # Card Type Name
186
+ # Example Id & Description:
187
+ # 1 - Philippines CRT 7077861
188
+ # 2- Philippines Fleet 7002861
189
+ # 5-SHELL FLEET- HONG KONG 7002821
190
+ # 6-SHELL NHF- HONG KONG 7002821
191
+ # 7-SHELL CRT- HONG KONG 7077821
192
+ # @return [String]
193
+ attr_accessor :card_type_name
194
+
195
+ # Bundle Id associated with card in the Gateway.
196
+ # This field will have a null value if the card is not associated with any
197
+ # bundle of IncludeBundleDetails in request is false.
198
+ # If the search is based on a bundle Id, the same will be returned.
199
+ # @return [String]
200
+ attr_accessor :bundle_id
185
201
 
186
202
  # Id of the medium type identifier.
187
203
  # Example: 1,2,4
@@ -212,41 +228,39 @@ module ShellCardManagementApIs
212
228
  # A mapping from model property names to API property names.
213
229
  def self.names
214
230
  @_hash = {} if @_hash.nil?
215
- @_hash['bundle_id'] = 'BundleId'
216
- @_hash['restrictions'] = 'Restrictions'
217
- @_hash['restriction_currency_code'] = 'RestrictionCurrencyCode'
218
- @_hash['restriction_currency_symbol'] = 'RestrictionCurrencySymbol'
231
+ @_hash['card_id'] = 'CardId'
232
+ @_hash['pan'] = 'PAN'
233
+ @_hash['expiry_date'] = 'ExpiryDate'
234
+ @_hash['status_id'] = 'StatusId'
235
+ @_hash['status_description'] = 'StatusDescription'
236
+ @_hash['driver_name'] = 'DriverName'
237
+ @_hash['vrn'] = 'VRN'
238
+ @_hash['issue_date'] = 'IssueDate'
239
+ @_hash['issue_number'] = 'IssueNumber'
219
240
  @_hash['account_id'] = 'AccountId'
220
- @_hash['account_name'] = 'AccountName'
221
241
  @_hash['account_number'] = 'AccountNumber'
242
+ @_hash['account_name'] = 'AccountName'
222
243
  @_hash['account_short_name'] = 'AccountShortName'
223
- @_hash['card_id'] = 'CardId'
224
- @_hash['card_type_code'] = 'CardTypeCode'
225
- @_hash['card_type_id'] = 'CardTypeId'
226
- @_hash['card_type_name'] = 'CardTypeName'
244
+ @_hash['currency_code'] = 'CurrencyCode'
227
245
  @_hash['col_co_currency_code'] = 'ColCoCurrencyCode'
228
246
  @_hash['col_co_currency_symbol'] = 'ColCoCurrencySymbol'
229
- @_hash['currency_code'] = 'CurrencyCode'
230
- @_hash['currency_symbol'] = 'CurrencySymbol'
231
- @_hash['driver_name'] = 'DriverName'
232
- @_hash['expiry_date'] = 'ExpiryDate'
247
+ @_hash['restriction_currency_code'] = 'RestrictionCurrencyCode'
248
+ @_hash['restriction_currency_symbol'] = 'RestrictionCurrencySymbol'
249
+ @_hash['purchase_category_id'] = 'PurchaseCategoryId'
250
+ @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
251
+ @_hash['purchase_category_name'] = 'PurchaseCategoryName'
252
+ @_hash['is_superseded'] = 'IsSuperseded'
253
+ @_hash['is_virtual_card'] = 'IsVirtualCard'
254
+ @_hash['is_national'] = 'IsNational'
255
+ @_hash['is_international'] = 'IsInternational'
233
256
  @_hash['is_crt'] = 'IsCRT'
234
257
  @_hash['is_fleet'] = 'IsFleet'
235
- @_hash['is_international'] = 'IsInternational'
236
- @_hash['is_national'] = 'IsNational'
237
- @_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded'
238
258
  @_hash['is_shell_sites_only'] = 'IsShellSitesOnly'
239
- @_hash['issue_date'] = 'IssueDate'
240
- @_hash['issue_number'] = 'IssueNumber'
241
- @_hash['is_superseded'] = 'IsSuperseded'
242
- @_hash['is_virtual_card'] = 'IsVirtualCard'
243
- @_hash['pan'] = 'PAN'
244
- @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
245
- @_hash['purchase_category_id'] = 'PurchaseCategoryId'
246
- @_hash['purchase_category_name'] = 'PurchaseCategoryName'
247
- @_hash['status_description'] = 'StatusDescription'
248
- @_hash['status_id'] = 'StatusId'
249
- @_hash['vrn'] = 'VRN'
259
+ @_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded'
260
+ @_hash['card_type_id'] = 'CardTypeId'
261
+ @_hash['card_type_code'] = 'CardTypeCode'
262
+ @_hash['card_type_name'] = 'CardTypeName'
263
+ @_hash['bundle_id'] = 'BundleId'
250
264
  @_hash['medium_type_id'] = 'MediumTypeID'
251
265
  @_hash['medium_type'] = 'MediumType'
252
266
  @_hash
@@ -255,41 +269,39 @@ module ShellCardManagementApIs
255
269
  # An array for optional fields
256
270
  def self.optionals
257
271
  %w[
258
- bundle_id
259
- restrictions
260
- restriction_currency_code
261
- restriction_currency_symbol
272
+ card_id
273
+ pan
274
+ expiry_date
275
+ status_id
276
+ status_description
277
+ driver_name
278
+ vrn
279
+ issue_date
280
+ issue_number
262
281
  account_id
263
- account_name
264
282
  account_number
283
+ account_name
265
284
  account_short_name
266
- card_id
267
- card_type_code
268
- card_type_id
269
- card_type_name
285
+ currency_code
270
286
  col_co_currency_code
271
287
  col_co_currency_symbol
272
- currency_code
273
- currency_symbol
274
- driver_name
275
- expiry_date
288
+ restriction_currency_code
289
+ restriction_currency_symbol
290
+ purchase_category_id
291
+ purchase_category_code
292
+ purchase_category_name
293
+ is_superseded
294
+ is_virtual_card
295
+ is_national
296
+ is_international
276
297
  is_crt
277
298
  is_fleet
278
- is_international
279
- is_national
280
- is_partner_sites_included
281
299
  is_shell_sites_only
282
- issue_date
283
- issue_number
284
- is_superseded
285
- is_virtual_card
286
- pan
287
- purchase_category_code
288
- purchase_category_id
289
- purchase_category_name
290
- status_description
291
- status_id
292
- vrn
300
+ is_partner_sites_included
301
+ card_type_id
302
+ card_type_code
303
+ card_type_name
304
+ bundle_id
293
305
  medium_type_id
294
306
  medium_type
295
307
  ]
@@ -297,76 +309,42 @@ module ShellCardManagementApIs
297
309
 
298
310
  # An array for nullable fields
299
311
  def self.nullables
300
- %w[
301
- restriction_currency_code
302
- restriction_currency_symbol
303
- account_id
304
- account_name
305
- account_number
306
- account_short_name
307
- card_id
308
- card_type_code
309
- card_type_id
310
- card_type_name
311
- col_co_currency_code
312
- col_co_currency_symbol
313
- currency_code
314
- currency_symbol
315
- driver_name
316
- expiry_date
317
- issue_date
318
- issue_number
319
- pan
320
- purchase_category_code
321
- purchase_category_id
322
- purchase_category_name
323
- status_description
324
- status_id
325
- vrn
326
- medium_type_id
327
- medium_type
328
- ]
312
+ []
329
313
  end
330
314
 
331
- def initialize(bundle_id = SKIP,
332
- restrictions = SKIP,
315
+ def initialize(card_id = SKIP, pan = SKIP, expiry_date = SKIP,
316
+ status_id = SKIP, status_description = SKIP,
317
+ driver_name = SKIP, vrn = SKIP, issue_date = SKIP,
318
+ issue_number = SKIP, account_id = SKIP,
319
+ account_number = SKIP, account_name = SKIP,
320
+ account_short_name = SKIP, currency_code = SKIP,
321
+ col_co_currency_code = SKIP, col_co_currency_symbol = SKIP,
333
322
  restriction_currency_code = SKIP,
334
323
  restriction_currency_symbol = SKIP,
335
- account_id = SKIP,
336
- account_name = SKIP,
337
- account_number = SKIP,
338
- account_short_name = SKIP,
339
- card_id = SKIP,
340
- card_type_code = SKIP,
341
- card_type_id = SKIP,
342
- card_type_name = SKIP,
343
- col_co_currency_code = SKIP,
344
- col_co_currency_symbol = SKIP,
345
- currency_code = SKIP,
346
- currency_symbol = SKIP,
347
- driver_name = SKIP,
348
- expiry_date = SKIP,
349
- is_crt = SKIP,
350
- is_fleet = SKIP,
351
- is_international = SKIP,
352
- is_national = SKIP,
353
- is_partner_sites_included = SKIP,
354
- is_shell_sites_only = SKIP,
355
- issue_date = SKIP,
356
- issue_number = SKIP,
357
- is_superseded = SKIP,
358
- is_virtual_card = SKIP,
359
- pan = SKIP,
360
- purchase_category_code = SKIP,
361
- purchase_category_id = SKIP,
362
- purchase_category_name = SKIP,
363
- status_description = SKIP,
364
- status_id = SKIP,
365
- vrn = SKIP,
366
- medium_type_id = SKIP,
367
- medium_type = SKIP)
368
- @bundle_id = bundle_id unless bundle_id == SKIP
369
- @restrictions = restrictions unless restrictions == SKIP
324
+ purchase_category_id = SKIP, purchase_category_code = SKIP,
325
+ purchase_category_name = SKIP, is_superseded = SKIP,
326
+ is_virtual_card = SKIP, is_national = SKIP,
327
+ is_international = SKIP, is_crt = SKIP, is_fleet = SKIP,
328
+ is_shell_sites_only = SKIP, is_partner_sites_included = SKIP,
329
+ card_type_id = SKIP, card_type_code = SKIP,
330
+ card_type_name = SKIP, bundle_id = SKIP,
331
+ medium_type_id = SKIP, medium_type = SKIP)
332
+ @card_id = card_id unless card_id == SKIP
333
+ @pan = pan unless pan == SKIP
334
+ @expiry_date = expiry_date unless expiry_date == SKIP
335
+ @status_id = status_id unless status_id == SKIP
336
+ @status_description = status_description unless status_description == SKIP
337
+ @driver_name = driver_name unless driver_name == SKIP
338
+ @vrn = vrn unless vrn == SKIP
339
+ @issue_date = issue_date unless issue_date == SKIP
340
+ @issue_number = issue_number unless issue_number == SKIP
341
+ @account_id = account_id unless account_id == SKIP
342
+ @account_number = account_number unless account_number == SKIP
343
+ @account_name = account_name unless account_name == SKIP
344
+ @account_short_name = account_short_name unless account_short_name == SKIP
345
+ @currency_code = currency_code unless currency_code == SKIP
346
+ @col_co_currency_code = col_co_currency_code unless col_co_currency_code == SKIP
347
+ @col_co_currency_symbol = col_co_currency_symbol unless col_co_currency_symbol == SKIP
370
348
  unless restriction_currency_code == SKIP
371
349
  @restriction_currency_code =
372
350
  restriction_currency_code
@@ -375,40 +353,24 @@ module ShellCardManagementApIs
375
353
  @restriction_currency_symbol =
376
354
  restriction_currency_symbol
377
355
  end
378
- @account_id = account_id unless account_id == SKIP
379
- @account_name = account_name unless account_name == SKIP
380
- @account_number = account_number unless account_number == SKIP
381
- @account_short_name = account_short_name unless account_short_name == SKIP
382
- @card_id = card_id unless card_id == SKIP
383
- @card_type_code = card_type_code unless card_type_code == SKIP
384
- @card_type_id = card_type_id unless card_type_id == SKIP
385
- @card_type_name = card_type_name unless card_type_name == SKIP
386
- @col_co_currency_code = col_co_currency_code unless col_co_currency_code == SKIP
387
- @col_co_currency_symbol = col_co_currency_symbol unless col_co_currency_symbol == SKIP
388
- @currency_code = currency_code unless currency_code == SKIP
389
- @currency_symbol = currency_symbol unless currency_symbol == SKIP
390
- @driver_name = driver_name unless driver_name == SKIP
391
- @expiry_date = expiry_date unless expiry_date == SKIP
356
+ @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
357
+ @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
358
+ @purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
359
+ @is_superseded = is_superseded unless is_superseded == SKIP
360
+ @is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
361
+ @is_national = is_national unless is_national == SKIP
362
+ @is_international = is_international unless is_international == SKIP
392
363
  @is_crt = is_crt unless is_crt == SKIP
393
364
  @is_fleet = is_fleet unless is_fleet == SKIP
394
- @is_international = is_international unless is_international == SKIP
395
- @is_national = is_national unless is_national == SKIP
365
+ @is_shell_sites_only = is_shell_sites_only unless is_shell_sites_only == SKIP
396
366
  unless is_partner_sites_included == SKIP
397
367
  @is_partner_sites_included =
398
368
  is_partner_sites_included
399
369
  end
400
- @is_shell_sites_only = is_shell_sites_only unless is_shell_sites_only == SKIP
401
- @issue_date = issue_date unless issue_date == SKIP
402
- @issue_number = issue_number unless issue_number == SKIP
403
- @is_superseded = is_superseded unless is_superseded == SKIP
404
- @is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
405
- @pan = pan unless pan == SKIP
406
- @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
407
- @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
408
- @purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
409
- @status_description = status_description unless status_description == SKIP
410
- @status_id = status_id unless status_id == SKIP
411
- @vrn = vrn unless vrn == SKIP
370
+ @card_type_id = card_type_id unless card_type_id == SKIP
371
+ @card_type_code = card_type_code unless card_type_code == SKIP
372
+ @card_type_name = card_type_name unless card_type_name == SKIP
373
+ @bundle_id = bundle_id unless bundle_id == SKIP
412
374
  @medium_type_id = medium_type_id unless medium_type_id == SKIP
413
375
  @medium_type = medium_type unless medium_type == SKIP
414
376
  end
@@ -418,97 +380,91 @@ module ShellCardManagementApIs
418
380
  return nil unless hash
419
381
 
420
382
  # Extract variables from the hash.
421
- bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
422
- restrictions = SearchCardResponseRestrictions.from_hash(hash['Restrictions']) if
423
- hash['Restrictions']
424
- restriction_currency_code =
425
- hash.key?('RestrictionCurrencyCode') ? hash['RestrictionCurrencyCode'] : SKIP
426
- restriction_currency_symbol =
427
- hash.key?('RestrictionCurrencySymbol') ? hash['RestrictionCurrencySymbol'] : SKIP
383
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
384
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
385
+ expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
386
+ status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP
387
+ status_description =
388
+ hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
389
+ driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
390
+ vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
391
+ issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
392
+ issue_number = hash.key?('IssueNumber') ? hash['IssueNumber'] : SKIP
428
393
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
429
- account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
430
394
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
395
+ account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
431
396
  account_short_name =
432
397
  hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
433
- card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
434
- card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
435
- card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
436
- card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
398
+ currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
437
399
  col_co_currency_code =
438
400
  hash.key?('ColCoCurrencyCode') ? hash['ColCoCurrencyCode'] : SKIP
439
401
  col_co_currency_symbol =
440
402
  hash.key?('ColCoCurrencySymbol') ? hash['ColCoCurrencySymbol'] : SKIP
441
- currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
442
- currency_symbol =
443
- hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
444
- driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
445
- expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
446
- is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP
447
- is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP
448
- is_international =
449
- hash.key?('IsInternational') ? hash['IsInternational'] : SKIP
450
- is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP
451
- is_partner_sites_included =
452
- hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP
453
- is_shell_sites_only =
454
- hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP
455
- issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
456
- issue_number = hash.key?('IssueNumber') ? hash['IssueNumber'] : SKIP
457
- is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
458
- is_virtual_card =
459
- hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
460
- pan = hash.key?('PAN') ? hash['PAN'] : SKIP
461
- purchase_category_code =
462
- hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
403
+ restriction_currency_code =
404
+ hash.key?('RestrictionCurrencyCode') ? hash['RestrictionCurrencyCode'] : SKIP
405
+ restriction_currency_symbol =
406
+ hash.key?('RestrictionCurrencySymbol') ? hash['RestrictionCurrencySymbol'] : SKIP
463
407
  purchase_category_id =
464
408
  hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP
409
+ purchase_category_code =
410
+ hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
465
411
  purchase_category_name =
466
412
  hash.key?('PurchaseCategoryName') ? hash['PurchaseCategoryName'] : SKIP
467
- status_description =
468
- hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
469
- status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP
470
- vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
413
+ is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
414
+ is_virtual_card =
415
+ hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
416
+ is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP
417
+ is_international =
418
+ hash.key?('IsInternational') ? hash['IsInternational'] : SKIP
419
+ is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP
420
+ is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP
421
+ is_shell_sites_only =
422
+ hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP
423
+ is_partner_sites_included =
424
+ hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP
425
+ card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
426
+ card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
427
+ card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
428
+ bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
471
429
  medium_type_id = hash.key?('MediumTypeID') ? hash['MediumTypeID'] : SKIP
472
430
  medium_type = hash.key?('MediumType') ? hash['MediumType'] : SKIP
473
431
 
474
432
  # Create object from extracted values.
475
- RestrictionSearchCardResponseDataItems.new(bundle_id,
476
- restrictions,
477
- restriction_currency_code,
478
- restriction_currency_symbol,
479
- account_id,
480
- account_name,
481
- account_number,
482
- account_short_name,
483
- card_id,
484
- card_type_code,
485
- card_type_id,
486
- card_type_name,
487
- col_co_currency_code,
488
- col_co_currency_symbol,
489
- currency_code,
490
- currency_symbol,
491
- driver_name,
492
- expiry_date,
493
- is_crt,
494
- is_fleet,
495
- is_international,
496
- is_national,
497
- is_partner_sites_included,
498
- is_shell_sites_only,
499
- issue_date,
500
- issue_number,
501
- is_superseded,
502
- is_virtual_card,
503
- pan,
504
- purchase_category_code,
505
- purchase_category_id,
506
- purchase_category_name,
507
- status_description,
508
- status_id,
509
- vrn,
510
- medium_type_id,
511
- medium_type)
433
+ RestrictionCardList.new(card_id,
434
+ pan,
435
+ expiry_date,
436
+ status_id,
437
+ status_description,
438
+ driver_name,
439
+ vrn,
440
+ issue_date,
441
+ issue_number,
442
+ account_id,
443
+ account_number,
444
+ account_name,
445
+ account_short_name,
446
+ currency_code,
447
+ col_co_currency_code,
448
+ col_co_currency_symbol,
449
+ restriction_currency_code,
450
+ restriction_currency_symbol,
451
+ purchase_category_id,
452
+ purchase_category_code,
453
+ purchase_category_name,
454
+ is_superseded,
455
+ is_virtual_card,
456
+ is_national,
457
+ is_international,
458
+ is_crt,
459
+ is_fleet,
460
+ is_shell_sites_only,
461
+ is_partner_sites_included,
462
+ card_type_id,
463
+ card_type_code,
464
+ card_type_name,
465
+ bundle_id,
466
+ medium_type_id,
467
+ medium_type)
512
468
  end
513
469
  end
514
470
  end