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,130 @@
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
+ # UpdateCardGroupResponse Model.
8
+ class UpdateCardGroupResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Reference number for tracking the overall request.
13
+ # The value will be null when the validation fails.
14
+ # @return [Integer]
15
+ attr_accessor :main_reference
16
+
17
+ # Reference number for tracking the execution of terminate card-group
18
+ # request.
19
+ # Reference number will be null when the validations fail or
20
+ # TerminateCardGroup in the request object is false.
21
+ # @return [Integer]
22
+ attr_accessor :update_card_group_reference
23
+
24
+ # Reference number for tracking the execution of new card group creation in
25
+ # the case when the cards in the terminating card-group have to be moved to
26
+ # a new card-group.
27
+ # Reference number will be null when the validations fail or new card-group
28
+ # creation is not requested.
29
+ # @return [Integer]
30
+ attr_accessor :new_card_group_reference
31
+
32
+ # List of cards submitted successfully for processing the move to the target
33
+ # card-group or to change card-group to null.
34
+ # This list will be empty when the validations fail or there are no cards in
35
+ # the card-group that is getting terminated or MoveCards in the request
36
+ # object is false
37
+ # @return [Array[UpdateCardGroupResponseMoveCardReferencesItems]]
38
+ attr_accessor :move_card_references
39
+
40
+ # List of cards submitted successfully for processing the move to the target
41
+ # card-group or to change card-group to null.
42
+ # This list will be empty when the validations fail or there are no cards in
43
+ # the card-group that is getting terminated or MoveCards in the request
44
+ # object is false
45
+ # @return [ErrorStatus]
46
+ attr_accessor :error
47
+
48
+ # API Request ID
49
+ # @return [String]
50
+ attr_accessor :request_id
51
+
52
+ # A mapping from model property names to API property names.
53
+ def self.names
54
+ @_hash = {} if @_hash.nil?
55
+ @_hash['main_reference'] = 'MainReference'
56
+ @_hash['update_card_group_reference'] = 'UpdateCardGroupReference'
57
+ @_hash['new_card_group_reference'] = 'NewCardGroupReference'
58
+ @_hash['move_card_references'] = 'MoveCardReferences'
59
+ @_hash['error'] = 'Error'
60
+ @_hash['request_id'] = 'RequestId'
61
+ @_hash
62
+ end
63
+
64
+ # An array for optional fields
65
+ def self.optionals
66
+ %w[
67
+ main_reference
68
+ update_card_group_reference
69
+ new_card_group_reference
70
+ move_card_references
71
+ error
72
+ request_id
73
+ ]
74
+ end
75
+
76
+ # An array for nullable fields
77
+ def self.nullables
78
+ []
79
+ end
80
+
81
+ def initialize(main_reference = SKIP,
82
+ update_card_group_reference = SKIP,
83
+ new_card_group_reference = SKIP,
84
+ move_card_references = SKIP,
85
+ error = SKIP,
86
+ request_id = SKIP)
87
+ @main_reference = main_reference unless main_reference == SKIP
88
+ unless update_card_group_reference == SKIP
89
+ @update_card_group_reference =
90
+ update_card_group_reference
91
+ end
92
+ @new_card_group_reference = new_card_group_reference unless new_card_group_reference == SKIP
93
+ @move_card_references = move_card_references unless move_card_references == SKIP
94
+ @error = error unless error == SKIP
95
+ @request_id = request_id unless request_id == SKIP
96
+ end
97
+
98
+ # Creates an instance of the object from a hash.
99
+ def self.from_hash(hash)
100
+ return nil unless hash
101
+
102
+ # Extract variables from the hash.
103
+ main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
104
+ update_card_group_reference =
105
+ hash.key?('UpdateCardGroupReference') ? hash['UpdateCardGroupReference'] : SKIP
106
+ new_card_group_reference =
107
+ hash.key?('NewCardGroupReference') ? hash['NewCardGroupReference'] : SKIP
108
+ # Parameter is an array, so we need to iterate through it
109
+ move_card_references = nil
110
+ unless hash['MoveCardReferences'].nil?
111
+ move_card_references = []
112
+ hash['MoveCardReferences'].each do |structure|
113
+ move_card_references << (UpdateCardGroupResponseMoveCardReferencesItems.from_hash(structure) if structure)
114
+ end
115
+ end
116
+
117
+ move_card_references = SKIP unless hash.key?('MoveCardReferences')
118
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
119
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
120
+
121
+ # Create object from extracted values.
122
+ UpdateCardGroupResponse.new(main_reference,
123
+ update_card_group_reference,
124
+ new_card_group_reference,
125
+ move_card_references,
126
+ error,
127
+ request_id)
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,77 @@
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
+ # UpdateCardGroupResponseMoveCardReferencesItems Model.
8
+ class UpdateCardGroupResponseMoveCardReferencesItems < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Card Id of the card.
13
+ # Example: 123
14
+ # @return [Integer]
15
+ attr_accessor :card_id
16
+
17
+ # PAN of the card.
18
+ # Example: 7002051123456789145
19
+ # @return [String]
20
+ attr_accessor :pan
21
+
22
+ # Reference number for tracking of update status request of the specific
23
+ # card.
24
+ # @return [Integer]
25
+ attr_accessor :reference
26
+
27
+ # A mapping from model property names to API property names.
28
+ def self.names
29
+ @_hash = {} if @_hash.nil?
30
+ @_hash['card_id'] = 'CardId'
31
+ @_hash['pan'] = 'PAN'
32
+ @_hash['reference'] = 'Reference'
33
+ @_hash
34
+ end
35
+
36
+ # An array for optional fields
37
+ def self.optionals
38
+ %w[
39
+ card_id
40
+ pan
41
+ reference
42
+ ]
43
+ end
44
+
45
+ # An array for nullable fields
46
+ def self.nullables
47
+ %w[
48
+ card_id
49
+ pan
50
+ reference
51
+ ]
52
+ end
53
+
54
+ def initialize(card_id = SKIP,
55
+ pan = SKIP,
56
+ reference = SKIP)
57
+ @card_id = card_id unless card_id == SKIP
58
+ @pan = pan unless pan == SKIP
59
+ @reference = reference unless reference == SKIP
60
+ end
61
+
62
+ # Creates an instance of the object from a hash.
63
+ def self.from_hash(hash)
64
+ return nil unless hash
65
+
66
+ # Extract variables from the hash.
67
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
68
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
69
+ reference = hash.key?('Reference') ? hash['Reference'] : SKIP
70
+
71
+ # Create object from extracted values.
72
+ UpdateCardGroupResponseMoveCardReferencesItems.new(card_id,
73
+ pan,
74
+ reference)
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,163 @@
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
+ # Delivery address of card. This address will be used for card reissue and PIN
8
+ # reminders in future. Note: Mandatory when ‘UseCustomerDefaultAddress’ is set
9
+ # to ‘false’. The field is ignored otherwise.
10
+ class UpdateCardRenewalAddress < BaseModel
11
+ SKIP = Object.new
12
+ private_constant :SKIP
13
+
14
+ # Contact name
15
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
16
+ # field is ignored otherwise.
17
+ # Max Length: 50
18
+ # @return [String]
19
+ attr_accessor :contact_name
20
+
21
+ # Title
22
+ # Max Length: 50
23
+ # @return [String]
24
+ attr_accessor :contact_title
25
+
26
+ # Company name.
27
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
28
+ # field is ignored otherwise.
29
+ # Max Length: 50
30
+ # @return [String]
31
+ attr_accessor :company_name
32
+
33
+ # Address line 1,2 and 3
34
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
35
+ # field is ignored otherwise.
36
+ # Max Length: 128
37
+ # Note: -Each address line should be separated by “\r\n”.
38
+ # @return [String]
39
+ attr_accessor :address_line
40
+
41
+ # ZipCode
42
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
43
+ # field is ignored otherwise.
44
+ # Max Length: 10
45
+ # @return [String]
46
+ attr_accessor :zip_code
47
+
48
+ # City
49
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
50
+ # field is ignored otherwise.
51
+ # Max Length: 40
52
+ # @return [String]
53
+ attr_accessor :city
54
+
55
+ # Region id of card.
56
+ # @return [Integer]
57
+ attr_accessor :region_id
58
+
59
+ # Country ID
60
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
61
+ # field is ignored otherwise.
62
+ # @return [Integer]
63
+ attr_accessor :country_id
64
+
65
+ # Email Address
66
+ # Max Length: 90
67
+ # Note: -
68
+ # Based on the international standard that there can be
69
+ # • Max Length 64 before the @ (the 'Local part’) =64(minimum of 1)
70
+ # • Max Lenth after the (the domain) = 88 (Minimum of 2)
71
+ # @return [String]
72
+ attr_accessor :email_address
73
+
74
+ # Phone number
75
+ # Optional
76
+ # Max Length: 16
77
+ # @return [String]
78
+ attr_accessor :phone_number
79
+
80
+ # A mapping from model property names to API property names.
81
+ def self.names
82
+ @_hash = {} if @_hash.nil?
83
+ @_hash['contact_name'] = 'ContactName'
84
+ @_hash['contact_title'] = 'ContactTitle'
85
+ @_hash['company_name'] = 'CompanyName'
86
+ @_hash['address_line'] = 'AddressLine'
87
+ @_hash['zip_code'] = 'ZipCode'
88
+ @_hash['city'] = 'City'
89
+ @_hash['region_id'] = 'RegionID'
90
+ @_hash['country_id'] = 'CountryID'
91
+ @_hash['email_address'] = 'EmailAddress'
92
+ @_hash['phone_number'] = 'PhoneNumber'
93
+ @_hash
94
+ end
95
+
96
+ # An array for optional fields
97
+ def self.optionals
98
+ %w[
99
+ contact_title
100
+ city
101
+ region_id
102
+ email_address
103
+ phone_number
104
+ ]
105
+ end
106
+
107
+ # An array for nullable fields
108
+ def self.nullables
109
+ []
110
+ end
111
+
112
+ def initialize(contact_name = nil,
113
+ company_name = nil,
114
+ address_line = nil,
115
+ zip_code = nil,
116
+ country_id = nil,
117
+ contact_title = SKIP,
118
+ city = SKIP,
119
+ region_id = SKIP,
120
+ email_address = SKIP,
121
+ phone_number = SKIP)
122
+ @contact_name = contact_name
123
+ @contact_title = contact_title unless contact_title == SKIP
124
+ @company_name = company_name
125
+ @address_line = address_line
126
+ @zip_code = zip_code
127
+ @city = city unless city == SKIP
128
+ @region_id = region_id unless region_id == SKIP
129
+ @country_id = country_id
130
+ @email_address = email_address unless email_address == SKIP
131
+ @phone_number = phone_number unless phone_number == SKIP
132
+ end
133
+
134
+ # Creates an instance of the object from a hash.
135
+ def self.from_hash(hash)
136
+ return nil unless hash
137
+
138
+ # Extract variables from the hash.
139
+ contact_name = hash.key?('ContactName') ? hash['ContactName'] : nil
140
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
141
+ address_line = hash.key?('AddressLine') ? hash['AddressLine'] : nil
142
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
143
+ country_id = hash.key?('CountryID') ? hash['CountryID'] : nil
144
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
145
+ city = hash.key?('City') ? hash['City'] : SKIP
146
+ region_id = hash.key?('RegionID') ? hash['RegionID'] : SKIP
147
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
148
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
149
+
150
+ # Create object from extracted values.
151
+ UpdateCardRenewalAddress.new(contact_name,
152
+ company_name,
153
+ address_line,
154
+ zip_code,
155
+ country_id,
156
+ contact_title,
157
+ city,
158
+ region_id,
159
+ email_address,
160
+ phone_number)
161
+ end
162
+ end
163
+ end
@@ -0,0 +1,124 @@
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
+ # UpdateStatus Request
8
+ class UpdateCardStatusRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # List of UpdateCardRequest entity. Each card in the list will be updated to
13
+ # the given target status. The details of the entity are given below.
14
+ # @return [Array[UpdateCard]]
15
+ attr_accessor :cards
16
+
17
+ # Reason id for updating the card status.<br />
18
+ # Optional<br />
19
+ # Either Reason ID or Text is madatory when TargetStatus is ‘Block’ or
20
+ # ‘Damaged’. Else ignored.<br />
21
+ # Possible values:<br />
22
+ # -Lost <br />
23
+ # -Stolen <br />
24
+ # -Card no longer required<br />
25
+ # When passed, the reason Id will be validated with the allowed reason ids
26
+ # configured for the card type of the card.<br />
27
+ # . If the given reason Id is not allowed for certain card types, then the
28
+ # request will be rejected as invalid ResonId.
29
+ # @return [Integer]
30
+ attr_accessor :reason_id
31
+
32
+ # Reason text for updating the card status.<br />
33
+ # Optional Either Reason ID or Text is madatory when TargetStatus is ‘Block’
34
+ # or ‘Damaged’. Else ignored.<br />
35
+ # Possible values:<br />
36
+ # -Lost <br />
37
+ # -Stolen <br />
38
+ # -Card no longer required <br />
39
+ # Optional – However, either Reason ID or Text is madatory when
40
+ # TargetStatus is ‘Block’ or ‘Damaged’.<br />
41
+ # When Reason Text is passed and the Target Status is either Block or
42
+ # Damaged, the text will be validated with the allowed list of values
43
+ # configured for the card type of the card.<br />
44
+ # If the text is not allowed, request will be rejected as invaid
45
+ # ResonText.<br />
46
+ # Note:<br />
47
+ # Customer blocked’ will be used as the reason for ‘Temporary Block’.
48
+ # @return [String]
49
+ attr_accessor :reason_text
50
+
51
+ # The list of cards passed in Cards parameter will be updated to this
52
+ # status.<br />
53
+ # Mandatory<br />
54
+ # Allowed values:<br />
55
+ # -TemporaryBlock<br />
56
+ # -Unblock<br />
57
+ # -Block<br />
58
+ # -Damaged<br />
59
+ # @return [String]
60
+ attr_accessor :target_status
61
+
62
+ # A mapping from model property names to API property names.
63
+ def self.names
64
+ @_hash = {} if @_hash.nil?
65
+ @_hash['cards'] = 'Cards'
66
+ @_hash['reason_id'] = 'ReasonId'
67
+ @_hash['reason_text'] = 'ReasonText'
68
+ @_hash['target_status'] = 'TargetStatus'
69
+ @_hash
70
+ end
71
+
72
+ # An array for optional fields
73
+ def self.optionals
74
+ %w[
75
+ reason_id
76
+ reason_text
77
+ ]
78
+ end
79
+
80
+ # An array for nullable fields
81
+ def self.nullables
82
+ %w[
83
+ reason_id
84
+ reason_text
85
+ ]
86
+ end
87
+
88
+ def initialize(cards = nil,
89
+ target_status = nil,
90
+ reason_id = SKIP,
91
+ reason_text = SKIP)
92
+ @cards = cards
93
+ @reason_id = reason_id unless reason_id == SKIP
94
+ @reason_text = reason_text unless reason_text == SKIP
95
+ @target_status = target_status
96
+ end
97
+
98
+ # Creates an instance of the object from a hash.
99
+ def self.from_hash(hash)
100
+ return nil unless hash
101
+
102
+ # Extract variables from the hash.
103
+ # Parameter is an array, so we need to iterate through it
104
+ cards = nil
105
+ unless hash['Cards'].nil?
106
+ cards = []
107
+ hash['Cards'].each do |structure|
108
+ cards << (UpdateCard.from_hash(structure) if structure)
109
+ end
110
+ end
111
+
112
+ cards = nil unless hash.key?('Cards')
113
+ target_status = hash.key?('TargetStatus') ? hash['TargetStatus'] : nil
114
+ reason_id = hash.key?('ReasonId') ? hash['ReasonId'] : SKIP
115
+ reason_text = hash.key?('ReasonText') ? hash['ReasonText'] : SKIP
116
+
117
+ # Create object from extracted values.
118
+ UpdateCardStatusRequest.new(cards,
119
+ target_status,
120
+ reason_id,
121
+ reason_text)
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,133 @@
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
+ # UpdateCardStatusResponse Model.
8
+ class UpdateCardStatusResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Unique request identifier passed from end user. This identifier helps in
13
+ # tracing a transaction
14
+ # @return [String]
15
+ attr_accessor :request_id
16
+
17
+ # Indicates overall status of the request. Allowed values: SUCCESS, FAILED,
18
+ # PARTIAL_SUCCESS
19
+ # @return [String]
20
+ attr_accessor :status
21
+
22
+ # Indicates overall status of the request. Allowed values: SUCCESS, FAILED,
23
+ # PARTIAL_SUCCESS
24
+ # @return [Array[SubmittedCard]]
25
+ attr_accessor :data
26
+
27
+ # Update status reference number for tracking the execution of the request.
28
+ # <br>Note: Reference will be empty for status 9006 and 9012 i.e., request
29
+ # for all the cards failed.
30
+ # @return [Integer]
31
+ attr_accessor :main_reference
32
+
33
+ # Order replacement reference number for tracking the execution of the order
34
+ # replacement cards request. <br/>Note: Reference will be empty for status
35
+ # 9006 and 9012 i.e., request for all the cards failed or if there were no
36
+ # order replacement requested in the input.
37
+ # @return [Integer]
38
+ attr_accessor :order_replacement_reference
39
+
40
+ # Order replacement reference number for tracking the execution of the order
41
+ # replacement cards request. <br/>Note: Reference will be empty for status
42
+ # 9006 and 9012 i.e., request for all the cards failed or if there were no
43
+ # order replacement requested in the input.
44
+ # @return [Array[ErrorDetails]]
45
+ attr_accessor :errors
46
+
47
+ # A mapping from model property names to API property names.
48
+ def self.names
49
+ @_hash = {} if @_hash.nil?
50
+ @_hash['request_id'] = 'RequestId'
51
+ @_hash['status'] = 'Status'
52
+ @_hash['data'] = 'Data'
53
+ @_hash['main_reference'] = 'MainReference'
54
+ @_hash['order_replacement_reference'] = 'OrderReplacementReference'
55
+ @_hash['errors'] = 'Errors'
56
+ @_hash
57
+ end
58
+
59
+ # An array for optional fields
60
+ def self.optionals
61
+ %w[
62
+ request_id
63
+ status
64
+ data
65
+ main_reference
66
+ order_replacement_reference
67
+ errors
68
+ ]
69
+ end
70
+
71
+ # An array for nullable fields
72
+ def self.nullables
73
+ []
74
+ end
75
+
76
+ def initialize(request_id = SKIP,
77
+ status = SKIP,
78
+ data = SKIP,
79
+ main_reference = SKIP,
80
+ order_replacement_reference = SKIP,
81
+ errors = SKIP)
82
+ @request_id = request_id unless request_id == SKIP
83
+ @status = status unless status == SKIP
84
+ @data = data unless data == SKIP
85
+ @main_reference = main_reference unless main_reference == SKIP
86
+ unless order_replacement_reference == SKIP
87
+ @order_replacement_reference =
88
+ order_replacement_reference
89
+ end
90
+ @errors = errors unless errors == SKIP
91
+ end
92
+
93
+ # Creates an instance of the object from a hash.
94
+ def self.from_hash(hash)
95
+ return nil unless hash
96
+
97
+ # Extract variables from the hash.
98
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
99
+ status = hash.key?('Status') ? hash['Status'] : SKIP
100
+ # Parameter is an array, so we need to iterate through it
101
+ data = nil
102
+ unless hash['Data'].nil?
103
+ data = []
104
+ hash['Data'].each do |structure|
105
+ data << (SubmittedCard.from_hash(structure) if structure)
106
+ end
107
+ end
108
+
109
+ data = SKIP unless hash.key?('Data')
110
+ main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
111
+ order_replacement_reference =
112
+ hash.key?('OrderReplacementReference') ? hash['OrderReplacementReference'] : SKIP
113
+ # Parameter is an array, so we need to iterate through it
114
+ errors = nil
115
+ unless hash['Errors'].nil?
116
+ errors = []
117
+ hash['Errors'].each do |structure|
118
+ errors << (ErrorDetails.from_hash(structure) if structure)
119
+ end
120
+ end
121
+
122
+ errors = SKIP unless hash.key?('Errors')
123
+
124
+ # Create object from extracted values.
125
+ UpdateCardStatusResponse.new(request_id,
126
+ status,
127
+ data,
128
+ main_reference,
129
+ order_replacement_reference,
130
+ errors)
131
+ end
132
+ end
133
+ end