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
@@ -52,32 +52,8 @@ module ShellCardManagementApIs
52
52
  # @return [String]
53
53
  attr_accessor :pan
54
54
 
55
- # Possible Id’s and description:
56
- # * 1 Active
57
- # * 7 Blocked Card
58
- # * 8 Expired
59
- # * 9 Cancelled
60
- # * 10 New
61
- # * 23 Pending Renewal
62
- # * 31 Replaced
63
- # * 41 Temporary Block (Customer)
64
- # * 42 Temporary Block (Shell)
65
- # * 43 Fraud
66
- # * 101 Active (Block in progress) *
67
- # * 102 Blocked Card (Unblock in progress) *
68
- # * 103 Active (Cancel in progress) *
69
- # * 104 Active (Marked as damaged) *
70
- # * 105 New (Cancel as damaged) *
71
- # * 106 Active(Scheduled for block) ”#
72
- # * 107 Blocked Card(Scheduled for unblock)*#
73
- # * 108 Blocked Card (Cancel in progress) *
74
- # > Note:
75
- # • Items marked with * are intermediate statuses to indicate that there
76
- # are pending requests in progress. , The response can contain these
77
- # intermediate statuses only if the IncludeIntermediateStatus flag is true.
78
- # • The placeholder “<Shell Card Platform Status>” in the items marked with
79
- # # will be replaced with the Shell Card Platform status description. E.g.,
80
- # “Active (Scheduled for block)”
55
+ # Card PAN. In the response body the PAN will be masked if the option is
56
+ # enabled in the Shell Card Platform.
81
57
  # @return [CardDetailsResponseStatusIdEnum]
82
58
  attr_accessor :status_id
83
59
 
@@ -118,9 +94,7 @@ module ShellCardManagementApIs
118
94
  # @return [TrueClass | FalseClass]
119
95
  attr_accessor :fleet_id_prompt
120
96
 
121
- # PIN type:
122
- # * `Card` - Card PIN
123
- # * `Fleet` - Fleet PIN
97
+ # True if fleet id input is enabled, else false
124
98
  # @return [CardDetailsResponsePINTypeEnum]
125
99
  attr_accessor :pin_type
126
100
 
@@ -148,152 +122,24 @@ module ShellCardManagementApIs
148
122
  # @return [Integer]
149
123
  attr_accessor :issue_number
150
124
 
151
- # Reissue setting of the card. If the card is superseded (i.e. a
152
- # replacement/new card is issued) then reissue setting of the latest card
153
- # issued. Reissue setting:
154
- # * `True` - Card will be Reissued when nearing its expiry date
155
- # * `False` - Card will not be Reissued
156
- # @return [CardDetailsResponseReissueSettingEnum]
125
+ # Issue number of the card
126
+ # @return [Object]
157
127
  attr_accessor :reissue_setting
158
128
 
159
- # POS language identifier. Language Id:
160
- # * `1` - German
161
- # * `2` - French
162
- # * `3` - Bulgarian
163
- # * `4` - Croatian
164
- # * `5` - Czech
165
- # * `6` - Danish
166
- # * `7` - Finnish
167
- # * `8` - English
168
- # * `9` - Greek
169
- # * `10` - Chinese
170
- # * `11` - Hungarian
171
- # * `12` - Italian
172
- # * `13` - Luxembourgish
173
- # * `14` - Malay
174
- # * `15` - Dutch
175
- # * `16` - Norwegian, Bokmal
176
- # * `17` - Urdu
177
- # * `18` - Polish
178
- # * `19` - Portuguese
179
- # * `20` - Romanian
180
- # * `21` - Russian
181
- # * `22` - Slovak
182
- # * `23` - Slovenian
183
- # * `24` - Spanish
184
- # * `25` - Swedish
185
- # * `26` - Turkish
186
- # * `27` - Thai
187
- # * `28` - Filipino
188
- # * `29` - Estonian
189
- # * `30` - Latvian
190
- # * `31` - Lithuanian
129
+ # Issue number of the card
191
130
  # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
192
131
  attr_accessor :international_pos_language_id
193
132
 
194
- # POS language code. Language code:
195
- # * `deu` - German
196
- # * `fra` - French
197
- # * `bul` - Bulgarian
198
- # * `hrv` - Croatian
199
- # * `ces` - Czech
200
- # * `dan` - Danish
201
- # * `fin` - Finnish
202
- # * `eng` - English
203
- # * `ell` - Greek
204
- # * `zho` - Chinese
205
- # * `hun` - Hungarian
206
- # * `ita` - Italian
207
- # * `ltz` - Luxembourgish
208
- # * `msa` - Malay
209
- # * `nld` - Dutch
210
- # * `nob` - Norwegian, Bokmal
211
- # * `urd` - Urdu
212
- # * `pol` - Polish
213
- # * `por` - Portuguese
214
- # * `ron` - Romanian
215
- # * `rus` - Russian
216
- # * `slk` - Slovak
217
- # * `slv` - Slovenian
218
- # * `spa` - Spanish
219
- # * `swe` - Swedish
220
- # * `tur` - Turkish
221
- # * `tha` - Thai
222
- # * `fil` - Filipino
223
- # * `est` - Estonian
224
- # * `lav` - Latvian
225
- # * `lit` - Lithuanian
133
+ # Issue number of the card
226
134
  # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
227
135
  attr_accessor :international_pos_language_code
228
136
 
229
- # POS language identifier. Language Id:
230
- # * `1` - German
231
- # * `2` - French
232
- # * `3` - Bulgarian
233
- # * `4` - Croatian
234
- # * `5` - Czech
235
- # * `6` - Danish
236
- # * `7` - Finnish
237
- # * `8` - English
238
- # * `9` - Greek
239
- # * `10` - Chinese
240
- # * `11` - Hungarian
241
- # * `12` - Italian
242
- # * `13` - Luxembourgish
243
- # * `14` - Malay
244
- # * `15` - Dutch
245
- # * `16` - Norwegian, Bokmal
246
- # * `17` - Urdu
247
- # * `18` - Polish
248
- # * `19` - Portuguese
249
- # * `20` - Romanian
250
- # * `21` - Russian
251
- # * `22` - Slovak
252
- # * `23` - Slovenian
253
- # * `24` - Spanish
254
- # * `25` - Swedish
255
- # * `26` - Turkish
256
- # * `27` - Thai
257
- # * `28` - Filipino
258
- # * `29` - Estonian
259
- # * `30` - Latvian
260
- # * `31` - Lithuanian
261
- # @return [CardDetailsResponseLocalPOSLanguageIDEnum]
137
+ # Issue number of the card
138
+ # @return [CardDetailsResponseInternationalPOSLanguageIDEnum]
262
139
  attr_accessor :local_pos_language_id
263
140
 
264
- # POS language code. Language code:
265
- # * `deu` - German
266
- # * `fra` - French
267
- # * `bul` - Bulgarian
268
- # * `hrv` - Croatian
269
- # * `ces` - Czech
270
- # * `dan` - Danish
271
- # * `fin` - Finnish
272
- # * `eng` - English
273
- # * `ell` - Greek
274
- # * `zho` - Chinese
275
- # * `hun` - Hungarian
276
- # * `ita` - Italian
277
- # * `ltz` - Luxembourgish
278
- # * `msa` - Malay
279
- # * `nld` - Dutch
280
- # * `nob` - Norwegian, Bokmal
281
- # * `urd` - Urdu
282
- # * `pol` - Polish
283
- # * `por` - Portuguese
284
- # * `ron` - Romanian
285
- # * `rus` - Russian
286
- # * `slk` - Slovak
287
- # * `slv` - Slovenian
288
- # * `spa` - Spanish
289
- # * `swe` - Swedish
290
- # * `tur` - Turkish
291
- # * `tha` - Thai
292
- # * `fil` - Filipino
293
- # * `est` - Estonian
294
- # * `lav` - Latvian
295
- # * `lit` - Lithuanian
296
- # @return [CardDetailsResponseLocalPOSLanguageCodeEnum]
141
+ # Issue number of the card
142
+ # @return [CardDetailsResponseInternationalPOSLanguageCodeEnum]
297
143
  attr_accessor :local_pos_language_code
298
144
 
299
145
  # ISO code of the card i.e. first 7 digits of the PAN.
@@ -445,9 +291,7 @@ module ShellCardManagementApIs
445
291
  # @return [Integer]
446
292
  attr_accessor :renewed_card_issue_number
447
293
 
448
- # Reissue setting of the renewed new card. Reissue Setting:
449
- # * `True` - Card will be sent to production
450
- # * `False` - Parent Card is Dormant or the Card is not to be produced
294
+ # Renewed card issue number.
451
295
  # @return [CardDetailsResponseRenewedCardReissueSettingEnum]
452
296
  attr_accessor :renewed_card_reissue_setting
453
297
 
@@ -469,19 +313,27 @@ module ShellCardManagementApIs
469
313
  # @return [String]
470
314
  attr_accessor :bundle_id
471
315
 
472
- # Delivery address.
473
- # @return [CardDetailsResponseCardDeliveryAddress]
316
+ # Bundle Id associated with card in the Gateway. This field will have a null
317
+ # value if the card is not associated with any bundle in Gateway or the
318
+ # value of IncludeBundleDetails in request is false.
319
+ # @return [CardDeliveryAddress]
474
320
  attr_accessor :card_delivery_address
475
321
 
476
- # Delivery address.
477
- # @return [CardDetailsResponsePINDeliveryAddress]
322
+ # Bundle Id associated with card in the Gateway. This field will have a null
323
+ # value if the card is not associated with any bundle in Gateway or the
324
+ # value of IncludeBundleDetails in request is false.
325
+ # @return [PINDeliveryAddress]
478
326
  attr_accessor :pin_delivery_address
479
327
 
480
- # Delivery address.
328
+ # Bundle Id associated with card in the Gateway. This field will have a null
329
+ # value if the card is not associated with any bundle in Gateway or the
330
+ # value of IncludeBundleDetails in request is false.
481
331
  # @return [Array[CardDetailsResponseCardBlockSchedulesItemsAllOf0]]
482
332
  attr_accessor :card_block_schedules
483
333
 
484
- # Delivery address.
334
+ # Bundle Id associated with card in the Gateway. This field will have a null
335
+ # value if the card is not associated with any bundle in Gateway or the
336
+ # value of IncludeBundleDetails in request is false.
485
337
  # @return [ErrorStatus]
486
338
  attr_accessor :error
487
339
 
@@ -656,7 +508,6 @@ module ShellCardManagementApIs
656
508
  local_currency_code
657
509
  local_currency_symbol
658
510
  pan
659
- reissue_setting
660
511
  card_type_code
661
512
  card_type_id
662
513
  card_type_name
@@ -682,77 +533,39 @@ module ShellCardManagementApIs
682
533
  ]
683
534
  end
684
535
 
685
- def initialize(payer_id = SKIP,
686
- payer_number = SKIP,
687
- account_id = SKIP,
688
- account_number = SKIP,
689
- account_short_name = SKIP,
690
- col_co_country_code = SKIP,
691
- local_currency_code = SKIP,
692
- local_currency_symbol = SKIP,
693
- card_id = SKIP,
694
- pan = SKIP,
695
- status_id = SKIP,
696
- status = SKIP,
697
- odometer_prompt = SKIP,
698
- fleet_id_prompt = SKIP,
699
- pin_type = SKIP,
700
- has_pin = SKIP,
701
- is_self_selected_pin = SKIP,
702
- temporary_block_allowed = SKIP,
703
- unblock_allowed = SKIP,
704
- permanent_block_allowed = SKIP,
705
- issue_number = SKIP,
706
- reissue_setting = SKIP,
536
+ def initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP,
537
+ account_number = SKIP, account_short_name = SKIP,
538
+ col_co_country_code = SKIP, local_currency_code = SKIP,
539
+ local_currency_symbol = SKIP, card_id = SKIP, pan = SKIP,
540
+ status_id = SKIP, status = SKIP, odometer_prompt = SKIP,
541
+ fleet_id_prompt = SKIP, pin_type = SKIP, has_pin = SKIP,
542
+ is_self_selected_pin = SKIP, temporary_block_allowed = SKIP,
543
+ unblock_allowed = SKIP, permanent_block_allowed = SKIP,
544
+ issue_number = SKIP, reissue_setting = SKIP,
707
545
  international_pos_language_id = SKIP,
708
546
  international_pos_language_code = SKIP,
709
- local_pos_language_id = SKIP,
710
- local_pos_language_code = SKIP,
711
- card_type_code = SKIP,
712
- card_type_id = SKIP,
713
- card_type_name = SKIP,
714
- token_type_id = SKIP,
715
- token_type_name = SKIP,
716
- is_chip_card = SKIP,
717
- is_mag_strip_card = SKIP,
718
- is_virtual_card = SKIP,
719
- purchase_category_code = SKIP,
720
- purchase_category_id = SKIP,
721
- purchase_category_name = SKIP,
722
- is_crt = SKIP,
723
- is_fleet = SKIP,
724
- is_international = SKIP,
725
- is_national = SKIP,
726
- is_partner_sites_included = SKIP,
727
- is_shell_sites_only = SKIP,
728
- fuel_sets = SKIP,
729
- non_fuel_sets = SKIP,
730
- issued_date = SKIP,
731
- expiry_date = SKIP,
732
- last_used_date = SKIP,
733
- misuse_date = SKIP,
734
- temperature = SKIP,
735
- driver_name = SKIP,
736
- vrn = SKIP,
737
- emboss_text = SKIP,
738
- card_group_id = SKIP,
739
- card_group_name = SKIP,
740
- renewal_date = SKIP,
741
- renewed_card_id = SKIP,
742
- renewed_card_status_id = SKIP,
743
- renewed_card_status = SKIP,
744
- renewed_card_expiry_date = SKIP,
547
+ local_pos_language_id = SKIP, local_pos_language_code = SKIP,
548
+ card_type_code = SKIP, card_type_id = SKIP,
549
+ card_type_name = SKIP, token_type_id = SKIP,
550
+ token_type_name = SKIP, is_chip_card = SKIP,
551
+ is_mag_strip_card = SKIP, is_virtual_card = SKIP,
552
+ purchase_category_code = SKIP, purchase_category_id = SKIP,
553
+ purchase_category_name = SKIP, is_crt = SKIP,
554
+ is_fleet = SKIP, is_international = SKIP, is_national = SKIP,
555
+ is_partner_sites_included = SKIP, is_shell_sites_only = SKIP,
556
+ fuel_sets = SKIP, non_fuel_sets = SKIP, issued_date = SKIP,
557
+ expiry_date = SKIP, last_used_date = SKIP,
558
+ misuse_date = SKIP, temperature = SKIP, driver_name = SKIP,
559
+ vrn = SKIP, emboss_text = SKIP, card_group_id = SKIP,
560
+ card_group_name = SKIP, renewal_date = SKIP,
561
+ renewed_card_id = SKIP, renewed_card_status_id = SKIP,
562
+ renewed_card_status = SKIP, renewed_card_expiry_date = SKIP,
745
563
  renewed_card_issue_number = SKIP,
746
- renewed_card_reissue_setting = SKIP,
747
- creation_date = SKIP,
748
- effective_date = SKIP,
749
- last_modified_date = SKIP,
750
- bundle_id = SKIP,
751
- card_delivery_address = SKIP,
752
- pin_delivery_address = SKIP,
753
- card_block_schedules = SKIP,
754
- error = SKIP,
755
- request_id = SKIP)
564
+ renewed_card_reissue_setting = SKIP, creation_date = SKIP,
565
+ effective_date = SKIP, last_modified_date = SKIP,
566
+ bundle_id = SKIP, card_delivery_address = SKIP,
567
+ pin_delivery_address = SKIP, card_block_schedules = SKIP,
568
+ error = SKIP, request_id = SKIP)
756
569
  @payer_id = payer_id unless payer_id == SKIP
757
570
  @payer_number = payer_number unless payer_number == SKIP
758
571
  @account_id = account_id unless account_id == SKIP
@@ -962,12 +775,10 @@ module ShellCardManagementApIs
962
775
  last_modified_date =
963
776
  hash.key?('LastModifiedDate') ? hash['LastModifiedDate'] : SKIP
964
777
  bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
965
- if hash['CardDeliveryAddress']
966
- card_delivery_address = CardDetailsResponseCardDeliveryAddress.from_hash(hash['CardDeliveryAddress'])
967
- end
968
- if hash['PINDeliveryAddress']
969
- pin_delivery_address = CardDetailsResponsePINDeliveryAddress.from_hash(hash['PINDeliveryAddress'])
970
- end
778
+ card_delivery_address = CardDeliveryAddress.from_hash(hash['CardDeliveryAddress']) if
779
+ hash['CardDeliveryAddress']
780
+ pin_delivery_address = PINDeliveryAddress.from_hash(hash['PINDeliveryAddress']) if
781
+ hash['PINDeliveryAddress']
971
782
  # Parameter is an array, so we need to iterate through it
972
783
  card_block_schedules = nil
973
784
  unless hash['CardBlockSchedules'].nil?
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(from_date = SKIP,
42
- to_date = SKIP)
41
+ def initialize(from_date = SKIP, to_date = SKIP)
43
42
  @from_date = from_date unless from_date == SKIP
44
43
  @to_date = to_date unless to_date == SKIP
45
44
  end
@@ -145,21 +145,12 @@ module ShellCardManagementApIs
145
145
  ]
146
146
  end
147
147
 
148
- def initialize(company_name = nil,
149
- address_id = nil,
150
- address_line1 = nil,
151
- zip_code = nil,
152
- country_id = nil,
153
- country_iso_code = nil,
154
- country = nil,
155
- contact_fore_name = SKIP,
156
- contact_middle_name = SKIP,
157
- contact_last_name = SKIP,
158
- contact_title = SKIP,
159
- address_line2 = SKIP,
160
- address_line3 = SKIP,
161
- city = SKIP,
162
- region_id = SKIP,
148
+ def initialize(company_name = nil, address_id = nil, address_line1 = nil,
149
+ zip_code = nil, country_id = nil, country_iso_code = nil,
150
+ country = nil, contact_fore_name = SKIP,
151
+ contact_middle_name = SKIP, contact_last_name = SKIP,
152
+ contact_title = SKIP, address_line2 = SKIP,
153
+ address_line3 = SKIP, city = SKIP, region_id = SKIP,
163
154
  region = SKIP)
164
155
  @contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
165
156
  @contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
@@ -35,8 +35,7 @@ module ShellCardManagementApIs
35
35
  []
36
36
  end
37
37
 
38
- def initialize(product_restriction_id = nil,
39
- description = nil)
38
+ def initialize(product_restriction_id = nil, description = nil)
40
39
  @product_restriction_id = product_restriction_id
41
40
  @description = description
42
41
  end
@@ -35,8 +35,7 @@ module ShellCardManagementApIs
35
35
  []
36
36
  end
37
37
 
38
- def initialize(product_restriction_id = nil,
39
- description = nil)
38
+ def initialize(product_restriction_id = nil, description = nil)
40
39
  @product_restriction_id = product_restriction_id
41
40
  @description = description
42
41
  end
@@ -149,21 +149,12 @@ module ShellCardManagementApIs
149
149
  ]
150
150
  end
151
151
 
152
- def initialize(company_name = nil,
153
- address_id = nil,
154
- address_line1 = nil,
155
- zip_code = nil,
156
- country_id = nil,
157
- country_iso_code = nil,
158
- country = nil,
159
- contact_fore_name = SKIP,
160
- contact_middle_name = SKIP,
161
- contact_last_name = SKIP,
162
- contact_title = SKIP,
163
- address_line2 = SKIP,
164
- address_line3 = SKIP,
165
- city = SKIP,
166
- region_id = SKIP,
152
+ def initialize(company_name = nil, address_id = nil, address_line1 = nil,
153
+ zip_code = nil, country_id = nil, country_iso_code = nil,
154
+ country = nil, contact_fore_name = SKIP,
155
+ contact_middle_name = SKIP, contact_last_name = SKIP,
156
+ contact_title = SKIP, address_line2 = SKIP,
157
+ address_line3 = SKIP, city = SKIP, region_id = SKIP,
167
158
  region = SKIP)
168
159
  @contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
169
160
  @contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
@@ -118,15 +118,9 @@ module ShellCardManagementApIs
118
118
  ]
119
119
  end
120
120
 
121
- def initialize(col_co_id = SKIP,
122
- col_co_code = SKIP,
123
- payer_id = SKIP,
124
- payer_number = SKIP,
125
- account = SKIP,
126
- card_group_name = SKIP,
127
- status = SKIP,
128
- current_page = SKIP,
129
- page_size = SKIP)
121
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
122
+ payer_number = SKIP, account = SKIP, card_group_name = SKIP,
123
+ status = SKIP, current_page = SKIP, page_size = SKIP)
130
124
  @col_co_id = col_co_id unless col_co_id == SKIP
131
125
  @col_co_code = col_co_code unless col_co_code == SKIP
132
126
  @payer_id = payer_id unless payer_id == SKIP
@@ -62,12 +62,8 @@ module ShellCardManagementApIs
62
62
  []
63
63
  end
64
64
 
65
- def initialize(card_groups = SKIP,
66
- current_page = SKIP,
67
- row_count = SKIP,
68
- total_pages = SKIP,
69
- error = SKIP,
70
- request_id = SKIP)
65
+ def initialize(card_groups = SKIP, current_page = SKIP, row_count = SKIP,
66
+ total_pages = SKIP, error = SKIP, request_id = SKIP)
71
67
  @card_groups = card_groups unless card_groups == SKIP
72
68
  @current_page = current_page unless current_page == SKIP
73
69
  @row_count = row_count unless row_count == SKIP
@@ -188,27 +188,17 @@ module ShellCardManagementApIs
188
188
  ]
189
189
  end
190
190
 
191
- def initialize(account_id = SKIP,
192
- account_number = SKIP,
193
- account_short_name = SKIP,
194
- active_cards = SKIP,
195
- blocked_cards = SKIP,
196
- cancelled_cards = SKIP,
197
- card_delivery_point = SKIP,
198
- card_group_id = SKIP,
199
- card_group_name = SKIP,
200
- card_type_code = SKIP,
201
- card_type_id = SKIP,
202
- card_type_name = SKIP,
203
- expired_cards = SKIP,
204
- expiry_date = SKIP,
205
- print_on_card = SKIP,
206
- renewal_pending_cards = SKIP,
207
- replaced_cards = SKIP,
208
- status = SKIP,
191
+ def initialize(account_id = SKIP, account_number = SKIP,
192
+ account_short_name = SKIP, active_cards = SKIP,
193
+ blocked_cards = SKIP, cancelled_cards = SKIP,
194
+ card_delivery_point = SKIP, card_group_id = SKIP,
195
+ card_group_name = SKIP, card_type_code = SKIP,
196
+ card_type_id = SKIP, card_type_name = SKIP,
197
+ expired_cards = SKIP, expiry_date = SKIP,
198
+ print_on_card = SKIP, renewal_pending_cards = SKIP,
199
+ replaced_cards = SKIP, status = SKIP,
209
200
  temporary_block_by_customer = SKIP,
210
- temporary_block_by_shell = SKIP,
211
- terminated_date = SKIP,
201
+ temporary_block_by_shell = SKIP, terminated_date = SKIP,
212
202
  total_cards = SKIP)
213
203
  @account_id = account_id unless account_id == SKIP
214
204
  @account_number = account_number unless account_number == SKIP
@@ -0,0 +1,104 @@
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
+ # CardManagementV1CancelRequest Model.
8
+ class CardManagementV1CancelRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # List of CancelCardRequest entity.
13
+ # Each card in the list will be Cancelled.
14
+ # The details of the entity are given below.
15
+ # @return [Array[UpdateCard]]
16
+ attr_accessor :cards
17
+
18
+ # Reason id for cancelling the card.<br />
19
+ # Optional if ReasonText is passed, else mandatory<br />
20
+ # When passed, the reason Id will be validated with the allowed reason id’s
21
+ # configured for the card type of the card.<br />
22
+ # If the reason Id is not allowed, then it will be included on the error
23
+ # cards response.
24
+ # Possible values:
25
+ # 1 (Lost)
26
+ # 2 (Stolen)
27
+ # 3 (Card no longer required)
28
+ # @return [Integer]
29
+ attr_accessor :reason_id
30
+
31
+ # Reason text for cancelling the card.<br />
32
+ # Optional if ReasonId is passed, else mandatory<br />
33
+ # When Reason Id is not known to the client, the reason text can be
34
+ # passed.<br />
35
+ # When Reason Text is passed and the Target Status is either Block or
36
+ # Damaged, the text will be validated with the allowed list of values
37
+ # configured for the card type of the card.
38
+ # If the text is not allowed, then it will be included on the error cards
39
+ # response.
40
+ # However, if the Target status is Temporary block or Unblock then the text
41
+ # will be submitted
42
+ # Possible Values:
43
+ # 1) Lost
44
+ # 2) Stolen
45
+ # 3) Card no longer required
46
+ # @return [String]
47
+ attr_accessor :reason_text
48
+
49
+ # A mapping from model property names to API property names.
50
+ def self.names
51
+ @_hash = {} if @_hash.nil?
52
+ @_hash['cards'] = 'Cards'
53
+ @_hash['reason_id'] = 'ReasonId'
54
+ @_hash['reason_text'] = 'ReasonText'
55
+ @_hash
56
+ end
57
+
58
+ # An array for optional fields
59
+ def self.optionals
60
+ %w[
61
+ reason_id
62
+ reason_text
63
+ ]
64
+ end
65
+
66
+ # An array for nullable fields
67
+ def self.nullables
68
+ %w[
69
+ reason_id
70
+ reason_text
71
+ ]
72
+ end
73
+
74
+ def initialize(cards = nil, reason_id = SKIP, reason_text = SKIP)
75
+ @cards = cards
76
+ @reason_id = reason_id unless reason_id == SKIP
77
+ @reason_text = reason_text unless reason_text == SKIP
78
+ end
79
+
80
+ # Creates an instance of the object from a hash.
81
+ def self.from_hash(hash)
82
+ return nil unless hash
83
+
84
+ # Extract variables from the hash.
85
+ # Parameter is an array, so we need to iterate through it
86
+ cards = nil
87
+ unless hash['Cards'].nil?
88
+ cards = []
89
+ hash['Cards'].each do |structure|
90
+ cards << (UpdateCard.from_hash(structure) if structure)
91
+ end
92
+ end
93
+
94
+ cards = nil unless hash.key?('Cards')
95
+ reason_id = hash.key?('ReasonId') ? hash['ReasonId'] : SKIP
96
+ reason_text = hash.key?('ReasonText') ? hash['ReasonText'] : SKIP
97
+
98
+ # Create object from extracted values.
99
+ CardManagementV1CancelRequest.new(cards,
100
+ reason_id,
101
+ reason_text)
102
+ end
103
+ end
104
+ end