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
@@ -114,23 +114,23 @@ module ShellCardManagementApIs
114
114
 
115
115
  # User requested operation.
116
116
  # Possible values:
117
- # • OrderCard
118
- # • CreateCardGroup
119
- # • PINReminder
120
- # • MoveCard
121
- # • UpdateCardStatus
122
- # • UpdateCardGroup
123
- # • AutoRenew
124
- # • BulkCardOrder
125
- # • BulkCardBlock
126
- # • BulkCardOrderMultiAccount
127
- # • MobilePaymentRegistration
128
- # • UpdateCompanyInfo
129
- # • BCOSummary
130
- # • BCOMultiAccountSummary
131
- # • BCBSummary
132
- # • FundTransfer
133
- # • DeliveryAddressUpdate
117
+ # • OrderCard
118
+ # • CreateCardGroup
119
+ # • PINReminder
120
+ # • MoveCard
121
+ # • UpdateCardStatus
122
+ # • UpdateCardGroup
123
+ # • AutoRenew
124
+ # • BulkCardOrder
125
+ # • BulkCardBlock
126
+ # • BulkCardOrderMultiAccount
127
+ # • MobilePaymentRegistration
128
+ # • UpdateCompanyInfo
129
+ # • BCOSummary
130
+ # • BCOMultiAccountSummary
131
+ # • BCBSummary
132
+ # • FundTransfer
133
+ # • DeliveryAddressUpdate
134
134
  # @return [String]
135
135
  attr_accessor :requested_operation
136
136
 
@@ -140,35 +140,35 @@ module ShellCardManagementApIs
140
140
 
141
141
  # Request type initiated under the requested operation.
142
142
  # Possible values:
143
- # • OrderCard
144
- # • CreateCardGroup
145
- # • PINReminder
146
- # • MoveCard
147
- # • UpdateCardStatus
148
- # • UpdateCardGroup
149
- # • AutoRenew
150
- # • BulkCardOrder
151
- # • BulkCardBlock
152
- # • BulkCardOrderMultiAccount
153
- # • MobilePaymentRegistration
154
- # • UpdateCompanyInfo
155
- # • BCOSummary
156
- # • BCOMultiAccountSummary
157
- # • BCBSummary
158
- # • FundTransfer
159
- # • DeliveryAddressUpdate
143
+ # • OrderCard
144
+ # • CreateCardGroup
145
+ # • PINReminder
146
+ # • MoveCard
147
+ # • UpdateCardStatus
148
+ # • UpdateCardGroup
149
+ # • AutoRenew
150
+ # • BulkCardOrder
151
+ # • BulkCardBlock
152
+ # • BulkCardOrderMultiAccount
153
+ # • MobilePaymentRegistration
154
+ # • UpdateCompanyInfo
155
+ # • BCOSummary
156
+ # • BCOMultiAccountSummary
157
+ # • BCBSummary
158
+ # • FundTransfer
159
+ # • DeliveryAddressUpdate
160
160
  # @return [String]
161
161
  attr_accessor :request_type
162
162
 
163
163
  # Status of the request.
164
164
  # Possible values:
165
- # • Success
166
- # • Failed
167
- # • InProgress
168
- # • Submitted
169
- # • Rejected
170
- # • PendingApproval
171
- # • MailedToCSC
165
+ # • Success
166
+ # • Failed
167
+ # • InProgress
168
+ # • Submitted
169
+ # • Rejected
170
+ # • PendingApproval
171
+ # • MailedToCSC
172
172
  # @return [String]
173
173
  attr_accessor :status
174
174
 
@@ -297,8 +297,7 @@ module ShellCardManagementApIs
297
297
  ]
298
298
  end
299
299
 
300
- def initialize(account_id = SKIP,
301
- account_number = SKIP,
300
+ def initialize(account_id = SKIP, account_number = SKIP,
302
301
  additional_information1 = SKIP,
303
302
  additional_information2 = SKIP,
304
303
  additional_information3 = SKIP,
@@ -307,26 +306,14 @@ module ShellCardManagementApIs
307
306
  additional_information6 = SKIP,
308
307
  additional_information7 = SKIP,
309
308
  additional_information8 = SKIP,
310
- additional_information9 = SKIP,
311
- card_group_id = SKIP,
312
- card_group_name = SKIP,
313
- card_id = SKIP,
314
- col_co_code = SKIP,
315
- col_co_id = SKIP,
316
- error_code = SKIP,
317
- error_string = SKIP,
318
- global_request_id = SKIP,
319
- pan = SKIP,
320
- payer_id = SKIP,
321
- payer_number = SKIP,
322
- processed_on = SKIP,
323
- requested_by = SKIP,
324
- requested_operation = SKIP,
325
- request_reference = SKIP,
326
- request_type = SKIP,
327
- status = SKIP,
328
- submitted_on = SKIP,
329
- sub_request_reference = SKIP,
309
+ additional_information9 = SKIP, card_group_id = SKIP,
310
+ card_group_name = SKIP, card_id = SKIP, col_co_code = SKIP,
311
+ col_co_id = SKIP, error_code = SKIP, error_string = SKIP,
312
+ global_request_id = SKIP, pan = SKIP, payer_id = SKIP,
313
+ payer_number = SKIP, processed_on = SKIP,
314
+ requested_by = SKIP, requested_operation = SKIP,
315
+ request_reference = SKIP, request_type = SKIP, status = SKIP,
316
+ submitted_on = SKIP, sub_request_reference = SKIP,
330
317
  user_display_name = SKIP)
331
318
  @account_id = account_id unless account_id == SKIP
332
319
  @account_number = account_number unless account_number == SKIP
@@ -68,11 +68,8 @@ module ShellCardManagementApIs
68
68
  []
69
69
  end
70
70
 
71
- def initialize(col_co_id = SKIP,
72
- col_co_code = SKIP,
73
- payer_number = SKIP,
74
- payer_id = SKIP,
75
- auto_renew_cards = SKIP)
71
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_number = SKIP,
72
+ payer_id = SKIP, auto_renew_cards = SKIP)
76
73
  @col_co_id = col_co_id unless col_co_id == SKIP
77
74
  @col_co_code = col_co_code unless col_co_code == SKIP
78
75
  @payer_number = payer_number unless payer_number == SKIP
@@ -24,6 +24,12 @@ module ShellCardManagementApIs
24
24
  # @return [String]
25
25
  attr_accessor :pan
26
26
 
27
+ # Card PAN ID.
28
+ # Optional if CardId is given, else mandatory.
29
+ # Note: PANID is ignored if CardId is given.
30
+ # @return [Float]
31
+ attr_accessor :panid
32
+
27
33
  # Card Id of the card.
28
34
  # Optional if PAN is passed, else Mandatory.
29
35
  # @return [Integer]
@@ -43,6 +49,7 @@ module ShellCardManagementApIs
43
49
  @_hash['account_number'] = 'AccountNumber'
44
50
  @_hash['account_id'] = 'AccountId'
45
51
  @_hash['pan'] = 'PAN'
52
+ @_hash['panid'] = 'PANID'
46
53
  @_hash['card_id'] = 'CardId'
47
54
  @_hash['reissue_setting'] = 'ReissueSetting'
48
55
  @_hash
@@ -54,6 +61,7 @@ module ShellCardManagementApIs
54
61
  account_number
55
62
  account_id
56
63
  pan
64
+ panid
57
65
  card_id
58
66
  ]
59
67
  end
@@ -63,14 +71,12 @@ module ShellCardManagementApIs
63
71
  []
64
72
  end
65
73
 
66
- def initialize(reissue_setting = nil,
67
- account_number = SKIP,
68
- account_id = SKIP,
69
- pan = SKIP,
70
- card_id = SKIP)
74
+ def initialize(reissue_setting = nil, account_number = SKIP,
75
+ account_id = SKIP, pan = SKIP, panid = SKIP, card_id = SKIP)
71
76
  @account_number = account_number unless account_number == SKIP
72
77
  @account_id = account_id unless account_id == SKIP
73
78
  @pan = pan unless pan == SKIP
79
+ @panid = panid unless panid == SKIP
74
80
  @card_id = card_id unless card_id == SKIP
75
81
  @reissue_setting = reissue_setting
76
82
  end
@@ -85,6 +91,7 @@ module ShellCardManagementApIs
85
91
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
86
92
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
87
93
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
94
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
88
95
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
89
96
 
90
97
  # Create object from extracted values.
@@ -92,6 +99,7 @@ module ShellCardManagementApIs
92
99
  account_number,
93
100
  account_id,
94
101
  pan,
102
+ panid,
95
103
  card_id)
96
104
  end
97
105
  end
@@ -53,9 +53,7 @@ module ShellCardManagementApIs
53
53
  []
54
54
  end
55
55
 
56
- def initialize(main_reference = SKIP,
57
- request_id = SKIP,
58
- status = SKIP,
56
+ def initialize(main_reference = SKIP, request_id = SKIP, status = SKIP,
59
57
  data = SKIP)
60
58
  @main_reference = main_reference unless main_reference == SKIP
61
59
  @request_id = request_id unless request_id == SKIP
@@ -17,11 +17,16 @@ module ShellCardManagementApIs
17
17
  # @return [String]
18
18
  attr_accessor :card_id_and_pan
19
19
 
20
+ # PANID of the card
21
+ # @return [Float]
22
+ attr_accessor :panid
23
+
20
24
  # A mapping from model property names to API property names.
21
25
  def self.names
22
26
  @_hash = {} if @_hash.nil?
23
27
  @_hash['auto_renew_reference_id'] = 'AutoRenewReferenceId'
24
28
  @_hash['card_id_and_pan'] = 'CardIdAndPAN'
29
+ @_hash['panid'] = 'PANID'
25
30
  @_hash
26
31
  end
27
32
 
@@ -30,6 +35,7 @@ module ShellCardManagementApIs
30
35
  %w[
31
36
  auto_renew_reference_id
32
37
  card_id_and_pan
38
+ panid
33
39
  ]
34
40
  end
35
41
 
@@ -38,13 +44,15 @@ module ShellCardManagementApIs
38
44
  %w[
39
45
  auto_renew_reference_id
40
46
  card_id_and_pan
47
+ panid
41
48
  ]
42
49
  end
43
50
 
44
- def initialize(auto_renew_reference_id = SKIP,
45
- card_id_and_pan = SKIP)
51
+ def initialize(auto_renew_reference_id = SKIP, card_id_and_pan = SKIP,
52
+ panid = SKIP)
46
53
  @auto_renew_reference_id = auto_renew_reference_id unless auto_renew_reference_id == SKIP
47
54
  @card_id_and_pan = card_id_and_pan unless card_id_and_pan == SKIP
55
+ @panid = panid unless panid == SKIP
48
56
  end
49
57
 
50
58
  # Creates an instance of the object from a hash.
@@ -55,10 +63,12 @@ module ShellCardManagementApIs
55
63
  auto_renew_reference_id =
56
64
  hash.key?('AutoRenewReferenceId') ? hash['AutoRenewReferenceId'] : SKIP
57
65
  card_id_and_pan = hash.key?('CardIdAndPAN') ? hash['CardIdAndPAN'] : SKIP
66
+ panid = hash.key?('PANID') ? hash['PANID'] : SKIP
58
67
 
59
68
  # Create object from extracted values.
60
69
  AutoRenewCardResponseDataItems.new(auto_renew_reference_id,
61
- card_id_and_pan)
70
+ card_id_and_pan,
71
+ panid)
62
72
  end
63
73
  end
64
74
  end
@@ -123,19 +123,11 @@ module ShellCardManagementApIs
123
123
  ]
124
124
  end
125
125
 
126
- def initialize(account_number = SKIP,
127
- bank_name = SKIP,
128
- account_name = SKIP,
129
- date_effective = SKIP,
130
- date_terminated = SKIP,
131
- iban = SKIP,
132
- currency_code = SKIP,
133
- currency_symbol = SKIP,
134
- country_iso_code = SKIP,
135
- country = SKIP,
136
- sort_code = SKIP,
137
- swift_code = SKIP,
138
- bank_type = SKIP)
126
+ def initialize(account_number = SKIP, bank_name = SKIP, account_name = SKIP,
127
+ date_effective = SKIP, date_terminated = SKIP, iban = SKIP,
128
+ currency_code = SKIP, currency_symbol = SKIP,
129
+ country_iso_code = SKIP, country = SKIP, sort_code = SKIP,
130
+ swift_code = SKIP, bank_type = SKIP)
139
131
  @account_number = account_number unless account_number == SKIP
140
132
  @bank_name = bank_name unless bank_name == SKIP
141
133
  @account_name = account_name unless account_name == SKIP
@@ -4,12 +4,12 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # SearchAccountLimitRequestFilters Model.
8
- class SearchAccountLimitRequestFilters < BaseModel
7
+ # BudleDetailsRequest Model.
8
+ class BudleDetailsRequest < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Collecting Company Id of the selected payer.
12
+ # Collecting Company Id of the selected payer.
13
13
  # Optional if ColCoCode is passed else Mandatory.
14
14
  # Example:
15
15
  # 1 for Philippines
@@ -26,10 +26,10 @@ module ShellCardManagementApIs
26
26
  # @return [Integer]
27
27
  attr_accessor :col_co_code
28
28
 
29
- # Payer Id of the selected payer.
29
+ # Payer Id of the selected payer.
30
30
  # Optional if PayerNumber is passed else Mandatory
31
31
  # Example: 123456
32
- # @return [Integer]
32
+ # @return [String]
33
33
  attr_accessor :payer_id
34
34
 
35
35
  # Payer Number of the selected payer.
@@ -38,17 +38,24 @@ module ShellCardManagementApIs
38
38
  # @return [String]
39
39
  attr_accessor :payer_number
40
40
 
41
- # Optional if AccountNumber is passed else Mandatory
41
+ # Account Id of the customer.
42
+ # Optional if Account Number is passed else Mandatory
42
43
  # Example: 123456
43
44
  # @return [Integer]
44
45
  attr_accessor :account_id
45
46
 
46
47
  # Account Number of the customer.
47
- # Optional if AccountId is passed else Mandatory
48
+ # Optional if Account Id is passed else Mandatory
48
49
  # Example: GB000000123
49
50
  # @return [String]
50
51
  attr_accessor :account_number
51
52
 
53
+ # Bundle Id associated with account
54
+ # Mandatory.
55
+ # Example: 835662721
56
+ # @return [String]
57
+ attr_accessor :bundle_id
58
+
52
59
  # A mapping from model property names to API property names.
53
60
  def self.names
54
61
  @_hash = {} if @_hash.nil?
@@ -58,6 +65,7 @@ module ShellCardManagementApIs
58
65
  @_hash['payer_number'] = 'PayerNumber'
59
66
  @_hash['account_id'] = 'AccountId'
60
67
  @_hash['account_number'] = 'AccountNumber'
68
+ @_hash['bundle_id'] = 'BundleId'
61
69
  @_hash
62
70
  end
63
71
 
@@ -70,28 +78,25 @@ module ShellCardManagementApIs
70
78
  payer_number
71
79
  account_id
72
80
  account_number
81
+ bundle_id
73
82
  ]
74
83
  end
75
84
 
76
85
  # An array for nullable fields
77
86
  def self.nullables
78
- %w[
79
- col_co_id
80
- ]
87
+ []
81
88
  end
82
89
 
83
- def initialize(col_co_id = SKIP,
84
- col_co_code = SKIP,
85
- payer_id = SKIP,
86
- payer_number = SKIP,
87
- account_id = SKIP,
88
- account_number = SKIP)
90
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
91
+ payer_number = SKIP, account_id = SKIP,
92
+ account_number = SKIP, bundle_id = SKIP)
89
93
  @col_co_id = col_co_id unless col_co_id == SKIP
90
94
  @col_co_code = col_co_code unless col_co_code == SKIP
91
95
  @payer_id = payer_id unless payer_id == SKIP
92
96
  @payer_number = payer_number unless payer_number == SKIP
93
97
  @account_id = account_id unless account_id == SKIP
94
98
  @account_number = account_number unless account_number == SKIP
99
+ @bundle_id = bundle_id unless bundle_id == SKIP
95
100
  end
96
101
 
97
102
  # Creates an instance of the object from a hash.
@@ -105,14 +110,16 @@ module ShellCardManagementApIs
105
110
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
106
111
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
107
112
  account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
113
+ bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
108
114
 
109
115
  # Create object from extracted values.
110
- SearchAccountLimitRequestFilters.new(col_co_id,
111
- col_co_code,
112
- payer_id,
113
- payer_number,
114
- account_id,
115
- account_number)
116
+ BudleDetailsRequest.new(col_co_id,
117
+ col_co_code,
118
+ payer_id,
119
+ payer_number,
120
+ account_id,
121
+ account_number,
122
+ bundle_id)
116
123
  end
117
124
  end
118
125
  end
@@ -4,12 +4,13 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # CreateBundleResponseDataItemsCardsItems Model.
8
- class CreateBundleResponseDataItemsCardsItems < BaseModel
7
+ # BundleCardRestrictionStatus Model.
8
+ class BundleCardRestrictionStatus < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
12
  # Card PAN.
13
+ # Example: 7002051006629890645
13
14
  # @return [String]
14
15
  attr_accessor :pan
15
16
 
@@ -44,7 +45,7 @@ module ShellCardManagementApIs
44
45
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
45
46
 
46
47
  # Create object from extracted values.
47
- CreateBundleResponseDataItemsCardsItems.new(pan)
48
+ BundleCardRestrictionStatus.new(pan)
48
49
  end
49
50
  end
50
51
  end
@@ -0,0 +1,181 @@
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
+ # BundleDetailsResponse Model.
8
+ class BundleDetailsResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Payer Id of the bundles and cards.
13
+ # Example: 123456
14
+ # @return [Integer]
15
+ attr_accessor :payer_id
16
+
17
+ # Payer Number of the bundles and cards.
18
+ # Example: GB000000123
19
+ # @return [String]
20
+ attr_accessor :payer_number
21
+
22
+ # Account ID of the bundle.
23
+ # Example: 123456
24
+ # @return [Integer]
25
+ attr_accessor :account_id
26
+
27
+ # Account Number of the bundle.
28
+ # Example: GB000000123
29
+ # @return [String]
30
+ attr_accessor :account_number
31
+
32
+ # unique identifier for the Card Bundle
33
+ # @return [String]
34
+ attr_accessor :bundle_id
35
+
36
+ # External system allocated Card Bundle identifier for Card Bundle.
37
+ # @return [String]
38
+ attr_accessor :external_bundle_id
39
+
40
+ # Card Bundle Description.
41
+ # @return [String]
42
+ attr_accessor :description
43
+
44
+ # List of Card Pans added to the card bundle.
45
+ # @return [Array[String]]
46
+ attr_accessor :pans
47
+
48
+ # ISO currency code of the country.
49
+ # Example: GBP
50
+ # @return [String]
51
+ attr_accessor :restriction_currency_code
52
+
53
+ # Currency symbol of the country.
54
+ # Example: £, $
55
+ # @return [String]
56
+ attr_accessor :restriction_currency_symbol
57
+
58
+ # Currency symbol of the country.
59
+ # Example: £, $
60
+ # @return [BundledRestrictionsList]
61
+ attr_accessor :restrictions
62
+
63
+ # Currency symbol of the country.
64
+ # Example: £, $
65
+ # @return [ErrorStatus]
66
+ attr_accessor :error
67
+
68
+ # API Request Id
69
+ # @return [String]
70
+ attr_accessor :request_id
71
+
72
+ # A mapping from model property names to API property names.
73
+ def self.names
74
+ @_hash = {} if @_hash.nil?
75
+ @_hash['payer_id'] = 'PayerId'
76
+ @_hash['payer_number'] = 'PayerNumber'
77
+ @_hash['account_id'] = 'AccountId'
78
+ @_hash['account_number'] = 'AccountNumber'
79
+ @_hash['bundle_id'] = 'BundleId'
80
+ @_hash['external_bundle_id'] = 'ExternalBundleId'
81
+ @_hash['description'] = 'Description'
82
+ @_hash['pans'] = 'Pans'
83
+ @_hash['restriction_currency_code'] = 'RestrictionCurrencyCode'
84
+ @_hash['restriction_currency_symbol'] = 'RestrictionCurrencySymbol'
85
+ @_hash['restrictions'] = 'Restrictions'
86
+ @_hash['error'] = 'Error'
87
+ @_hash['request_id'] = 'RequestId'
88
+ @_hash
89
+ end
90
+
91
+ # An array for optional fields
92
+ def self.optionals
93
+ %w[
94
+ payer_id
95
+ payer_number
96
+ account_id
97
+ account_number
98
+ bundle_id
99
+ external_bundle_id
100
+ description
101
+ pans
102
+ restriction_currency_code
103
+ restriction_currency_symbol
104
+ restrictions
105
+ error
106
+ request_id
107
+ ]
108
+ end
109
+
110
+ # An array for nullable fields
111
+ def self.nullables
112
+ []
113
+ end
114
+
115
+ def initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP,
116
+ account_number = SKIP, bundle_id = SKIP,
117
+ external_bundle_id = SKIP, description = SKIP, pans = SKIP,
118
+ restriction_currency_code = SKIP,
119
+ restriction_currency_symbol = SKIP, restrictions = SKIP,
120
+ error = SKIP, request_id = SKIP)
121
+ @payer_id = payer_id unless payer_id == SKIP
122
+ @payer_number = payer_number unless payer_number == SKIP
123
+ @account_id = account_id unless account_id == SKIP
124
+ @account_number = account_number unless account_number == SKIP
125
+ @bundle_id = bundle_id unless bundle_id == SKIP
126
+ @external_bundle_id = external_bundle_id unless external_bundle_id == SKIP
127
+ @description = description unless description == SKIP
128
+ @pans = pans unless pans == SKIP
129
+ unless restriction_currency_code == SKIP
130
+ @restriction_currency_code =
131
+ restriction_currency_code
132
+ end
133
+ unless restriction_currency_symbol == SKIP
134
+ @restriction_currency_symbol =
135
+ restriction_currency_symbol
136
+ end
137
+ @restrictions = restrictions unless restrictions == SKIP
138
+ @error = error unless error == SKIP
139
+ @request_id = request_id unless request_id == SKIP
140
+ end
141
+
142
+ # Creates an instance of the object from a hash.
143
+ def self.from_hash(hash)
144
+ return nil unless hash
145
+
146
+ # Extract variables from the hash.
147
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
148
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
149
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
150
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
151
+ bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
152
+ external_bundle_id =
153
+ hash.key?('ExternalBundleId') ? hash['ExternalBundleId'] : SKIP
154
+ description = hash.key?('Description') ? hash['Description'] : SKIP
155
+ pans = hash.key?('Pans') ? hash['Pans'] : SKIP
156
+ restriction_currency_code =
157
+ hash.key?('RestrictionCurrencyCode') ? hash['RestrictionCurrencyCode'] : SKIP
158
+ restriction_currency_symbol =
159
+ hash.key?('RestrictionCurrencySymbol') ? hash['RestrictionCurrencySymbol'] : SKIP
160
+ restrictions = BundledRestrictionsList.from_hash(hash['Restrictions']) if
161
+ hash['Restrictions']
162
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
163
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
164
+
165
+ # Create object from extracted values.
166
+ BundleDetailsResponse.new(payer_id,
167
+ payer_number,
168
+ account_id,
169
+ account_number,
170
+ bundle_id,
171
+ external_bundle_id,
172
+ description,
173
+ pans,
174
+ restriction_currency_code,
175
+ restriction_currency_symbol,
176
+ restrictions,
177
+ error,
178
+ request_id)
179
+ end
180
+ end
181
+ end