card-management-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +88 -0
  4. data/lib/shell_card_management_ap_is/api_helper.rb +10 -0
  5. data/lib/shell_card_management_ap_is/client.rb +85 -0
  6. data/lib/shell_card_management_ap_is/configuration.rb +117 -0
  7. data/lib/shell_card_management_ap_is/controllers/base_controller.rb +66 -0
  8. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +1047 -0
  9. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +538 -0
  10. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
  11. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +496 -0
  12. data/lib/shell_card_management_ap_is/exceptions/api_exception.rb +10 -0
  13. data/lib/shell_card_management_ap_is/exceptions/default_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +54 -0
  15. data/lib/shell_card_management_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
  17. data/lib/shell_card_management_ap_is/http/auth/basic_auth.rb +50 -0
  18. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +89 -0
  19. data/lib/shell_card_management_ap_is/http/http_call_back.rb +10 -0
  20. data/lib/shell_card_management_ap_is/http/http_method_enum.rb +10 -0
  21. data/lib/shell_card_management_ap_is/http/http_request.rb +10 -0
  22. data/lib/shell_card_management_ap_is/http/http_response.rb +10 -0
  23. data/lib/shell_card_management_ap_is/models/account_access.rb +128 -0
  24. data/lib/shell_card_management_ap_is/models/account_request.rb +252 -0
  25. data/lib/shell_card_management_ap_is/models/account_response.rb +111 -0
  26. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +750 -0
  27. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +131 -0
  28. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -0
  29. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +145 -0
  30. data/lib/shell_card_management_ap_is/models/accounts.rb +65 -0
  31. data/lib/shell_card_management_ap_is/models/address.rb +174 -0
  32. data/lib/shell_card_management_ap_is/models/audit_request.rb +256 -0
  33. data/lib/shell_card_management_ap_is/models/audit_response.rb +111 -0
  34. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +450 -0
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +111 -0
  36. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +98 -0
  37. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +92 -0
  38. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +64 -0
  39. data/lib/shell_card_management_ap_is/models/bank_account.rb +192 -0
  40. data/lib/shell_card_management_ap_is/models/base_model.rb +62 -0
  41. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +166 -0
  42. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +107 -0
  43. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +127 -0
  44. data/lib/shell_card_management_ap_is/models/card.rb +696 -0
  45. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +65 -0
  46. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +159 -0
  47. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +230 -0
  48. data/lib/shell_card_management_ap_is/models/card_detail.rb +661 -0
  49. data/lib/shell_card_management_ap_is/models/card_detail_auto_renew_enum.rb +28 -0
  50. data/lib/shell_card_management_ap_is/models/card_details_request.rb +260 -0
  51. data/lib/shell_card_management_ap_is/models/card_details_response.rb +1058 -0
  52. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +60 -0
  53. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +227 -0
  54. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +58 -0
  55. data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_code_enum.rb +118 -0
  56. data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_id_enum.rb +118 -0
  57. data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_code_enum.rb +118 -0
  58. data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_id_enum.rb +118 -0
  59. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +58 -0
  60. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +231 -0
  61. data/lib/shell_card_management_ap_is/models/card_details_response_pin_type_enum.rb +23 -0
  62. data/lib/shell_card_management_ap_is/models/card_details_response_reissue_setting_enum.rb +26 -0
  63. data/lib/shell_card_management_ap_is/models/card_details_response_renewed_card_reissue_setting_enum.rb +25 -0
  64. data/lib/shell_card_management_ap_is/models/card_details_response_status_id_enum.rb +83 -0
  65. data/lib/shell_card_management_ap_is/models/card_group_request.rb +178 -0
  66. data/lib/shell_card_management_ap_is/models/card_group_response.rb +109 -0
  67. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +301 -0
  68. data/lib/shell_card_management_ap_is/models/card_move_request.rb +163 -0
  69. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +80 -0
  70. data/lib/shell_card_management_ap_is/models/card_move_response.rb +112 -0
  71. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +112 -0
  72. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +97 -0
  73. data/lib/shell_card_management_ap_is/models/card_search_response.rb +126 -0
  74. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +52 -0
  75. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +82 -0
  76. data/lib/shell_card_management_ap_is/models/card_type_request.rb +145 -0
  77. data/lib/shell_card_management_ap_is/models/card_type_response.rb +79 -0
  78. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
  79. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +60 -0
  80. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +281 -0
  81. data/lib/shell_card_management_ap_is/models/col_co_access.rb +88 -0
  82. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +167 -0
  83. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +147 -0
  84. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +98 -0
  85. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +125 -0
  86. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items_cards_items.rb +50 -0
  87. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +161 -0
  88. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +84 -0
  89. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +130 -0
  90. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +81 -0
  91. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +71 -0
  92. data/lib/shell_card_management_ap_is/models/create_card_response.rb +65 -0
  93. data/lib/shell_card_management_ap_is/models/customer_contract.rb +63 -0
  94. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +123 -0
  95. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +437 -0
  96. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +162 -0
  97. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +60 -0
  98. data/lib/shell_card_management_ap_is/models/default_error_fault_detail.rb +50 -0
  99. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +126 -0
  100. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +60 -0
  101. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +112 -0
  102. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +102 -0
  103. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +129 -0
  104. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +94 -0
  105. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +258 -0
  106. data/lib/shell_card_management_ap_is/models/eid_access.rb +75 -0
  107. data/lib/shell_card_management_ap_is/models/error_details.rb +81 -0
  108. data/lib/shell_card_management_ap_is/models/error_status.rb +60 -0
  109. data/lib/shell_card_management_ap_is/models/error_user_access.rb +50 -0
  110. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +60 -0
  111. data/lib/shell_card_management_ap_is/models/finance_currency.rb +98 -0
  112. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +60 -0
  113. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +99 -0
  114. data/lib/shell_card_management_ap_is/models/location_restrictions.rb +125 -0
  115. data/lib/shell_card_management_ap_is/models/location_restrictions_country_restrictions.rb +65 -0
  116. data/lib/shell_card_management_ap_is/models/location_restrictions_network_restrictions_items.rb +77 -0
  117. data/lib/shell_card_management_ap_is/models/location_restrictions_partner_site_restrictions_items.rb +95 -0
  118. data/lib/shell_card_management_ap_is/models/location_restrictions_shell_site_restrictions_items.rb +95 -0
  119. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +107 -0
  120. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +394 -0
  121. data/lib/shell_card_management_ap_is/models/o_auth_provider_error_enum.rb +45 -0
  122. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +100 -0
  123. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +502 -0
  124. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +208 -0
  125. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req_reference_type_enum.rb +32 -0
  126. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +51 -0
  127. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +79 -0
  128. data/lib/shell_card_management_ap_is/models/order_card_request.rb +60 -0
  129. data/lib/shell_card_management_ap_is/models/order_card_response.rb +90 -0
  130. data/lib/shell_card_management_ap_is/models/payer_access.rb +147 -0
  131. data/lib/shell_card_management_ap_is/models/payer_details.rb +1412 -0
  132. data/lib/shell_card_management_ap_is/models/payer_request.rb +126 -0
  133. data/lib/shell_card_management_ap_is/models/payer_response.rb +115 -0
  134. data/lib/shell_card_management_ap_is/models/payers.rb +109 -0
  135. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +80 -0
  136. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +242 -0
  137. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +169 -0
  138. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +137 -0
  139. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +99 -0
  140. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +135 -0
  141. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +90 -0
  142. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +62 -0
  143. data/lib/shell_card_management_ap_is/models/product_group.rb +116 -0
  144. data/lib/shell_card_management_ap_is/models/product_restrictions.rb +66 -0
  145. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +114 -0
  146. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +140 -0
  147. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +114 -0
  148. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +69 -0
  149. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +641 -0
  150. data/lib/shell_card_management_ap_is/models/restriction_card_request.rb +115 -0
  151. data/lib/shell_card_management_ap_is/models/restriction_card_request_cards_items.rb +220 -0
  152. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +91 -0
  153. data/lib/shell_card_management_ap_is/models/restriction_card_response_data_items.rb +240 -0
  154. data/lib/shell_card_management_ap_is/models/restriction_search_card_request.rb +50 -0
  155. data/lib/shell_card_management_ap_is/models/restriction_search_card_request_filters.rb +177 -0
  156. data/lib/shell_card_management_ap_is/models/restriction_search_card_request_filters_cards_items.rb +63 -0
  157. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +79 -0
  158. data/lib/shell_card_management_ap_is/models/restriction_search_card_response_data_items.rb +514 -0
  159. data/lib/shell_card_management_ap_is/models/role.rb +102 -0
  160. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +249 -0
  161. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +77 -0
  162. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +91 -0
  163. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +89 -0
  164. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +50 -0
  165. data/lib/shell_card_management_ap_is/models/search_account_limit_request_filters.rb +118 -0
  166. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +70 -0
  167. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +106 -0
  168. data/lib/shell_card_management_ap_is/models/search_card.rb +66 -0
  169. data/lib/shell_card_management_ap_is/models/search_card_request.rb +72 -0
  170. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +99 -0
  171. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +78 -0
  172. data/lib/shell_card_management_ap_is/models/search_request.rb +724 -0
  173. data/lib/shell_card_management_ap_is/models/submitted_card.rb +183 -0
  174. data/lib/shell_card_management_ap_is/models/summary_of_bundle_request.rb +50 -0
  175. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +79 -0
  176. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response_data_items.rb +123 -0
  177. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response_data_items_card_bundles_items.rb +86 -0
  178. data/lib/shell_card_management_ap_is/models/summary_request.rb +598 -0
  179. data/lib/shell_card_management_ap_is/models/summary_response.rb +184 -0
  180. data/lib/shell_card_management_ap_is/models/summaryof_bundle.rb +126 -0
  181. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +194 -0
  182. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +70 -0
  183. data/lib/shell_card_management_ap_is/models/update_card.rb +316 -0
  184. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +258 -0
  185. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +130 -0
  186. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +77 -0
  187. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +163 -0
  188. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +124 -0
  189. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +133 -0
  190. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +112 -0
  191. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +105 -0
  192. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +60 -0
  193. data/lib/shell_card_management_ap_is/models/url_enum.rb +23 -0
  194. data/lib/shell_card_management_ap_is/models/usage_restrictions.rb +311 -0
  195. data/lib/shell_card_management_ap_is/utilities/date_time_helper.rb +11 -0
  196. data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +16 -0
  197. data/lib/shell_card_management_ap_is.rb +288 -0
  198. metadata +283 -0
@@ -0,0 +1,281 @@
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
+ # CardUsageRestrictions Model.
8
+ class CardUsageRestrictions < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Describes at which level the restriction is set at.
13
+ # Possible values:
14
+ # OU = Restriction set at ColCo card type
15
+ # Customer = Restriction set at customer card type
16
+ # @return [String]
17
+ attr_accessor :level
18
+
19
+ # Maximum amount that can be spend on the card in a day.
20
+ # @return [Float]
21
+ attr_accessor :daily_spend_limit
22
+
23
+ # Maximum amount that can be spend on the card in a week.
24
+ # @return [Float]
25
+ attr_accessor :weekly_spend_limit
26
+
27
+ # Maximum amount that can be spend on the card in a month.
28
+ # @return [Float]
29
+ attr_accessor :monthly_spend_limit
30
+
31
+ # Maximum amount that can be spend on the card in a year.
32
+ # @return [Float]
33
+ attr_accessor :annual_spend_limit
34
+
35
+ # Maximum amount that can be spend on the card in the card’s life time.
36
+ # @return [Float]
37
+ attr_accessor :life_time_spend_limit
38
+
39
+ # Maximum volume of fuel that can be bought on the card in a day.
40
+ # @return [Float]
41
+ attr_accessor :daily_volume_limit
42
+
43
+ # Maximum volume of fuel that can be bought on the card in a week.
44
+ # @return [Float]
45
+ attr_accessor :weekly_volume_limit
46
+
47
+ # Maximum volume of fuel that can be bought on the card in a month.
48
+ # @return [Float]
49
+ attr_accessor :monthly_volume_limit
50
+
51
+ # Maximum volume of fuel that can be bought on the card in a year.
52
+ # @return [Float]
53
+ attr_accessor :annual_volume_limit
54
+
55
+ # Maximum volume of fuel that can be bought on the card in the card’s life
56
+ # time.
57
+ # @return [Float]
58
+ attr_accessor :life_time_volume_limit
59
+
60
+ # Maximum amount that can be spend on the card in a transaction.
61
+ # @return [Float]
62
+ attr_accessor :transaction_spend_limit
63
+
64
+ # Maximum volume of fuel that can be bought on the card in a transaction.
65
+ # @return [Float]
66
+ attr_accessor :transaction_volume_limit
67
+
68
+ # Maximum number of transactions allowed on a card in a day.
69
+ # @return [Float]
70
+ attr_accessor :daily_transaction_count
71
+
72
+ # Maximum number of transactions allowed on a card in a week.
73
+ # @return [Float]
74
+ attr_accessor :weekly_transaction_count
75
+
76
+ # Maximum number of transactions allowed on a card in a month.
77
+ # @return [Float]
78
+ attr_accessor :monthly_transaction_count
79
+
80
+ # Maximum number of transactions allowed on the card in a year.
81
+ # @return [Float]
82
+ attr_accessor :annual_transaction_count
83
+
84
+ # Maximum number of transactions allowed on the card in the card’s life
85
+ # time.
86
+ # @return [Float]
87
+ attr_accessor :life_time_transaction_count
88
+
89
+ # IsVelocityCeiling flag
90
+ # Note: When "True", the velocity defaults configured in MS DB will be
91
+ # considered as the Max Limits for velocity changes. When ‘false’ max
92
+ # allowed limits will be 999999999999 for Type “Count” and 9999999999.99 for
93
+ # Type ‘Value’.
94
+ # @return [TrueClass | FalseClass]
95
+ attr_accessor :is_velocity_ceiling
96
+
97
+ # A mapping from model property names to API property names.
98
+ def self.names
99
+ @_hash = {} if @_hash.nil?
100
+ @_hash['level'] = 'Level'
101
+ @_hash['daily_spend_limit'] = 'DailySpendLimit'
102
+ @_hash['weekly_spend_limit'] = 'WeeklySpendLimit'
103
+ @_hash['monthly_spend_limit'] = 'MonthlySpendLimit'
104
+ @_hash['annual_spend_limit'] = 'AnnualSpendLimit'
105
+ @_hash['life_time_spend_limit'] = 'LifeTimeSpendLimit'
106
+ @_hash['daily_volume_limit'] = 'DailyVolumeLimit'
107
+ @_hash['weekly_volume_limit'] = 'WeeklyVolumeLimit'
108
+ @_hash['monthly_volume_limit'] = 'MonthlyVolumeLimit'
109
+ @_hash['annual_volume_limit'] = 'AnnualVolumeLimit'
110
+ @_hash['life_time_volume_limit'] = 'LifeTimeVolumeLimit'
111
+ @_hash['transaction_spend_limit'] = 'TransactionSpendLimit'
112
+ @_hash['transaction_volume_limit'] = 'TransactionVolumeLimit'
113
+ @_hash['daily_transaction_count'] = 'DailyTransactionCount'
114
+ @_hash['weekly_transaction_count'] = 'WeeklyTransactionCount'
115
+ @_hash['monthly_transaction_count'] = 'MonthlyTransactionCount'
116
+ @_hash['annual_transaction_count'] = 'AnnualTransactionCount'
117
+ @_hash['life_time_transaction_count'] = 'LifeTimeTransactionCount'
118
+ @_hash['is_velocity_ceiling'] = 'IsVelocityCeiling'
119
+ @_hash
120
+ end
121
+
122
+ # An array for optional fields
123
+ def self.optionals
124
+ %w[
125
+ level
126
+ daily_spend_limit
127
+ weekly_spend_limit
128
+ monthly_spend_limit
129
+ annual_spend_limit
130
+ life_time_spend_limit
131
+ daily_volume_limit
132
+ weekly_volume_limit
133
+ monthly_volume_limit
134
+ annual_volume_limit
135
+ life_time_volume_limit
136
+ transaction_spend_limit
137
+ transaction_volume_limit
138
+ daily_transaction_count
139
+ weekly_transaction_count
140
+ monthly_transaction_count
141
+ annual_transaction_count
142
+ life_time_transaction_count
143
+ is_velocity_ceiling
144
+ ]
145
+ end
146
+
147
+ # An array for nullable fields
148
+ def self.nullables
149
+ %w[
150
+ level
151
+ daily_spend_limit
152
+ weekly_spend_limit
153
+ monthly_spend_limit
154
+ annual_spend_limit
155
+ life_time_spend_limit
156
+ daily_volume_limit
157
+ weekly_volume_limit
158
+ monthly_volume_limit
159
+ annual_volume_limit
160
+ life_time_volume_limit
161
+ transaction_spend_limit
162
+ transaction_volume_limit
163
+ daily_transaction_count
164
+ weekly_transaction_count
165
+ monthly_transaction_count
166
+ annual_transaction_count
167
+ life_time_transaction_count
168
+ ]
169
+ end
170
+
171
+ def initialize(level = SKIP,
172
+ daily_spend_limit = SKIP,
173
+ weekly_spend_limit = SKIP,
174
+ monthly_spend_limit = SKIP,
175
+ annual_spend_limit = SKIP,
176
+ life_time_spend_limit = SKIP,
177
+ daily_volume_limit = SKIP,
178
+ weekly_volume_limit = SKIP,
179
+ monthly_volume_limit = SKIP,
180
+ annual_volume_limit = 0,
181
+ life_time_volume_limit = SKIP,
182
+ transaction_spend_limit = SKIP,
183
+ transaction_volume_limit = SKIP,
184
+ daily_transaction_count = SKIP,
185
+ weekly_transaction_count = SKIP,
186
+ monthly_transaction_count = SKIP,
187
+ annual_transaction_count = SKIP,
188
+ life_time_transaction_count = SKIP,
189
+ is_velocity_ceiling = SKIP)
190
+ @level = level unless level == SKIP
191
+ @daily_spend_limit = daily_spend_limit unless daily_spend_limit == SKIP
192
+ @weekly_spend_limit = weekly_spend_limit unless weekly_spend_limit == SKIP
193
+ @monthly_spend_limit = monthly_spend_limit unless monthly_spend_limit == SKIP
194
+ @annual_spend_limit = annual_spend_limit unless annual_spend_limit == SKIP
195
+ @life_time_spend_limit = life_time_spend_limit unless life_time_spend_limit == SKIP
196
+ @daily_volume_limit = daily_volume_limit unless daily_volume_limit == SKIP
197
+ @weekly_volume_limit = weekly_volume_limit unless weekly_volume_limit == SKIP
198
+ @monthly_volume_limit = monthly_volume_limit unless monthly_volume_limit == SKIP
199
+ @annual_volume_limit = annual_volume_limit unless annual_volume_limit == SKIP
200
+ @life_time_volume_limit = life_time_volume_limit unless life_time_volume_limit == SKIP
201
+ @transaction_spend_limit = transaction_spend_limit unless transaction_spend_limit == SKIP
202
+ @transaction_volume_limit = transaction_volume_limit unless transaction_volume_limit == SKIP
203
+ @daily_transaction_count = daily_transaction_count unless daily_transaction_count == SKIP
204
+ @weekly_transaction_count = weekly_transaction_count unless weekly_transaction_count == SKIP
205
+ unless monthly_transaction_count == SKIP
206
+ @monthly_transaction_count =
207
+ monthly_transaction_count
208
+ end
209
+ @annual_transaction_count = annual_transaction_count unless annual_transaction_count == SKIP
210
+ unless life_time_transaction_count == SKIP
211
+ @life_time_transaction_count =
212
+ life_time_transaction_count
213
+ end
214
+ @is_velocity_ceiling = is_velocity_ceiling unless is_velocity_ceiling == SKIP
215
+ end
216
+
217
+ # Creates an instance of the object from a hash.
218
+ def self.from_hash(hash)
219
+ return nil unless hash
220
+
221
+ # Extract variables from the hash.
222
+ level = hash.key?('Level') ? hash['Level'] : SKIP
223
+ daily_spend_limit =
224
+ hash.key?('DailySpendLimit') ? hash['DailySpendLimit'] : SKIP
225
+ weekly_spend_limit =
226
+ hash.key?('WeeklySpendLimit') ? hash['WeeklySpendLimit'] : SKIP
227
+ monthly_spend_limit =
228
+ hash.key?('MonthlySpendLimit') ? hash['MonthlySpendLimit'] : SKIP
229
+ annual_spend_limit =
230
+ hash.key?('AnnualSpendLimit') ? hash['AnnualSpendLimit'] : SKIP
231
+ life_time_spend_limit =
232
+ hash.key?('LifeTimeSpendLimit') ? hash['LifeTimeSpendLimit'] : SKIP
233
+ daily_volume_limit =
234
+ hash.key?('DailyVolumeLimit') ? hash['DailyVolumeLimit'] : SKIP
235
+ weekly_volume_limit =
236
+ hash.key?('WeeklyVolumeLimit') ? hash['WeeklyVolumeLimit'] : SKIP
237
+ monthly_volume_limit =
238
+ hash.key?('MonthlyVolumeLimit') ? hash['MonthlyVolumeLimit'] : SKIP
239
+ annual_volume_limit = hash['AnnualVolumeLimit'] ||= 0
240
+ life_time_volume_limit =
241
+ hash.key?('LifeTimeVolumeLimit') ? hash['LifeTimeVolumeLimit'] : SKIP
242
+ transaction_spend_limit =
243
+ hash.key?('TransactionSpendLimit') ? hash['TransactionSpendLimit'] : SKIP
244
+ transaction_volume_limit =
245
+ hash.key?('TransactionVolumeLimit') ? hash['TransactionVolumeLimit'] : SKIP
246
+ daily_transaction_count =
247
+ hash.key?('DailyTransactionCount') ? hash['DailyTransactionCount'] : SKIP
248
+ weekly_transaction_count =
249
+ hash.key?('WeeklyTransactionCount') ? hash['WeeklyTransactionCount'] : SKIP
250
+ monthly_transaction_count =
251
+ hash.key?('MonthlyTransactionCount') ? hash['MonthlyTransactionCount'] : SKIP
252
+ annual_transaction_count =
253
+ hash.key?('AnnualTransactionCount') ? hash['AnnualTransactionCount'] : SKIP
254
+ life_time_transaction_count =
255
+ hash.key?('LifeTimeTransactionCount') ? hash['LifeTimeTransactionCount'] : SKIP
256
+ is_velocity_ceiling =
257
+ hash.key?('IsVelocityCeiling') ? hash['IsVelocityCeiling'] : SKIP
258
+
259
+ # Create object from extracted values.
260
+ CardUsageRestrictions.new(level,
261
+ daily_spend_limit,
262
+ weekly_spend_limit,
263
+ monthly_spend_limit,
264
+ annual_spend_limit,
265
+ life_time_spend_limit,
266
+ daily_volume_limit,
267
+ weekly_volume_limit,
268
+ monthly_volume_limit,
269
+ annual_volume_limit,
270
+ life_time_volume_limit,
271
+ transaction_spend_limit,
272
+ transaction_volume_limit,
273
+ daily_transaction_count,
274
+ weekly_transaction_count,
275
+ monthly_transaction_count,
276
+ annual_transaction_count,
277
+ life_time_transaction_count,
278
+ is_velocity_ceiling)
279
+ end
280
+ end
281
+ 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
+ # ColCoAccess Model.
8
+ class ColCoAccess < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting company ID.
13
+ # @return [String]
14
+ attr_accessor :col_co_id
15
+
16
+ # Collecting company code.
17
+ # @return [String]
18
+ attr_accessor :col_co_code
19
+
20
+ # Collecting company’s Country name. ex: United Kingdom
21
+ # @return [String]
22
+ attr_accessor :col_co_country_name
23
+
24
+ # Issuing Country Number.
25
+ # ex: 032 - Czech Republic
26
+ # @return [String]
27
+ attr_accessor :issuing_country_number
28
+
29
+ # A mapping from model property names to API property names.
30
+ def self.names
31
+ @_hash = {} if @_hash.nil?
32
+ @_hash['col_co_id'] = 'ColCoId'
33
+ @_hash['col_co_code'] = 'ColCoCode'
34
+ @_hash['col_co_country_name'] = 'ColCoCountryName'
35
+ @_hash['issuing_country_number'] = 'IssuingCountryNumber'
36
+ @_hash
37
+ end
38
+
39
+ # An array for optional fields
40
+ def self.optionals
41
+ %w[
42
+ col_co_id
43
+ col_co_code
44
+ col_co_country_name
45
+ issuing_country_number
46
+ ]
47
+ end
48
+
49
+ # An array for nullable fields
50
+ def self.nullables
51
+ %w[
52
+ col_co_id
53
+ col_co_code
54
+ col_co_country_name
55
+ issuing_country_number
56
+ ]
57
+ end
58
+
59
+ def initialize(col_co_id = SKIP,
60
+ col_co_code = SKIP,
61
+ col_co_country_name = SKIP,
62
+ issuing_country_number = SKIP)
63
+ @col_co_id = col_co_id unless col_co_id == SKIP
64
+ @col_co_code = col_co_code unless col_co_code == SKIP
65
+ @col_co_country_name = col_co_country_name unless col_co_country_name == SKIP
66
+ @issuing_country_number = issuing_country_number unless issuing_country_number == SKIP
67
+ end
68
+
69
+ # Creates an instance of the object from a hash.
70
+ def self.from_hash(hash)
71
+ return nil unless hash
72
+
73
+ # Extract variables from the hash.
74
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
75
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
76
+ col_co_country_name =
77
+ hash.key?('ColCoCountryName') ? hash['ColCoCountryName'] : SKIP
78
+ issuing_country_number =
79
+ hash.key?('IssuingCountryNumber') ? hash['IssuingCountryNumber'] : SKIP
80
+
81
+ # Create object from extracted values.
82
+ ColCoAccess.new(col_co_id,
83
+ col_co_code,
84
+ col_co_country_name,
85
+ issuing_country_number)
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,167 @@
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
+ # CreateBundleRequest Model.
8
+ class CreateBundleRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting Company Id of the selected payer.
13
+ # Optional if ColCoCode is passed else Mandatory.
14
+ # Example:
15
+ # 1-Philippines
16
+ # 5-UK
17
+ # @return [Integer]
18
+ attr_accessor :col_co_id
19
+
20
+ # Payer Id of the selected payer.
21
+ # Optional if PayerNumber is passed else Mandatory
22
+ # Example: 123456
23
+ # @return [Integer]
24
+ attr_accessor :payer_id
25
+
26
+ # Account ID of the customer.
27
+ # Either AccountId or AccountNumber or both must be passed.
28
+ # Example: 123456
29
+ # @return [Integer]
30
+ attr_accessor :account_id
31
+
32
+ # Identifier of the bundle in external system.
33
+ # Optional.
34
+ # @return [String]
35
+ attr_accessor :external_bundle_id
36
+
37
+ # A bundle description.
38
+ # Optional.
39
+ # @return [String]
40
+ attr_accessor :description
41
+
42
+ # List of Card PANs to be added in the bundle.
43
+ # Mandatory.
44
+ # Example: 7002051006629890645
45
+ # When PAN matches with multiple cards, the restriction will be applied on
46
+ # the latest issued card.
47
+ # @return [Array[String]]
48
+ attr_accessor :cards
49
+
50
+ # Collecting Company Code (Shell Code) of the selected payer.
51
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
52
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
53
+ # Example:
54
+ # 86-Philippines
55
+ # 5-UK
56
+ # @return [Integer]
57
+ attr_accessor :col_co_code
58
+
59
+ # Payer Number (Ex: GB000000123) of the selected payer.
60
+ # Optional if PayerId is passed else Mandatory
61
+ # @return [String]
62
+ attr_accessor :payer_number
63
+
64
+ # Account Number of the customer.
65
+ # Either AccountId or AccountNumber or both must be passed.
66
+ # Example: GB000000123
67
+ # @return [String]
68
+ attr_accessor :account_number
69
+
70
+ # Restrictions to be applied on the bundle.
71
+ # Mandatory
72
+ # @return [CreateBundleRequestRestrictions]
73
+ attr_accessor :restrictions
74
+
75
+ # A mapping from model property names to API property names.
76
+ def self.names
77
+ @_hash = {} if @_hash.nil?
78
+ @_hash['col_co_id'] = 'ColCoId'
79
+ @_hash['payer_id'] = 'PayerId'
80
+ @_hash['account_id'] = 'AccountId'
81
+ @_hash['external_bundle_id'] = 'ExternalBundleId'
82
+ @_hash['description'] = 'Description'
83
+ @_hash['cards'] = 'Cards'
84
+ @_hash['col_co_code'] = 'ColCoCode'
85
+ @_hash['payer_number'] = 'PayerNumber'
86
+ @_hash['account_number'] = 'AccountNumber'
87
+ @_hash['restrictions'] = 'Restrictions'
88
+ @_hash
89
+ end
90
+
91
+ # An array for optional fields
92
+ def self.optionals
93
+ %w[
94
+ col_co_id
95
+ payer_id
96
+ account_id
97
+ external_bundle_id
98
+ col_co_code
99
+ payer_number
100
+ account_number
101
+ restrictions
102
+ ]
103
+ end
104
+
105
+ # An array for nullable fields
106
+ def self.nullables
107
+ %w[
108
+ external_bundle_id
109
+ col_co_code
110
+ account_number
111
+ ]
112
+ end
113
+
114
+ def initialize(description = nil,
115
+ cards = nil,
116
+ col_co_id = SKIP,
117
+ payer_id = SKIP,
118
+ account_id = SKIP,
119
+ external_bundle_id = SKIP,
120
+ col_co_code = SKIP,
121
+ payer_number = SKIP,
122
+ account_number = SKIP,
123
+ restrictions = SKIP)
124
+ @col_co_id = col_co_id unless col_co_id == SKIP
125
+ @payer_id = payer_id unless payer_id == SKIP
126
+ @account_id = account_id unless account_id == SKIP
127
+ @external_bundle_id = external_bundle_id unless external_bundle_id == SKIP
128
+ @description = description
129
+ @cards = cards
130
+ @col_co_code = col_co_code unless col_co_code == SKIP
131
+ @payer_number = payer_number unless payer_number == SKIP
132
+ @account_number = account_number unless account_number == SKIP
133
+ @restrictions = restrictions unless restrictions == SKIP
134
+ end
135
+
136
+ # Creates an instance of the object from a hash.
137
+ def self.from_hash(hash)
138
+ return nil unless hash
139
+
140
+ # Extract variables from the hash.
141
+ description = hash.key?('Description') ? hash['Description'] : nil
142
+ cards = hash.key?('Cards') ? hash['Cards'] : nil
143
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
144
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
145
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
146
+ external_bundle_id =
147
+ hash.key?('ExternalBundleId') ? hash['ExternalBundleId'] : SKIP
148
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
149
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
150
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
151
+ restrictions = CreateBundleRequestRestrictions.from_hash(hash['Restrictions']) if
152
+ hash['Restrictions']
153
+
154
+ # Create object from extracted values.
155
+ CreateBundleRequest.new(description,
156
+ cards,
157
+ col_co_id,
158
+ payer_id,
159
+ account_id,
160
+ external_bundle_id,
161
+ col_co_code,
162
+ payer_number,
163
+ account_number,
164
+ restrictions)
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,147 @@
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
+ # Restrictions to be applied on the bundle. Mandatory
8
+ class CreateBundleRequestRestrictions < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Usage restrictions such as value, volume and transaction count restricted
13
+ # per day, week, month, annum, lifetime and transaction to be applied on the
14
+ # bundle.
15
+ # Mandatory
16
+ # @return [String]
17
+ attr_accessor :usage_restriction_action
18
+
19
+ # The value indicates what actions to be performed with respect to day time
20
+ # restriction.
21
+ # Mandatory
22
+ # Allowed values –
23
+ # • Add: Apply the given restriction on the bundle.
24
+ # • Default: No Day/Time restriction will be applied on the bundle in
25
+ # Gateway.
26
+ # @return [String]
27
+ attr_accessor :day_time_restriction_action
28
+
29
+ # The value indicates what actions to be performed with respect to location
30
+ # restriction.
31
+ # Mandatory
32
+ # Allowed values –
33
+ # • Add: Apply the given restriction on the bundle.
34
+ # • Default: No location restriction will be applied on the bundle in
35
+ # Gateway.
36
+ # @return [String]
37
+ attr_accessor :location_restriction_action
38
+
39
+ # Day/time restrictions such as weekdays and time range to be applied on the
40
+ # bundle.
41
+ # Mandatory if respective action is set as “Add”.
42
+ # The details of DayTimeRestriction entity is given below.
43
+ # @return [DayTimeRestrictions]
44
+ attr_accessor :day_time_restrictions
45
+
46
+ # Location restrictions to be applied on the bundle which either allows or
47
+ # restricts using the cards, which are under the bundle, in the specified
48
+ # locations.
49
+ # Mandatory if respective action is set as “Add”.
50
+ # Details of location restrictions are given below.
51
+ # @return [LocationRestrictions]
52
+ attr_accessor :location_restrictions
53
+
54
+ # Location restrictions to be applied on the bundle which either allows or
55
+ # restricts using the cards, which are under the bundle, in the specified
56
+ # locations.
57
+ # Mandatory if respective action is set as “Add”.
58
+ # Details of location restrictions are given below.
59
+ # @return [ProductRestrictions]
60
+ attr_accessor :product_restrictions
61
+
62
+ # Location restrictions to be applied on the bundle which either allows or
63
+ # restricts using the cards, which are under the bundle, in the specified
64
+ # locations.
65
+ # Mandatory if respective action is set as “Add”.
66
+ # Details of location restrictions are given below.
67
+ # @return [UsageRestrictions]
68
+ attr_accessor :usage_restrictions
69
+
70
+ # A mapping from model property names to API property names.
71
+ def self.names
72
+ @_hash = {} if @_hash.nil?
73
+ @_hash['usage_restriction_action'] = 'UsageRestrictionAction'
74
+ @_hash['day_time_restriction_action'] = 'DayTimeRestrictionAction'
75
+ @_hash['location_restriction_action'] = 'LocationRestrictionAction'
76
+ @_hash['day_time_restrictions'] = 'DayTimeRestrictions'
77
+ @_hash['location_restrictions'] = 'LocationRestrictions'
78
+ @_hash['product_restrictions'] = 'ProductRestrictions'
79
+ @_hash['usage_restrictions'] = 'UsageRestrictions'
80
+ @_hash
81
+ end
82
+
83
+ # An array for optional fields
84
+ def self.optionals
85
+ %w[
86
+ day_time_restrictions
87
+ location_restrictions
88
+ product_restrictions
89
+ usage_restrictions
90
+ ]
91
+ end
92
+
93
+ # An array for nullable fields
94
+ def self.nullables
95
+ %w[
96
+ usage_restriction_action
97
+ day_time_restriction_action
98
+ ]
99
+ end
100
+
101
+ def initialize(usage_restriction_action = nil,
102
+ day_time_restriction_action = nil,
103
+ location_restriction_action = nil,
104
+ day_time_restrictions = SKIP,
105
+ location_restrictions = SKIP,
106
+ product_restrictions = SKIP,
107
+ usage_restrictions = SKIP)
108
+ @usage_restriction_action = usage_restriction_action
109
+ @day_time_restriction_action = day_time_restriction_action
110
+ @location_restriction_action = location_restriction_action
111
+ @day_time_restrictions = day_time_restrictions unless day_time_restrictions == SKIP
112
+ @location_restrictions = location_restrictions unless location_restrictions == SKIP
113
+ @product_restrictions = product_restrictions unless product_restrictions == SKIP
114
+ @usage_restrictions = usage_restrictions unless usage_restrictions == SKIP
115
+ end
116
+
117
+ # Creates an instance of the object from a hash.
118
+ def self.from_hash(hash)
119
+ return nil unless hash
120
+
121
+ # Extract variables from the hash.
122
+ usage_restriction_action =
123
+ hash.key?('UsageRestrictionAction') ? hash['UsageRestrictionAction'] : nil
124
+ day_time_restriction_action =
125
+ hash.key?('DayTimeRestrictionAction') ? hash['DayTimeRestrictionAction'] : nil
126
+ location_restriction_action =
127
+ hash.key?('LocationRestrictionAction') ? hash['LocationRestrictionAction'] : nil
128
+ day_time_restrictions = DayTimeRestrictions.from_hash(hash['DayTimeRestrictions']) if
129
+ hash['DayTimeRestrictions']
130
+ location_restrictions = LocationRestrictions.from_hash(hash['LocationRestrictions']) if
131
+ hash['LocationRestrictions']
132
+ product_restrictions = ProductRestrictions.from_hash(hash['ProductRestrictions']) if
133
+ hash['ProductRestrictions']
134
+ usage_restrictions = UsageRestrictions.from_hash(hash['UsageRestrictions']) if
135
+ hash['UsageRestrictions']
136
+
137
+ # Create object from extracted values.
138
+ CreateBundleRequestRestrictions.new(usage_restriction_action,
139
+ day_time_restriction_action,
140
+ location_restriction_action,
141
+ day_time_restrictions,
142
+ location_restrictions,
143
+ product_restrictions,
144
+ usage_restrictions)
145
+ end
146
+ end
147
+ end