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,11 +4,19 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # RestrictionSearchCardRequestFilters Model.
8
- class RestrictionSearchCardRequestFilters < BaseModel
7
+ # SearchCardRestrictionReq Model.
8
+ class SearchCardRestrictionReq < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
+ # Collecting Company Id of the selected payer.
13
+ # Optional if ColCoCode is passed else Mandatory.
14
+ # Example:
15
+ # 1 for Philippines
16
+ # 5 for UK
17
+ # @return [Integer]
18
+ attr_accessor :col_co_id
19
+
12
20
  # Collecting Company Code (Shell Code) of the selected payer.
13
21
  # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
14
22
  # Ukraine etc. It is optional for other countries if ColCoID is provided.
@@ -18,13 +26,11 @@ module ShellCardManagementApIs
18
26
  # @return [Integer]
19
27
  attr_accessor :col_co_code
20
28
 
21
- # Collecting Company Id (in GFN) of the selected payer.
22
- # Optional if ColCoCode is passed else Mandatory.
23
- # Example:
24
- # 1 for Philippines
25
- # 5 for UK
29
+ # Payer Id (i.e. Customer Id of the Payment Customer) of the selected payer.
30
+ # Optional if PayerNumber is passed else Mandatory
31
+ # Example: 123456
26
32
  # @return [Integer]
27
- attr_accessor :col_co_id
33
+ attr_accessor :payer_id
28
34
 
29
35
  # Payer Number of the selected payer.
30
36
  # Optional if PayerId is passed else Mandatory
@@ -32,38 +38,32 @@ module ShellCardManagementApIs
32
38
  # @return [String]
33
39
  attr_accessor :payer_number
34
40
 
35
- # Payer Id of the selected payer.
36
- # Optional if PayerNumber is passed else Mandatory
37
- # Example: 123456
38
- # @return [Integer]
39
- attr_accessor :payer_id
40
-
41
- # Payer Id of the selected payer.
42
- # Optional if PayerNumber is passed else Mandatory
43
- # Example: 123456
41
+ # Payer Number of the selected payer.
42
+ # Optional if PayerId is passed else Mandatory
43
+ # Example: GB000000123
44
44
  # @return [Accounts]
45
45
  attr_accessor :accounts
46
46
 
47
- # Identifier of the Card bundle in Gateway.
47
+ # Identifier of the Card bundle
48
48
  # Optional if cards list is given, else mandatory.
49
+ # This input is a search criterion, if given.
49
50
  # @return [String]
50
51
  attr_accessor :bundle_id
51
52
 
52
- # Identifier of the Card bundle in Gateway.
53
+ # Identifier of the Card bundle
53
54
  # Optional if cards list is given, else mandatory.
54
- # @return [Array[RestrictionSearchCardRequestFiltersCardsItems]]
55
+ # This input is a search criterion, if given.
56
+ # @return [SearchCardRestriction]
55
57
  attr_accessor :cards
56
58
 
57
- # Whether to include location restriction of the cards in the response
59
+ # True/False
60
+ # Whether to include location restriction of the cards in the response.
61
+ # Optional
62
+ # Default ‘false’
58
63
  # @return [TrueClass | FalseClass]
59
64
  attr_accessor :include_location_restrictions
60
65
 
61
- # When True: service will return the inherited values for the usage limits
62
- # (from card-program or account as available) when it is not overridden on
63
- # the card.
64
- # @return [TrueClass | FalseClass]
65
- attr_accessor :include_inherited_limits
66
-
66
+ # Default value is False,
67
67
  # When the value is True, API will return bundle Id associated with cards in
68
68
  # the response, if available.
69
69
  # Note: Use ‘Null’ or ‘False’ for optimum performance. A delay in response
@@ -71,59 +71,67 @@ module ShellCardManagementApIs
71
71
  # @return [TrueClass | FalseClass]
72
72
  attr_accessor :include_bundle_details
73
73
 
74
+ # Default value is True,
75
+ # When True: service will return the inherited values for the usage limits
76
+ # (from card-program or account as available) when it is not overridden on
77
+ # the card.
78
+ # @return [TrueClass | FalseClass]
79
+ attr_accessor :include_inherited_limits
80
+
74
81
  # A mapping from model property names to API property names.
75
82
  def self.names
76
83
  @_hash = {} if @_hash.nil?
77
- @_hash['col_co_code'] = 'ColCoCode'
78
84
  @_hash['col_co_id'] = 'ColCoId'
79
- @_hash['payer_number'] = 'PayerNumber'
85
+ @_hash['col_co_code'] = 'ColCoCode'
80
86
  @_hash['payer_id'] = 'PayerId'
87
+ @_hash['payer_number'] = 'PayerNumber'
81
88
  @_hash['accounts'] = 'Accounts'
82
89
  @_hash['bundle_id'] = 'BundleId'
83
90
  @_hash['cards'] = 'Cards'
84
91
  @_hash['include_location_restrictions'] = 'IncludeLocationRestrictions'
85
- @_hash['include_inherited_limits'] = 'IncludeInheritedLimits'
86
92
  @_hash['include_bundle_details'] = 'IncludeBundleDetails'
93
+ @_hash['include_inherited_limits'] = 'IncludeInheritedLimits'
87
94
  @_hash
88
95
  end
89
96
 
90
97
  # An array for optional fields
91
98
  def self.optionals
92
99
  %w[
93
- col_co_code
94
100
  col_co_id
95
- payer_number
101
+ col_co_code
96
102
  payer_id
103
+ payer_number
97
104
  accounts
98
105
  bundle_id
99
106
  cards
100
107
  include_location_restrictions
101
- include_inherited_limits
102
108
  include_bundle_details
109
+ include_inherited_limits
103
110
  ]
104
111
  end
105
112
 
106
113
  # An array for nullable fields
107
114
  def self.nullables
108
115
  %w[
116
+ col_co_id
117
+ col_co_code
118
+ payer_id
109
119
  bundle_id
120
+ include_location_restrictions
121
+ include_bundle_details
122
+ include_inherited_limits
110
123
  ]
111
124
  end
112
125
 
113
- def initialize(col_co_code = SKIP,
114
- col_co_id = SKIP,
115
- payer_number = SKIP,
116
- payer_id = SKIP,
117
- accounts = SKIP,
118
- bundle_id = SKIP,
119
- cards = SKIP,
120
- include_location_restrictions = false,
121
- include_inherited_limits = false,
122
- include_bundle_details = false)
123
- @col_co_code = col_co_code unless col_co_code == SKIP
126
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
127
+ payer_number = SKIP, accounts = SKIP, bundle_id = SKIP,
128
+ cards = SKIP, include_location_restrictions = SKIP,
129
+ include_bundle_details = SKIP,
130
+ include_inherited_limits = SKIP)
124
131
  @col_co_id = col_co_id unless col_co_id == SKIP
125
- @payer_number = payer_number unless payer_number == SKIP
132
+ @col_co_code = col_co_code unless col_co_code == SKIP
126
133
  @payer_id = payer_id unless payer_id == SKIP
134
+ @payer_number = payer_number unless payer_number == SKIP
127
135
  @accounts = accounts unless accounts == SKIP
128
136
  @bundle_id = bundle_id unless bundle_id == SKIP
129
137
  @cards = cards unless cards == SKIP
@@ -131,8 +139,8 @@ module ShellCardManagementApIs
131
139
  @include_location_restrictions =
132
140
  include_location_restrictions
133
141
  end
134
- @include_inherited_limits = include_inherited_limits unless include_inherited_limits == SKIP
135
142
  @include_bundle_details = include_bundle_details unless include_bundle_details == SKIP
143
+ @include_inherited_limits = include_inherited_limits unless include_inherited_limits == SKIP
136
144
  end
137
145
 
138
146
  # Creates an instance of the object from a hash.
@@ -140,38 +148,31 @@ module ShellCardManagementApIs
140
148
  return nil unless hash
141
149
 
142
150
  # Extract variables from the hash.
143
- col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
144
151
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
145
- payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
152
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
146
153
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
154
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
147
155
  accounts = Accounts.from_hash(hash['Accounts']) if hash['Accounts']
148
156
  bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
149
- # Parameter is an array, so we need to iterate through it
150
- cards = nil
151
- unless hash['Cards'].nil?
152
- cards = []
153
- hash['Cards'].each do |structure|
154
- cards << (RestrictionSearchCardRequestFiltersCardsItems.from_hash(structure) if structure)
155
- end
156
- end
157
-
158
- cards = SKIP unless hash.key?('Cards')
157
+ cards = SearchCardRestriction.from_hash(hash['Cards']) if hash['Cards']
159
158
  include_location_restrictions =
160
- hash['IncludeLocationRestrictions'] ||= false
161
- include_inherited_limits = hash['IncludeInheritedLimits'] ||= false
162
- include_bundle_details = hash['IncludeBundleDetails'] ||= false
159
+ hash.key?('IncludeLocationRestrictions') ? hash['IncludeLocationRestrictions'] : SKIP
160
+ include_bundle_details =
161
+ hash.key?('IncludeBundleDetails') ? hash['IncludeBundleDetails'] : SKIP
162
+ include_inherited_limits =
163
+ hash.key?('IncludeInheritedLimits') ? hash['IncludeInheritedLimits'] : SKIP
163
164
 
164
165
  # Create object from extracted values.
165
- RestrictionSearchCardRequestFilters.new(col_co_code,
166
- col_co_id,
167
- payer_number,
168
- payer_id,
169
- accounts,
170
- bundle_id,
171
- cards,
172
- include_location_restrictions,
173
- include_inherited_limits,
174
- include_bundle_details)
166
+ SearchCardRestrictionReq.new(col_co_id,
167
+ col_co_code,
168
+ payer_id,
169
+ payer_number,
170
+ accounts,
171
+ bundle_id,
172
+ cards,
173
+ include_location_restrictions,
174
+ include_bundle_details,
175
+ include_inherited_limits)
175
176
  end
176
177
  end
177
178
  end
@@ -0,0 +1,89 @@
1
+ # shell_card_management_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellCardManagementApIs
7
+ # SearchCardRestrictionRes Model.
8
+ class SearchCardRestrictionRes < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Request Id of the API call
13
+ # @return [String]
14
+ attr_accessor :request_id
15
+
16
+ # Request Id of the API call
17
+ # @return [Array[RestrictionCardList]]
18
+ attr_accessor :cards
19
+
20
+ # Request Id of the API call
21
+ # @return [Restriction]
22
+ attr_accessor :restrictions
23
+
24
+ # Request Id of the API call
25
+ # @return [ErrorStatus]
26
+ attr_accessor :error
27
+
28
+ # A mapping from model property names to API property names.
29
+ def self.names
30
+ @_hash = {} if @_hash.nil?
31
+ @_hash['request_id'] = 'RequestId'
32
+ @_hash['cards'] = 'cards'
33
+ @_hash['restrictions'] = 'Restrictions'
34
+ @_hash['error'] = 'Error'
35
+ @_hash
36
+ end
37
+
38
+ # An array for optional fields
39
+ def self.optionals
40
+ %w[
41
+ request_id
42
+ cards
43
+ restrictions
44
+ error
45
+ ]
46
+ end
47
+
48
+ # An array for nullable fields
49
+ def self.nullables
50
+ %w[
51
+ request_id
52
+ ]
53
+ end
54
+
55
+ def initialize(request_id = SKIP, cards = SKIP, restrictions = SKIP,
56
+ error = SKIP)
57
+ @request_id = request_id unless request_id == SKIP
58
+ @cards = cards unless cards == SKIP
59
+ @restrictions = restrictions unless restrictions == SKIP
60
+ @error = error unless error == SKIP
61
+ end
62
+
63
+ # Creates an instance of the object from a hash.
64
+ def self.from_hash(hash)
65
+ return nil unless hash
66
+
67
+ # Extract variables from the hash.
68
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
69
+ # Parameter is an array, so we need to iterate through it
70
+ cards = nil
71
+ unless hash['cards'].nil?
72
+ cards = []
73
+ hash['cards'].each do |structure|
74
+ cards << (RestrictionCardList.from_hash(structure) if structure)
75
+ end
76
+ end
77
+
78
+ cards = SKIP unless hash.key?('cards')
79
+ restrictions = Restriction.from_hash(hash['Restrictions']) if hash['Restrictions']
80
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
81
+
82
+ # Create object from extracted values.
83
+ SearchCardRestrictionRes.new(request_id,
84
+ cards,
85
+ restrictions,
86
+ error)
87
+ end
88
+ end
89
+ end
@@ -10,7 +10,7 @@ module ShellCardManagementApIs
10
10
  private_constant :SKIP
11
11
 
12
12
  # TODO: Write general description for this method
13
- # @return [Array[ProductAllOf0]]
13
+ # @return [Array[RestrictionProduct]]
14
14
  attr_accessor :products
15
15
 
16
16
  # TODO: Write general description for this method
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(products = SKIP,
42
- product_groups = SKIP)
41
+ def initialize(products = SKIP, product_groups = SKIP)
43
42
  @products = products unless products == SKIP
44
43
  @product_groups = product_groups unless product_groups == SKIP
45
44
  end
@@ -54,7 +53,7 @@ module ShellCardManagementApIs
54
53
  unless hash['Products'].nil?
55
54
  products = []
56
55
  hash['Products'].each do |structure|
57
- products << (ProductAllOf0.from_hash(structure) if structure)
56
+ products << (RestrictionProduct.from_hash(structure) if structure)
58
57
  end
59
58
  end
60
59
 
@@ -334,9 +334,9 @@ module ShellCardManagementApIs
334
334
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
335
335
  # both.<br />
336
336
  # Allowed Values:<br />
337
- # 1. All<br />
338
- # 2. True<br />
339
- # 3. False
337
+ # 1. All<br />
338
+ # 2. True<br />
339
+ # 3. False
340
340
  # @return [String]
341
341
  attr_accessor :reissue_setting
342
342
 
@@ -351,9 +351,9 @@ module ShellCardManagementApIs
351
351
  # If ‘ALL’, API will return cards with ReIssueSetting value True &amp; False
352
352
  # both.<br />
353
353
  # Allowed Values:<br />
354
- # 1. All<br />
355
- # 2. True<br />
356
- # 3. False
354
+ # 1. All<br />
355
+ # 2. True<br />
356
+ # 3. False
357
357
  # @return [String]
358
358
  attr_accessor :request_id
359
359
 
@@ -488,48 +488,26 @@ module ShellCardManagementApIs
488
488
  ]
489
489
  end
490
490
 
491
- def initialize(card_status = nil,
492
- account_id = SKIP,
493
- account_number = SKIP,
494
- card_group_id = SKIP,
495
- card_group_name = SKIP,
496
- card_segment = SKIP,
497
- card_type_code = SKIP,
498
- col_co_code = SKIP,
499
- col_co_country_code = SKIP,
500
- col_co_id = SKIP,
501
- coverage = SKIP,
502
- creation_date = SKIP,
503
- driver_name = SKIP,
504
- effective_date = SKIP,
505
- exclude_bundle_id = SKIP,
506
- exclude_cancelled_cards = SKIP,
507
- exclude_card_group_id = SKIP,
508
- exclude_card_group_name = SKIP,
509
- exclude_cards = SKIP,
510
- exclude_fraud_cards = SKIP,
491
+ def initialize(card_status = nil, account_id = SKIP, account_number = SKIP,
492
+ card_group_id = SKIP, card_group_name = SKIP,
493
+ card_segment = SKIP, card_type_code = SKIP,
494
+ col_co_code = SKIP, col_co_country_code = SKIP,
495
+ col_co_id = SKIP, coverage = SKIP, creation_date = SKIP,
496
+ driver_name = SKIP, effective_date = SKIP,
497
+ exclude_bundle_id = SKIP, exclude_cancelled_cards = SKIP,
498
+ exclude_card_group_id = SKIP, exclude_card_group_name = SKIP,
499
+ exclude_cards = SKIP, exclude_fraud_cards = SKIP,
511
500
  exclude_pending_renewal_cards = SKIP,
512
- exclude_replaced_cards = SKIP,
513
- expiring_in_days = SKIP,
514
- expiry_month = SKIP,
515
- include_bundle_details = SKIP,
516
- include_cards = SKIP,
517
- include_intermediate_status = SKIP,
518
- issued_after = SKIP,
519
- network = SKIP,
520
- pan_ends_with = SKIP,
521
- payer_id = SKIP,
522
- payer_number = SKIP,
523
- purchase_category_code = SKIP,
524
- sort_order = SKIP,
525
- include_scheduled_card_blocks = SKIP,
526
- token_type_id = SKIP,
527
- token_type_name = SKIP,
528
- vehicle_registration_number = SKIP,
529
- exclude_old_cards = SKIP,
530
- exclude_expiring_cards = SKIP,
531
- client_reference_id = SKIP,
532
- reissue_setting = SKIP,
501
+ exclude_replaced_cards = SKIP, expiring_in_days = SKIP,
502
+ expiry_month = SKIP, include_bundle_details = SKIP,
503
+ include_cards = SKIP, include_intermediate_status = SKIP,
504
+ issued_after = SKIP, network = SKIP, pan_ends_with = SKIP,
505
+ payer_id = SKIP, payer_number = SKIP,
506
+ purchase_category_code = SKIP, sort_order = SKIP,
507
+ include_scheduled_card_blocks = SKIP, token_type_id = SKIP,
508
+ token_type_name = SKIP, vehicle_registration_number = SKIP,
509
+ exclude_old_cards = SKIP, exclude_expiring_cards = SKIP,
510
+ client_reference_id = SKIP, reissue_setting = SKIP,
533
511
  request_id = SKIP)
534
512
  @account_id = account_id unless account_id == SKIP
535
513
  @account_number = account_number unless account_number == SKIP
@@ -4,8 +4,8 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # LocationRestrictionsShellSiteRestrictionsItems Model.
8
- class LocationRestrictionsShellSiteRestrictionsItems < BaseModel
7
+ # ShellSiteRestriction Model.
8
+ class ShellSiteRestriction < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
@@ -17,22 +17,17 @@ module ShellCardManagementApIs
17
17
 
18
18
  # A list of Site IDs in this country, in the format “AA1111” where “AA” is a
19
19
  # 2-character country code and “1111” is a 4-digit site number in that
20
- # country, which needs to be either restricted or allowed.
21
- # A list of values must be passed for either Sites or SiteGroups or both.
22
- # Max 10 sites are allowed for the Shell site Restriction.
20
+ # country, which is either restricted or allowed.
23
21
  # For example, “GB1234”.
24
22
  # @return [Array[String]]
25
23
  attr_accessor :sites
26
24
 
27
- # A list of site group ids in this country which needs to be either
28
- # restricted or allowed.
29
- # A list of values must be passed for either Sites or SiteGroups or both.
30
- # Max 10 sites groups are allowed for the Shell site Restriction.
25
+ # A list of site group ids in this country which is either restricted or
26
+ # allowed.
31
27
  # @return [Array[String]]
32
28
  attr_accessor :site_groups
33
29
 
34
30
  # Flag indicates whether the profile is inclusive or exclusive.
35
- # Mandatory
36
31
  # Example: False - (inclusive), i.e. the “Sites” & “SiteGroups” properties
37
32
  # lists the sites & site groups where the transaction will be allowed.
38
33
  # True - (exclusive), i.e. the “Sites” & “SiteGroups” properties lists the
@@ -65,9 +60,7 @@ module ShellCardManagementApIs
65
60
  []
66
61
  end
67
62
 
68
- def initialize(country = SKIP,
69
- sites = SKIP,
70
- site_groups = SKIP,
63
+ def initialize(country = SKIP, sites = SKIP, site_groups = SKIP,
71
64
  exclusive = SKIP)
72
65
  @country = country unless country == SKIP
73
66
  @sites = sites unless sites == SKIP
@@ -86,10 +79,10 @@ module ShellCardManagementApIs
86
79
  exclusive = hash.key?('Exclusive') ? hash['Exclusive'] : SKIP
87
80
 
88
81
  # Create object from extracted values.
89
- LocationRestrictionsShellSiteRestrictionsItems.new(country,
90
- sites,
91
- site_groups,
92
- exclusive)
82
+ ShellSiteRestriction.new(country,
83
+ sites,
84
+ site_groups,
85
+ exclusive)
93
86
  end
94
87
  end
95
88
  end
@@ -58,6 +58,14 @@ module ShellCardManagementApIs
58
58
  # @return [String]
59
59
  attr_accessor :pan
60
60
 
61
+ # PANID of the card
62
+ # @return [Float]
63
+ attr_accessor :panid
64
+
65
+ # Card PAN
66
+ # @return [String]
67
+ attr_accessor :masked_pan
68
+
61
69
  # Payer id of the customer.<br />
62
70
  # Optional if PayerNumber is passed, else Mandatory.
63
71
  # @return [Integer]
@@ -80,6 +88,8 @@ module ShellCardManagementApIs
80
88
  @_hash['col_co_code'] = 'ColCoCode'
81
89
  @_hash['col_co_id'] = 'ColCoId'
82
90
  @_hash['pan'] = 'PAN'
91
+ @_hash['panid'] = 'PANID'
92
+ @_hash['masked_pan'] = 'MaskedPAN'
83
93
  @_hash['payer_id'] = 'PayerId'
84
94
  @_hash['payer_number'] = 'PayerNumber'
85
95
  @_hash
@@ -97,6 +107,8 @@ module ShellCardManagementApIs
97
107
  col_co_code
98
108
  col_co_id
99
109
  pan
110
+ panid
111
+ masked_pan
100
112
  payer_id
101
113
  payer_number
102
114
  ]
@@ -114,21 +126,18 @@ module ShellCardManagementApIs
114
126
  col_co_code
115
127
  col_co_id
116
128
  pan
129
+ panid
130
+ masked_pan
117
131
  payer_id
118
132
  payer_number
119
133
  ]
120
134
  end
121
135
 
122
136
  def initialize(replacement_card_reference = SKIP,
123
- update_card_reference = SKIP,
124
- account_id = SKIP,
125
- account_number = SKIP,
126
- card_expiry_date = SKIP,
127
- card_id = SKIP,
128
- col_co_code = SKIP,
129
- col_co_id = SKIP,
130
- pan = SKIP,
131
- payer_id = SKIP,
137
+ update_card_reference = SKIP, account_id = SKIP,
138
+ account_number = SKIP, card_expiry_date = SKIP,
139
+ card_id = SKIP, col_co_code = SKIP, col_co_id = SKIP,
140
+ pan = SKIP, panid = SKIP, masked_pan = SKIP, payer_id = SKIP,
132
141
  payer_number = SKIP)
133
142
  unless replacement_card_reference == SKIP
134
143
  @replacement_card_reference =
@@ -142,6 +151,8 @@ module ShellCardManagementApIs
142
151
  @col_co_code = col_co_code unless col_co_code == SKIP
143
152
  @col_co_id = col_co_id unless col_co_id == SKIP
144
153
  @pan = pan unless pan == SKIP
154
+ @panid = panid unless panid == SKIP
155
+ @masked_pan = masked_pan unless masked_pan == SKIP
145
156
  @payer_id = payer_id unless payer_id == SKIP
146
157
  @payer_number = payer_number unless payer_number == SKIP
147
158
  end
@@ -163,6 +174,8 @@ module ShellCardManagementApIs
163
174
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
164
175
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
165
176
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
177
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
178
+ masked_pan = hash.key?('MaskedPAN') ? hash['MaskedPAN'] : SKIP
166
179
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
167
180
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
168
181
 
@@ -176,6 +189,8 @@ module ShellCardManagementApIs
176
189
  col_co_code,
177
190
  col_co_id,
178
191
  pan,
192
+ panid,
193
+ masked_pan,
179
194
  payer_id,
180
195
  payer_number)
181
196
  end