card-management-sdk 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -19
  3. data/lib/shell_card_management_ap_is/client.rb +2 -3
  4. data/lib/shell_card_management_ap_is/configuration.rb +15 -22
  5. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +9 -9
  6. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +434 -434
  7. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +261 -262
  8. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +11 -11
  9. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +421 -291
  10. data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +15 -15
  11. data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +17 -17
  12. data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +20 -20
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
  19. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
  20. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
  21. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +15 -15
  22. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
  23. data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
  24. data/lib/shell_card_management_ap_is/models/account_request.rb +17 -26
  25. data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
  26. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +29 -53
  27. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -10
  28. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
  29. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
  30. data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
  31. data/lib/shell_card_management_ap_is/models/address.rb +4 -11
  32. data/lib/shell_card_management_ap_is/models/audit_request.rb +37 -33
  33. data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
  34. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +50 -63
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
  36. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +13 -5
  37. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
  38. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +13 -3
  39. data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
  40. data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
  41. data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
  42. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
  43. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +86 -103
  44. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +185 -0
  45. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
  46. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +82 -0
  47. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
  48. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
  49. data/lib/shell_card_management_ap_is/models/card.rb +43 -51
  50. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
  51. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
  52. data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
  53. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
  54. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
  55. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
  56. data/lib/shell_card_management_ap_is/models/card_detail.rb +50 -61
  57. data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
  58. data/lib/shell_card_management_ap_is/models/card_details_response.rb +52 -89
  59. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
  60. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
  61. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
  62. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
  63. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
  64. data/lib/shell_card_management_ap_is/models/card_group_request.rb +6 -12
  65. data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
  66. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  67. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
  68. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
  69. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
  70. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
  71. data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
  72. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
  73. data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
  74. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
  75. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
  76. data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
  77. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
  78. data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
  79. data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
  80. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
  81. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
  82. data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
  83. data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
  84. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  85. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
  86. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
  87. data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
  88. data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
  89. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +64 -62
  90. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
  91. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
  92. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
  93. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
  94. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
  95. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
  96. data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
  97. data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
  98. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
  99. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +31 -45
  100. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
  101. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +52 -82
  102. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
  103. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
  104. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
  105. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
  106. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
  107. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
  108. data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
  109. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
  110. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
  111. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
  112. data/lib/shell_card_management_ap_is/models/detail.rb +50 -0
  113. data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
  114. data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
  115. data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
  116. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
  117. data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
  118. data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
  119. data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
  120. data/lib/shell_card_management_ap_is/models/filters2.rb +200 -0
  121. data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
  122. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
  123. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → fleetmanagement_v1_customer_payers400_error1.rb} +10 -10
  124. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_customer_payers404_error1.rb +50 -0
  125. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser400_error1.rb +50 -0
  126. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser401_error1.rb +50 -0
  127. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser404_error1.rb +50 -0
  128. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser500_error1.rb +50 -0
  129. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  130. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard401_error1.rb +50 -0
  131. data/lib/shell_card_management_ap_is/models/fleetmanagement_v2_restriction_searchcard500_error1.rb +50 -0
  132. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
  133. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
  134. data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
  135. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
  136. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +12 -25
  137. data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
  138. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
  139. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +48 -45
  140. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +5 -12
  141. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
  142. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
  143. data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
  144. data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
  145. data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
  146. data/lib/shell_card_management_ap_is/models/payer_details.rb +55 -96
  147. data/lib/shell_card_management_ap_is/models/payer_request.rb +9 -12
  148. data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
  149. data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
  150. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +5 -6
  151. data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
  152. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
  153. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
  154. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
  155. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
  156. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +19 -17
  157. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
  158. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
  159. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
  160. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
  161. data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
  162. data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
  163. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
  164. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +10 -15
  165. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
  166. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
  167. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +25 -40
  168. data/lib/shell_card_management_ap_is/models/restriction.rb +82 -0
  169. data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
  170. data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +69 -82
  171. data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
  172. data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
  173. data/lib/shell_card_management_ap_is/models/role.rb +3 -6
  174. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +42 -39
  175. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
  176. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
  177. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
  178. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
  179. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
  180. data/lib/shell_card_management_ap_is/models/search_card.rb +13 -3
  181. data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
  182. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
  183. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
  184. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
  185. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
  186. data/lib/shell_card_management_ap_is/models/search_request.rb +25 -47
  187. data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
  188. data/lib/shell_card_management_ap_is/models/submitted_card.rb +24 -9
  189. data/lib/shell_card_management_ap_is/models/summary_request.rb +21 -39
  190. data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
  191. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
  192. data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
  193. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +65 -70
  194. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
  195. data/lib/shell_card_management_ap_is/models/update_card.rb +31 -20
  196. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +9 -17
  197. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
  198. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
  199. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +5 -11
  200. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
  201. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
  202. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
  203. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
  204. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +3 -5
  205. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
  206. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
  207. data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
  208. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +9 -9
  209. data/lib/shell_card_management_ap_is.rb +139 -95
  210. metadata +74 -38
  211. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
  212. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
  213. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
  214. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
  215. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
  216. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
  217. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
  218. data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -9,24 +9,44 @@ module ShellCardManagementApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # API Request Id
12
+ # Request Id of the API call
13
13
  # @return [String]
14
14
  attr_accessor :request_id
15
15
 
16
- # API Response Status
17
- # @return [String]
18
- attr_accessor :status
16
+ # Request Id of the API call
17
+ # @return [ErrorStatus]
18
+ attr_accessor :request_action_status
19
+
20
+ # Request Id of the API call
21
+ # @return [ErrorStatus]
22
+ attr_accessor :day_time_restriction_status
23
+
24
+ # Request Id of the API call
25
+ # @return [ErrorStatus]
26
+ attr_accessor :location_restriction_status
27
+
28
+ # Request Id of the API call
29
+ # @return [ErrorStatus]
30
+ attr_accessor :product_restriction_status
19
31
 
20
- # API Response Status
21
- # @return [ErrorDetails]
22
- attr_accessor :errors
32
+ # Request Id of the API call
33
+ # @return [ErrorStatus]
34
+ attr_accessor :usage_restriction_status
35
+
36
+ # Request Id of the API call
37
+ # @return [ErrorStatus]
38
+ attr_accessor :error
23
39
 
24
40
  # A mapping from model property names to API property names.
25
41
  def self.names
26
42
  @_hash = {} if @_hash.nil?
27
43
  @_hash['request_id'] = 'RequestId'
28
- @_hash['status'] = 'Status'
29
- @_hash['errors'] = 'Errors'
44
+ @_hash['request_action_status'] = 'RequestActionStatus'
45
+ @_hash['day_time_restriction_status'] = 'DayTimeRestrictionStatus'
46
+ @_hash['location_restriction_status'] = 'LocationRestrictionStatus'
47
+ @_hash['product_restriction_status'] = 'ProductRestrictionStatus'
48
+ @_hash['usage_restriction_status'] = 'UsageRestrictionStatus'
49
+ @_hash['error'] = 'Error'
30
50
  @_hash
31
51
  end
32
52
 
@@ -34,22 +54,43 @@ module ShellCardManagementApIs
34
54
  def self.optionals
35
55
  %w[
36
56
  request_id
37
- status
38
- errors
57
+ request_action_status
58
+ day_time_restriction_status
59
+ location_restriction_status
60
+ product_restriction_status
61
+ usage_restriction_status
62
+ error
39
63
  ]
40
64
  end
41
65
 
42
66
  # An array for nullable fields
43
67
  def self.nullables
44
- []
68
+ %w[
69
+ request_id
70
+ ]
45
71
  end
46
72
 
47
- def initialize(request_id = SKIP,
48
- status = SKIP,
49
- errors = SKIP)
73
+ def initialize(request_id = SKIP, request_action_status = SKIP,
74
+ day_time_restriction_status = SKIP,
75
+ location_restriction_status = SKIP,
76
+ product_restriction_status = SKIP,
77
+ usage_restriction_status = SKIP, error = SKIP)
50
78
  @request_id = request_id unless request_id == SKIP
51
- @status = status unless status == SKIP
52
- @errors = errors unless errors == SKIP
79
+ @request_action_status = request_action_status unless request_action_status == SKIP
80
+ unless day_time_restriction_status == SKIP
81
+ @day_time_restriction_status =
82
+ day_time_restriction_status
83
+ end
84
+ unless location_restriction_status == SKIP
85
+ @location_restriction_status =
86
+ location_restriction_status
87
+ end
88
+ unless product_restriction_status == SKIP
89
+ @product_restriction_status =
90
+ product_restriction_status
91
+ end
92
+ @usage_restriction_status = usage_restriction_status unless usage_restriction_status == SKIP
93
+ @error = error unless error == SKIP
53
94
  end
54
95
 
55
96
  # Creates an instance of the object from a hash.
@@ -58,13 +99,26 @@ module ShellCardManagementApIs
58
99
 
59
100
  # Extract variables from the hash.
60
101
  request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
61
- status = hash.key?('Status') ? hash['Status'] : SKIP
62
- errors = ErrorDetails.from_hash(hash['Errors']) if hash['Errors']
102
+ request_action_status = ErrorStatus.from_hash(hash['RequestActionStatus']) if
103
+ hash['RequestActionStatus']
104
+ day_time_restriction_status = ErrorStatus.from_hash(hash['DayTimeRestrictionStatus']) if
105
+ hash['DayTimeRestrictionStatus']
106
+ location_restriction_status = ErrorStatus.from_hash(hash['LocationRestrictionStatus']) if
107
+ hash['LocationRestrictionStatus']
108
+ product_restriction_status = ErrorStatus.from_hash(hash['ProductRestrictionStatus']) if
109
+ hash['ProductRestrictionStatus']
110
+ usage_restriction_status = ErrorStatus.from_hash(hash['UsageRestrictionStatus']) if
111
+ hash['UsageRestrictionStatus']
112
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
63
113
 
64
114
  # Create object from extracted values.
65
115
  UpdateBundleResponse.new(request_id,
66
- status,
67
- errors)
116
+ request_action_status,
117
+ day_time_restriction_status,
118
+ location_restriction_status,
119
+ product_restriction_status,
120
+ usage_restriction_status,
121
+ error)
68
122
  end
69
123
  end
70
124
  end
@@ -66,8 +66,19 @@ module ShellCardManagementApIs
66
66
  # @return [TrueClass | FalseClass]
67
67
  attr_accessor :order_card_replacement
68
68
 
69
- # Request entity object for ReplaceCardSettings
70
- # @return [ReplaceCardSettings]
69
+ # True/False.<br />
70
+ # Pass True if a replacement order card request is to be placed, else
71
+ # False.<br />
72
+ # Optional.Default value False.<br />
73
+ # Replacement of a card is only applicable when the target status requested
74
+ # is either permanently Block or Damaged for the existing card.<br />
75
+ # Request for Replacement card will be placed only when the Block card or
76
+ # Block damaged card request is successfully placed.<br />
77
+ # The Replacement card request will be processed only when the permanent
78
+ # Block card request is successfully processed. <br />
79
+ # In case of damaged card request, the replacement card request will be
80
+ # processed immediately.
81
+ # @return [CardSettings]
71
82
  attr_accessor :card_settings
72
83
 
73
84
  # Reason id for updating the card status.
@@ -147,6 +158,10 @@ module ShellCardManagementApIs
147
158
  # @return [String]
148
159
  attr_accessor :pan
149
160
 
161
+ # PANID of the card
162
+ # @return [Float]
163
+ attr_accessor :panid
164
+
150
165
  # Payer id of the customer.<br />
151
166
  # Optional if PayerNumber is passed, else Mandatory.
152
167
  # @return [Integer]
@@ -176,6 +191,7 @@ module ShellCardManagementApIs
176
191
  @_hash['col_co_code'] = 'ColCoCode'
177
192
  @_hash['col_co_id'] = 'ColCoId'
178
193
  @_hash['pan'] = 'PAN'
194
+ @_hash['panid'] = 'PANID'
179
195
  @_hash['payer_id'] = 'PayerId'
180
196
  @_hash['payer_number'] = 'PayerNumber'
181
197
  @_hash
@@ -200,6 +216,7 @@ module ShellCardManagementApIs
200
216
  col_co_code
201
217
  col_co_id
202
218
  pan
219
+ panid
203
220
  payer_id
204
221
  payer_number
205
222
  ]
@@ -218,28 +235,19 @@ module ShellCardManagementApIs
218
235
  col_co_code
219
236
  col_co_id
220
237
  pan
238
+ panid
221
239
  payer_id
222
240
  payer_number
223
241
  ]
224
242
  end
225
243
 
226
- def initialize(caller = SKIP,
227
- is_replacement_chargeable = SKIP,
228
- notify_caller = SKIP,
229
- notify_caller_on_sync = SKIP,
230
- order_card_replacement = SKIP,
231
- card_settings = SKIP,
232
- reason_id = SKIP,
233
- reason_text = SKIP,
234
- target_status = SKIP,
235
- account_id = SKIP,
236
- account_number = SKIP,
237
- card_expiry_date = SKIP,
238
- card_id = SKIP,
239
- col_co_code = SKIP,
240
- col_co_id = SKIP,
241
- pan = SKIP,
242
- payer_id = SKIP,
244
+ def initialize(caller = SKIP, is_replacement_chargeable = SKIP,
245
+ notify_caller = SKIP, notify_caller_on_sync = SKIP,
246
+ order_card_replacement = SKIP, card_settings = SKIP,
247
+ reason_id = SKIP, reason_text = SKIP, target_status = SKIP,
248
+ account_id = SKIP, account_number = SKIP,
249
+ card_expiry_date = SKIP, card_id = SKIP, col_co_code = SKIP,
250
+ col_co_id = SKIP, pan = SKIP, panid = SKIP, payer_id = SKIP,
243
251
  payer_number = SKIP)
244
252
  @caller = caller unless caller == SKIP
245
253
  unless is_replacement_chargeable == SKIP
@@ -260,6 +268,7 @@ module ShellCardManagementApIs
260
268
  @col_co_code = col_co_code unless col_co_code == SKIP
261
269
  @col_co_id = col_co_id unless col_co_id == SKIP
262
270
  @pan = pan unless pan == SKIP
271
+ @panid = panid unless panid == SKIP
263
272
  @payer_id = payer_id unless payer_id == SKIP
264
273
  @payer_number = payer_number unless payer_number == SKIP
265
274
  end
@@ -277,7 +286,7 @@ module ShellCardManagementApIs
277
286
  hash.key?('NotifyCallerOnSync') ? hash['NotifyCallerOnSync'] : SKIP
278
287
  order_card_replacement =
279
288
  hash.key?('OrderCardReplacement') ? hash['OrderCardReplacement'] : SKIP
280
- card_settings = ReplaceCardSettings.from_hash(hash['CardSettings']) if hash['CardSettings']
289
+ card_settings = CardSettings.from_hash(hash['CardSettings']) if hash['CardSettings']
281
290
  reason_id = hash.key?('ReasonId') ? hash['ReasonId'] : SKIP
282
291
  reason_text = hash.key?('ReasonText') ? hash['ReasonText'] : SKIP
283
292
  target_status = hash.key?('TargetStatus') ? hash['TargetStatus'] : SKIP
@@ -289,6 +298,7 @@ module ShellCardManagementApIs
289
298
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
290
299
  col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
291
300
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
301
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
292
302
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
293
303
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
294
304
 
@@ -309,6 +319,7 @@ module ShellCardManagementApIs
309
319
  col_co_code,
310
320
  col_co_id,
311
321
  pan,
322
+ panid,
312
323
  payer_id,
313
324
  payer_number)
314
325
  end
@@ -72,9 +72,9 @@ module ShellCardManagementApIs
72
72
  # ‘null’.
73
73
  # Optional
74
74
  # Note:
75
- # 1) If a card type is passed, the cardgorup will allow cards with same card
76
- # type to be moved in to the card group.
77
- # 2) Pass ‘-1’ to remove the card type from the card group.
75
+ # 1) If a card type is passed, the cardgorup will allow cards with same
76
+ # card type to be moved in to the card group.
77
+ # 2) Pass ‘-1’ to remove the card type from the card group.
78
78
  # @return [Integer]
79
79
  attr_accessor :card_type_id
80
80
 
@@ -171,20 +171,12 @@ module ShellCardManagementApIs
171
171
  []
172
172
  end
173
173
 
174
- def initialize(col_co_code = SKIP,
175
- col_co_id = SKIP,
176
- payer_number = SKIP,
177
- payer_id = SKIP,
178
- account_id = SKIP,
179
- account_number = SKIP,
180
- card_group_id = SKIP,
181
- card_group_name = SKIP,
182
- print_on_card = SKIP,
183
- card_type_id = SKIP,
184
- terminate_card_group = SKIP,
185
- move_cards = SKIP,
186
- target_account_id = SKIP,
187
- target_account_number = SKIP,
174
+ def initialize(col_co_code = SKIP, col_co_id = SKIP, payer_number = SKIP,
175
+ payer_id = SKIP, account_id = SKIP, account_number = SKIP,
176
+ card_group_id = SKIP, card_group_name = SKIP,
177
+ print_on_card = SKIP, card_type_id = SKIP,
178
+ terminate_card_group = SKIP, move_cards = SKIP,
179
+ target_account_id = SKIP, target_account_number = SKIP,
188
180
  target_new_card_group_name = SKIP,
189
181
  target_card_group_id = SKIP)
190
182
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -78,12 +78,9 @@ module ShellCardManagementApIs
78
78
  []
79
79
  end
80
80
 
81
- def initialize(main_reference = SKIP,
82
- update_card_group_reference = SKIP,
83
- new_card_group_reference = SKIP,
84
- move_card_references = SKIP,
85
- error = SKIP,
86
- request_id = SKIP)
81
+ def initialize(main_reference = SKIP, update_card_group_reference = SKIP,
82
+ new_card_group_reference = SKIP, move_card_references = SKIP,
83
+ error = SKIP, request_id = SKIP)
87
84
  @main_reference = main_reference unless main_reference == SKIP
88
85
  unless update_card_group_reference == SKIP
89
86
  @update_card_group_reference =
@@ -51,9 +51,7 @@ module ShellCardManagementApIs
51
51
  ]
52
52
  end
53
53
 
54
- def initialize(card_id = SKIP,
55
- pan = SKIP,
56
- reference = SKIP)
54
+ def initialize(card_id = SKIP, pan = SKIP, reference = SKIP)
57
55
  @card_id = card_id unless card_id == SKIP
58
56
  @pan = pan unless pan == SKIP
59
57
  @reference = reference unless reference == SKIP
@@ -66,8 +66,8 @@ module ShellCardManagementApIs
66
66
  # Max Length: 90
67
67
  # Note: -
68
68
  # Based on the international standard that there can be
69
- # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
70
- # • Max Lenth after the (the domain) = 88 (Minimum of 2)
69
+ # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
70
+ # • Max Lenth after the (the domain) = 88 (Minimum of 2)
71
71
  # @return [String]
72
72
  attr_accessor :email_address
73
73
 
@@ -109,15 +109,9 @@ module ShellCardManagementApIs
109
109
  []
110
110
  end
111
111
 
112
- def initialize(contact_name = nil,
113
- company_name = nil,
114
- address_line = nil,
115
- zip_code = nil,
116
- country_id = nil,
117
- contact_title = SKIP,
118
- city = SKIP,
119
- region_id = SKIP,
120
- email_address = SKIP,
112
+ def initialize(contact_name = nil, company_name = nil, address_line = nil,
113
+ zip_code = nil, country_id = nil, contact_title = SKIP,
114
+ city = SKIP, region_id = SKIP, email_address = SKIP,
121
115
  phone_number = SKIP)
122
116
  @contact_name = contact_name
123
117
  @contact_title = contact_title unless contact_title == SKIP
@@ -0,0 +1,155 @@
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
+ # UpdateCardRenewalAddress2 Model.
8
+ class UpdateCardRenewalAddress2 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Contact name
13
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
14
+ # field is ignored otherwise.
15
+ # Max Length: 50
16
+ # @return [String]
17
+ attr_accessor :contact_name
18
+
19
+ # Title
20
+ # Max Length: 50
21
+ # @return [String]
22
+ attr_accessor :contact_title
23
+
24
+ # Company name.
25
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
26
+ # field is ignored otherwise.
27
+ # Max Length: 50
28
+ # @return [String]
29
+ attr_accessor :company_name
30
+
31
+ # Address line 1,2 and 3
32
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
33
+ # field is ignored otherwise.
34
+ # Max Length: 128
35
+ # Note: -Each address line should be separated by “\r\n”.
36
+ # @return [String]
37
+ attr_accessor :address_line
38
+
39
+ # ZipCode
40
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
41
+ # field is ignored otherwise.
42
+ # Max Length: 10
43
+ # @return [String]
44
+ attr_accessor :zip_code
45
+
46
+ # City
47
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
48
+ # field is ignored otherwise.
49
+ # Max Length: 40
50
+ # @return [String]
51
+ attr_accessor :city
52
+
53
+ # Region id of card.
54
+ # @return [Integer]
55
+ attr_accessor :region_id
56
+
57
+ # Country ID
58
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
59
+ # field is ignored otherwise.
60
+ # @return [Integer]
61
+ attr_accessor :country_id
62
+
63
+ # Email Address
64
+ # Max Length: 90
65
+ # Note: -
66
+ # Based on the international standard that there can be
67
+ # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
68
+ # • Max Lenth after the (the domain) = 88 (Minimum of 2)
69
+ # @return [String]
70
+ attr_accessor :email_address
71
+
72
+ # Phone number
73
+ # Optional
74
+ # Max Length: 16
75
+ # @return [String]
76
+ attr_accessor :phone_number
77
+
78
+ # A mapping from model property names to API property names.
79
+ def self.names
80
+ @_hash = {} if @_hash.nil?
81
+ @_hash['contact_name'] = 'ContactName'
82
+ @_hash['contact_title'] = 'ContactTitle'
83
+ @_hash['company_name'] = 'CompanyName'
84
+ @_hash['address_line'] = 'AddressLine'
85
+ @_hash['zip_code'] = 'ZipCode'
86
+ @_hash['city'] = 'City'
87
+ @_hash['region_id'] = 'RegionID'
88
+ @_hash['country_id'] = 'CountryID'
89
+ @_hash['email_address'] = 'EmailAddress'
90
+ @_hash['phone_number'] = 'PhoneNumber'
91
+ @_hash
92
+ end
93
+
94
+ # An array for optional fields
95
+ def self.optionals
96
+ %w[
97
+ contact_title
98
+ city
99
+ region_id
100
+ email_address
101
+ phone_number
102
+ ]
103
+ end
104
+
105
+ # An array for nullable fields
106
+ def self.nullables
107
+ []
108
+ end
109
+
110
+ def initialize(contact_name = nil, company_name = nil, address_line = nil,
111
+ zip_code = nil, country_id = nil, contact_title = SKIP,
112
+ city = SKIP, region_id = SKIP, email_address = SKIP,
113
+ phone_number = SKIP)
114
+ @contact_name = contact_name
115
+ @contact_title = contact_title unless contact_title == SKIP
116
+ @company_name = company_name
117
+ @address_line = address_line
118
+ @zip_code = zip_code
119
+ @city = city unless city == SKIP
120
+ @region_id = region_id unless region_id == SKIP
121
+ @country_id = country_id
122
+ @email_address = email_address unless email_address == SKIP
123
+ @phone_number = phone_number unless phone_number == SKIP
124
+ end
125
+
126
+ # Creates an instance of the object from a hash.
127
+ def self.from_hash(hash)
128
+ return nil unless hash
129
+
130
+ # Extract variables from the hash.
131
+ contact_name = hash.key?('ContactName') ? hash['ContactName'] : nil
132
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
133
+ address_line = hash.key?('AddressLine') ? hash['AddressLine'] : nil
134
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
135
+ country_id = hash.key?('CountryID') ? hash['CountryID'] : nil
136
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
137
+ city = hash.key?('City') ? hash['City'] : SKIP
138
+ region_id = hash.key?('RegionID') ? hash['RegionID'] : SKIP
139
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
140
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
141
+
142
+ # Create object from extracted values.
143
+ UpdateCardRenewalAddress2.new(contact_name,
144
+ company_name,
145
+ address_line,
146
+ zip_code,
147
+ country_id,
148
+ contact_title,
149
+ city,
150
+ region_id,
151
+ email_address,
152
+ phone_number)
153
+ end
154
+ end
155
+ end
@@ -85,9 +85,7 @@ module ShellCardManagementApIs
85
85
  ]
86
86
  end
87
87
 
88
- def initialize(cards = nil,
89
- target_status = nil,
90
- reason_id = SKIP,
88
+ def initialize(cards = nil, target_status = nil, reason_id = SKIP,
91
89
  reason_text = SKIP)
92
90
  @cards = cards
93
91
  @reason_id = reason_id unless reason_id == SKIP
@@ -73,11 +73,8 @@ module ShellCardManagementApIs
73
73
  []
74
74
  end
75
75
 
76
- def initialize(request_id = SKIP,
77
- status = SKIP,
78
- data = SKIP,
79
- main_reference = SKIP,
80
- order_replacement_reference = SKIP,
76
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP,
77
+ main_reference = SKIP, order_replacement_reference = SKIP,
81
78
  errors = SKIP)
82
79
  @request_id = request_id unless request_id == SKIP
83
80
  @status = status unless status == SKIP
@@ -69,11 +69,8 @@ module ShellCardManagementApIs
69
69
  []
70
70
  end
71
71
 
72
- def initialize(col_co_id = SKIP,
73
- col_co_code = SKIP,
74
- payer_id = SKIP,
75
- payer_number = SKIP,
76
- m_pay_requests = SKIP)
72
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
73
+ payer_number = SKIP, m_pay_requests = SKIP)
77
74
  @col_co_id = col_co_id unless col_co_id == SKIP
78
75
  @col_co_code = col_co_code unless col_co_code == SKIP
79
76
  @payer_id = payer_id unless payer_id == SKIP
@@ -18,7 +18,7 @@ module ShellCardManagementApIs
18
18
  # Status of mobile payment registration request
19
19
  # Mandatory.
20
20
  # Allowed values –
21
- # • Approved
21
+ # • Approved
22
22
  # • Rejected
23
23
  # @return [String]
24
24
  attr_accessor :status
@@ -65,10 +65,8 @@ module ShellCardManagementApIs
65
65
  []
66
66
  end
67
67
 
68
- def initialize(global_request_id = SKIP,
69
- status = SKIP,
70
- approver_user_id = SKIP,
71
- approver_user_display_name = SKIP,
68
+ def initialize(global_request_id = SKIP, status = SKIP,
69
+ approver_user_id = SKIP, approver_user_display_name = SKIP,
72
70
  reason = SKIP)
73
71
  @global_request_id = global_request_id unless global_request_id == SKIP
74
72
  @status = status unless status == SKIP
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(request_id = SKIP,
42
- status = SKIP)
41
+ def initialize(request_id = SKIP, status = SKIP)
43
42
  @request_id = request_id unless request_id == SKIP
44
43
  @status = status unless status == SKIP
45
44
  end