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
@@ -45,9 +45,7 @@ module ShellCardManagementApIs
45
45
  []
46
46
  end
47
47
 
48
- def initialize(card_id = SKIP,
49
- pan = SKIP,
50
- reference = SKIP)
48
+ def initialize(card_id = SKIP, pan = SKIP, reference = SKIP)
51
49
  @card_id = card_id unless card_id == SKIP
52
50
  @pan = pan unless pan == SKIP
53
51
  @reference = reference unless reference == SKIP
@@ -42,8 +42,7 @@ module ShellCardManagementApIs
42
42
  ]
43
43
  end
44
44
 
45
- def initialize(driver_and_vrn = SKIP,
46
- order_card_reference = SKIP)
45
+ def initialize(driver_and_vrn = SKIP, order_card_reference = SKIP)
47
46
  @driver_and_vrn = driver_and_vrn unless driver_and_vrn == SKIP
48
47
  @order_card_reference = order_card_reference unless order_card_reference == SKIP
49
48
  end
@@ -41,8 +41,7 @@ module ShellCardManagementApIs
41
41
  ]
42
42
  end
43
43
 
44
- def initialize(partner_id = SKIP,
45
- partner_name = SKIP)
44
+ def initialize(partner_id = SKIP, partner_name = SKIP)
46
45
  @partner_id = partner_id unless partner_id == SKIP
47
46
  @partner_name = partner_name unless partner_name == SKIP
48
47
  end
@@ -85,11 +85,8 @@ module ShellCardManagementApIs
85
85
  ]
86
86
  end
87
87
 
88
- def initialize(col_co_id = SKIP,
89
- col_co_code = SKIP,
90
- payer_id = SKIP,
91
- payer_number = SKIP,
92
- account_id = SKIP,
88
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
89
+ payer_number = SKIP, account_id = SKIP,
93
90
  account_number = SKIP)
94
91
  @col_co_id = col_co_id unless col_co_id == SKIP
95
92
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -267,33 +267,19 @@ module ShellCardManagementApIs
267
267
  ]
268
268
  end
269
269
 
270
- def initialize(account_id = SKIP,
271
- account_name = SKIP,
272
- account_number = SKIP,
273
- account_short_name = SKIP,
274
- account_trading_name = SKIP,
275
- allow_fleet_id_input = SKIP,
276
- band = SKIP,
277
- billing_address = SKIP,
278
- card_group_position = SKIP,
279
- correspondence_address = SKIP,
280
- delivery_addresses = SKIP,
281
- fleet_pin = SKIP,
282
- full_name = SKIP,
283
- invoice_customer_id = SKIP,
284
- invoice_customer_short_name = SKIP,
285
- is_invoice_point = SKIP,
286
- marketing_segmentation = SKIP,
287
- vat_number = SKIP,
288
- payer_id = SKIP,
289
- payer_name = SKIP,
290
- payer_number = SKIP,
291
- self_selected_pin = SKIP,
292
- status = SKIP,
293
- default_pin_advice_type = SKIP,
294
- pin_advice_types = SKIP,
295
- error = SKIP,
296
- request_id = SKIP,
270
+ def initialize(account_id = SKIP, account_name = SKIP,
271
+ account_number = SKIP, account_short_name = SKIP,
272
+ account_trading_name = SKIP, allow_fleet_id_input = SKIP,
273
+ band = SKIP, billing_address = SKIP,
274
+ card_group_position = SKIP, correspondence_address = SKIP,
275
+ delivery_addresses = SKIP, fleet_pin = SKIP,
276
+ full_name = SKIP, invoice_customer_id = SKIP,
277
+ invoice_customer_short_name = SKIP, is_invoice_point = SKIP,
278
+ marketing_segmentation = SKIP, vat_number = SKIP,
279
+ payer_id = SKIP, payer_name = SKIP, payer_number = SKIP,
280
+ self_selected_pin = SKIP, status = SKIP,
281
+ default_pin_advice_type = SKIP, pin_advice_types = SKIP,
282
+ error = SKIP, request_id = SKIP,
297
283
  pin_change_allowed_by_cardholder = SKIP,
298
284
  pin_change_allowed_from_fleet_pin = SKIP)
299
285
  @account_id = account_id unless account_id == SKIP
@@ -0,0 +1,133 @@
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
+ # Details of the day/time restrictions such as weekdays and time range in
8
+ # which transactions should be allowed on the card.
9
+ class DayTimeRestriction < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # True if card could be used on a Monday, else false
14
+ # @return [TrueClass | FalseClass]
15
+ attr_accessor :monday
16
+
17
+ # True if card could be used on a Tuesday, else false.
18
+ # @return [TrueClass | FalseClass]
19
+ attr_accessor :tuesday
20
+
21
+ # True if card could be used on a Wednesday, else false.
22
+ # @return [TrueClass | FalseClass]
23
+ attr_accessor :wednesday
24
+
25
+ # True if card could be used on a Thursday, else false
26
+ # @return [TrueClass | FalseClass]
27
+ attr_accessor :thursday
28
+
29
+ # True if card could be used on a Friday, else false
30
+ # @return [TrueClass | FalseClass]
31
+ attr_accessor :friday
32
+
33
+ # True if card could be used on a Saturday, else false
34
+ # @return [TrueClass | FalseClass]
35
+ attr_accessor :saturday
36
+
37
+ # True if card could be used on a Sunday, else false.
38
+ # @return [TrueClass | FalseClass]
39
+ attr_accessor :sunday
40
+
41
+ # Card could be used from this time in a day.
42
+ # Format: HH:mm (24-hour format)
43
+ # Note:
44
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
45
+ # “00:00” is the lowest time value and “23:59” is the highest time value.
46
+ # @return [String]
47
+ attr_accessor :time_from
48
+
49
+ # Card could be used up to this time in a day.
50
+ # Format: HH:mm (24-hour format)
51
+ # Note:
52
+ # 1. Clients to convert this to appropriate DateTime or TimeSpan type.
53
+ # “00:00” is the lowest time value and “23:59” is the highest time value.
54
+ # @return [String]
55
+ attr_accessor :time_to
56
+
57
+ # A mapping from model property names to API property names.
58
+ def self.names
59
+ @_hash = {} if @_hash.nil?
60
+ @_hash['monday'] = 'Monday'
61
+ @_hash['tuesday'] = 'Tuesday'
62
+ @_hash['wednesday'] = 'Wednesday'
63
+ @_hash['thursday'] = 'Thursday'
64
+ @_hash['friday'] = 'Friday'
65
+ @_hash['saturday'] = 'Saturday'
66
+ @_hash['sunday'] = 'Sunday'
67
+ @_hash['time_from'] = 'TimeFrom'
68
+ @_hash['time_to'] = 'TimeTo'
69
+ @_hash
70
+ end
71
+
72
+ # An array for optional fields
73
+ def self.optionals
74
+ %w[
75
+ monday
76
+ tuesday
77
+ wednesday
78
+ thursday
79
+ friday
80
+ saturday
81
+ sunday
82
+ time_from
83
+ time_to
84
+ ]
85
+ end
86
+
87
+ # An array for nullable fields
88
+ def self.nullables
89
+ []
90
+ end
91
+
92
+ def initialize(monday = SKIP, tuesday = SKIP, wednesday = SKIP,
93
+ thursday = SKIP, friday = SKIP, saturday = SKIP,
94
+ sunday = SKIP, time_from = SKIP, time_to = SKIP)
95
+ @monday = monday unless monday == SKIP
96
+ @tuesday = tuesday unless tuesday == SKIP
97
+ @wednesday = wednesday unless wednesday == SKIP
98
+ @thursday = thursday unless thursday == SKIP
99
+ @friday = friday unless friday == SKIP
100
+ @saturday = saturday unless saturday == SKIP
101
+ @sunday = sunday unless sunday == SKIP
102
+ @time_from = time_from unless time_from == SKIP
103
+ @time_to = time_to unless time_to == SKIP
104
+ end
105
+
106
+ # Creates an instance of the object from a hash.
107
+ def self.from_hash(hash)
108
+ return nil unless hash
109
+
110
+ # Extract variables from the hash.
111
+ monday = hash.key?('Monday') ? hash['Monday'] : SKIP
112
+ tuesday = hash.key?('Tuesday') ? hash['Tuesday'] : SKIP
113
+ wednesday = hash.key?('Wednesday') ? hash['Wednesday'] : SKIP
114
+ thursday = hash.key?('Thursday') ? hash['Thursday'] : SKIP
115
+ friday = hash.key?('Friday') ? hash['Friday'] : SKIP
116
+ saturday = hash.key?('Saturday') ? hash['Saturday'] : SKIP
117
+ sunday = hash.key?('Sunday') ? hash['Sunday'] : SKIP
118
+ time_from = hash.key?('TimeFrom') ? hash['TimeFrom'] : SKIP
119
+ time_to = hash.key?('TimeTo') ? hash['TimeTo'] : SKIP
120
+
121
+ # Create object from extracted values.
122
+ DayTimeRestriction.new(monday,
123
+ tuesday,
124
+ wednesday,
125
+ thursday,
126
+ friday,
127
+ saturday,
128
+ sunday,
129
+ time_from,
130
+ time_to)
131
+ end
132
+ end
133
+ end
@@ -4,26 +4,26 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # SummaryOfBundleRequest Model.
8
- class SummaryOfBundleRequest < BaseModel
7
+ # Error response
8
+ class DefaultError < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
12
  # TODO: Write general description for this method
13
- # @return [SummaryofBundle]
14
- attr_accessor :filters
13
+ # @return [Fault]
14
+ attr_accessor :fault
15
15
 
16
16
  # A mapping from model property names to API property names.
17
17
  def self.names
18
18
  @_hash = {} if @_hash.nil?
19
- @_hash['filters'] = 'Filters'
19
+ @_hash['fault'] = 'fault'
20
20
  @_hash
21
21
  end
22
22
 
23
23
  # An array for optional fields
24
24
  def self.optionals
25
25
  %w[
26
- filters
26
+ fault
27
27
  ]
28
28
  end
29
29
 
@@ -32,8 +32,8 @@ module ShellCardManagementApIs
32
32
  []
33
33
  end
34
34
 
35
- def initialize(filters = SKIP)
36
- @filters = filters unless filters == SKIP
35
+ def initialize(fault = SKIP)
36
+ @fault = fault unless fault == SKIP
37
37
  end
38
38
 
39
39
  # Creates an instance of the object from a hash.
@@ -41,10 +41,10 @@ module ShellCardManagementApIs
41
41
  return nil unless hash
42
42
 
43
43
  # Extract variables from the hash.
44
- filters = SummaryofBundle.from_hash(hash['Filters']) if hash['Filters']
44
+ fault = Fault.from_hash(hash['fault']) if hash['fault']
45
45
 
46
46
  # Create object from extracted values.
47
- SummaryOfBundleRequest.new(filters)
47
+ DefaultError.new(fault)
48
48
  end
49
49
  end
50
50
  end
@@ -13,8 +13,8 @@ module ShellCardManagementApIs
13
13
  # @return [String]
14
14
  attr_accessor :faultstring
15
15
 
16
- # Details about the error
17
- # @return [DefaultErrorFaultDetail]
16
+ # Error Description
17
+ # @return [Detail]
18
18
  attr_accessor :detail
19
19
 
20
20
  # A mapping from model property names to API property names.
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(faultstring = SKIP,
42
- detail = SKIP)
41
+ def initialize(faultstring = SKIP, detail = SKIP)
43
42
  @faultstring = faultstring unless faultstring == SKIP
44
43
  @detail = detail unless detail == SKIP
45
44
  end
@@ -50,7 +49,7 @@ module ShellCardManagementApIs
50
49
 
51
50
  # Extract variables from the hash.
52
51
  faultstring = hash.key?('faultstring') ? hash['faultstring'] : SKIP
53
- detail = DefaultErrorFaultDetail.from_hash(hash['detail']) if hash['detail']
52
+ detail = Detail.from_hash(hash['detail']) if hash['detail']
54
53
 
55
54
  # Create object from extracted values.
56
55
  DefaultErrorFault.new(faultstring,
@@ -9,12 +9,14 @@ module ShellCardManagementApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Collecting Company Id of the selected payer.
13
- # Optional if ColCoCode is passed else Mandatory.
12
+ # Collecting Company Code (Shell Code) of the selected payer.
13
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
14
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
14
15
  # Example:
15
- # 1 for Philippines
16
+ # 86 for Philippines
17
+ # 5 for UK
16
18
  # @return [Integer]
17
- attr_accessor :col_co_id
19
+ attr_accessor :col_co_code
18
20
 
19
21
  # Collecting Company Code (Shell Code) of the selected payer.
20
22
  # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
@@ -23,7 +25,7 @@ module ShellCardManagementApIs
23
25
  # 86 for Philippines
24
26
  # 5 for UK
25
27
  # @return [Integer]
26
- attr_accessor :col_co_code
28
+ attr_accessor :col_co_id
27
29
 
28
30
  # Payer Number of the selected payer.
29
31
  # Either PayerId or PayerNumber or both must be passed.
@@ -57,8 +59,8 @@ module ShellCardManagementApIs
57
59
  # A mapping from model property names to API property names.
58
60
  def self.names
59
61
  @_hash = {} if @_hash.nil?
60
- @_hash['col_co_id'] = 'ColCoId'
61
62
  @_hash['col_co_code'] = 'ColCoCode'
63
+ @_hash['col_co_id'] = 'ColCoId'
62
64
  @_hash['payer_number'] = 'PayerNumber'
63
65
  @_hash['payer_id'] = 'PayerId'
64
66
  @_hash['account_id'] = 'AccountId'
@@ -70,8 +72,8 @@ module ShellCardManagementApIs
70
72
  # An array for optional fields
71
73
  def self.optionals
72
74
  %w[
73
- col_co_id
74
75
  col_co_code
76
+ col_co_id
75
77
  payer_number
76
78
  payer_id
77
79
  account_id
@@ -84,15 +86,11 @@ module ShellCardManagementApIs
84
86
  []
85
87
  end
86
88
 
87
- def initialize(bundle_id = nil,
88
- col_co_id = SKIP,
89
- col_co_code = SKIP,
90
- payer_number = SKIP,
91
- payer_id = SKIP,
92
- account_id = SKIP,
89
+ def initialize(bundle_id = nil, col_co_code = SKIP, col_co_id = SKIP,
90
+ payer_number = SKIP, payer_id = SKIP, account_id = SKIP,
93
91
  account_number = SKIP)
94
- @col_co_id = col_co_id unless col_co_id == SKIP
95
92
  @col_co_code = col_co_code unless col_co_code == SKIP
93
+ @col_co_id = col_co_id unless col_co_id == SKIP
96
94
  @payer_number = payer_number unless payer_number == SKIP
97
95
  @payer_id = payer_id unless payer_id == SKIP
98
96
  @account_id = account_id unless account_id == SKIP
@@ -106,8 +104,8 @@ module ShellCardManagementApIs
106
104
 
107
105
  # Extract variables from the hash.
108
106
  bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
109
- col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
110
107
  col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
108
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
111
109
  payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
112
110
  payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
113
111
  account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
@@ -115,8 +113,8 @@ module ShellCardManagementApIs
115
113
 
116
114
  # Create object from extracted values.
117
115
  DeleteBundleRequest.new(bundle_id,
118
- col_co_id,
119
116
  col_co_code,
117
+ col_co_id,
120
118
  payer_number,
121
119
  payer_id,
122
120
  account_id,
@@ -13,15 +13,15 @@ module ShellCardManagementApIs
13
13
  # @return [String]
14
14
  attr_accessor :request_id
15
15
 
16
- # API Response Status
17
- # @return [String]
18
- attr_accessor :status
16
+ # API Request Id
17
+ # @return [ErrorStatus]
18
+ attr_accessor :error
19
19
 
20
20
  # A mapping from model property names to API property names.
21
21
  def self.names
22
22
  @_hash = {} if @_hash.nil?
23
23
  @_hash['request_id'] = 'RequestId'
24
- @_hash['status'] = 'Status'
24
+ @_hash['error'] = 'Error'
25
25
  @_hash
26
26
  end
27
27
 
@@ -29,7 +29,7 @@ module ShellCardManagementApIs
29
29
  def self.optionals
30
30
  %w[
31
31
  request_id
32
- status
32
+ error
33
33
  ]
34
34
  end
35
35
 
@@ -38,10 +38,9 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(request_id = SKIP,
42
- status = SKIP)
41
+ def initialize(request_id = SKIP, error = SKIP)
43
42
  @request_id = request_id unless request_id == SKIP
44
- @status = status unless status == SKIP
43
+ @error = error unless error == SKIP
45
44
  end
46
45
 
47
46
  # Creates an instance of the object from a hash.
@@ -50,11 +49,11 @@ module ShellCardManagementApIs
50
49
 
51
50
  # Extract variables from the hash.
52
51
  request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
53
- status = hash.key?('Status') ? hash['Status'] : SKIP
52
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
54
53
 
55
54
  # Create object from extracted values.
56
55
  DeleteBundleResponse.new(request_id,
57
- status)
56
+ error)
58
57
  end
59
58
  end
60
59
  end
@@ -39,11 +39,14 @@ module ShellCardManagementApIs
39
39
  # @return [TrueClass | FalseClass]
40
40
  attr_accessor :use_customer_default_address
41
41
 
42
- # Delivery address of card. This address will be used for card reissue and
43
- # PIN reminders in future.
44
- # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
45
- # field is ignored otherwise.
46
- # @return [UpdateCardRenewalAddress]
42
+ # Whether to use the default delivery address configured at customer (or
43
+ # card group) level as the delivery address for this card.
44
+ # Mandatory
45
+ # Note: If value is false then ‘UpdateCardRenewalAddress’ is mandatory. If
46
+ # value set to ‘True’ then
47
+ # ‘UpdateCardRenewalAddress’ may be null/empty. It will be ignored if
48
+ # provided.
49
+ # @return [UpdateCardRenewalAddress2]
47
50
  attr_accessor :update_card_renewal_address
48
51
 
49
52
  # A mapping from model property names to API property names.
@@ -72,10 +75,8 @@ module ShellCardManagementApIs
72
75
  []
73
76
  end
74
77
 
75
- def initialize(use_customer_default_address = false,
76
- card_id = SKIP,
77
- pan = SKIP,
78
- card_expiry_date = SKIP,
78
+ def initialize(use_customer_default_address = nil, card_id = SKIP,
79
+ pan = SKIP, card_expiry_date = SKIP,
79
80
  update_card_renewal_address = SKIP)
80
81
  @card_id = card_id unless card_id == SKIP
81
82
  @pan = pan unless pan == SKIP
@@ -92,13 +93,14 @@ module ShellCardManagementApIs
92
93
  return nil unless hash
93
94
 
94
95
  # Extract variables from the hash.
95
- use_customer_default_address = hash['UseCustomerDefaultAddress'] ||= false
96
+ use_customer_default_address =
97
+ hash.key?('UseCustomerDefaultAddress') ? hash['UseCustomerDefaultAddress'] : nil
96
98
  card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
97
99
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
98
100
  card_expiry_date =
99
101
  hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
100
102
  if hash['UpdateCardRenewalAddress']
101
- update_card_renewal_address = UpdateCardRenewalAddress.from_hash(hash['UpdateCardRenewalAddress'])
103
+ update_card_renewal_address = UpdateCardRenewalAddress2.from_hash(hash['UpdateCardRenewalAddress'])
102
104
  end
103
105
 
104
106
  # Create object from extracted values.
@@ -64,11 +64,8 @@ module ShellCardManagementApIs
64
64
  []
65
65
  end
66
66
 
67
- def initialize(card_id = SKIP,
68
- card_pan = SKIP,
69
- account_id = SKIP,
70
- account_number = SKIP,
71
- reference_id = SKIP,
67
+ def initialize(card_id = SKIP, card_pan = SKIP, account_id = SKIP,
68
+ account_number = SKIP, reference_id = SKIP,
72
69
  error_info = SKIP)
73
70
  @card_id = card_id unless card_id == SKIP
74
71
  @card_pan = card_pan unless card_pan == SKIP
@@ -0,0 +1,98 @@
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
+ # DeliveryAddressUpdateReferences2 Model.
8
+ class DeliveryAddressUpdateReferences2 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # CardId
13
+ # @return [Integer]
14
+ attr_accessor :card_id
15
+
16
+ # PAN of the card.
17
+ # @return [String]
18
+ attr_accessor :card_pan
19
+
20
+ # AccountId
21
+ # @return [Integer]
22
+ attr_accessor :account_id
23
+
24
+ # Account number
25
+ # @return [String]
26
+ attr_accessor :account_number
27
+
28
+ # Individual delivery address update reference number for the delivery
29
+ # address update request.
30
+ # @return [Integer]
31
+ attr_accessor :reference_id
32
+
33
+ # Individual error information for the delivery address update request.
34
+ # @return [String]
35
+ attr_accessor :error_info
36
+
37
+ # A mapping from model property names to API property names.
38
+ def self.names
39
+ @_hash = {} if @_hash.nil?
40
+ @_hash['card_id'] = 'CardId'
41
+ @_hash['card_pan'] = 'CardPAN'
42
+ @_hash['account_id'] = 'AccountId'
43
+ @_hash['account_number'] = 'AccountNumber'
44
+ @_hash['reference_id'] = 'ReferenceId'
45
+ @_hash['error_info'] = 'ErrorInfo'
46
+ @_hash
47
+ end
48
+
49
+ # An array for optional fields
50
+ def self.optionals
51
+ %w[
52
+ card_id
53
+ card_pan
54
+ account_id
55
+ account_number
56
+ reference_id
57
+ error_info
58
+ ]
59
+ end
60
+
61
+ # An array for nullable fields
62
+ def self.nullables
63
+ []
64
+ end
65
+
66
+ def initialize(card_id = SKIP, card_pan = SKIP, account_id = SKIP,
67
+ account_number = SKIP, reference_id = SKIP,
68
+ error_info = SKIP)
69
+ @card_id = card_id unless card_id == SKIP
70
+ @card_pan = card_pan unless card_pan == SKIP
71
+ @account_id = account_id unless account_id == SKIP
72
+ @account_number = account_number unless account_number == SKIP
73
+ @reference_id = reference_id unless reference_id == SKIP
74
+ @error_info = error_info unless error_info == SKIP
75
+ end
76
+
77
+ # Creates an instance of the object from a hash.
78
+ def self.from_hash(hash)
79
+ return nil unless hash
80
+
81
+ # Extract variables from the hash.
82
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
83
+ card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
84
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
85
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
86
+ reference_id = hash.key?('ReferenceId') ? hash['ReferenceId'] : SKIP
87
+ error_info = hash.key?('ErrorInfo') ? hash['ErrorInfo'] : SKIP
88
+
89
+ # Create object from extracted values.
90
+ DeliveryAddressUpdateReferences2.new(card_id,
91
+ card_pan,
92
+ account_id,
93
+ account_number,
94
+ reference_id,
95
+ error_info)
96
+ end
97
+ end
98
+ end
@@ -78,13 +78,9 @@ module ShellCardManagementApIs
78
78
  []
79
79
  end
80
80
 
81
- def initialize(col_co_id = SKIP,
82
- col_co_code = SKIP,
83
- payer_id = SKIP,
84
- payer_number = SKIP,
85
- account_id = SKIP,
86
- account_number = SKIP,
87
- delivery_address_updates = SKIP)
81
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
82
+ payer_number = SKIP, account_id = SKIP,
83
+ account_number = SKIP, delivery_address_updates = SKIP)
88
84
  @col_co_id = col_co_id unless col_co_id == SKIP
89
85
  @col_co_code = col_co_code unless col_co_code == SKIP
90
86
  @payer_id = payer_id unless payer_id == SKIP