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
@@ -4,20 +4,23 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # LocationRestrictionsNetworkRestrictionsItems Model.
8
- class LocationRestrictionsNetworkRestrictionsItems < BaseModel
7
+ # NetworkRestriction Model.
8
+ class NetworkRestriction < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
12
  # ISO 3166-1 Numeric-3 code of the country where the network restriction is
13
13
  # applied.
14
14
  # Example: 826 for United Kingdom.
15
- # Mandatory
16
15
  # @return [String]
17
16
  attr_accessor :country
18
17
 
18
+ # A list of Gateway network codes, typically 7 or 10 digits.
19
+ # Example: 0002003250
20
+ # @return [Array[String]]
21
+ attr_accessor :networks
22
+
19
23
  # Flag indicates whether the profile is inclusive or exclusive.
20
- # Mandatory
21
24
  # Example: False - (inclusive), i.e. the “Networks” property lists the
22
25
  # networks in which the transaction will be allowed.
23
26
  # True - (exclusive), i.e. the “Networks” property lists the networks in
@@ -25,24 +28,21 @@ module ShellCardManagementApIs
25
28
  # @return [TrueClass | FalseClass]
26
29
  attr_accessor :exclusive
27
30
 
28
- # A list of Gateway network codes, typically 7 or 10 digits.
29
- # Example: 0002003250
30
- # @return [Array[String]]
31
- attr_accessor :networks
32
-
33
31
  # A mapping from model property names to API property names.
34
32
  def self.names
35
33
  @_hash = {} if @_hash.nil?
36
34
  @_hash['country'] = 'Country'
37
- @_hash['exclusive'] = 'Exclusive'
38
35
  @_hash['networks'] = 'Networks'
36
+ @_hash['exclusive'] = 'Exclusive'
39
37
  @_hash
40
38
  end
41
39
 
42
40
  # An array for optional fields
43
41
  def self.optionals
44
42
  %w[
43
+ country
45
44
  networks
45
+ exclusive
46
46
  ]
47
47
  end
48
48
 
@@ -51,12 +51,10 @@ module ShellCardManagementApIs
51
51
  []
52
52
  end
53
53
 
54
- def initialize(country = nil,
55
- exclusive = nil,
56
- networks = SKIP)
57
- @country = country
58
- @exclusive = exclusive
54
+ def initialize(country = SKIP, networks = SKIP, exclusive = SKIP)
55
+ @country = country unless country == SKIP
59
56
  @networks = networks unless networks == SKIP
57
+ @exclusive = exclusive unless exclusive == SKIP
60
58
  end
61
59
 
62
60
  # Creates an instance of the object from a hash.
@@ -64,14 +62,14 @@ module ShellCardManagementApIs
64
62
  return nil unless hash
65
63
 
66
64
  # Extract variables from the hash.
67
- country = hash.key?('Country') ? hash['Country'] : nil
68
- exclusive = hash.key?('Exclusive') ? hash['Exclusive'] : nil
65
+ country = hash.key?('Country') ? hash['Country'] : SKIP
69
66
  networks = hash.key?('Networks') ? hash['Networks'] : SKIP
67
+ exclusive = hash.key?('Exclusive') ? hash['Exclusive'] : SKIP
70
68
 
71
69
  # Create object from extracted values.
72
- LocationRestrictionsNetworkRestrictionsItems.new(country,
73
- exclusive,
74
- networks)
70
+ NetworkRestriction.new(country,
71
+ networks,
72
+ exclusive)
75
73
  end
76
74
  end
77
75
  end
@@ -62,12 +62,8 @@ module ShellCardManagementApIs
62
62
  []
63
63
  end
64
64
 
65
- def initialize(access_token = nil,
66
- token_type = nil,
67
- expires_in = SKIP,
68
- scope = SKIP,
69
- expiry = SKIP,
70
- refresh_token = SKIP)
65
+ def initialize(access_token = nil, token_type = nil, expires_in = SKIP,
66
+ scope = SKIP, expiry = SKIP, refresh_token = SKIP)
71
67
  @access_token = access_token
72
68
  @token_type = token_type
73
69
  @expires_in = expires_in unless expires_in == SKIP
@@ -183,14 +183,15 @@ module ShellCardManagementApIs
183
183
  # @return [String]
184
184
  attr_accessor :order_request_id
185
185
 
186
- # Expiry date of the card.<br />
187
- # Format: MMyy<br />
188
- # (Clients to convert this to appropriate DateTime type.)<br />
189
- # Note: This is the Expiry Date saved.<br />
190
- # If the Order Card request is still not processed, i.e.PAN is not yet
191
- # issued, this field will be null or empty. <br />
186
+ # Expiry date of the card.
187
+ # Format: yyyymmdd hh:mm:ss
188
+ # (Clients to convert this to appropriate DateTime type.)
189
+ # Note: This is the Expiry Date saved DB.
190
+ # If the Order Card request is still not processed, i.e. PAN is not yet
191
+ # issued, this field will be null or empty.
192
192
  # For a Card Order with a custom Expiry Date passed in the request, this
193
- # value will be returned after it is updated successfully.
193
+ # value will be returned after it is updated successfully in GFN by the
194
+ # background process.
194
195
  # @return [String]
195
196
  attr_accessor :expiry_date
196
197
 
@@ -331,40 +332,21 @@ module ShellCardManagementApIs
331
332
  ]
332
333
  end
333
334
 
334
- def initialize(account_id = SKIP,
335
- account_number = SKIP,
336
- bco_reference = SKIP,
337
- bco_row_number = SKIP,
338
- card_group_id = SKIP,
339
- card_group_name = SKIP,
340
- card_id = SKIP,
341
- card_pan = SKIP,
342
- card_type_code = SKIP,
343
- card_type_id = SKIP,
344
- card_type_name = SKIP,
345
- driver_name = SKIP,
346
- error_code = SKIP,
347
- error_description = SKIP,
348
- gateway_sync_error_code = SKIP,
335
+ def initialize(account_id = SKIP, account_number = SKIP,
336
+ bco_reference = SKIP, bco_row_number = SKIP,
337
+ card_group_id = SKIP, card_group_name = SKIP, card_id = SKIP,
338
+ card_pan = SKIP, card_type_code = SKIP, card_type_id = SKIP,
339
+ card_type_name = SKIP, driver_name = SKIP, error_code = SKIP,
340
+ error_description = SKIP, gateway_sync_error_code = SKIP,
349
341
  gateway_sync_error_description = SKIP,
350
- gateway_sync_status = SKIP,
351
- main_reference = SKIP,
352
- order_card_reference = SKIP,
353
- order_status = SKIP,
354
- payer_id = SKIP,
355
- payer_number = SKIP,
356
- processed_date = SKIP,
357
- purchase_category_code = SKIP,
358
- purchase_category_id = SKIP,
359
- purchase_category_name = SKIP,
360
- submitted_date = SKIP,
361
- sync_processed_date = SKIP,
362
- sync_requested_date = SKIP,
363
- vrn = SKIP,
364
- order_request_id = SKIP,
365
- expiry_date = SKIP,
366
- client_reference_id = SKIP,
367
- status_description = SKIP,
342
+ gateway_sync_status = SKIP, main_reference = SKIP,
343
+ order_card_reference = SKIP, order_status = SKIP,
344
+ payer_id = SKIP, payer_number = SKIP, processed_date = SKIP,
345
+ purchase_category_code = SKIP, purchase_category_id = SKIP,
346
+ purchase_category_name = SKIP, submitted_date = SKIP,
347
+ sync_processed_date = SKIP, sync_requested_date = SKIP,
348
+ vrn = SKIP, order_request_id = SKIP, expiry_date = SKIP,
349
+ client_reference_id = SKIP, status_description = SKIP,
368
350
  col_co_id = SKIP)
369
351
  @account_id = account_id unless account_id == SKIP
370
352
  @account_number = account_number unless account_number == SKIP
@@ -54,15 +54,9 @@ module ShellCardManagementApIs
54
54
  # @return [Integer]
55
55
  attr_accessor :reference_number
56
56
 
57
- # Type of the reference number provided.<br />
58
- # Mandatory if ReferenceNumber is provided. Else optional.<br />
59
- # Allowed Values:<br />
60
- # 1=Main Reference(Main Order Reference Number returned in the output of
61
- # Card/OrderCard service. <br />
62
- # 2=Order Card Reference (Reference number for each individual card in the
63
- # order submitted via Card/OrderCard service. <br />
64
- # 3=Bulk Order Card Reference (Reference number returned in the response of
65
- # bulkcardinterface /UploadOrderCardTemplate. )
57
+ # Reference number of the Card Order/ Bulk Card Order/ Order Card
58
+ # Request.<br />
59
+ # Mandatory when ColCo and Payer fields are not provided. Else, optional.
66
60
  # @return [OrderCardEnquiryReqReferenceTypeEnum]
67
61
  attr_accessor :reference_type
68
62
 
@@ -143,18 +137,11 @@ module ShellCardManagementApIs
143
137
  ]
144
138
  end
145
139
 
146
- def initialize(account_id = SKIP,
147
- account_number = SKIP,
148
- col_co_code = SKIP,
149
- col_co_id = SKIP,
150
- col_co_country_code = SKIP,
151
- payer_id = SKIP,
152
- payer_number = SKIP,
153
- reference_number = SKIP,
154
- reference_type = SKIP,
155
- from_date = SKIP,
156
- to_date = SKIP,
157
- order_request_id = SKIP)
140
+ def initialize(account_id = SKIP, account_number = SKIP, col_co_code = SKIP,
141
+ col_co_id = SKIP, col_co_country_code = SKIP,
142
+ payer_id = SKIP, payer_number = SKIP,
143
+ reference_number = SKIP, reference_type = SKIP,
144
+ from_date = SKIP, to_date = SKIP, order_request_id = SKIP)
158
145
  @account_id = account_id unless account_id == SKIP
159
146
  @account_number = account_number unless account_number == SKIP
160
147
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -9,9 +9,8 @@ module ShellCardManagementApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # This class holds Order Card Enquiry list based on which the Order Card
13
- # Enquiry need to be filtered.
14
- # @return [OrderCardEnquiryReq]
12
+ # TODO: Write general description for this method
13
+ # @return [Filters2]
15
14
  attr_accessor :filters
16
15
 
17
16
  # A mapping from model property names to API property names.
@@ -42,7 +41,7 @@ module ShellCardManagementApIs
42
41
  return nil unless hash
43
42
 
44
43
  # Extract variables from the hash.
45
- filters = OrderCardEnquiryReq.from_hash(hash['Filters']) if hash['Filters']
44
+ filters = Filters2.from_hash(hash['Filters']) if hash['Filters']
46
45
 
47
46
  # Create object from extracted values.
48
47
  OrderCardEnquiryRequest.new(filters)
@@ -44,9 +44,7 @@ module ShellCardManagementApIs
44
44
  []
45
45
  end
46
46
 
47
- def initialize(request_id = SKIP,
48
- status = SKIP,
49
- data = SKIP)
47
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP)
50
48
  @request_id = request_id unless request_id == SKIP
51
49
  @status = status unless status == SKIP
52
50
  @data = data unless data == SKIP
@@ -51,9 +51,7 @@ module ShellCardManagementApIs
51
51
  []
52
52
  end
53
53
 
54
- def initialize(request_id = SKIP,
55
- status = SKIP,
56
- data = SKIP,
54
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP,
57
55
  main_reference = SKIP)
58
56
  @request_id = request_id unless request_id == SKIP
59
57
  @status = status unless status == SKIP
@@ -4,15 +4,14 @@
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  module ShellCardManagementApIs
7
- # LocationRestrictionsPartnerSiteRestrictionsItems Model.
8
- class LocationRestrictionsPartnerSiteRestrictionsItems < BaseModel
7
+ # PartnerSiteRestriction Model.
8
+ class PartnerSiteRestriction < BaseModel
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
12
  # Gateway network codes, typically 7 or 10 digits, where sites and site
13
13
  # groups belong to.
14
14
  # Example: 0002003250
15
- # Mandatory
16
15
  # @return [String]
17
16
  attr_accessor :network_code
18
17
 
@@ -54,6 +53,7 @@ module ShellCardManagementApIs
54
53
  # An array for optional fields
55
54
  def self.optionals
56
55
  %w[
56
+ network_code
57
57
  sites
58
58
  site_groups
59
59
  exclusive
@@ -65,11 +65,9 @@ module ShellCardManagementApIs
65
65
  []
66
66
  end
67
67
 
68
- def initialize(network_code = nil,
69
- sites = SKIP,
70
- site_groups = SKIP,
68
+ def initialize(network_code = SKIP, sites = SKIP, site_groups = SKIP,
71
69
  exclusive = SKIP)
72
- @network_code = network_code
70
+ @network_code = network_code unless network_code == SKIP
73
71
  @sites = sites unless sites == SKIP
74
72
  @site_groups = site_groups unless site_groups == SKIP
75
73
  @exclusive = exclusive unless exclusive == SKIP
@@ -80,16 +78,16 @@ module ShellCardManagementApIs
80
78
  return nil unless hash
81
79
 
82
80
  # Extract variables from the hash.
83
- network_code = hash.key?('NetworkCode') ? hash['NetworkCode'] : nil
81
+ network_code = hash.key?('NetworkCode') ? hash['NetworkCode'] : SKIP
84
82
  sites = hash.key?('Sites') ? hash['Sites'] : SKIP
85
83
  site_groups = hash.key?('SiteGroups') ? hash['SiteGroups'] : SKIP
86
84
  exclusive = hash.key?('Exclusive') ? hash['Exclusive'] : SKIP
87
85
 
88
86
  # Create object from extracted values.
89
- LocationRestrictionsPartnerSiteRestrictionsItems.new(network_code,
90
- sites,
91
- site_groups,
92
- exclusive)
87
+ PartnerSiteRestriction.new(network_code,
88
+ sites,
89
+ site_groups,
90
+ exclusive)
93
91
  end
94
92
  end
95
93
  end
@@ -96,14 +96,9 @@ module ShellCardManagementApIs
96
96
  ]
97
97
  end
98
98
 
99
- def initialize(is_default = false,
100
- colco_id = SKIP,
101
- colco_code = SKIP,
102
- col_co_country_code = SKIP,
103
- payer_group_id = SKIP,
104
- payer_group = SKIP,
105
- payer_id = SKIP,
106
- payer_number = SKIP,
99
+ def initialize(is_default = false, colco_id = SKIP, colco_code = SKIP,
100
+ col_co_country_code = SKIP, payer_group_id = SKIP,
101
+ payer_group = SKIP, payer_id = SKIP, payer_number = SKIP,
107
102
  payer_name = SKIP)
108
103
  @is_default = is_default unless is_default == SKIP
109
104
  @colco_id = colco_id unless colco_id == SKIP
@@ -469,9 +469,11 @@ module ShellCardManagementApIs
469
469
  # @return [TrueClass | FalseClass]
470
470
  attr_accessor :has_active_vol_based_association_bonus
471
471
 
472
- # This entity will not be present in the response if the
473
- # ‘IncludeFinanceCurrency’ flag in the request is false
474
- # @return [FinanceCurrency]
472
+ # True, if the payer is setup for volume-based association bonus and is
473
+ # active on the current date, else false.
474
+ # This field is returned only when IncludeBonusParameters is set to True in
475
+ # the request. Else set to null.
476
+ # @return [FinanceCurrency2]
475
477
  attr_accessor :finance_currency
476
478
 
477
479
  # Customer id in e-TM system
@@ -816,111 +818,68 @@ module ShellCardManagementApIs
816
818
  ]
817
819
  end
818
820
 
819
- def initialize(col_co_id = SKIP,
820
- col_co_code = SKIP,
821
- country_code = SKIP,
822
- country = SKIP,
823
- payer_id = SKIP,
824
- payer_number = SKIP,
825
- payer_full_name = SKIP,
826
- payer_short_name = SKIP,
827
- payer_group_id = SKIP,
828
- amount_due = SKIP,
829
- amount_overdue = SKIP,
830
- amount_not_overdue = SKIP,
831
- outstanding_balance = SKIP,
832
- unallocated_payment = SKIP,
833
- soa_currency_code = SKIP,
834
- soa_currency_symbol = SKIP,
821
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, country_code = SKIP,
822
+ country = SKIP, payer_id = SKIP, payer_number = SKIP,
823
+ payer_full_name = SKIP, payer_short_name = SKIP,
824
+ payer_group_id = SKIP, amount_due = SKIP,
825
+ amount_overdue = SKIP, amount_not_overdue = SKIP,
826
+ outstanding_balance = SKIP, unallocated_payment = SKIP,
827
+ soa_currency_code = SKIP, soa_currency_symbol = SKIP,
835
828
  soa_credit_limit_currency_code = SKIP,
836
829
  soa_credit_limit_currency_symbol = SKIP,
837
830
  last_payment_currency_code = SKIP,
838
831
  last_payment_currency_symbol = SKIP,
839
- last_payment_amount = SKIP,
840
- last_payment_date = SKIP,
841
- soa_last_payment_amount = SKIP,
842
- soa_last_payment_date = SKIP,
843
- currency_code = SKIP,
844
- currency_symbol = SKIP,
845
- col_co_country_code = SKIP,
846
- local_currency_code = SKIP,
832
+ last_payment_amount = SKIP, last_payment_date = SKIP,
833
+ soa_last_payment_amount = SKIP, soa_last_payment_date = SKIP,
834
+ currency_code = SKIP, currency_symbol = SKIP,
835
+ col_co_country_code = SKIP, local_currency_code = SKIP,
847
836
  local_currency_symbol = SKIP,
848
837
  local_currency_exchange_rate = SKIP,
849
838
  local_currency_exchange_rate_so_a = SKIP,
850
839
  billing_frequency_type_id = SKIP,
851
840
  billing_frequency_type = SKIP,
852
841
  billing_run_frequency_type_id = SKIP,
853
- billing_run_frequnecy = SKIP,
854
- day1_run = SKIP,
855
- day2_run = SKIP,
856
- day3_run = SKIP,
857
- day4_run = SKIP,
858
- invoice_distribution_methods = SKIP,
859
- output_type = SKIP,
860
- invoice_account_id = SKIP,
861
- invoice_account_number = SKIP,
862
- invoice_account_short_name = SKIP,
863
- best_of_indicator = false,
864
- is_international = false,
865
- total_accounts = SKIP,
866
- total_active_accounts = SKIP,
867
- total_cards = SKIP,
868
- total_active_cards = SKIP,
869
- total_blocked_cards = SKIP,
870
- total_cancelled_cards = SKIP,
871
- total_expired_cards = SKIP,
842
+ billing_run_frequnecy = SKIP, day1_run = SKIP,
843
+ day2_run = SKIP, day3_run = SKIP, day4_run = SKIP,
844
+ invoice_distribution_methods = SKIP, output_type = SKIP,
845
+ invoice_account_id = SKIP, invoice_account_number = SKIP,
846
+ invoice_account_short_name = SKIP, best_of_indicator = false,
847
+ is_international = false, total_accounts = SKIP,
848
+ total_active_accounts = SKIP, total_cards = SKIP,
849
+ total_active_cards = SKIP, total_blocked_cards = SKIP,
850
+ total_cancelled_cards = SKIP, total_expired_cards = SKIP,
872
851
  total_renewal_pending_cards = SKIP,
873
852
  total_replaced_cards = SKIP,
874
853
  total_temporary_block_cards_by_customer = SKIP,
875
854
  total_temporary_block_cards_by_shell = SKIP,
876
- total_new_cards = SKIP,
877
- total_fraud_cards = SKIP,
855
+ total_new_cards = SKIP, total_fraud_cards = SKIP,
878
856
  total_blocked_accounts = SKIP,
879
- total_cancelled_accounts = SKIP,
880
- payer_trading_name = SKIP,
881
- status = SKIP,
882
- billing_language = SKIP,
883
- legal_entity = SKIP,
884
- date_established = SKIP,
885
- customer_classification = SKIP,
886
- industry_class = SKIP,
887
- marketing_segmentation = SKIP,
888
- line_of_business = SKIP,
889
- print_credit_limit = false,
890
- card_group_type = SKIP,
891
- renew_cards = false,
892
- allow_select_pin = false,
893
- use_fleet_pin = SKIP,
894
- vat_reg_number = SKIP,
895
- vat_reg_number2 = SKIP,
896
- registration_number = SKIP,
897
- registration_number2 = SKIP,
898
- sales_ledger_balance = SKIP,
899
- exposure = SKIP,
900
- outstanding_debt = SKIP,
901
- available_credit = SKIP,
902
- band = SKIP,
903
- global_customer_reference_id = SKIP,
857
+ total_cancelled_accounts = SKIP, payer_trading_name = SKIP,
858
+ status = SKIP, billing_language = SKIP, legal_entity = SKIP,
859
+ date_established = SKIP, customer_classification = SKIP,
860
+ industry_class = SKIP, marketing_segmentation = SKIP,
861
+ line_of_business = SKIP, print_credit_limit = false,
862
+ card_group_type = SKIP, renew_cards = false,
863
+ allow_select_pin = false, use_fleet_pin = SKIP,
864
+ vat_reg_number = SKIP, vat_reg_number2 = SKIP,
865
+ registration_number = SKIP, registration_number2 = SKIP,
866
+ sales_ledger_balance = SKIP, exposure = SKIP,
867
+ outstanding_debt = SKIP, available_credit = SKIP,
868
+ band = SKIP, global_customer_reference_id = SKIP,
904
869
  credit_limit = SKIP,
905
870
  credit_limit_in_customer_currency = SKIP,
906
- billing_currency_code = SKIP,
907
- billing_currency_symbol = SKIP,
908
- payment_method = SKIP,
909
- payment_terms = SKIP,
871
+ billing_currency_code = SKIP, billing_currency_symbol = SKIP,
872
+ payment_method = SKIP, payment_terms = SKIP,
910
873
  temporary_credit_limit_increase = SKIP,
911
874
  temporary_credit_limit_increase_in_customer_currency = SKIP,
912
875
  temporary_credit_limit_expiry_date = SKIP,
913
- payer_bank_account = SKIP,
914
- card_delivery_address = SKIP,
915
- correspondance_address = SKIP,
916
- billing_address = SKIP,
876
+ payer_bank_account = SKIP, card_delivery_address = SKIP,
877
+ correspondance_address = SKIP, billing_address = SKIP,
917
878
  has_active_vol_based_pricing = SKIP,
918
879
  has_active_vol_based_bonus = SKIP,
919
880
  has_active_vol_based_association_bonus = SKIP,
920
- finance_currency = SKIP,
921
- tolls_customer_id = SKIP,
922
- tolls_colco_country_type_id = SKIP,
923
- contracts = SKIP)
881
+ finance_currency = SKIP, tolls_customer_id = SKIP,
882
+ tolls_colco_country_type_id = SKIP, contracts = SKIP)
924
883
  @col_co_id = col_co_id unless col_co_id == SKIP
925
884
  @col_co_code = col_co_code unless col_co_code == SKIP
926
885
  @country_code = country_code unless country_code == SKIP
@@ -1284,7 +1243,7 @@ module ShellCardManagementApIs
1284
1243
  hash.key?('HasActiveVolBasedBonus') ? hash['HasActiveVolBasedBonus'] : SKIP
1285
1244
  has_active_vol_based_association_bonus =
1286
1245
  hash.key?('HasActiveVolBasedAssociationBonus') ? hash['HasActiveVolBasedAssociationBonus'] : SKIP
1287
- finance_currency = FinanceCurrency.from_hash(hash['FinanceCurrency']) if
1246
+ finance_currency = FinanceCurrency2.from_hash(hash['FinanceCurrency']) if
1288
1247
  hash['FinanceCurrency']
1289
1248
  tolls_customer_id =
1290
1249
  hash.key?('TollsCustomerId') ? hash['TollsCustomerId'] : SKIP
@@ -76,12 +76,9 @@ module ShellCardManagementApIs
76
76
  []
77
77
  end
78
78
 
79
- def initialize(payers = SKIP,
80
- return_basic_details_only = false,
81
- include_addresses = false,
82
- include_bonus_parameters = false,
83
- current_page = SKIP,
84
- page_size = SKIP)
79
+ def initialize(payers = SKIP, return_basic_details_only = false,
80
+ include_addresses = false, include_bonus_parameters = false,
81
+ current_page = SKIP, page_size = SKIP)
85
82
  @payers = payers unless payers == SKIP
86
83
  unless return_basic_details_only == SKIP
87
84
  @return_basic_details_only =
@@ -68,12 +68,8 @@ module ShellCardManagementApIs
68
68
  ]
69
69
  end
70
70
 
71
- def initialize(request_id = SKIP,
72
- payers = SKIP,
73
- current_page = SKIP,
74
- row_count = SKIP,
75
- total_pages = SKIP,
76
- error = SKIP)
71
+ def initialize(request_id = SKIP, payers = SKIP, current_page = SKIP,
72
+ row_count = SKIP, total_pages = SKIP, error = SKIP)
77
73
  @request_id = request_id unless request_id == SKIP
78
74
  @payers = payers unless payers == SKIP
79
75
  @current_page = current_page unless current_page == SKIP
@@ -71,11 +71,8 @@ module ShellCardManagementApIs
71
71
  ]
72
72
  end
73
73
 
74
- def initialize(col_co_id = SKIP,
75
- col_co_code = SKIP,
76
- payer_id = SKIP,
77
- payer_number = SKIP,
78
- payer_name = SKIP,
74
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
75
+ payer_number = SKIP, payer_name = SKIP,
79
76
  payer_group_id = SKIP)
80
77
  @col_co_id = col_co_id unless col_co_id == SKIP
81
78
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -51,8 +51,7 @@ module ShellCardManagementApIs
51
51
  ]
52
52
  end
53
53
 
54
- def initialize(pin_advice_type_id = SKIP,
55
- is_card_order_option = SKIP,
54
+ def initialize(pin_advice_type_id = SKIP, is_card_order_option = SKIP,
56
55
  is_pin_reminder_option = SKIP)
57
56
  @pin_advice_type_id = pin_advice_type_id unless pin_advice_type_id == SKIP
58
57
  @is_card_order_option = is_card_order_option unless is_card_order_option == SKIP