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
@@ -0,0 +1,116 @@
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
+ # BundledDetailsProductList Model.
8
+ class BundledDetailsProductList < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Purchase category Id
13
+ # Example: 123, 124, etc.,
14
+ # @return [Integer]
15
+ attr_accessor :purchase_category_id
16
+
17
+ # Purchase category name.
18
+ # Example:
19
+ # 0 - All Fuels (without VP) and Lubricants
20
+ # 1 - FuelSave only
21
+ # 2 - FuelSave and Lubricants
22
+ # 3 - No Restrictions
23
+ # @return [String]
24
+ attr_accessor :purchase_category_code
25
+
26
+ # An array of 3-digit global product codes.
27
+ # Example: [ "033", "021", "023" ]
28
+ # @return [Array[String]]
29
+ attr_accessor :products
30
+
31
+ # An array of product group ids.
32
+ # Example: [ "670246404", "40557126" ]
33
+ # @return [Array[String]]
34
+ attr_accessor :product_groups
35
+
36
+ # Fuel set id that is allowed to be purchased with the card
37
+ # @return [String]
38
+ attr_accessor :fuel_set_id
39
+
40
+ # Fuel set name that is allowed to be purchased with the card
41
+ # @return [String]
42
+ attr_accessor :fuel_set_name
43
+
44
+ # Non-Fuel set name that is allowed to be purchased with the card
45
+ # @return [String]
46
+ attr_accessor :non_fuel_sets
47
+
48
+ # A mapping from model property names to API property names.
49
+ def self.names
50
+ @_hash = {} if @_hash.nil?
51
+ @_hash['purchase_category_id'] = 'PurchaseCategoryId'
52
+ @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
53
+ @_hash['products'] = 'Products'
54
+ @_hash['product_groups'] = 'ProductGroups'
55
+ @_hash['fuel_set_id'] = 'FuelSetId'
56
+ @_hash['fuel_set_name'] = 'FuelSetName'
57
+ @_hash['non_fuel_sets'] = 'NonFuelSets'
58
+ @_hash
59
+ end
60
+
61
+ # An array for optional fields
62
+ def self.optionals
63
+ %w[
64
+ purchase_category_id
65
+ purchase_category_code
66
+ products
67
+ product_groups
68
+ fuel_set_id
69
+ fuel_set_name
70
+ non_fuel_sets
71
+ ]
72
+ end
73
+
74
+ # An array for nullable fields
75
+ def self.nullables
76
+ []
77
+ end
78
+
79
+ def initialize(purchase_category_id = SKIP, purchase_category_code = SKIP,
80
+ products = SKIP, product_groups = SKIP, fuel_set_id = SKIP,
81
+ fuel_set_name = SKIP, non_fuel_sets = SKIP)
82
+ @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
83
+ @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
84
+ @products = products unless products == SKIP
85
+ @product_groups = product_groups unless product_groups == SKIP
86
+ @fuel_set_id = fuel_set_id unless fuel_set_id == SKIP
87
+ @fuel_set_name = fuel_set_name unless fuel_set_name == SKIP
88
+ @non_fuel_sets = non_fuel_sets unless non_fuel_sets == SKIP
89
+ end
90
+
91
+ # Creates an instance of the object from a hash.
92
+ def self.from_hash(hash)
93
+ return nil unless hash
94
+
95
+ # Extract variables from the hash.
96
+ purchase_category_id =
97
+ hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP
98
+ purchase_category_code =
99
+ hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
100
+ products = hash.key?('Products') ? hash['Products'] : SKIP
101
+ product_groups = hash.key?('ProductGroups') ? hash['ProductGroups'] : SKIP
102
+ fuel_set_id = hash.key?('FuelSetId') ? hash['FuelSetId'] : SKIP
103
+ fuel_set_name = hash.key?('FuelSetName') ? hash['FuelSetName'] : SKIP
104
+ non_fuel_sets = hash.key?('NonFuelSets') ? hash['NonFuelSets'] : SKIP
105
+
106
+ # Create object from extracted values.
107
+ BundledDetailsProductList.new(purchase_category_id,
108
+ purchase_category_code,
109
+ products,
110
+ product_groups,
111
+ fuel_set_id,
112
+ fuel_set_name,
113
+ non_fuel_sets)
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,88 @@
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
+ # BundledRestrictionsList Model.
8
+ class BundledRestrictionsList < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Details of the usage restrictions such as day/week/month value and volume
13
+ # restrictions applied on the card.
14
+ # @return [UsageRestriction]
15
+ attr_accessor :usage_restrictions
16
+
17
+ # Details of the day/time restrictions such as weekdays and time range in
18
+ # which transactions should be allowed on the card.
19
+ # @return [DayTimeRestriction]
20
+ attr_accessor :day_time_restrictions
21
+
22
+ # Details of the day/time restrictions such as weekdays and time range in
23
+ # which transactions should be allowed on the card.
24
+ # @return [BundledDetailsProductList]
25
+ attr_accessor :product_restrictions
26
+
27
+ # Details of the day/time restrictions such as weekdays and time range in
28
+ # which transactions should be allowed on the card.
29
+ # @return [LocationRestriction]
30
+ attr_accessor :location_restrictions
31
+
32
+ # A mapping from model property names to API property names.
33
+ def self.names
34
+ @_hash = {} if @_hash.nil?
35
+ @_hash['usage_restrictions'] = 'UsageRestrictions'
36
+ @_hash['day_time_restrictions'] = 'DayTimeRestrictions'
37
+ @_hash['product_restrictions'] = 'ProductRestrictions'
38
+ @_hash['location_restrictions'] = 'LocationRestrictions'
39
+ @_hash
40
+ end
41
+
42
+ # An array for optional fields
43
+ def self.optionals
44
+ %w[
45
+ usage_restrictions
46
+ day_time_restrictions
47
+ product_restrictions
48
+ location_restrictions
49
+ ]
50
+ end
51
+
52
+ # An array for nullable fields
53
+ def self.nullables
54
+ %w[
55
+ usage_restrictions
56
+ ]
57
+ end
58
+
59
+ def initialize(usage_restrictions = SKIP, day_time_restrictions = SKIP,
60
+ product_restrictions = SKIP, location_restrictions = SKIP)
61
+ @usage_restrictions = usage_restrictions unless usage_restrictions == SKIP
62
+ @day_time_restrictions = day_time_restrictions unless day_time_restrictions == SKIP
63
+ @product_restrictions = product_restrictions unless product_restrictions == SKIP
64
+ @location_restrictions = location_restrictions unless location_restrictions == SKIP
65
+ end
66
+
67
+ # Creates an instance of the object from a hash.
68
+ def self.from_hash(hash)
69
+ return nil unless hash
70
+
71
+ # Extract variables from the hash.
72
+ usage_restrictions = UsageRestriction.from_hash(hash['UsageRestrictions']) if
73
+ hash['UsageRestrictions']
74
+ day_time_restrictions = DayTimeRestriction.from_hash(hash['DayTimeRestrictions']) if
75
+ hash['DayTimeRestrictions']
76
+ product_restrictions = BundledDetailsProductList.from_hash(hash['ProductRestrictions']) if
77
+ hash['ProductRestrictions']
78
+ location_restrictions = LocationRestriction.from_hash(hash['LocationRestrictions']) if
79
+ hash['LocationRestrictions']
80
+
81
+ # Create object from extracted values.
82
+ BundledRestrictionsList.new(usage_restrictions,
83
+ day_time_restrictions,
84
+ product_restrictions,
85
+ location_restrictions)
86
+ end
87
+ end
88
+ end
@@ -72,9 +72,7 @@ module ShellCardManagementApIs
72
72
  ]
73
73
  end
74
74
 
75
- def initialize(cards = nil,
76
- reason_id = SKIP,
77
- reason_text = SKIP)
75
+ def initialize(cards = nil, reason_id = SKIP, reason_text = SKIP)
78
76
  @cards = cards
79
77
  @reason_id = reason_id unless reason_id == SKIP
80
78
  @reason_text = reason_text unless reason_text == SKIP
@@ -67,12 +67,9 @@ module ShellCardManagementApIs
67
67
  []
68
68
  end
69
69
 
70
- def initialize(request_id = SKIP,
71
- main_reference = SKIP,
72
- order_replacement_reference = SKIP,
73
- status = SKIP,
74
- data = SKIP,
75
- errors = SKIP)
70
+ def initialize(request_id = SKIP, main_reference = SKIP,
71
+ order_replacement_reference = SKIP, status = SKIP,
72
+ data = SKIP, errors = SKIP)
76
73
  @request_id = request_id unless request_id == SKIP
77
74
  @main_reference = main_reference unless main_reference == SKIP
78
75
  unless order_replacement_reference == SKIP
@@ -446,56 +446,29 @@ module ShellCardManagementApIs
446
446
  ]
447
447
  end
448
448
 
449
- def initialize(account_id = SKIP,
450
- account_name = SKIP,
451
- account_number = SKIP,
452
- account_short_name = SKIP,
453
- bundle_id = SKIP,
454
- card_block_schedules = SKIP,
455
- card_group_id = SKIP,
456
- card_group_name = SKIP,
457
- card_id = SKIP,
458
- card_type_code = SKIP,
459
- card_type_id = SKIP,
460
- card_type_name = SKIP,
461
- col_co_country_code = SKIP,
462
- creation_date = SKIP,
463
- driver_name = SKIP,
464
- effective_date = SKIP,
465
- expiry_date = SKIP,
466
- fleet_id_input = SKIP,
467
- is_crt = SKIP,
468
- is_fleet = SKIP,
469
- is_international = SKIP,
470
- is_national = SKIP,
471
- is_partner_sites_included = SKIP,
472
- is_shell_sites_only = SKIP,
473
- issue_date = SKIP,
474
- is_superseded = SKIP,
475
- is_virtual_card = SKIP,
476
- last_modified_date = SKIP,
477
- last_used_date = SKIP,
478
- local_currency_code = SKIP,
479
- local_currency_symbol = SKIP,
480
- odometer_input = SKIP,
481
- pan = SKIP,
482
- purchase_category_code = SKIP,
483
- purchase_category_id = SKIP,
484
- purchase_category_name = SKIP,
485
- reason = SKIP,
486
- reissue_setting = SKIP,
487
- status_description = SKIP,
488
- status_id = SKIP,
489
- token_type_id = SKIP,
490
- token_type_name = SKIP,
491
- vrn = SKIP,
492
- client_reference_id = SKIP,
493
- is_emv_contact = SKIP,
494
- is_emv_contactless = SKIP,
495
- is_rfid = SKIP,
496
- rfiduid = SKIP,
497
- emaid = SKIP,
498
- ev_printed_number = SKIP,
449
+ def initialize(account_id = SKIP, account_name = SKIP,
450
+ account_number = SKIP, account_short_name = SKIP,
451
+ bundle_id = SKIP, card_block_schedules = SKIP,
452
+ card_group_id = SKIP, card_group_name = SKIP, card_id = SKIP,
453
+ card_type_code = SKIP, card_type_id = SKIP,
454
+ card_type_name = SKIP, col_co_country_code = SKIP,
455
+ creation_date = SKIP, driver_name = SKIP,
456
+ effective_date = SKIP, expiry_date = SKIP,
457
+ fleet_id_input = SKIP, is_crt = SKIP, is_fleet = SKIP,
458
+ is_international = SKIP, is_national = SKIP,
459
+ is_partner_sites_included = SKIP, is_shell_sites_only = SKIP,
460
+ issue_date = SKIP, is_superseded = SKIP,
461
+ is_virtual_card = SKIP, last_modified_date = SKIP,
462
+ last_used_date = SKIP, local_currency_code = SKIP,
463
+ local_currency_symbol = SKIP, odometer_input = SKIP,
464
+ pan = SKIP, purchase_category_code = SKIP,
465
+ purchase_category_id = SKIP, purchase_category_name = SKIP,
466
+ reason = SKIP, reissue_setting = SKIP,
467
+ status_description = SKIP, status_id = SKIP,
468
+ token_type_id = SKIP, token_type_name = SKIP, vrn = SKIP,
469
+ client_reference_id = SKIP, is_emv_contact = SKIP,
470
+ is_emv_contactless = SKIP, is_rfid = SKIP, rfiduid = SKIP,
471
+ emaid = SKIP, ev_printed_number = SKIP,
499
472
  card_media_code = SKIP)
500
473
  @account_id = account_id unless account_id == SKIP
501
474
  @account_name = account_name unless account_name == SKIP
@@ -43,8 +43,7 @@ module ShellCardManagementApIs
43
43
  ]
44
44
  end
45
45
 
46
- def initialize(from_date = SKIP,
47
- to_date = SKIP)
46
+ def initialize(from_date = SKIP, to_date = SKIP)
48
47
  @from_date = from_date unless from_date == SKIP
49
48
  @to_date = to_date unless to_date == SKIP
50
49
  end
@@ -4,12 +4,12 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # SummaryOfBundleResponseDataItemsCardBundlesItems Model.
8
- class SummaryOfBundleResponseDataItemsCardBundlesItems < BaseModel
7
+ # CardBundle Model.
8
+ class CardBundle < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Gateway assigned unique identifier for the Card Bundle.
12
+ # Unique identifier for the Card Bundle
13
13
  # @return [String]
14
14
  attr_accessor :bundle_id
15
15
 
@@ -17,7 +17,7 @@ module ShellCardManagementApIs
17
17
  # @return [String]
18
18
  attr_accessor :external_bundle_id
19
19
 
20
- # Card Bundle Description.
20
+ # DescriptionCard Bundle Description.
21
21
  # @return [String]
22
22
  attr_accessor :description
23
23
 
@@ -47,18 +47,11 @@ module ShellCardManagementApIs
47
47
 
48
48
  # An array for nullable fields
49
49
  def self.nullables
50
- %w[
51
- bundle_id
52
- external_bundle_id
53
- description
54
- total_cards
55
- ]
50
+ []
56
51
  end
57
52
 
58
- def initialize(bundle_id = SKIP,
59
- external_bundle_id = SKIP,
60
- description = SKIP,
61
- total_cards = SKIP)
53
+ def initialize(bundle_id = SKIP, external_bundle_id = SKIP,
54
+ description = SKIP, total_cards = SKIP)
62
55
  @bundle_id = bundle_id unless bundle_id == SKIP
63
56
  @external_bundle_id = external_bundle_id unless external_bundle_id == SKIP
64
57
  @description = description unless description == SKIP
@@ -77,10 +70,10 @@ module ShellCardManagementApIs
77
70
  total_cards = hash.key?('TotalCards') ? hash['TotalCards'] : SKIP
78
71
 
79
72
  # Create object from extracted values.
80
- SummaryOfBundleResponseDataItemsCardBundlesItems.new(bundle_id,
81
- external_bundle_id,
82
- description,
83
- total_cards)
73
+ CardBundle.new(bundle_id,
74
+ external_bundle_id,
75
+ description,
76
+ total_cards)
84
77
  end
85
78
  end
86
79
  end
@@ -0,0 +1,222 @@
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
+ # CardContact Model.
8
+ class CardContact < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Title of the contact person <br />
13
+ # Optional
14
+ # Max field length: 10
15
+ # @return [String]
16
+ attr_accessor :delivery_contact_title
17
+
18
+ # Name of the contact person <br />
19
+ # Mandatory <br />
20
+ # Max field length: 50
21
+ # @return [String]
22
+ attr_accessor :delivery_contact_name
23
+
24
+ # Company name <br />
25
+ # Mandatory <br />
26
+ # Max field length: 50
27
+ # @return [String]
28
+ attr_accessor :delivery_company_name
29
+
30
+ # Address line 1 <br />
31
+ # Mandatory<br />
32
+ # Max field length: 40
33
+ # @return [String]
34
+ attr_accessor :delivery_address_line1
35
+
36
+ # Address line 2 <br />
37
+ # Optional <br />
38
+ # Max field length: 40 <br />
39
+ # Optional
40
+ # @return [String]
41
+ attr_accessor :delivery_address_line2
42
+
43
+ # Address line 3 <br />
44
+ # Optional <br />
45
+ # Max field length: 40 <br />
46
+ # Optional
47
+ # @return [String]
48
+ attr_accessor :delivery_address_line3
49
+
50
+ # ZIP code <br />
51
+ # Mandatory <br />
52
+ # Max field length: 10 <br />
53
+ # Optional
54
+ # @return [String]
55
+ attr_accessor :delivery_zip_code
56
+
57
+ # City <br />
58
+ # Mandatory <br />
59
+ # Max field length: 40
60
+ # @return [String]
61
+ attr_accessor :delivery_city
62
+
63
+ # Region Id <br />
64
+ # Optional
65
+ # @return [Integer]
66
+ attr_accessor :delivery_region_id
67
+
68
+ # Region <br />
69
+ # Optional<br />
70
+ # When region is passed
71
+ # @return [String]
72
+ attr_accessor :delivery_region
73
+
74
+ # The ISO code of the country.<br />
75
+ # @return [String]
76
+ attr_accessor :delivery_country
77
+
78
+ # Phone number for courier delivery.<br />
79
+ # Optional.<br />
80
+ # Max field length: 20
81
+ # @return [String]
82
+ attr_accessor :phone_number
83
+
84
+ # Email address for courier delivery.<br />
85
+ # Optional.<br />
86
+ # Max field length: 90 <br/>Note:Based on the international standard that
87
+ # there can be Max Length 64 before the @ (the 'Local part’) =64(minimum of
88
+ # 1) Max Lenth after the (the domain) = 88 (Minimum of 2)
89
+ # @return [String]
90
+ attr_accessor :email_address
91
+
92
+ # If this is specified, the contact address will be saved in cards platform
93
+ # for card reissue processing.<br />
94
+ # Optional
95
+ # @return [TrueClass | FalseClass]
96
+ attr_accessor :save_for_card_reissue
97
+
98
+ # A mapping from model property names to API property names.
99
+ def self.names
100
+ @_hash = {} if @_hash.nil?
101
+ @_hash['delivery_contact_title'] = 'DeliveryContactTitle'
102
+ @_hash['delivery_contact_name'] = 'DeliveryContactName'
103
+ @_hash['delivery_company_name'] = 'DeliveryCompanyName'
104
+ @_hash['delivery_address_line1'] = 'DeliveryAddressLine1'
105
+ @_hash['delivery_address_line2'] = 'DeliveryAddressLine2'
106
+ @_hash['delivery_address_line3'] = 'DeliveryAddressLine3'
107
+ @_hash['delivery_zip_code'] = 'DeliveryZipCode'
108
+ @_hash['delivery_city'] = 'DeliveryCity'
109
+ @_hash['delivery_region_id'] = 'DeliveryRegionId'
110
+ @_hash['delivery_region'] = 'DeliveryRegion'
111
+ @_hash['delivery_country'] = 'DeliveryCountry'
112
+ @_hash['phone_number'] = 'PhoneNumber'
113
+ @_hash['email_address'] = 'EmailAddress'
114
+ @_hash['save_for_card_reissue'] = 'SaveForCardReissue'
115
+ @_hash
116
+ end
117
+
118
+ # An array for optional fields
119
+ def self.optionals
120
+ %w[
121
+ delivery_contact_title
122
+ delivery_address_line2
123
+ delivery_address_line3
124
+ delivery_region_id
125
+ delivery_region
126
+ phone_number
127
+ email_address
128
+ save_for_card_reissue
129
+ ]
130
+ end
131
+
132
+ # An array for nullable fields
133
+ def self.nullables
134
+ %w[
135
+ delivery_contact_title
136
+ delivery_contact_name
137
+ delivery_company_name
138
+ delivery_address_line1
139
+ delivery_address_line2
140
+ delivery_address_line3
141
+ delivery_zip_code
142
+ delivery_city
143
+ delivery_region_id
144
+ delivery_region
145
+ delivery_country
146
+ phone_number
147
+ email_address
148
+ ]
149
+ end
150
+
151
+ def initialize(delivery_contact_name = nil, delivery_company_name = nil,
152
+ delivery_address_line1 = nil, delivery_zip_code = nil,
153
+ delivery_city = nil, delivery_country = nil,
154
+ delivery_contact_title = SKIP, delivery_address_line2 = SKIP,
155
+ delivery_address_line3 = SKIP, delivery_region_id = SKIP,
156
+ delivery_region = SKIP, phone_number = SKIP,
157
+ email_address = SKIP, save_for_card_reissue = SKIP)
158
+ @delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
159
+ @delivery_contact_name = delivery_contact_name
160
+ @delivery_company_name = delivery_company_name
161
+ @delivery_address_line1 = delivery_address_line1
162
+ @delivery_address_line2 = delivery_address_line2 unless delivery_address_line2 == SKIP
163
+ @delivery_address_line3 = delivery_address_line3 unless delivery_address_line3 == SKIP
164
+ @delivery_zip_code = delivery_zip_code
165
+ @delivery_city = delivery_city
166
+ @delivery_region_id = delivery_region_id unless delivery_region_id == SKIP
167
+ @delivery_region = delivery_region unless delivery_region == SKIP
168
+ @delivery_country = delivery_country
169
+ @phone_number = phone_number unless phone_number == SKIP
170
+ @email_address = email_address unless email_address == SKIP
171
+ @save_for_card_reissue = save_for_card_reissue unless save_for_card_reissue == SKIP
172
+ end
173
+
174
+ # Creates an instance of the object from a hash.
175
+ def self.from_hash(hash)
176
+ return nil unless hash
177
+
178
+ # Extract variables from the hash.
179
+ delivery_contact_name =
180
+ hash.key?('DeliveryContactName') ? hash['DeliveryContactName'] : nil
181
+ delivery_company_name =
182
+ hash.key?('DeliveryCompanyName') ? hash['DeliveryCompanyName'] : nil
183
+ delivery_address_line1 =
184
+ hash.key?('DeliveryAddressLine1') ? hash['DeliveryAddressLine1'] : nil
185
+ delivery_zip_code =
186
+ hash.key?('DeliveryZipCode') ? hash['DeliveryZipCode'] : nil
187
+ delivery_city = hash.key?('DeliveryCity') ? hash['DeliveryCity'] : nil
188
+ delivery_country =
189
+ hash.key?('DeliveryCountry') ? hash['DeliveryCountry'] : nil
190
+ delivery_contact_title =
191
+ hash.key?('DeliveryContactTitle') ? hash['DeliveryContactTitle'] : SKIP
192
+ delivery_address_line2 =
193
+ hash.key?('DeliveryAddressLine2') ? hash['DeliveryAddressLine2'] : SKIP
194
+ delivery_address_line3 =
195
+ hash.key?('DeliveryAddressLine3') ? hash['DeliveryAddressLine3'] : SKIP
196
+ delivery_region_id =
197
+ hash.key?('DeliveryRegionId') ? hash['DeliveryRegionId'] : SKIP
198
+ delivery_region =
199
+ hash.key?('DeliveryRegion') ? hash['DeliveryRegion'] : SKIP
200
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
201
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
202
+ save_for_card_reissue =
203
+ hash.key?('SaveForCardReissue') ? hash['SaveForCardReissue'] : SKIP
204
+
205
+ # Create object from extracted values.
206
+ CardContact.new(delivery_contact_name,
207
+ delivery_company_name,
208
+ delivery_address_line1,
209
+ delivery_zip_code,
210
+ delivery_city,
211
+ delivery_country,
212
+ delivery_contact_title,
213
+ delivery_address_line2,
214
+ delivery_address_line3,
215
+ delivery_region_id,
216
+ delivery_region,
217
+ phone_number,
218
+ email_address,
219
+ save_for_card_reissue)
220
+ end
221
+ end
222
+ end
@@ -105,15 +105,9 @@ module ShellCardManagementApIs
105
105
  ]
106
106
  end
107
107
 
108
- def initialize(level = SKIP,
109
- monday = SKIP,
110
- tuesday = SKIP,
111
- wednesday = SKIP,
112
- thursday = SKIP,
113
- friday = SKIP,
114
- saturday = SKIP,
115
- sunday = SKIP,
116
- time_from = SKIP,
108
+ def initialize(level = SKIP, monday = SKIP, tuesday = SKIP,
109
+ wednesday = SKIP, thursday = SKIP, friday = SKIP,
110
+ saturday = SKIP, sunday = SKIP, time_from = SKIP,
117
111
  time_to = SKIP)
118
112
  @level = level unless level == SKIP
119
113
  @monday = monday unless monday == SKIP