card-management-sdk 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -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/card_controller.rb +227 -232
  6. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
  7. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
  8. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
  9. data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
  10. data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
  11. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
  12. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
  19. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
  20. data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
  21. data/lib/shell_card_management_ap_is/models/account_request.rb +6 -15
  22. data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
  23. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +21 -45
  24. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
  25. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
  26. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
  27. data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
  28. data/lib/shell_card_management_ap_is/models/address.rb +4 -11
  29. data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -21
  30. data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
  31. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +9 -22
  32. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
  33. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +2 -5
  34. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +1 -2
  36. data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
  37. data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
  38. data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
  39. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
  40. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +73 -103
  41. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -0
  42. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
  43. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +88 -0
  44. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
  45. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
  46. data/lib/shell_card_management_ap_is/models/card.rb +23 -50
  47. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
  48. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
  49. data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
  50. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
  51. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
  52. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
  53. data/lib/shell_card_management_ap_is/models/card_detail.rb +36 -49
  54. data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
  55. data/lib/shell_card_management_ap_is/models/card_details_response.rb +60 -249
  56. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
  57. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
  58. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
  59. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
  60. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
  61. data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -9
  62. data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
  63. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  64. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
  65. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
  66. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
  67. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
  68. data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
  69. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
  70. data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
  71. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
  72. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
  73. data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
  74. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
  75. data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
  76. data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
  77. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
  78. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
  79. data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
  80. data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
  81. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  82. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
  83. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
  84. data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
  85. data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
  86. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +65 -62
  87. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
  88. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
  89. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
  90. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
  91. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
  92. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
  93. data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
  94. data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
  95. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
  96. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +13 -27
  97. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
  98. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
  99. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
  100. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
  101. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
  102. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
  103. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
  104. data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
  105. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
  106. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
  107. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
  108. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → detail.rb} +11 -11
  109. data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
  110. data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
  111. data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
  112. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
  113. data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
  114. data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
  115. data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
  116. data/lib/shell_card_management_ap_is/models/filters2.rb +194 -0
  117. data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
  118. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
  119. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  120. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
  121. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
  122. data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
  123. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
  124. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +9 -22
  125. data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
  126. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
  127. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +22 -40
  128. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
  129. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
  130. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
  131. data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
  132. data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
  133. data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
  134. data/lib/shell_card_management_ap_is/models/payer_details.rb +45 -86
  135. data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
  136. data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
  137. data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
  138. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +1 -2
  139. data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
  140. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
  141. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
  142. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
  143. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
  144. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +12 -10
  145. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
  146. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
  147. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
  148. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
  149. data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
  150. data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
  151. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
  152. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +2 -7
  153. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
  154. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
  155. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +15 -30
  156. data/lib/shell_card_management_ap_is/models/restriction.rb +88 -0
  157. data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
  158. data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +66 -83
  159. data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
  160. data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
  161. data/lib/shell_card_management_ap_is/models/role.rb +3 -6
  162. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +5 -14
  163. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
  164. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
  165. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
  166. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
  167. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
  168. data/lib/shell_card_management_ap_is/models/search_card.rb +1 -2
  169. data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
  170. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
  171. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
  172. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
  173. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
  174. data/lib/shell_card_management_ap_is/models/search_request.rb +19 -41
  175. data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
  176. data/lib/shell_card_management_ap_is/models/submitted_card.rb +4 -10
  177. data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
  178. data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
  179. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
  180. data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
  181. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +58 -63
  182. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
  183. data/lib/shell_card_management_ap_is/models/update_card.rb +21 -20
  184. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
  185. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
  186. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
  187. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +3 -9
  188. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
  189. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
  190. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
  191. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
  192. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +2 -4
  193. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
  194. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
  195. data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
  196. data/lib/shell_card_management_ap_is.rb +128 -101
  197. metadata +60 -33
  198. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
  199. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
  200. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +0 -162
  201. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
  202. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
  203. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
  204. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
  205. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
  206. data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -4,8 +4,8 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # ErrorUserAccess_Error1 class.
8
- class ErrorUserAccessError1Exception < APIException
7
+ # Fleetmanagement V1 Customer Customer 403 Error class.
8
+ class FleetmanagementV1CustomerCustomer403ErrorException < APIException
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
@@ -4,13 +4,13 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # Error response
8
- class DefaultErrorException < APIException
7
+ # Fleetmanagement V1 Customer Payers 400 Error class.
8
+ class FleetmanagementV1CustomerPayers400ErrorException < APIException
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Error object
13
- # @return [DefaultErrorFault]
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
14
  attr_accessor :fault
15
15
 
16
16
  # The constructor.
@@ -26,7 +26,7 @@ module ShellCardManagementApIs
26
26
  # @param [Hash] The deserialized response sent by the server in the
27
27
  # response body.
28
28
  def unbox(hash)
29
- @fault = DefaultErrorFault.from_hash(hash['fault']) if hash['fault']
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
30
  end
31
31
  end
32
32
  end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 Customer Payers 404 Error class.
8
+ class FleetmanagementV1CustomerPayers404ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 User Loggedinuser 400 Error class.
8
+ class FleetmanagementV1UserLoggedinuser400ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 User Loggedinuser 401 Error class.
8
+ class FleetmanagementV1UserLoggedinuser401ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 User Loggedinuser 403 Error class.
8
+ class FleetmanagementV1UserLoggedinuser403ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [ErrorUserAccessError]
14
+ attr_accessor :error
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @error = ErrorUserAccessError.from_hash(hash['Error']) if hash['Error']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 User Loggedinuser 404 Error class.
8
+ class FleetmanagementV1UserLoggedinuser404ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V1 User Loggedinuser 500 Error class.
8
+ class FleetmanagementV1UserLoggedinuser500ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V2 Restriction Searchcard 401 Error class.
8
+ class FleetmanagementV2RestrictionSearchcard401ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,32 @@
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
+ # Fleetmanagement V2 Restriction Searchcard 500 Error class.
8
+ class FleetmanagementV2RestrictionSearchcard500ErrorException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
+
16
+ # The constructor.
17
+ # @param [String] The reason for raising an exception.
18
+ # @param [HttpResponse] The HttpReponse of the API call.
19
+ def initialize(reason, response)
20
+ super(reason, response)
21
+ hash = APIHelper.json_deserialize(@response.raw_body)
22
+ unbox(hash)
23
+ end
24
+
25
+ # Populates this object by extracting properties from a hash.
26
+ # @param [Hash] The deserialized response sent by the server in the
27
+ # response body.
28
+ def unbox(hash)
29
+ @fault = Fault.from_hash(hash['fault']) if hash['fault']
30
+ end
31
+ end
32
+ end
@@ -15,23 +15,27 @@ module ShellCardManagementApIs
15
15
 
16
16
  # Initialization constructor.
17
17
  def initialize(bearer_token_credentials, config)
18
- auth_params = {}
19
18
  @_o_auth_client_id = bearer_token_credentials.o_auth_client_id unless
20
19
  bearer_token_credentials.nil? || bearer_token_credentials.o_auth_client_id.nil?
21
20
  @_o_auth_client_secret = bearer_token_credentials.o_auth_client_secret unless
22
21
  bearer_token_credentials.nil? || bearer_token_credentials.o_auth_client_secret.nil?
23
22
  @_o_auth_token = bearer_token_credentials.o_auth_token unless
24
23
  bearer_token_credentials.nil? || bearer_token_credentials.o_auth_token.nil?
24
+ @_o_auth_clock_skew = bearer_token_credentials.o_auth_clock_skew unless
25
+ bearer_token_credentials.nil? || bearer_token_credentials.o_auth_clock_skew.nil?
26
+ @_o_auth_token_provider = bearer_token_credentials.o_auth_token_provider unless
27
+ bearer_token_credentials.nil? || bearer_token_credentials.o_auth_token_provider.nil?
28
+ @_o_auth_on_token_update = bearer_token_credentials.o_auth_on_token_update unless
29
+ bearer_token_credentials.nil? || bearer_token_credentials.o_auth_on_token_update.nil?
25
30
  @_o_auth_api = OAuthAuthorizationController.new(config)
26
- auth_params['Authorization'] = "Bearer #{@_o_auth_token.access_token}" unless @_o_auth_token.nil?
27
-
28
- super auth_params
31
+ super({})
29
32
  end
30
33
 
31
34
  # Validates the oAuth token.
32
35
  # @return [Boolean] true if the token is present and not expired.
33
36
  def valid
34
- !@_o_auth_token.nil? && !token_expired?(@_o_auth_token)
37
+ @_o_auth_token = get_token_from_provider
38
+ @_o_auth_token.is_a?(OAuthToken) && !token_expired?(@_o_auth_token)
35
39
  end
36
40
 
37
41
  # Builds the basic auth header for endpoints in the OAuth Authorization Controller.
@@ -58,32 +62,72 @@ module ShellCardManagementApIs
58
62
  # @param [OAuthToken] token The oAuth token instance.
59
63
  # @return [Boolean] true if the token's expiry exist and also the token is expired, false otherwise.
60
64
  def token_expired?(token)
61
- token.respond_to?('expiry') && AuthHelper.token_expired?(token.expiry)
65
+ token.respond_to?('expiry') && AuthHelper.token_expired?(token.expiry, @_o_auth_clock_skew)
66
+ end
67
+
68
+ def apply(http_request)
69
+ auth_params = { 'Authorization' => "Bearer #{@_o_auth_token.access_token}" }
70
+ AuthHelper.apply(auth_params, http_request.method(:add_header))
71
+ end
72
+
73
+ private
74
+
75
+ # This provides the OAuth Token from either the user configured callbacks or from default provider.
76
+ # @return [OAuthToken] The fetched oauth token.
77
+ def get_token_from_provider
78
+ return @_o_auth_token if @_o_auth_token && !token_expired?(@_o_auth_token)
79
+
80
+ if @_o_auth_token_provider
81
+ o_auth_token = @_o_auth_token_provider.call(@_o_auth_token, self)
82
+ @_o_auth_on_token_update&.call(o_auth_token)
83
+ return o_auth_token
84
+ end
85
+ begin
86
+ o_auth_token = fetch_token
87
+ @_o_auth_on_token_update&.call(o_auth_token)
88
+ o_auth_token
89
+ rescue ApiException
90
+ @_o_auth_token
91
+ end
62
92
  end
63
93
  end
64
94
 
65
95
  # Data class for BearerTokenCredentials.
66
96
  class BearerTokenCredentials
67
- attr_reader :o_auth_client_id, :o_auth_client_secret, :o_auth_token
97
+ attr_reader :o_auth_client_id, :o_auth_client_secret, :o_auth_token,
98
+ :o_auth_token_provider, :o_auth_on_token_update,
99
+ :o_auth_clock_skew
68
100
 
69
- def initialize(o_auth_client_id:, o_auth_client_secret:, o_auth_token: nil)
101
+ def initialize(o_auth_client_id:, o_auth_client_secret:, o_auth_token: nil,
102
+ o_auth_token_provider: nil, o_auth_on_token_update: nil,
103
+ o_auth_clock_skew: nil)
70
104
  raise ArgumentError, 'o_auth_client_id cannot be nil' if o_auth_client_id.nil?
71
105
  raise ArgumentError, 'o_auth_client_secret cannot be nil' if o_auth_client_secret.nil?
72
106
 
73
107
  @o_auth_client_id = o_auth_client_id
74
108
  @o_auth_client_secret = o_auth_client_secret
75
109
  @o_auth_token = o_auth_token
110
+ @o_auth_token_provider = o_auth_token_provider
111
+ @o_auth_on_token_update = o_auth_on_token_update
112
+ @o_auth_clock_skew = o_auth_clock_skew
76
113
  end
77
114
 
78
115
  def clone_with(o_auth_client_id: nil, o_auth_client_secret: nil,
79
- o_auth_token: nil)
116
+ o_auth_token: nil, o_auth_token_provider: nil,
117
+ o_auth_on_token_update: nil, o_auth_clock_skew: nil)
80
118
  o_auth_client_id ||= self.o_auth_client_id
81
119
  o_auth_client_secret ||= self.o_auth_client_secret
82
120
  o_auth_token ||= self.o_auth_token
121
+ o_auth_token_provider ||= self.o_auth_token_provider
122
+ o_auth_on_token_update ||= self.o_auth_on_token_update
123
+ o_auth_clock_skew ||= self.o_auth_clock_skew
83
124
 
84
125
  BearerTokenCredentials.new(o_auth_client_id: o_auth_client_id,
85
126
  o_auth_client_secret: o_auth_client_secret,
86
- o_auth_token: o_auth_token)
127
+ o_auth_token: o_auth_token,
128
+ o_auth_token_provider: o_auth_token_provider,
129
+ o_auth_on_token_update: o_auth_on_token_update,
130
+ o_auth_clock_skew: o_auth_clock_skew)
87
131
  end
88
132
  end
89
133
  end
@@ -82,14 +82,9 @@ module ShellCardManagementApIs
82
82
  ]
83
83
  end
84
84
 
85
- def initialize(colco_id = SKIP,
86
- colco_code = SKIP,
87
- payer_id = SKIP,
88
- payer_number = SKIP,
89
- payer_name = SKIP,
90
- account_id = SKIP,
91
- account_number = SKIP,
92
- account_name = SKIP)
85
+ def initialize(colco_id = SKIP, colco_code = SKIP, payer_id = SKIP,
86
+ payer_number = SKIP, payer_name = SKIP, account_id = SKIP,
87
+ account_number = SKIP, account_name = SKIP)
93
88
  @colco_id = colco_id unless colco_id == SKIP
94
89
  @colco_code = colco_code unless colco_code == SKIP
95
90
  @payer_id = payer_id unless payer_id == SKIP
@@ -167,21 +167,12 @@ module ShellCardManagementApIs
167
167
  ]
168
168
  end
169
169
 
170
- def initialize(status = SKIP,
171
- include_card_summary = true,
172
- payer_id = SKIP,
173
- payer_number = SKIP,
174
- page_size = SKIP,
175
- request_id = SKIP,
176
- col_co_code = SKIP,
177
- col_co_country_code = SKIP,
178
- current_page = SKIP,
179
- invoice_points_only = false,
180
- col_co_id = SKIP,
181
- return_tolls_customer_id = SKIP,
182
- accounts = SKIP,
183
- account_name = SKIP,
184
- status_list = SKIP)
170
+ def initialize(status = SKIP, include_card_summary = true, payer_id = SKIP,
171
+ payer_number = SKIP, page_size = SKIP, request_id = SKIP,
172
+ col_co_code = SKIP, col_co_country_code = SKIP,
173
+ current_page = SKIP, invoice_points_only = false,
174
+ col_co_id = SKIP, return_tolls_customer_id = SKIP,
175
+ accounts = SKIP, account_name = SKIP, status_list = SKIP)
185
176
  @status = status unless status == SKIP
186
177
  @include_card_summary = include_card_summary unless include_card_summary == SKIP
187
178
  @payer_id = payer_id unless payer_id == SKIP
@@ -64,12 +64,8 @@ module ShellCardManagementApIs
64
64
  []
65
65
  end
66
66
 
67
- def initialize(accounts = SKIP,
68
- current_page = SKIP,
69
- row_count = SKIP,
70
- total_pages = SKIP,
71
- error = SKIP,
72
- request_id = SKIP)
67
+ def initialize(accounts = SKIP, current_page = SKIP, row_count = SKIP,
68
+ total_pages = SKIP, error = SKIP, request_id = SKIP)
73
69
  @accounts = accounts unless accounts == SKIP
74
70
  @current_page = current_page unless current_page == SKIP
75
71
  @row_count = row_count unless row_count == SKIP
@@ -435,60 +435,36 @@ module ShellCardManagementApIs
435
435
  ]
436
436
  end
437
437
 
438
- def initialize(account_full_name = SKIP,
439
- account_id = SKIP,
440
- account_number = SKIP,
441
- account_short_name = SKIP,
442
- best_of_indicator = SKIP,
443
- billing_frequency_type = SKIP,
438
+ def initialize(account_full_name = SKIP, account_id = SKIP,
439
+ account_number = SKIP, account_short_name = SKIP,
440
+ best_of_indicator = SKIP, billing_frequency_type = SKIP,
444
441
  billing_frequency_type_id = SKIP,
445
442
  billing_run_frequency = SKIP,
446
443
  billing_run_frequency_type_id = SKIP,
447
- col_co_country_code = SKIP,
448
- currency_code = SKIP,
449
- currency_symbol = SKIP,
450
- day1_run = SKIP,
451
- day2_run = SKIP,
452
- day3_run = SKIP,
453
- day4_run = SKIP,
454
- frequency_type = SKIP,
455
- gross_amount = SKIP,
456
- international_pos_language_code = SKIP,
444
+ col_co_country_code = SKIP, currency_code = SKIP,
445
+ currency_symbol = SKIP, day1_run = SKIP, day2_run = SKIP,
446
+ day3_run = SKIP, day4_run = SKIP, frequency_type = SKIP,
447
+ gross_amount = SKIP, international_pos_language_code = SKIP,
457
448
  international_pos_language_id = SKIP,
458
- invoice_account_id = SKIP,
459
- invoice_account_number = SKIP,
449
+ invoice_account_id = SKIP, invoice_account_number = SKIP,
460
450
  invoice_account_short_name = SKIP,
461
- invoice_distribution_methods = SKIP,
462
- is_international = SKIP,
463
- is_invoice_point = SKIP,
464
- last_modified_date = SKIP,
465
- local_currency_code = SKIP,
466
- local_currency_symbol = SKIP,
467
- local_pos_language_code = SKIP,
468
- local_pos_language_id = SKIP,
469
- net_amount = SKIP,
470
- outstanding_balance = SKIP,
471
- paid_amount = SKIP,
472
- status = SKIP,
473
- status_reason = SKIP,
474
- total_active_card_groups = SKIP,
475
- total_active_cards = SKIP,
476
- total_blocked_cards = SKIP,
477
- total_cancelled_cards = SKIP,
478
- total_cards = SKIP,
479
- total_expired_cards = SKIP,
480
- total_fraud_cards = SKIP,
481
- total_new_cards = SKIP,
451
+ invoice_distribution_methods = SKIP, is_international = SKIP,
452
+ is_invoice_point = SKIP, last_modified_date = SKIP,
453
+ local_currency_code = SKIP, local_currency_symbol = SKIP,
454
+ local_pos_language_code = SKIP, local_pos_language_id = SKIP,
455
+ net_amount = SKIP, outstanding_balance = SKIP,
456
+ paid_amount = SKIP, status = SKIP, status_reason = SKIP,
457
+ total_active_card_groups = SKIP, total_active_cards = SKIP,
458
+ total_blocked_cards = SKIP, total_cancelled_cards = SKIP,
459
+ total_cards = SKIP, total_expired_cards = SKIP,
460
+ total_fraud_cards = SKIP, total_new_cards = SKIP,
482
461
  total_renewal_pending_cards = SKIP,
483
462
  total_replaced_cards = SKIP,
484
463
  total_temporary_block_cards_by_customer = SKIP,
485
464
  total_temporary_block_cards_by_shell = SKIP,
486
- vat_amount = SKIP,
487
- is_partner_card = SKIP,
488
- tolls_customer_id = SKIP,
489
- tolls_colco_country_type_id = SKIP,
490
- contracts = SKIP,
491
- is_consortium_member = SKIP)
465
+ vat_amount = SKIP, is_partner_card = SKIP,
466
+ tolls_customer_id = SKIP, tolls_colco_country_type_id = SKIP,
467
+ contracts = SKIP, is_consortium_member = SKIP)
492
468
  @account_full_name = account_full_name unless account_full_name == SKIP
493
469
  @account_id = account_id unless account_id == SKIP
494
470
  @account_number = account_number unless account_number == SKIP
@@ -38,21 +38,30 @@ module ShellCardManagementApIs
38
38
  # @return [String]
39
39
  attr_accessor :payer_number
40
40
 
41
+ # Account ID of the customer on which the restrictions will be applied.
42
+ # Optional if AccountNumber is passed, else Mandatory.
43
+ # Example: 123456
44
+ # @return [Integer]
45
+ attr_accessor :account_id
46
+
41
47
  # Account Number of the customer on which the restrictions will be applied.
42
48
  # Optional if AccountId is passed, else Mandatory.
49
+ # Example: GB000000123
43
50
  # @return [String]
44
51
  attr_accessor :account_number
45
52
 
53
+ # True/False.
46
54
  # If true, the usage restrictions applied on the account will be removed.
47
55
  # Optional
48
56
  # Default: False
49
57
  # @return [TrueClass | FalseClass]
50
58
  attr_accessor :reset_usage_restrictions
51
59
 
60
+ # True/False.
52
61
  # If true, the usage restrictions applied on the account will be removed.
53
62
  # Optional
54
63
  # Default: False
55
- # @return [UsageRestrictions]
64
+ # @return [UsageRestrictionsCard]
56
65
  attr_accessor :usage_restrictions
57
66
 
58
67
  # A mapping from model property names to API property names.
@@ -62,6 +71,7 @@ module ShellCardManagementApIs
62
71
  @_hash['col_co_code'] = 'ColCoCode'
63
72
  @_hash['payer_id'] = 'PayerId'
64
73
  @_hash['payer_number'] = 'PayerNumber'
74
+ @_hash['account_id'] = 'AccountId'
65
75
  @_hash['account_number'] = 'AccountNumber'
66
76
  @_hash['reset_usage_restrictions'] = 'ResetUsageRestrictions'
67
77
  @_hash['usage_restrictions'] = 'UsageRestrictions'
@@ -75,6 +85,7 @@ module ShellCardManagementApIs
75
85
  col_co_code
76
86
  payer_id
77
87
  payer_number
88
+ account_id
78
89
  account_number
79
90
  reset_usage_restrictions
80
91
  usage_restrictions
@@ -84,21 +95,26 @@ module ShellCardManagementApIs
84
95
  # An array for nullable fields
85
96
  def self.nullables
86
97
  %w[
98
+ col_co_id
99
+ col_co_code
87
100
  payer_id
101
+ payer_number
102
+ account_id
103
+ account_number
104
+ reset_usage_restrictions
105
+ usage_restrictions
88
106
  ]
89
107
  end
90
108
 
91
- def initialize(col_co_id = SKIP,
92
- col_co_code = SKIP,
93
- payer_id = SKIP,
94
- payer_number = SKIP,
95
- account_number = SKIP,
96
- reset_usage_restrictions = false,
109
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
110
+ payer_number = SKIP, account_id = SKIP,
111
+ account_number = SKIP, reset_usage_restrictions = SKIP,
97
112
  usage_restrictions = SKIP)
98
113
  @col_co_id = col_co_id unless col_co_id == SKIP
99
114
  @col_co_code = col_co_code unless col_co_code == SKIP
100
115
  @payer_id = payer_id unless payer_id == SKIP
101
116
  @payer_number = payer_number unless payer_number == SKIP
117
+ @account_id = account_id unless account_id == SKIP
102
118
  @account_number = account_number unless account_number == SKIP
103
119
  @reset_usage_restrictions = reset_usage_restrictions unless reset_usage_restrictions == SKIP
104
120
  @usage_restrictions = usage_restrictions unless usage_restrictions == SKIP
@@ -113,9 +129,11 @@ module ShellCardManagementApIs
113
129
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
114
130
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
115
131
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
132
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
116
133
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
117
- reset_usage_restrictions = hash['ResetUsageRestrictions'] ||= false
118
- usage_restrictions = UsageRestrictions.from_hash(hash['UsageRestrictions']) if
134
+ reset_usage_restrictions =
135
+ hash.key?('ResetUsageRestrictions') ? hash['ResetUsageRestrictions'] : SKIP
136
+ usage_restrictions = UsageRestrictionsCard.from_hash(hash['UsageRestrictions']) if
119
137
  hash['UsageRestrictions']
120
138
 
121
139
  # Create object from extracted values.
@@ -123,6 +141,7 @@ module ShellCardManagementApIs
123
141
  col_co_code,
124
142
  payer_id,
125
143
  payer_number,
144
+ account_id,
126
145
  account_number,
127
146
  reset_usage_restrictions,
128
147
  usage_restrictions)