card-management-sdk 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +54 -36
  4. data/lib/shell_card_management_ap_is/api_helper.rb +2 -2
  5. data/lib/shell_card_management_ap_is/client.rb +11 -12
  6. data/lib/shell_card_management_ap_is/configuration.rb +23 -25
  7. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +3 -9
  8. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +165 -178
  9. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +259 -298
  10. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +8 -8
  11. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +205 -251
  12. data/lib/shell_card_management_ap_is/exceptions/api_exception.rb +13 -2
  13. data/lib/shell_card_management_ap_is/exceptions/{error_object_exception.rb → error_object_error_exception.rb} +22 -7
  14. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +21 -5
  15. data/lib/shell_card_management_ap_is/http/auth/{bearer_token.rb → o_auth2.rb} +28 -27
  16. data/lib/shell_card_management_ap_is/http/http_call_back.rb +2 -2
  17. data/lib/shell_card_management_ap_is/http/http_method_enum.rb +2 -2
  18. data/lib/shell_card_management_ap_is/http/http_request.rb +2 -2
  19. data/lib/shell_card_management_ap_is/http/http_response.rb +2 -2
  20. data/lib/shell_card_management_ap_is/http/proxy_settings.rb +13 -0
  21. data/lib/shell_card_management_ap_is/models/account_access.rb +19 -2
  22. data/lib/shell_card_management_ap_is/models/account_req.rb +84 -0
  23. data/lib/shell_card_management_ap_is/models/account_request.rb +29 -3
  24. data/lib/shell_card_management_ap_is/models/account_res.rb +158 -0
  25. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +81 -2
  26. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +24 -5
  27. data/lib/shell_card_management_ap_is/models/account_restriction_res.rb +91 -0
  28. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +24 -28
  29. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +19 -2
  30. data/lib/shell_card_management_ap_is/models/accounts.rb +15 -2
  31. data/lib/shell_card_management_ap_is/models/address.rb +23 -2
  32. data/lib/shell_card_management_ap_is/models/audit_array_elements.rb +71 -0
  33. data/lib/shell_card_management_ap_is/models/audit_req.rb +84 -0
  34. data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -28
  35. data/lib/shell_card_management_ap_is/models/audit_response.rb +98 -47
  36. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +75 -6
  37. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +17 -2
  38. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +17 -2
  39. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +16 -2
  40. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +16 -2
  41. data/lib/shell_card_management_ap_is/models/bank_account.rb +24 -2
  42. data/lib/shell_card_management_ap_is/models/base_model.rb +2 -2
  43. data/lib/shell_card_management_ap_is/models/budle_details_req.rb +62 -0
  44. data/lib/shell_card_management_ap_is/models/budle_details_request.rb +20 -3
  45. data/lib/shell_card_management_ap_is/models/bundle_card_restriction_status.rb +14 -3
  46. data/lib/shell_card_management_ap_is/models/bundle_details.rb +91 -0
  47. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +25 -24
  48. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +66 -24
  49. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +33 -8
  50. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +21 -2
  51. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +21 -5
  52. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +19 -2
  53. data/lib/shell_card_management_ap_is/models/card.rb +64 -2
  54. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +14 -2
  55. data/lib/shell_card_management_ap_is/models/card_bundle.rb +17 -2
  56. data/lib/shell_card_management_ap_is/models/card_contact.rb +31 -2
  57. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +19 -2
  58. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +27 -2
  59. data/lib/shell_card_management_ap_is/models/card_detail.rb +55 -2
  60. data/lib/shell_card_management_ap_is/models/card_detail_auto_renew_enum.rb +2 -2
  61. data/lib/shell_card_management_ap_is/models/card_details_req.rb +62 -0
  62. data/lib/shell_card_management_ap_is/models/card_details_request.rb +31 -2
  63. data/lib/shell_card_management_ap_is/models/card_details_response.rb +92 -6
  64. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +14 -2
  65. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +16 -2
  66. data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_code_enum.rb +2 -2
  67. data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_id_enum.rb +2 -2
  68. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +16 -2
  69. data/lib/shell_card_management_ap_is/models/card_details_response_pin_type_enum.rb +2 -2
  70. data/lib/shell_card_management_ap_is/models/card_details_response_renewed_card_reissue_setting_enum.rb +2 -2
  71. data/lib/shell_card_management_ap_is/models/card_details_response_status_id_enum.rb +2 -2
  72. data/lib/shell_card_management_ap_is/models/card_group_req.rb +84 -0
  73. data/lib/shell_card_management_ap_is/models/card_group_request.rb +21 -27
  74. data/lib/shell_card_management_ap_is/models/card_group_res.rb +158 -0
  75. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +36 -2
  76. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +15 -2
  77. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +14 -2
  78. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +20 -2
  79. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +16 -2
  80. data/lib/shell_card_management_ap_is/models/card_move_request.rb +23 -2
  81. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +16 -2
  82. data/lib/shell_card_management_ap_is/models/card_move_res.rb +101 -0
  83. data/lib/shell_card_management_ap_is/models/card_restriction_req.rb +17 -2
  84. data/lib/shell_card_management_ap_is/models/card_restriction_res.rb +101 -0
  85. data/lib/shell_card_management_ap_is/models/card_search_response.rb +18 -2
  86. data/lib/shell_card_management_ap_is/models/card_settings.rb +68 -2
  87. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +14 -2
  88. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +15 -2
  89. data/lib/shell_card_management_ap_is/models/card_type_req.rb +62 -0
  90. data/lib/shell_card_management_ap_is/models/card_type_request.rb +21 -2
  91. data/lib/shell_card_management_ap_is/models/card_type_res.rb +91 -0
  92. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +54 -2
  93. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +40 -2
  94. data/lib/shell_card_management_ap_is/models/col_co_access.rb +18 -2
  95. data/lib/shell_card_management_ap_is/models/country_restriction.rb +14 -2
  96. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +23 -4
  97. data/lib/shell_card_management_ap_is/models/create_bundle_res.rb +91 -0
  98. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +62 -33
  99. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +21 -2
  100. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +16 -2
  101. data/lib/shell_card_management_ap_is/models/create_card_group_res.rb +91 -0
  102. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +20 -26
  103. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +16 -2
  104. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +15 -2
  105. data/lib/shell_card_management_ap_is/models/create_card_response.rb +16 -2
  106. data/lib/shell_card_management_ap_is/models/customer_contract.rb +15 -2
  107. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +20 -4
  108. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +43 -27
  109. data/lib/shell_card_management_ap_is/models/customer_req.rb +62 -0
  110. data/lib/shell_card_management_ap_is/models/customer_res.rb +91 -0
  111. data/lib/shell_card_management_ap_is/models/{delivery_address_update_references2.rb → datum.rb} +32 -23
  112. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +19 -2
  113. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +19 -2
  114. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +25 -12
  115. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +19 -2
  116. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +19 -2
  117. data/lib/shell_card_management_ap_is/models/delivery_address_update_status_enum.rb +26 -0
  118. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +30 -2
  119. data/lib/shell_card_management_ap_is/models/eid_access.rb +16 -2
  120. data/lib/shell_card_management_ap_is/models/error_details.rb +17 -3
  121. data/lib/shell_card_management_ap_is/models/error_object.rb +93 -0
  122. data/lib/shell_card_management_ap_is/models/error_status.rb +14 -2
  123. data/lib/shell_card_management_ap_is/models/filters.rb +61 -2
  124. data/lib/shell_card_management_ap_is/models/filters1.rb +51 -2
  125. data/lib/shell_card_management_ap_is/models/filters2.rb +24 -2
  126. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +18 -2
  127. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +18 -2
  128. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +14 -2
  129. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +17 -2
  130. data/lib/shell_card_management_ap_is/models/location_restriction.rb +19 -2
  131. data/lib/shell_card_management_ap_is/models/logged_in_user_req.rb +63 -0
  132. data/lib/shell_card_management_ap_is/models/logged_in_user_res.rb +91 -0
  133. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +39 -28
  134. data/lib/shell_card_management_ap_is/models/network_restriction.rb +15 -2
  135. data/lib/shell_card_management_ap_is/models/o_auth_provider_error_enum.rb +2 -2
  136. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -2
  137. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +53 -4
  138. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req_reference_type_enum.rb +2 -2
  139. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +14 -2
  140. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +15 -2
  141. data/lib/shell_card_management_ap_is/models/order_card_response.rb +16 -2
  142. data/lib/shell_card_management_ap_is/models/partner_site_restriction.rb +16 -2
  143. data/lib/shell_card_management_ap_is/models/payer_access.rb +21 -2
  144. data/lib/shell_card_management_ap_is/models/payer_details.rb +152 -2
  145. data/lib/shell_card_management_ap_is/models/payer_req.rb +84 -0
  146. data/lib/shell_card_management_ap_is/models/payer_request.rb +20 -29
  147. data/lib/shell_card_management_ap_is/models/payer_res.rb +158 -0
  148. data/lib/shell_card_management_ap_is/models/payers.rb +18 -2
  149. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +17 -2
  150. data/lib/shell_card_management_ap_is/models/pin_contact.rb +31 -2
  151. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +23 -2
  152. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +27 -2
  153. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +24 -4
  154. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +17 -2
  155. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +16 -2
  156. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +16 -2
  157. data/lib/shell_card_management_ap_is/models/product_group.rb +18 -2
  158. data/lib/shell_card_management_ap_is/models/product_restriction_card.rb +15 -2
  159. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +16 -2
  160. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +21 -6
  161. data/lib/shell_card_management_ap_is/models/purchase_category_req.rb +62 -0
  162. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +19 -2
  163. data/lib/shell_card_management_ap_is/models/purchase_category_res.rb +91 -0
  164. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +16 -13
  165. data/lib/shell_card_management_ap_is/models/response_delivery_address_update.rb +101 -0
  166. data/lib/shell_card_management_ap_is/models/restriction.rb +21 -5
  167. data/lib/shell_card_management_ap_is/models/restriction_card_list.rb +49 -2
  168. data/lib/shell_card_management_ap_is/models/restriction_cards_list.rb +33 -8
  169. data/lib/shell_card_management_ap_is/models/restriction_product.rb +16 -2
  170. data/lib/shell_card_management_ap_is/models/restrictioncards_res.rb +36 -2
  171. data/lib/shell_card_management_ap_is/models/role.rb +19 -2
  172. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +24 -2
  173. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +16 -2
  174. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +16 -2
  175. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +16 -2
  176. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +18 -2
  177. data/lib/shell_card_management_ap_is/models/search_account_limit_res.rb +91 -0
  178. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +21 -14
  179. data/lib/shell_card_management_ap_is/models/search_card.rb +15 -2
  180. data/lib/shell_card_management_ap_is/models/search_card_request.rb +15 -2
  181. data/lib/shell_card_management_ap_is/models/search_card_restriction.rb +14 -2
  182. data/lib/shell_card_management_ap_is/models/search_card_restriction_req.rb +23 -2
  183. data/lib/shell_card_management_ap_is/models/search_card_restriction_req1.rb +62 -0
  184. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +16 -2
  185. data/lib/shell_card_management_ap_is/models/search_card_restriction_res1.rb +91 -0
  186. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +15 -2
  187. data/lib/shell_card_management_ap_is/models/shell_site_restriction.rb +16 -2
  188. data/lib/shell_card_management_ap_is/models/submitted_card.rb +25 -2
  189. data/lib/shell_card_management_ap_is/models/{card_move_response_successful_requests_items.rb → submitted_move_card.rb} +45 -35
  190. data/lib/shell_card_management_ap_is/models/summary_response.rb +26 -2
  191. data/lib/shell_card_management_ap_is/models/summaryofbundle_res.rb +91 -0
  192. data/lib/shell_card_management_ap_is/models/summaryofbundle_response.rb +25 -29
  193. data/lib/shell_card_management_ap_is/models/summaryofbundler_request.rb +19 -2
  194. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +24 -3
  195. data/lib/shell_card_management_ap_is/models/update_bundle_res.rb +91 -0
  196. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +31 -32
  197. data/lib/shell_card_management_ap_is/models/update_card.rb +28 -2
  198. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +29 -2
  199. data/lib/shell_card_management_ap_is/models/update_card_group_res.rb +91 -0
  200. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +21 -27
  201. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +15 -2
  202. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +21 -2
  203. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +18 -2
  204. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +17 -2
  205. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +19 -2
  206. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +14 -2
  207. data/lib/shell_card_management_ap_is/models/usage_restrictions_card.rb +34 -2
  208. data/lib/shell_card_management_ap_is/models/warning.rb +69 -0
  209. data/lib/shell_card_management_ap_is/utilities/date_time_helper.rb +2 -2
  210. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +16 -4
  211. data/lib/shell_card_management_ap_is.rb +44 -90
  212. data/test/controllers/controller_test_base.rb +29 -0
  213. data/test/controllers/test_card_controller.rb +139 -0
  214. data/test/http_response_catcher.rb +19 -0
  215. metadata +78 -69
  216. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_customer403_error_exception.rb +0 -32
  217. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers400_error_exception.rb +0 -32
  218. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +0 -32
  219. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +0 -32
  220. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +0 -32
  221. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +0 -32
  222. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +0 -32
  223. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +0 -32
  224. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +0 -32
  225. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +0 -32
  226. data/lib/shell_card_management_ap_is/http/auth/basic_auth.rb +0 -50
  227. data/lib/shell_card_management_ap_is/models/account_response.rb +0 -107
  228. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +0 -105
  229. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +0 -223
  230. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +0 -218
  231. data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_code_enum.rb +0 -118
  232. data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_id_enum.rb +0 -118
  233. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +0 -222
  234. data/lib/shell_card_management_ap_is/models/card_details_response_reissue_setting_enum.rb +0 -26
  235. data/lib/shell_card_management_ap_is/models/card_group_response.rb +0 -105
  236. data/lib/shell_card_management_ap_is/models/card_move_response.rb +0 -110
  237. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +0 -109
  238. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +0 -96
  239. data/lib/shell_card_management_ap_is/models/card_type_response.rb +0 -77
  240. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +0 -59
  241. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +0 -133
  242. data/lib/shell_card_management_ap_is/models/default_error.rb +0 -50
  243. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +0 -59
  244. data/lib/shell_card_management_ap_is/models/default_error_fault_detail.rb +0 -50
  245. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +0 -99
  246. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +0 -85
  247. data/lib/shell_card_management_ap_is/models/detail.rb +0 -50
  248. data/lib/shell_card_management_ap_is/models/error_user_access.rb +0 -50
  249. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +0 -59
  250. data/lib/shell_card_management_ap_is/models/fault.rb +0 -59
  251. data/lib/shell_card_management_ap_is/models/finance_currency.rb +0 -97
  252. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers400_error1.rb +0 -50
  253. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +0 -50
  254. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +0 -50
  255. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +0 -50
  256. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +0 -50
  257. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +0 -50
  258. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +0 -50
  259. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +0 -50
  260. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +0 -105
  261. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +0 -195
  262. data/lib/shell_card_management_ap_is/models/order_card_request.rb +0 -60
  263. data/lib/shell_card_management_ap_is/models/payer_response.rb +0 -111
  264. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +0 -235
  265. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +0 -162
  266. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +0 -131
  267. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +0 -626
  268. data/lib/shell_card_management_ap_is/models/search_request.rb +0 -702
  269. data/lib/shell_card_management_ap_is/models/summary_request.rb +0 -580
  270. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +0 -157
  271. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +0 -122
  272. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +0 -1127
@@ -1,65 +1,61 @@
1
1
  # shell_card_management_ap_is
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
7
  # CustomerController
8
8
  class CustomerController < BaseController
9
- # This API allows querying the user data of the logged in user.</br>
10
- # This API will return the user access details such as payers and/or
11
- # accounts. </br>
12
- # This API will also validate that logged in user has access to the
13
- # requested API, on failure it will return HasAPIAccess flag as false in
14
- # response.</br>
15
- # @param [String] apikey Required parameter: This is the API key of the
16
- # specific environment which needs to be passed by the client.
9
+ # This operation allows querying the user data of the logged in user.
10
+ # This operation should be called only after successful authentication of
11
+ # the end user in client application. This operation will return the user
12
+ # access details such as payers and/or accounts.
13
+ # This operation will also validate that logged in user has access to the
14
+ # requested operation, on failure it will return HasAPIAccess flag as false
15
+ # in the response.
17
16
  # @param [String] request_id Required parameter: Mandatory UUID (according
18
17
  # to RFC 4122 standards) for requests and responses. This will be played
19
18
  # back in the response from the request.
20
- # @param [FleetmanagementV1UserLoggedinuserRequest] body Optional parameter:
21
- # Logged in user request body
22
- # @return [LoggedInUserResponse] response from the API call.
23
- def loggedinuser(apikey,
24
- request_id,
25
- body: nil)
26
- new_api_call_builder
19
+ # @param [LoggedInUserReq] body Required parameter: TODO: type description
20
+ # here
21
+ # @return [LoggedInUserRes] Response from the API call.
22
+ def user_loggedinuser(request_id,
23
+ body)
24
+ @api_call
27
25
  .request(new_request_builder(HttpMethodEnum::POST,
28
- '/fleetmanagement/v1/user/loggedinuser',
26
+ '/user-management/v1/loggedinuser',
29
27
  Server::SHELL)
30
- .header_param(new_parameter(apikey, key: 'apikey'))
31
28
  .header_param(new_parameter(request_id, key: 'RequestId'))
32
29
  .header_param(new_parameter('application/json', key: 'Content-Type'))
33
30
  .body_param(new_parameter(body))
34
31
  .header_param(new_parameter('application/json', key: 'accept'))
35
32
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
36
- .auth(Single.new('BasicAuth')))
33
+ .auth(Single.new('BearerToken')))
37
34
  .response(new_response_handler
38
35
  .deserializer(APIHelper.method(:custom_type_deserializer))
39
- .deserialize_into(LoggedInUserResponse.method(:from_hash))
36
+ .deserialize_into(LoggedInUserRes.method(:from_hash))
40
37
  .local_error('400',
41
- "The server cannot or will not process the request due to'\
42
- ' something that is perceived to be a client\r\n error (e.g.,'\
43
- ' malformed request syntax, invalid \r\n request message'\
44
- ' framing, or deceptive request routing).",
45
- FleetmanagementV1UserLoggedinuser400ErrorException)
38
+ "The server cannot or will not process the request due to'\
39
+ ' something that is perceived to be a client error (e.g.,'\
40
+ ' malformed request syntax, invalid request message framing, or'\
41
+ ' deceptive request routing).\n",
42
+ ErrorObjectErrorException)
46
43
  .local_error('401',
47
- 'The request has not been applied because it lacks valid '\
48
- ' authentication credentials for the target resource.',
49
- FleetmanagementV1UserLoggedinuser401ErrorException)
44
+ "The request has not been applied because it lacks valid '\
45
+ ' authentication credentials for the target resource.\n",
46
+ ErrorObjectErrorException)
50
47
  .local_error('403',
51
- 'The server understood the request but refuses to authorize it'\
52
- '.',
53
- FleetmanagementV1UserLoggedinuser403ErrorException)
48
+ 'Forbidden',
49
+ ErrorObjectErrorException)
54
50
  .local_error('404',
55
- 'The origin server did not find a current representation for'\
51
+ "The origin server did not find a current representation for'\
56
52
  ' the target resource or is not willing to disclose that one'\
57
- ' exists.',
58
- FleetmanagementV1UserLoggedinuser404ErrorException)
53
+ ' exists.\n",
54
+ ErrorObjectErrorException)
59
55
  .local_error('500',
60
- 'The server encountered an unexpected condition the prevented'\
61
- ' it from fulfilling the request.',
62
- FleetmanagementV1UserLoggedinuser500ErrorException))
56
+ "The server encountered an unexpected condition that prevented'\
57
+ ' it from fulfilling the request.\n",
58
+ ErrorObjectErrorException))
63
59
  .execute
64
60
  end
65
61
 
@@ -72,274 +68,252 @@ module ShellCardManagementApIs
72
68
  # be ignored and the API will return all the matching data by merging the
73
69
  # data queried from each ColCo when payers passed in the input are from
74
70
  # multiple ColCos.
75
- # @param [String] apikey Required parameter: This is the API key of the
76
- # specific environment which needs to be passed by the client.
77
71
  # @param [String] request_id Required parameter: Mandatory UUID (according
78
72
  # to RFC 4122 standards) for requests and responses. This will be played
79
73
  # back in the response from the request.
80
- # @param [PayerRequest] body Optional parameter: Serach payers request
81
- # body
82
- # @return [PayerResponse] response from the API call.
83
- def payers(apikey,
84
- request_id,
85
- body: nil)
86
- new_api_call_builder
74
+ # @param [PayerReq] body Required parameter: TODO: type description here
75
+ # @return [PayerRes] Response from the API call.
76
+ def customerpayers(request_id,
77
+ body)
78
+ @api_call
87
79
  .request(new_request_builder(HttpMethodEnum::POST,
88
- '/fleetmanagement/v1/customer/payers',
80
+ '/customer-management/v1/payers',
89
81
  Server::SHELL)
90
- .header_param(new_parameter(apikey, key: 'apikey'))
91
82
  .header_param(new_parameter(request_id, key: 'RequestId'))
92
83
  .header_param(new_parameter('application/json', key: 'Content-Type'))
93
84
  .body_param(new_parameter(body))
94
85
  .header_param(new_parameter('application/json', key: 'accept'))
95
86
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
96
- .auth(Single.new('BasicAuth')))
87
+ .auth(Single.new('BearerToken')))
97
88
  .response(new_response_handler
98
89
  .deserializer(APIHelper.method(:custom_type_deserializer))
99
- .deserialize_into(PayerResponse.method(:from_hash))
90
+ .deserialize_into(PayerRes.method(:from_hash))
100
91
  .local_error('400',
101
- "The server cannot or will not process the request due to'\
102
- ' something that is perceived to be a client\r\n error (e.g.,'\
103
- ' malformed request syntax, invalid \r\n request message'\
104
- ' framing, or deceptive request routing).",
105
- FleetmanagementV1CustomerPayers400ErrorException)
92
+ "The server cannot or will not process the request due to'\
93
+ ' something that is perceived to be a client error (e.g.,'\
94
+ ' malformed request syntax, invalid request message framing, or'\
95
+ ' deceptive request routing).\n",
96
+ ErrorObjectErrorException)
106
97
  .local_error('401',
107
- 'The request has not been applied because it lacks valid '\
108
- ' authentication credentials for the target resource.',
109
- APIException)
98
+ "The request has not been applied because it lacks valid '\
99
+ ' authentication credentials for the target resource.\n",
100
+ ErrorObjectErrorException)
110
101
  .local_error('403',
111
- 'The server understood the request but refuses to authorize it'\
112
- '.',
113
- APIException)
102
+ 'Forbidden',
103
+ ErrorObjectErrorException)
114
104
  .local_error('404',
115
- 'The origin server did not find a current representation for'\
105
+ "The origin server did not find a current representation for'\
116
106
  ' the target resource or is not willing to disclose that one'\
117
- ' exists.',
118
- FleetmanagementV1CustomerPayers404ErrorException)
107
+ ' exists.\n",
108
+ ErrorObjectErrorException)
119
109
  .local_error('500',
120
- 'The server encountered an unexpected condition the prevented'\
121
- ' it from fulfilling the request.',
122
- APIException))
110
+ "The server encountered an unexpected condition that prevented'\
111
+ ' it from fulfilling the request.\n",
112
+ ErrorObjectErrorException))
123
113
  .execute
124
114
  end
125
115
 
126
116
  # This API allows querying the card delivery addresses of a given account
127
- # from the Shell Cards Platform.
128
- # Only active delivery addresses will be returned.
129
- # @param [String] apikey Required parameter: This is the API key of the
130
- # specific environment which needs to be passed by the client.
117
+ # from the Shell Cards Platform. Only active delivery addresses will be
118
+ # returned.
131
119
  # @param [String] request_id Required parameter: Mandatory UUID (according
132
120
  # to RFC 4122 standards) for requests and responses. This will be played
133
121
  # back in the response from the request.
134
- # @param [CustomerDetailRequest] body Optional parameter: Customerdetails
135
- # request body
136
- # @return [CustomerDetailResponse] response from the API call.
137
- def customer(apikey,
138
- request_id,
139
- body: nil)
140
- new_api_call_builder
122
+ # @param [CustomerReq] body Required parameter: TODO: type description
123
+ # here
124
+ # @return [CustomerRes] Response from the API call.
125
+ def customerdetail(request_id,
126
+ body)
127
+ @api_call
141
128
  .request(new_request_builder(HttpMethodEnum::POST,
142
- '/fleetmanagement/v1/customer/customer',
129
+ '/customer-management/v1/customer',
143
130
  Server::SHELL)
144
- .header_param(new_parameter(apikey, key: 'apikey'))
145
131
  .header_param(new_parameter(request_id, key: 'RequestId'))
146
132
  .header_param(new_parameter('application/json', key: 'Content-Type'))
147
133
  .body_param(new_parameter(body))
148
134
  .header_param(new_parameter('application/json', key: 'accept'))
149
135
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
150
- .auth(Single.new('BasicAuth')))
136
+ .auth(Single.new('BearerToken')))
151
137
  .response(new_response_handler
152
138
  .deserializer(APIHelper.method(:custom_type_deserializer))
153
- .deserialize_into(CustomerDetailResponse.method(:from_hash))
139
+ .deserialize_into(CustomerRes.method(:from_hash))
154
140
  .local_error('400',
155
- "The server cannot or will not process the request due to'\
156
- ' something that is perceived to be a client\r\n error (e.g.,'\
157
- ' malformed request syntax, invalid \r\n request message'\
158
- ' framing, or deceptive request routing).",
159
- APIException)
141
+ "The server cannot or will not process the request due to'\
142
+ ' something that is perceived to be a client error (e.g.,'\
143
+ ' malformed request syntax, invalid request message framing, or'\
144
+ ' deceptive request routing).\n",
145
+ ErrorObjectErrorException)
160
146
  .local_error('401',
161
- 'The request has not been applied because it lacks valid '\
162
- ' authentication credentials for the target resource.',
163
- APIException)
147
+ "The request has not been applied because it lacks valid '\
148
+ ' authentication credentials for the target resource.\n",
149
+ ErrorObjectErrorException)
164
150
  .local_error('403',
165
- 'The server understood the request but refuses to authorize it'\
166
- '.',
167
- FleetmanagementV1CustomerCustomer403ErrorException)
151
+ 'Forbidden',
152
+ ErrorObjectErrorException)
168
153
  .local_error('404',
169
- 'The origin server did not find a current representation for'\
154
+ "The origin server did not find a current representation for'\
170
155
  ' the target resource or is not willing to disclose that one'\
171
- ' exists.',
172
- APIException)
156
+ ' exists.\n",
157
+ ErrorObjectErrorException)
173
158
  .local_error('500',
174
- 'The server encountered an unexpected condition the prevented'\
175
- ' it from fulfilling the request.',
176
- APIException))
159
+ "The server encountered an unexpected condition that prevented'\
160
+ ' it from fulfilling the request.\n",
161
+ ErrorObjectErrorException))
177
162
  .execute
178
163
  end
179
164
 
180
165
  # This API allows querying the customer account details from the Shell Cards
181
- # Platform.
182
- # It provides a flexible search criterion and supports paging".
183
- # @param [String] apikey Required parameter: This is the API key of the
184
- # specific environment which needs to be passed by the client.
166
+ # Platform. It provides a flexible search criterion and supports pagination.
185
167
  # @param [String] request_id Required parameter: Mandatory UUID (according
186
168
  # to RFC 4122 standards) for requests and responses. This will be played
187
169
  # back in the response from the request.
188
- # @param [AccountRequest] body Optional parameter: Example:
189
- # @return [AccountResponse] response from the API call.
190
- def accounts(apikey,
191
- request_id,
192
- body: nil)
193
- new_api_call_builder
170
+ # @param [AccountReq] body Required parameter: TODO: type description here
171
+ # @return [AccountRes] Response from the API call.
172
+ def post_card_accounts(request_id,
173
+ body)
174
+ @api_call
194
175
  .request(new_request_builder(HttpMethodEnum::POST,
195
- '/fleetmanagement/v1/customer/accounts',
176
+ '/customer-management/v1/accounts',
196
177
  Server::SHELL)
197
- .header_param(new_parameter(apikey, key: 'apikey'))
198
178
  .header_param(new_parameter(request_id, key: 'RequestId'))
199
179
  .header_param(new_parameter('application/json', key: 'Content-Type'))
200
180
  .body_param(new_parameter(body))
201
181
  .header_param(new_parameter('application/json', key: 'accept'))
202
182
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
203
- .auth(Single.new('BasicAuth')))
183
+ .auth(Single.new('BearerToken')))
204
184
  .response(new_response_handler
205
185
  .deserializer(APIHelper.method(:custom_type_deserializer))
206
- .deserialize_into(AccountResponse.method(:from_hash))
186
+ .deserialize_into(AccountRes.method(:from_hash))
207
187
  .local_error('400',
208
- "The server cannot or will not process the request due to'\
209
- ' something that is perceived to be a client\r\n error (e.g.,'\
210
- ' malformed request syntax, invalid \r\n request message'\
211
- ' framing, or deceptive request routing).",
212
- APIException)
188
+ "The server cannot or will not process the request due to'\
189
+ ' something that is perceived to be a client error (e.g.,'\
190
+ ' malformed request syntax, invalid request message framing, or'\
191
+ ' deceptive request routing).\n",
192
+ ErrorObjectErrorException)
213
193
  .local_error('401',
214
- 'The request has not been applied because it lacks valid '\
215
- ' authentication credentials for the target resource.',
216
- APIException)
194
+ "The request has not been applied because it lacks valid '\
195
+ ' authentication credentials for the target resource.\n",
196
+ ErrorObjectErrorException)
217
197
  .local_error('403',
218
- 'The server understood the request but refuses to authorize it'\
219
- '.',
220
- APIException)
198
+ 'Forbidden',
199
+ ErrorObjectErrorException)
221
200
  .local_error('404',
222
- 'The origin server did not find a current representation for'\
201
+ "The origin server did not find a current representation for'\
223
202
  ' the target resource or is not willing to disclose that one'\
224
- ' exists.',
225
- APIException)
203
+ ' exists.\n",
204
+ ErrorObjectErrorException)
226
205
  .local_error('500',
227
- 'The server encountered an unexpected condition the prevented'\
228
- ' it from fulfilling the request.',
229
- APIException))
206
+ "The server encountered an unexpected condition that prevented'\
207
+ ' it from fulfilling the request.\n",
208
+ ErrorObjectErrorException))
230
209
  .execute
231
210
  end
232
211
 
233
- # This operation allows querying card types that are associated to the given
234
- # account and are allowed to be shown to users.
235
- # @param [String] apikey Required parameter: This is the API key of the
236
- # specific environment which needs to be passed by the client.
212
+ # This API provides allows querying the active card types that are
213
+ # associated to the given account.
214
+ #
215
+ # The API returns the card type configurations, purchase categories
216
+ # associated with the card type and the card type restriction limits.
237
217
  # @param [String] request_id Required parameter: Mandatory UUID (according
238
218
  # to RFC 4122 standards) for requests and responses. This will be played
239
219
  # back in the response from the request.
240
- # @param [CardTypeRequest] body Optional parameter: Get CardType Request
241
- # Body
242
- # @return [CardTypeResponse] response from the API call.
243
- def card_type(apikey,
244
- request_id,
245
- body: nil)
246
- new_api_call_builder
220
+ # @param [CardTypeReq] body Required parameter: TODO: type description
221
+ # here
222
+ # @return [CardTypeRes] Response from the API call.
223
+ def customercardtypev(request_id,
224
+ body)
225
+ @api_call
247
226
  .request(new_request_builder(HttpMethodEnum::POST,
248
- '/fleetmanagement/v2/customer/cardtype',
227
+ '/customer-management/v1/cardtype',
249
228
  Server::SHELL)
250
- .header_param(new_parameter(apikey, key: 'apikey'))
251
229
  .header_param(new_parameter(request_id, key: 'RequestId'))
252
230
  .header_param(new_parameter('application/json', key: 'Content-Type'))
253
231
  .body_param(new_parameter(body))
254
232
  .header_param(new_parameter('application/json', key: 'accept'))
255
233
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
256
- .auth(Single.new('BasicAuth')))
234
+ .auth(Single.new('BearerToken')))
257
235
  .response(new_response_handler
258
236
  .deserializer(APIHelper.method(:custom_type_deserializer))
259
- .deserialize_into(CardTypeResponse.method(:from_hash))
237
+ .deserialize_into(CardTypeRes.method(:from_hash))
260
238
  .local_error('400',
261
- "The server cannot or will not process the request due to'\
262
- ' something that is perceived to be a client\r\n error (e.g.,'\
263
- ' malformed request syntax, invalid \r\n request message'\
264
- ' framing, or deceptive request routing).",
265
- APIException)
239
+ "The server cannot or will not process the request due to'\
240
+ ' something that is perceived to be a client error (e.g.,'\
241
+ ' malformed request syntax, invalid request message framing, or'\
242
+ ' deceptive request routing).\n",
243
+ ErrorObjectErrorException)
266
244
  .local_error('401',
267
- 'The request has not been applied because it lacks valid '\
268
- ' authentication credentials for the target resource.',
269
- APIException)
245
+ "The request has not been applied because it lacks valid '\
246
+ ' authentication credentials for the target resource.\n",
247
+ ErrorObjectErrorException)
270
248
  .local_error('403',
271
- 'The server understood the request but refuses to authorize it'\
272
- '.',
273
- APIException)
249
+ 'Forbidden',
250
+ ErrorObjectErrorException)
274
251
  .local_error('404',
275
- 'The origin server did not find a current representation for'\
252
+ "The origin server did not find a current representation for'\
276
253
  ' the target resource or is not willing to disclose that one'\
277
- ' exists.',
278
- APIException)
254
+ ' exists.\n",
255
+ ErrorObjectErrorException)
279
256
  .local_error('500',
280
- 'The server encountered an unexpected condition the prevented'\
281
- ' it from fulfilling the request.',
282
- APIException))
257
+ "The server encountered an unexpected condition that prevented'\
258
+ ' it from fulfilling the request.\n",
259
+ ErrorObjectErrorException))
283
260
  .execute
284
261
  end
285
262
 
286
- # This operation allows querying the card group details . It provides
287
- # flexible search criteria and supports paging.\
288
- # When the card group type is configured as ‘Vertical’ in cards platform,
289
- # this operation will return all card groups from the given account or if no
290
- # account is passed in the input, then will return card groups from all the
291
- # accounts under the payer.
292
- # When the card group type is configured as ‘Horizontal’ in cards platform,
293
- # this API will return all card groups configured directly under the payer.
294
- # Accounts with cancelled status will not be considered for cardgroups
295
- # search for the configured (E.g., SFH) set of client apps.
296
- # @param [String] apikey Required parameter: This is the API key of the
297
- # specific environment which needs to be passed by the client.
263
+ # This API allows querying the card group details from the Shell Cards
264
+ # Platform. It provides flexible search criteria and supports paging.
265
+ # When the account is not passed in the input and card group type is
266
+ # configured as
267
+ # ‘Vertical’ in the cards platform, this API will return all card groups
268
+ # from
269
+ # the payer as well as from all the accounts under the payer.
270
+ # When the account is not passed in the input and card group type is
271
+ # configured as
272
+ # ‘Horizontal’ in cards platform, this API will return all card groups
273
+ # configured directly under the payer.
298
274
  # @param [String] request_id Required parameter: Mandatory UUID (according
299
275
  # to RFC 4122 standards) for requests and responses. This will be played
300
276
  # back in the response from the request.
301
- # @param [CardGroupRequest] body Optional parameter: Request Body
302
- # @return [CardGroupResponse] response from the API call.
303
- def cardgroups(apikey,
304
- request_id,
305
- body: nil)
306
- new_api_call_builder
277
+ # @param [CardGroupReq] body Required parameter: TODO: type description
278
+ # here
279
+ # @return [CardGroupRes] Response from the API call.
280
+ def cardgroups(request_id,
281
+ body)
282
+ @api_call
307
283
  .request(new_request_builder(HttpMethodEnum::POST,
308
- '/fleetmanagement/v1/customer/cardgroups',
284
+ '/customer-management/v1/cardgroups',
309
285
  Server::SHELL)
310
- .header_param(new_parameter(apikey, key: 'apikey'))
311
286
  .header_param(new_parameter(request_id, key: 'RequestId'))
312
287
  .header_param(new_parameter('application/json', key: 'Content-Type'))
313
288
  .body_param(new_parameter(body))
314
289
  .header_param(new_parameter('application/json', key: 'accept'))
315
290
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
316
- .auth(Single.new('BasicAuth')))
291
+ .auth(Single.new('BearerToken')))
317
292
  .response(new_response_handler
318
293
  .deserializer(APIHelper.method(:custom_type_deserializer))
319
- .deserialize_into(CardGroupResponse.method(:from_hash))
294
+ .deserialize_into(CardGroupRes.method(:from_hash))
320
295
  .local_error('400',
321
- "The server cannot or will not process the request due to'\
322
- ' something that is perceived to be a client\r\n error (e.g.,'\
323
- ' malformed request syntax, invalid \r\n request message'\
324
- ' framing, or deceptive request routing).",
325
- APIException)
296
+ "The server cannot or will not process the request due to'\
297
+ ' something that is perceived to be a client error (e.g.,'\
298
+ ' malformed request syntax, invalid request message framing, or'\
299
+ ' deceptive request routing).\n",
300
+ ErrorObjectErrorException)
326
301
  .local_error('401',
327
- 'The request has not been applied because it lacks valid '\
328
- ' authentication credentials for the target resource.',
329
- APIException)
302
+ "The request has not been applied because it lacks valid '\
303
+ ' authentication credentials for the target resource.\n",
304
+ ErrorObjectErrorException)
330
305
  .local_error('403',
331
- 'The server understood the request but refuses to authorize it'\
332
- '.',
333
- APIException)
306
+ 'Forbidden',
307
+ ErrorObjectErrorException)
334
308
  .local_error('404',
335
- 'The origin server did not find a current representation for'\
309
+ "The origin server did not find a current representation for'\
336
310
  ' the target resource or is not willing to disclose that one'\
337
- ' exists.',
338
- APIException)
311
+ ' exists.\n",
312
+ ErrorObjectErrorException)
339
313
  .local_error('500',
340
- 'The server encountered an unexpected condition the prevented'\
341
- ' it from fulfilling the request.',
342
- APIException))
314
+ "The server encountered an unexpected condition that prevented'\
315
+ ' it from fulfilling the request.\n",
316
+ ErrorObjectErrorException))
343
317
  .execute
344
318
  end
345
319
 
@@ -362,53 +336,48 @@ module ShellCardManagementApIs
362
336
  # * Mobile Payment Registration
363
337
  # * Fund Transfer (Scheduled & Realtime)
364
338
  # * Delivery Address Update.
365
- # @param [String] apikey Required parameter: This is the API key of the
366
- # specific environment which needs to be passed by the client.
367
339
  # @param [String] request_id Required parameter: Mandatory UUID (according
368
340
  # to RFC 4122 standards) for requests and responses. This will be played
369
341
  # back in the response from the request.
370
- # @param [AuditRequest] body Optional parameter: request body
371
- # @return [AuditResponse] response from the API call.
372
- def auditreport(apikey,
373
- request_id,
374
- body: nil)
375
- new_api_call_builder
342
+ # @param [AuditReq] body Optional parameter: request body
343
+ # @return [AuditResponse] Response from the API call.
344
+ def audit_report(request_id,
345
+ body: nil)
346
+ @api_call
376
347
  .request(new_request_builder(HttpMethodEnum::POST,
377
- '/fleetmanagement/v1/customer/auditreport',
348
+ '/customer-management/v1/auditreport',
378
349
  Server::SHELL)
379
- .header_param(new_parameter(apikey, key: 'apikey'))
380
350
  .header_param(new_parameter(request_id, key: 'RequestId'))
381
351
  .header_param(new_parameter('application/json', key: 'Content-Type'))
382
352
  .body_param(new_parameter(body))
383
353
  .header_param(new_parameter('application/json', key: 'accept'))
384
354
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
385
- .auth(Single.new('BasicAuth')))
355
+ .auth(Single.new('BearerToken')))
386
356
  .response(new_response_handler
387
357
  .deserializer(APIHelper.method(:custom_type_deserializer))
388
358
  .deserialize_into(AuditResponse.method(:from_hash))
389
359
  .local_error('400',
390
- "The server cannot or will not process the request due to'\
391
- ' something that is perceived to be a client\r\n error (e.g.,'\
392
- ' malformed request syntax, invalid \r\n request message'\
393
- ' framing, or deceptive request routing).",
394
- APIException)
360
+ "The server cannot or will not process the request due to'\
361
+ ' something that is perceived to be a client error (e.g.,'\
362
+ ' malformed request syntax, invalid request message framing, or'\
363
+ ' deceptive request routing).\n",
364
+ ErrorObjectErrorException)
395
365
  .local_error('401',
396
- 'The request has not been applied because it lacks valid '\
397
- ' authentication credentials for the target resource.',
398
- APIException)
366
+ "The request has not been applied because it lacks valid '\
367
+ ' authentication credentials for the target resource.\n",
368
+ ErrorObjectErrorException)
399
369
  .local_error('403',
400
- 'The server understood the request but refuses to authorize it'\
401
- '.',
402
- APIException)
370
+ 'Forbidden',
371
+ ErrorObjectErrorException)
403
372
  .local_error('404',
404
- 'The origin server did not find a current representation for'\
373
+ "The origin server did not find a current representation for'\
405
374
  ' the target resource or is not willing to disclose that one'\
406
- ' exists.',
407
- APIException)
375
+ ' exists.\n",
376
+ ErrorObjectErrorException)
408
377
  .local_error('500',
409
- 'The server encountered an unexpected condition the prevented'\
410
- ' it from fulfilling the request.',
411
- APIException))
378
+ "The server encountered an unexpected condition that prevented'\
379
+ ' it from fulfilling the request.\n",
380
+ ErrorObjectErrorException))
412
381
  .execute
413
382
  end
414
383
 
@@ -416,62 +385,59 @@ module ShellCardManagementApIs
416
385
  # will
417
386
  # also allow moving of cards (up to 500 cards) into the newly created
418
387
  # card-group.
419
- # ### Move Card requests are queued after passing the below validations
420
- # * Given PAN matches with only one card.
421
- # * Card is allowed to be moved to the Target Card Group and/or
422
- # * Target account requested.
423
- # * There is no pending Move Card request for the same card in the queue
424
- # which is submitted on the same date
425
- # and is yet to be processed or has been processed
388
+ # Move Card requests are queued after
389
+ # passing the below validations
390
+ # - Given PAN matches with only one
391
+ # card.
392
+ # - Card is allowed to be moved to the Target Card Group and/or
393
+ # Target account requested.
394
+ # - There is no pending Move Card request for
395
+ # the same card in the queue which is submitted on the same date
396
+ # (customer’s local) and is yet to be processed or has been processed
426
397
  # successfully
427
- # @param [String] apikey Required parameter: This is the API key of the
428
- # specific environment which needs to be passed by the client.
429
398
  # @param [String] request_id Required parameter: Mandatory UUID (according
430
399
  # to RFC 4122 standards) for requests and responses. This will be played
431
400
  # back in the response from the request.
432
- # @param [CreateCardGroupRequest] body Optional parameter: CreateCardGroup
433
- # request body
434
- # @return [CreateCardGroupResponse] response from the API call.
435
- def createcardgroup(apikey,
436
- request_id,
437
- body: nil)
438
- new_api_call_builder
401
+ # @param [CreateCardGroupRequest] body Required parameter: TODO: type
402
+ # description here
403
+ # @return [CreateCardGroupRes] Response from the API call.
404
+ def customercreatecardgroup(request_id,
405
+ body)
406
+ @api_call
439
407
  .request(new_request_builder(HttpMethodEnum::POST,
440
- '/fleetmanagement/v1/customer/createcardgroup',
408
+ '/customer-management/v1/createcardgroup',
441
409
  Server::SHELL)
442
- .header_param(new_parameter(apikey, key: 'apikey'))
443
410
  .header_param(new_parameter(request_id, key: 'RequestId'))
444
411
  .header_param(new_parameter('application/json', key: 'Content-Type'))
445
412
  .body_param(new_parameter(body))
446
413
  .header_param(new_parameter('application/json', key: 'accept'))
447
414
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
448
- .auth(Single.new('BasicAuth')))
415
+ .auth(Single.new('BearerToken')))
449
416
  .response(new_response_handler
450
417
  .deserializer(APIHelper.method(:custom_type_deserializer))
451
- .deserialize_into(CreateCardGroupResponse.method(:from_hash))
418
+ .deserialize_into(CreateCardGroupRes.method(:from_hash))
452
419
  .local_error('400',
453
- "The server cannot or will not process the request due to'\
454
- ' something that is perceived to be a client\r\n error (e.g.,'\
455
- ' malformed request syntax, invalid \r\n request message'\
456
- ' framing, or deceptive request routing).",
457
- APIException)
420
+ "The server cannot or will not process the request due to'\
421
+ ' something that is perceived to be a client error (e.g.,'\
422
+ ' malformed request syntax, invalid request message framing, or'\
423
+ ' deceptive request routing).\n",
424
+ ErrorObjectErrorException)
458
425
  .local_error('401',
459
- 'The request has not been applied because it lacks valid '\
460
- ' authentication credentials for the target resource.',
461
- APIException)
426
+ "The request has not been applied because it lacks valid '\
427
+ ' authentication credentials for the target resource.\n",
428
+ ErrorObjectErrorException)
462
429
  .local_error('403',
463
- 'The server understood the request but refuses to authorize it'\
464
- '.',
465
- APIException)
430
+ 'Forbidden',
431
+ ErrorObjectErrorException)
466
432
  .local_error('404',
467
- 'The origin server did not find a current representation for'\
433
+ "The origin server did not find a current representation for'\
468
434
  ' the target resource or is not willing to disclose that one'\
469
- ' exists.',
470
- APIException)
435
+ ' exists.\n",
436
+ ErrorObjectErrorException)
471
437
  .local_error('500',
472
- 'The server encountered an unexpected condition the prevented'\
473
- ' it from fulfilling the request.',
474
- APIException))
438
+ "The server encountered an unexpected condition that prevented'\
439
+ ' it from fulfilling the request.\n",
440
+ ErrorObjectErrorException))
475
441
  .execute
476
442
  end
477
443
 
@@ -481,56 +447,51 @@ module ShellCardManagementApIs
481
447
  # to another existing card group.
482
448
  # The request for updating or removing of the card group, creationg of a new
483
449
  # card group (where-applicable) and moving of card into another card group
484
- # will be queued at Microservices after passing the basic
450
+ # will be queued after passing the basic
485
451
  # validations.
486
- # @param [String] apikey Required parameter: This is the API key of the
487
- # specific environment which needs to be passed by the client.
488
452
  # @param [String] request_id Required parameter: Mandatory UUID (according
489
453
  # to RFC 4122 standards) for requests and responses. This will be played
490
454
  # back in the response from the request.
491
- # @param [UpdateCardGroupRequest] body Optional parameter: request body of
492
- # customer card group
493
- # @return [UpdateCardGroupResponse] response from the API call.
494
- def updatecardgroup(apikey,
495
- request_id,
496
- body: nil)
497
- new_api_call_builder
455
+ # @param [UpdateCardGroupRequest] body Required parameter: TODO: type
456
+ # description here
457
+ # @return [UpdateCardGroupRes] Response from the API call.
458
+ def customerupdatecardgroup(request_id,
459
+ body)
460
+ @api_call
498
461
  .request(new_request_builder(HttpMethodEnum::POST,
499
- '/fleetmanagement/v1/customer/updatecardgroup',
462
+ '/customer-management/v1/updatecardgroup',
500
463
  Server::SHELL)
501
- .header_param(new_parameter(apikey, key: 'apikey'))
502
464
  .header_param(new_parameter(request_id, key: 'RequestId'))
503
465
  .header_param(new_parameter('application/json', key: 'Content-Type'))
504
466
  .body_param(new_parameter(body))
505
467
  .header_param(new_parameter('application/json', key: 'accept'))
506
468
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
507
- .auth(Single.new('BasicAuth')))
469
+ .auth(Single.new('BearerToken')))
508
470
  .response(new_response_handler
509
471
  .deserializer(APIHelper.method(:custom_type_deserializer))
510
- .deserialize_into(UpdateCardGroupResponse.method(:from_hash))
472
+ .deserialize_into(UpdateCardGroupRes.method(:from_hash))
511
473
  .local_error('400',
512
- "The server cannot or will not process the request due to'\
513
- ' something that is perceived to be a client\r\n error (e.g.,'\
514
- ' malformed request syntax, invalid \r\n request message'\
515
- ' framing, or deceptive request routing).",
516
- APIException)
474
+ "The server cannot or will not process the request due to'\
475
+ ' something that is perceived to be a client error (e.g.,'\
476
+ ' malformed request syntax, invalid request message framing, or'\
477
+ ' deceptive request routing).\n",
478
+ ErrorObjectErrorException)
517
479
  .local_error('401',
518
- 'The request has not been applied because it lacks valid '\
519
- ' authentication credentials for the target resource.',
520
- APIException)
480
+ "The request has not been applied because it lacks valid '\
481
+ ' authentication credentials for the target resource.\n",
482
+ ErrorObjectErrorException)
521
483
  .local_error('403',
522
- 'The server understood the request but refuses to authorize it'\
523
- '.',
524
- APIException)
484
+ 'Forbidden',
485
+ ErrorObjectErrorException)
525
486
  .local_error('404',
526
- 'The origin server did not find a current representation for'\
487
+ "The origin server did not find a current representation for'\
527
488
  ' the target resource or is not willing to disclose that one'\
528
- ' exists.',
529
- APIException)
489
+ ' exists.\n",
490
+ ErrorObjectErrorException)
530
491
  .local_error('500',
531
- 'The server encountered an unexpected condition the prevented'\
532
- ' it from fulfilling the request.',
533
- APIException))
492
+ "The server encountered an unexpected condition that prevented'\
493
+ ' it from fulfilling the request.\n",
494
+ ErrorObjectErrorException))
534
495
  .execute
535
496
  end
536
497
  end