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,194 @@
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
+ # Filters2 Model.
8
+ class Filters2 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Account ID of the customer.<br/> Optional if AccountNumber is passed, else
13
+ # mandatory. <br/> This input is a search criterion, if given.
14
+ # @return [Integer]
15
+ attr_accessor :account_id
16
+
17
+ # Account Number of the customer.<br/> Optional if AccountId is passed, else
18
+ # mandatory.<br/> This input is a search criterion, if given.
19
+ # @return [String]
20
+ attr_accessor :account_number
21
+
22
+ # Collecting Company Code (Shell Code) of the selected payer. <br />
23
+ # Optional – when ‘ReferenceNumber’ is provided.<br />
24
+ # @return [Integer]
25
+ attr_accessor :col_co_code
26
+
27
+ # Collecting Company Id (in ) of the selected payer. <br />
28
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘ColCoId’ or
29
+ # ‘ColCoCode’ is mandatory.<br />
30
+ # @return [Integer]
31
+ attr_accessor :col_co_id
32
+
33
+ # ISO 3166 Alpha-2 Country Code for the customer and card owning country.
34
+ # @return [String]
35
+ attr_accessor :col_co_country_code
36
+
37
+ # Payer Id (i.e. Customer Id of the Payment Customer) of the selected
38
+ # payer.<br />
39
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘PayerId’ or
40
+ # ‘PayerNumber’ is mandatory.
41
+ # @return [Integer]
42
+ attr_accessor :payer_id
43
+
44
+ # Payer Number of the selected payer.<br />
45
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘PayerId’ or
46
+ # ‘PayerNumber’ is mandatory.
47
+ # @return [String]
48
+ attr_accessor :payer_number
49
+
50
+ # Reference number of the Card Order/ Bulk Card Order/ Order Card
51
+ # Request.<br />
52
+ # Mandatory when ColCo and Payer fields are not provided. Else, optional.
53
+ # @return [Integer]
54
+ attr_accessor :reference_number
55
+
56
+ # Reference number of the Card Order/ Bulk Card Order/ Order Card
57
+ # Request.<br />
58
+ # Mandatory when ColCo and Payer fields are not provided. Else, optional.
59
+ # @return [OrderCardEnquiryReqReferenceTypeEnum]
60
+ attr_accessor :reference_type
61
+
62
+ # Card Orders from Date/Time.<br />
63
+ # Optional.<br />
64
+ # Value should be with in last 7 days<br />
65
+ # This field is ignored if ReferenceNumber is provided <br />
66
+ # This field is optional when not provided and ReferenceNumber is null or
67
+ # empty then the value should be set to D-7(Where D is current date)<br />
68
+ # Format: yyyyMMdd
69
+ # @return [String]
70
+ attr_accessor :from_date
71
+
72
+ # Card Order to Date/Time<br />
73
+ # Optional<br />
74
+ # Value should be with in last 7 days<br />
75
+ # This field is ignored if ReferenceNumber is provided <br />
76
+ # This field is optional when not provided and ReferenceNumber is null or
77
+ # empty then the value should be set to current date<br />
78
+ # Format: yyyyMMdd
79
+ # @return [String]
80
+ attr_accessor :to_date
81
+
82
+ # Client provided Unique Id of the original Order Card request, the status
83
+ # of which is enquired by this API
84
+ # @return [String]
85
+ attr_accessor :order_request_id
86
+
87
+ # A mapping from model property names to API property names.
88
+ def self.names
89
+ @_hash = {} if @_hash.nil?
90
+ @_hash['account_id'] = 'AccountId'
91
+ @_hash['account_number'] = 'AccountNumber'
92
+ @_hash['col_co_code'] = 'ColCoCode'
93
+ @_hash['col_co_id'] = 'ColCoId'
94
+ @_hash['col_co_country_code'] = 'ColCoCountryCode'
95
+ @_hash['payer_id'] = 'PayerId'
96
+ @_hash['payer_number'] = 'PayerNumber'
97
+ @_hash['reference_number'] = 'ReferenceNumber'
98
+ @_hash['reference_type'] = 'ReferenceType'
99
+ @_hash['from_date'] = 'FromDate'
100
+ @_hash['to_date'] = 'ToDate'
101
+ @_hash['order_request_id'] = 'OrderRequestId'
102
+ @_hash
103
+ end
104
+
105
+ # An array for optional fields
106
+ def self.optionals
107
+ %w[
108
+ account_id
109
+ account_number
110
+ col_co_code
111
+ col_co_id
112
+ col_co_country_code
113
+ payer_id
114
+ payer_number
115
+ reference_number
116
+ reference_type
117
+ from_date
118
+ to_date
119
+ order_request_id
120
+ ]
121
+ end
122
+
123
+ # An array for nullable fields
124
+ def self.nullables
125
+ %w[
126
+ account_id
127
+ account_number
128
+ col_co_code
129
+ col_co_id
130
+ col_co_country_code
131
+ payer_id
132
+ payer_number
133
+ from_date
134
+ to_date
135
+ order_request_id
136
+ ]
137
+ end
138
+
139
+ def initialize(account_id = SKIP, account_number = SKIP, col_co_code = SKIP,
140
+ col_co_id = SKIP, col_co_country_code = SKIP,
141
+ payer_id = SKIP, payer_number = SKIP,
142
+ reference_number = SKIP, reference_type = SKIP,
143
+ from_date = SKIP, to_date = SKIP, order_request_id = SKIP)
144
+ @account_id = account_id unless account_id == SKIP
145
+ @account_number = account_number unless account_number == SKIP
146
+ @col_co_code = col_co_code unless col_co_code == SKIP
147
+ @col_co_id = col_co_id unless col_co_id == SKIP
148
+ @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP
149
+ @payer_id = payer_id unless payer_id == SKIP
150
+ @payer_number = payer_number unless payer_number == SKIP
151
+ @reference_number = reference_number unless reference_number == SKIP
152
+ @reference_type = reference_type unless reference_type == SKIP
153
+ @from_date = from_date unless from_date == SKIP
154
+ @to_date = to_date unless to_date == SKIP
155
+ @order_request_id = order_request_id unless order_request_id == SKIP
156
+ end
157
+
158
+ # Creates an instance of the object from a hash.
159
+ def self.from_hash(hash)
160
+ return nil unless hash
161
+
162
+ # Extract variables from the hash.
163
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
164
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
165
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
166
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
167
+ col_co_country_code =
168
+ hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP
169
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
170
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
171
+ reference_number =
172
+ hash.key?('ReferenceNumber') ? hash['ReferenceNumber'] : SKIP
173
+ reference_type = hash.key?('ReferenceType') ? hash['ReferenceType'] : SKIP
174
+ from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
175
+ to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
176
+ order_request_id =
177
+ hash.key?('OrderRequestId') ? hash['OrderRequestId'] : SKIP
178
+
179
+ # Create object from extracted values.
180
+ Filters2.new(account_id,
181
+ account_number,
182
+ col_co_code,
183
+ col_co_id,
184
+ col_co_country_code,
185
+ payer_id,
186
+ payer_number,
187
+ reference_number,
188
+ reference_type,
189
+ from_date,
190
+ to_date,
191
+ order_request_id)
192
+ end
193
+ end
194
+ end
@@ -62,8 +62,7 @@ module ShellCardManagementApIs
62
62
  ]
63
63
  end
64
64
 
65
- def initialize(currency_code = SKIP,
66
- currency_symbol = SKIP,
65
+ def initialize(currency_code = SKIP, currency_symbol = SKIP,
67
66
  invoice_exchange_rate = SKIP,
68
67
  credit_limit_exchange_rate = SKIP)
69
68
  @currency_code = currency_code unless currency_code == SKIP
@@ -0,0 +1,96 @@
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
+ # FinanceCurrency2 Model.
8
+ class FinanceCurrency2 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Currency ISO Code used for the Finance Widget.
13
+ # @return [String]
14
+ attr_accessor :currency_code
15
+
16
+ # Currency Symbol
17
+ # @return [String]
18
+ attr_accessor :currency_symbol
19
+
20
+ # Factor to be used for converting the amounts in invoice currency to
21
+ # finance widget currency. (If finance currency is same as invoice currency,
22
+ # then the value of this field will be “1” so that the value does not
23
+ # change)
24
+ # @return [Float]
25
+ attr_accessor :invoice_exchange_rate
26
+
27
+ # Factor to be used for converting the amounts in credit limit currency to
28
+ # finance widget currency. (If finance currency is same as credit limit
29
+ # currency, then the value of this field will be “1” so that the value does
30
+ # not change)
31
+ # @return [Float]
32
+ attr_accessor :credit_limit_exchange_rate
33
+
34
+ # A mapping from model property names to API property names.
35
+ def self.names
36
+ @_hash = {} if @_hash.nil?
37
+ @_hash['currency_code'] = 'CurrencyCode'
38
+ @_hash['currency_symbol'] = 'CurrencySymbol'
39
+ @_hash['invoice_exchange_rate'] = 'Invoice_ExchangeRate'
40
+ @_hash['credit_limit_exchange_rate'] = 'CreditLimit_ExchangeRate'
41
+ @_hash
42
+ end
43
+
44
+ # An array for optional fields
45
+ def self.optionals
46
+ %w[
47
+ currency_code
48
+ currency_symbol
49
+ invoice_exchange_rate
50
+ credit_limit_exchange_rate
51
+ ]
52
+ end
53
+
54
+ # An array for nullable fields
55
+ def self.nullables
56
+ %w[
57
+ currency_code
58
+ currency_symbol
59
+ invoice_exchange_rate
60
+ credit_limit_exchange_rate
61
+ ]
62
+ end
63
+
64
+ def initialize(currency_code = SKIP, currency_symbol = SKIP,
65
+ invoice_exchange_rate = SKIP,
66
+ credit_limit_exchange_rate = SKIP)
67
+ @currency_code = currency_code unless currency_code == SKIP
68
+ @currency_symbol = currency_symbol unless currency_symbol == SKIP
69
+ @invoice_exchange_rate = invoice_exchange_rate unless invoice_exchange_rate == SKIP
70
+ unless credit_limit_exchange_rate == SKIP
71
+ @credit_limit_exchange_rate =
72
+ credit_limit_exchange_rate
73
+ end
74
+ end
75
+
76
+ # Creates an instance of the object from a hash.
77
+ def self.from_hash(hash)
78
+ return nil unless hash
79
+
80
+ # Extract variables from the hash.
81
+ currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
82
+ currency_symbol =
83
+ hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
84
+ invoice_exchange_rate =
85
+ hash.key?('Invoice_ExchangeRate') ? hash['Invoice_ExchangeRate'] : SKIP
86
+ credit_limit_exchange_rate =
87
+ hash.key?('CreditLimit_ExchangeRate') ? hash['CreditLimit_ExchangeRate'] : SKIP
88
+
89
+ # Create object from extracted values.
90
+ FinanceCurrency2.new(currency_code,
91
+ currency_symbol,
92
+ invoice_exchange_rate,
93
+ credit_limit_exchange_rate)
94
+ end
95
+ end
96
+ end
@@ -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
+ # FleetmanagementV1UserLoggedinuserRequest Model.
8
+ class FleetmanagementV1UserLoggedinuserRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # True/False. The output will include the payer group information only when
13
+ # true is passed.
14
+ # @return [TrueClass | FalseClass]
15
+ attr_accessor :include_payer_group
16
+
17
+ # True/False. The output will include the EID (Electronic Invoice data)
18
+ # information only when true is passed..
19
+ # @return [TrueClass | FalseClass]
20
+ attr_accessor :include_eid_details
21
+
22
+ # Name of the API on which user access needs to be validated
23
+ # Optional.
24
+ # @return [String]
25
+ attr_accessor :requested_api_name
26
+
27
+ # Payer id of the customer.</br>
28
+ # Optional.</br>
29
+ # This input is a search criterion.</br>
30
+ # Note: If PayerId or PayerNumber is provided in the input, the given payer
31
+ # will be available in the output if the user has access to the given payer.
32
+ # @return [Integer]
33
+ attr_accessor :payer_id
34
+
35
+ # PayerNumber of the customer.</br>
36
+ # Optional</br>
37
+ # This input is a search criterion.</br>
38
+ # Note: If Payerid or PayerNumber is provided in the input, the given payer
39
+ # will be available in the output if the user has access to the given payer.
40
+ # @return [String]
41
+ attr_accessor :payer_number
42
+
43
+ # A mapping from model property names to API property names.
44
+ def self.names
45
+ @_hash = {} if @_hash.nil?
46
+ @_hash['include_payer_group'] = 'IncludePayerGroup'
47
+ @_hash['include_eid_details'] = 'IncludeEIDDetails'
48
+ @_hash['requested_api_name'] = 'RequestedAPIName'
49
+ @_hash['payer_id'] = 'PayerId'
50
+ @_hash['payer_number'] = 'PayerNumber'
51
+ @_hash
52
+ end
53
+
54
+ # An array for optional fields
55
+ def self.optionals
56
+ %w[
57
+ include_payer_group
58
+ include_eid_details
59
+ requested_api_name
60
+ payer_id
61
+ payer_number
62
+ ]
63
+ end
64
+
65
+ # An array for nullable fields
66
+ def self.nullables
67
+ %w[
68
+ requested_api_name
69
+ payer_id
70
+ payer_number
71
+ ]
72
+ end
73
+
74
+ def initialize(include_payer_group = false, include_eid_details = false,
75
+ requested_api_name = SKIP, payer_id = SKIP,
76
+ payer_number = SKIP)
77
+ @include_payer_group = include_payer_group unless include_payer_group == SKIP
78
+ @include_eid_details = include_eid_details unless include_eid_details == SKIP
79
+ @requested_api_name = requested_api_name unless requested_api_name == SKIP
80
+ @payer_id = payer_id unless payer_id == SKIP
81
+ @payer_number = payer_number unless payer_number == SKIP
82
+ end
83
+
84
+ # Creates an instance of the object from a hash.
85
+ def self.from_hash(hash)
86
+ return nil unless hash
87
+
88
+ # Extract variables from the hash.
89
+ include_payer_group = hash['IncludePayerGroup'] ||= false
90
+ include_eid_details = hash['IncludeEIDDetails'] ||= false
91
+ requested_api_name =
92
+ hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP
93
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
94
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
95
+
96
+ # Create object from extracted values.
97
+ FleetmanagementV1UserLoggedinuserRequest.new(include_payer_group,
98
+ include_eid_details,
99
+ requested_api_name,
100
+ payer_id,
101
+ payer_number)
102
+ end
103
+ end
104
+ end
@@ -38,8 +38,7 @@ module ShellCardManagementApIs
38
38
  []
39
39
  end
40
40
 
41
- def initialize(uid = SKIP,
42
- value = SKIP)
41
+ def initialize(uid = SKIP, value = SKIP)
43
42
  @uid = uid unless uid == SKIP
44
43
  @value = value unless value == SKIP
45
44
  end
@@ -68,10 +68,8 @@ module ShellCardManagementApIs
68
68
  ]
69
69
  end
70
70
 
71
- def initialize(is_primary = true,
72
- frequency_type = SKIP,
73
- distribution_method = SKIP,
74
- output_type = SKIP)
71
+ def initialize(is_primary = true, frequency_type = SKIP,
72
+ distribution_method = SKIP, output_type = SKIP)
75
73
  @is_primary = is_primary unless is_primary == SKIP
76
74
  @frequency_type = frequency_type unless frequency_type == SKIP
77
75
  @distribution_method = distribution_method unless distribution_method == SKIP
@@ -4,38 +4,25 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # Location restrictions to be applied on the bundle which either allows or
8
- # restricts using the cards, which are under the bundle, in the specified
9
- # locations. Mandatory if respective action is set as “Add”. Details of
10
- # location restrictions are given below.
11
- class LocationRestrictions < BaseModel
7
+ # LocationRestriction Model.
8
+ class LocationRestriction < BaseModel
12
9
  SKIP = Object.new
13
10
  private_constant :SKIP
14
11
 
15
- # An entity that encapsulate the country restrictions.
16
- # Optional.
17
- # @return [LocationRestrictionsCountryRestrictions]
12
+ # TODO: Write general description for this method
13
+ # @return [CountryRestriction]
18
14
  attr_accessor :country_restrictions
19
15
 
20
- # A list of NetworkRestriction entity. Each item in the list encapsulates a
21
- # network restriction in a given country.
22
- # Optional.
23
- # The details of the entity are described below:
24
- # @return [Array[LocationRestrictionsNetworkRestrictionsItems]]
16
+ # TODO: Write general description for this method
17
+ # @return [Array[NetworkRestriction]]
25
18
  attr_accessor :network_restrictions
26
19
 
27
- # A list of ShellSiteRestriction entity. Each item in the list encapsulates
28
- # a site restriction of Shell network in a given country.
29
- # Optional.
30
- # The details of the entity are described below.
31
- # @return [Array[LocationRestrictionsShellSiteRestrictionsItems]]
20
+ # TODO: Write general description for this method
21
+ # @return [Array[ShellSiteRestriction]]
32
22
  attr_accessor :shell_site_restrictions
33
23
 
34
- # A list of PartnerSiteRestriction entity. Each item in the list
35
- # encapsulates a site restriction of a given partner network.
36
- # Optional.
37
- # The details of the entity are described below.
38
- # @return [Array[LocationRestrictionsPartnerSiteRestrictionsItems]]
24
+ # TODO: Write general description for this method
25
+ # @return [Array[PartnerSiteRestriction]]
39
26
  attr_accessor :partner_site_restrictions
40
27
 
41
28
  # A mapping from model property names to API property names.
@@ -63,8 +50,7 @@ module ShellCardManagementApIs
63
50
  []
64
51
  end
65
52
 
66
- def initialize(country_restrictions = SKIP,
67
- network_restrictions = SKIP,
53
+ def initialize(country_restrictions = SKIP, network_restrictions = SKIP,
68
54
  shell_site_restrictions = SKIP,
69
55
  partner_site_restrictions = SKIP)
70
56
  @country_restrictions = country_restrictions unless country_restrictions == SKIP
@@ -81,15 +67,14 @@ module ShellCardManagementApIs
81
67
  return nil unless hash
82
68
 
83
69
  # Extract variables from the hash.
84
- if hash['CountryRestrictions']
85
- country_restrictions = LocationRestrictionsCountryRestrictions.from_hash(hash['CountryRestrictions'])
86
- end
70
+ country_restrictions = CountryRestriction.from_hash(hash['CountryRestrictions']) if
71
+ hash['CountryRestrictions']
87
72
  # Parameter is an array, so we need to iterate through it
88
73
  network_restrictions = nil
89
74
  unless hash['NetworkRestrictions'].nil?
90
75
  network_restrictions = []
91
76
  hash['NetworkRestrictions'].each do |structure|
92
- network_restrictions << (LocationRestrictionsNetworkRestrictionsItems.from_hash(structure) if structure)
77
+ network_restrictions << (NetworkRestriction.from_hash(structure) if structure)
93
78
  end
94
79
  end
95
80
 
@@ -99,7 +84,7 @@ module ShellCardManagementApIs
99
84
  unless hash['ShellSiteRestrictions'].nil?
100
85
  shell_site_restrictions = []
101
86
  hash['ShellSiteRestrictions'].each do |structure|
102
- shell_site_restrictions << (LocationRestrictionsShellSiteRestrictionsItems.from_hash(structure) if structure)
87
+ shell_site_restrictions << (ShellSiteRestriction.from_hash(structure) if structure)
103
88
  end
104
89
  end
105
90
 
@@ -109,17 +94,17 @@ module ShellCardManagementApIs
109
94
  unless hash['PartnerSiteRestrictions'].nil?
110
95
  partner_site_restrictions = []
111
96
  hash['PartnerSiteRestrictions'].each do |structure|
112
- partner_site_restrictions << (LocationRestrictionsPartnerSiteRestrictionsItems.from_hash(structure) if structure)
97
+ partner_site_restrictions << (PartnerSiteRestriction.from_hash(structure) if structure)
113
98
  end
114
99
  end
115
100
 
116
101
  partner_site_restrictions = SKIP unless hash.key?('PartnerSiteRestrictions')
117
102
 
118
103
  # Create object from extracted values.
119
- LocationRestrictions.new(country_restrictions,
120
- network_restrictions,
121
- shell_site_restrictions,
122
- partner_site_restrictions)
104
+ LocationRestriction.new(country_restrictions,
105
+ network_restrictions,
106
+ shell_site_restrictions,
107
+ partner_site_restrictions)
123
108
  end
124
109
  end
125
110
  end
@@ -72,10 +72,8 @@ module ShellCardManagementApIs
72
72
  ]
73
73
  end
74
74
 
75
- def initialize(include_payer_group = false,
76
- include_eid_details = false,
77
- requested_api_name = SKIP,
78
- payer_id = SKIP,
75
+ def initialize(include_payer_group = false, include_eid_details = false,
76
+ requested_api_name = SKIP, payer_id = SKIP,
79
77
  payer_number = SKIP)
80
78
  @include_payer_group = include_payer_group unless include_payer_group == SKIP
81
79
  @include_eid_details = include_eid_details unless include_eid_details == SKIP
@@ -225,30 +225,17 @@ module ShellCardManagementApIs
225
225
  ]
226
226
  end
227
227
 
228
- def initialize(user_name = SKIP,
229
- display_name = SKIP,
230
- id_mssoid = SKIP,
231
- preferred_language = SKIP,
232
- is_super_admin = false,
233
- date_format = SKIP,
234
- time_format = SKIP,
235
- week_begins = SKIP,
236
- display_week = true,
237
- csv_separator = SKIP,
238
- decimal_separator = SKIP,
239
- report_format = SKIP,
240
- has_api_access = true,
241
- roles = SKIP,
242
- payers = SKIP,
243
- accounts = SKIP,
244
- collecting_companies = SKIP,
228
+ def initialize(user_name = SKIP, display_name = SKIP, id_mssoid = SKIP,
229
+ preferred_language = SKIP, is_super_admin = false,
230
+ date_format = SKIP, time_format = SKIP, week_begins = SKIP,
231
+ display_week = true, csv_separator = SKIP,
232
+ decimal_separator = SKIP, report_format = SKIP,
233
+ has_api_access = true, roles = SKIP, payers = SKIP,
234
+ accounts = SKIP, collecting_companies = SKIP,
245
235
  eid_access_details = SKIP,
246
236
  user_classification_by_system = SKIP,
247
- user_classification_by_shell = SKIP,
248
- payer_count = SKIP,
249
- account_count = SKIP,
250
- card_count = SKIP,
251
- error = SKIP,
237
+ user_classification_by_shell = SKIP, payer_count = SKIP,
238
+ account_count = SKIP, card_count = SKIP, error = SKIP,
252
239
  request_id = SKIP)
253
240
  @user_name = user_name unless user_name == SKIP
254
241
  @display_name = display_name unless display_name == SKIP