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,126 @@
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
+ # PayerRequest Model.
8
+ class PayerRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # List of Payer entity.
13
+ # Optional.
14
+ # Note:
15
+ # • Max number of payers allowed in the input is 10, if it exceeds in the
16
+ # input it will throw an error.
17
+ # • This value is configurable. Initial configuration will be 1000 and will
18
+ # change to 10 once SFH changes are integrated.
19
+ # @return [Array[Payers]]
20
+ attr_accessor :payers
21
+
22
+ # Returns only the high-level basic details of payers. Set this field to
23
+ # ‘true’ when only the basic details are required to get the result quicker.
24
+ # @return [TrueClass | FalseClass]
25
+ attr_accessor :return_basic_details_only
26
+
27
+ # Include address related fields on the response. Set this field to ‘False’
28
+ # when Address fields are not required to get the result quicker.
29
+ # @return [TrueClass | FalseClass]
30
+ attr_accessor :include_addresses
31
+
32
+ # Include the Finance Currency, used for Finance Widget, in the response
33
+ # @return [TrueClass | FalseClass]
34
+ attr_accessor :include_bonus_parameters
35
+
36
+ # Page Number
37
+ # @return [Integer]
38
+ attr_accessor :current_page
39
+
40
+ # Page Size – Number of records to show on a page
41
+ # Default value 50
42
+ # Return 250 rows only in the response if -1 is supplied as page size.
43
+ # Note:
44
+ # • Max page size is 250, if the user provided value is more than 250 then
45
+ # it will throw error.
46
+ # • This value is configurable.
47
+ # @return [Integer]
48
+ attr_accessor :page_size
49
+
50
+ # A mapping from model property names to API property names.
51
+ def self.names
52
+ @_hash = {} if @_hash.nil?
53
+ @_hash['payers'] = 'Payers'
54
+ @_hash['return_basic_details_only'] = 'ReturnBasicDetailsOnly'
55
+ @_hash['include_addresses'] = 'IncludeAddresses'
56
+ @_hash['include_bonus_parameters'] = 'IncludeBonusParameters'
57
+ @_hash['current_page'] = 'CurrentPage'
58
+ @_hash['page_size'] = 'PageSize'
59
+ @_hash
60
+ end
61
+
62
+ # An array for optional fields
63
+ def self.optionals
64
+ %w[
65
+ payers
66
+ return_basic_details_only
67
+ include_addresses
68
+ include_bonus_parameters
69
+ current_page
70
+ page_size
71
+ ]
72
+ end
73
+
74
+ # An array for nullable fields
75
+ def self.nullables
76
+ []
77
+ end
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)
85
+ @payers = payers unless payers == SKIP
86
+ unless return_basic_details_only == SKIP
87
+ @return_basic_details_only =
88
+ return_basic_details_only
89
+ end
90
+ @include_addresses = include_addresses unless include_addresses == SKIP
91
+ @include_bonus_parameters = include_bonus_parameters unless include_bonus_parameters == SKIP
92
+ @current_page = current_page unless current_page == SKIP
93
+ @page_size = page_size unless page_size == SKIP
94
+ end
95
+
96
+ # Creates an instance of the object from a hash.
97
+ def self.from_hash(hash)
98
+ return nil unless hash
99
+
100
+ # Extract variables from the hash.
101
+ # Parameter is an array, so we need to iterate through it
102
+ payers = nil
103
+ unless hash['Payers'].nil?
104
+ payers = []
105
+ hash['Payers'].each do |structure|
106
+ payers << (Payers.from_hash(structure) if structure)
107
+ end
108
+ end
109
+
110
+ payers = SKIP unless hash.key?('Payers')
111
+ return_basic_details_only = hash['ReturnBasicDetailsOnly'] ||= false
112
+ include_addresses = hash['IncludeAddresses'] ||= false
113
+ include_bonus_parameters = hash['IncludeBonusParameters'] ||= false
114
+ current_page = hash.key?('CurrentPage') ? hash['CurrentPage'] : SKIP
115
+ page_size = hash.key?('PageSize') ? hash['PageSize'] : SKIP
116
+
117
+ # Create object from extracted values.
118
+ PayerRequest.new(payers,
119
+ return_basic_details_only,
120
+ include_addresses,
121
+ include_bonus_parameters,
122
+ current_page,
123
+ page_size)
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,115 @@
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
+ # PayerResponse Model.
8
+ class PayerResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Request Id of the API call
13
+ # @return [String]
14
+ attr_accessor :request_id
15
+
16
+ # Request Id of the API call
17
+ # @return [Array[PayerDetails]]
18
+ attr_accessor :payers
19
+
20
+ # Current Page
21
+ # @return [Integer]
22
+ attr_accessor :current_page
23
+
24
+ # Total row count matched for the given input criteria
25
+ # @return [Integer]
26
+ attr_accessor :row_count
27
+
28
+ # Calculated page count based on page size from the incoming API request and
29
+ # total number of rows matched for the given input criteria. Return 1 if the
30
+ # page size is -1 as all records are returned
31
+ # @return [Integer]
32
+ attr_accessor :total_pages
33
+
34
+ # Calculated page count based on page size from the incoming API request and
35
+ # total number of rows matched for the given input criteria. Return 1 if the
36
+ # page size is -1 as all records are returned
37
+ # @return [ErrorStatus]
38
+ attr_accessor :error
39
+
40
+ # A mapping from model property names to API property names.
41
+ def self.names
42
+ @_hash = {} if @_hash.nil?
43
+ @_hash['request_id'] = 'RequestId'
44
+ @_hash['payers'] = 'Payers'
45
+ @_hash['current_page'] = 'CurrentPage'
46
+ @_hash['row_count'] = 'RowCount'
47
+ @_hash['total_pages'] = 'TotalPages'
48
+ @_hash['error'] = 'Error'
49
+ @_hash
50
+ end
51
+
52
+ # An array for optional fields
53
+ def self.optionals
54
+ %w[
55
+ request_id
56
+ payers
57
+ current_page
58
+ row_count
59
+ total_pages
60
+ error
61
+ ]
62
+ end
63
+
64
+ # An array for nullable fields
65
+ def self.nullables
66
+ %w[
67
+ request_id
68
+ ]
69
+ end
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)
77
+ @request_id = request_id unless request_id == SKIP
78
+ @payers = payers unless payers == SKIP
79
+ @current_page = current_page unless current_page == SKIP
80
+ @row_count = row_count unless row_count == SKIP
81
+ @total_pages = total_pages unless total_pages == SKIP
82
+ @error = error unless error == SKIP
83
+ end
84
+
85
+ # Creates an instance of the object from a hash.
86
+ def self.from_hash(hash)
87
+ return nil unless hash
88
+
89
+ # Extract variables from the hash.
90
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
91
+ # Parameter is an array, so we need to iterate through it
92
+ payers = nil
93
+ unless hash['Payers'].nil?
94
+ payers = []
95
+ hash['Payers'].each do |structure|
96
+ payers << (PayerDetails.from_hash(structure) if structure)
97
+ end
98
+ end
99
+
100
+ payers = SKIP unless hash.key?('Payers')
101
+ current_page = hash.key?('CurrentPage') ? hash['CurrentPage'] : SKIP
102
+ row_count = hash.key?('RowCount') ? hash['RowCount'] : SKIP
103
+ total_pages = hash.key?('TotalPages') ? hash['TotalPages'] : SKIP
104
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
105
+
106
+ # Create object from extracted values.
107
+ PayerResponse.new(request_id,
108
+ payers,
109
+ current_page,
110
+ row_count,
111
+ total_pages,
112
+ error)
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,109 @@
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
+ # Payers Model.
8
+ class Payers < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting Company Id of the payer
13
+ # @return [Integer]
14
+ attr_accessor :col_co_id
15
+
16
+ # Collecting Company Code (Shell Code) of the selected payer.
17
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
18
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
19
+ # @return [Integer]
20
+ attr_accessor :col_co_code
21
+
22
+ # Payer id of the customer.
23
+ # @return [Integer]
24
+ attr_accessor :payer_id
25
+
26
+ # Payer Number of the customer.
27
+ # @return [String]
28
+ attr_accessor :payer_number
29
+
30
+ # Payer Name of the customer.
31
+ # @return [String]
32
+ attr_accessor :payer_name
33
+
34
+ # Payer Group identifier of the customer
35
+ # @return [Integer]
36
+ attr_accessor :payer_group_id
37
+
38
+ # A mapping from model property names to API property names.
39
+ def self.names
40
+ @_hash = {} if @_hash.nil?
41
+ @_hash['col_co_id'] = 'ColCoId'
42
+ @_hash['col_co_code'] = 'ColCoCode'
43
+ @_hash['payer_id'] = 'PayerId'
44
+ @_hash['payer_number'] = 'PayerNumber'
45
+ @_hash['payer_name'] = 'PayerName'
46
+ @_hash['payer_group_id'] = 'PayerGroupId'
47
+ @_hash
48
+ end
49
+
50
+ # An array for optional fields
51
+ def self.optionals
52
+ %w[
53
+ col_co_id
54
+ col_co_code
55
+ payer_id
56
+ payer_number
57
+ payer_name
58
+ payer_group_id
59
+ ]
60
+ end
61
+
62
+ # An array for nullable fields
63
+ def self.nullables
64
+ %w[
65
+ col_co_id
66
+ col_co_code
67
+ payer_id
68
+ payer_number
69
+ payer_name
70
+ payer_group_id
71
+ ]
72
+ end
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,
79
+ payer_group_id = SKIP)
80
+ @col_co_id = col_co_id unless col_co_id == SKIP
81
+ @col_co_code = col_co_code unless col_co_code == SKIP
82
+ @payer_id = payer_id unless payer_id == SKIP
83
+ @payer_number = payer_number unless payer_number == SKIP
84
+ @payer_name = payer_name unless payer_name == SKIP
85
+ @payer_group_id = payer_group_id unless payer_group_id == SKIP
86
+ end
87
+
88
+ # Creates an instance of the object from a hash.
89
+ def self.from_hash(hash)
90
+ return nil unless hash
91
+
92
+ # Extract variables from the hash.
93
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
94
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
95
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
96
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
97
+ payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
98
+ payer_group_id = hash.key?('PayerGroupId') ? hash['PayerGroupId'] : SKIP
99
+
100
+ # Create object from extracted values.
101
+ Payers.new(col_co_id,
102
+ col_co_code,
103
+ payer_id,
104
+ payer_number,
105
+ payer_name,
106
+ payer_group_id)
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,80 @@
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
+ # PINAdviceTypes Model.
8
+ class PINAdviceTypes < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Id of of PIN advice type.
13
+ # Possible Values:
14
+ # 1. Paper
15
+ # 2. Email
16
+ # 3. SMS
17
+ # 4. None
18
+ # @return [Integer]
19
+ attr_accessor :pin_advice_type_id
20
+
21
+ # Whether the PIN advice type is available for card ordering
22
+ # @return [TrueClass | FalseClass]
23
+ attr_accessor :is_card_order_option
24
+
25
+ # Whether the PIN advice type is available for PIN Reminder
26
+ # @return [TrueClass | FalseClass]
27
+ attr_accessor :is_pin_reminder_option
28
+
29
+ # A mapping from model property names to API property names.
30
+ def self.names
31
+ @_hash = {} if @_hash.nil?
32
+ @_hash['pin_advice_type_id'] = 'PINAdviceTypeID'
33
+ @_hash['is_card_order_option'] = 'IsCardOrderOption'
34
+ @_hash['is_pin_reminder_option'] = 'IsPINReminderOption'
35
+ @_hash
36
+ end
37
+
38
+ # An array for optional fields
39
+ def self.optionals
40
+ %w[
41
+ pin_advice_type_id
42
+ is_card_order_option
43
+ is_pin_reminder_option
44
+ ]
45
+ end
46
+
47
+ # An array for nullable fields
48
+ def self.nullables
49
+ %w[
50
+ pin_advice_type_id
51
+ ]
52
+ end
53
+
54
+ def initialize(pin_advice_type_id = SKIP,
55
+ is_card_order_option = SKIP,
56
+ is_pin_reminder_option = SKIP)
57
+ @pin_advice_type_id = pin_advice_type_id unless pin_advice_type_id == SKIP
58
+ @is_card_order_option = is_card_order_option unless is_card_order_option == SKIP
59
+ @is_pin_reminder_option = is_pin_reminder_option unless is_pin_reminder_option == 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
+ pin_advice_type_id =
68
+ hash.key?('PINAdviceTypeID') ? hash['PINAdviceTypeID'] : SKIP
69
+ is_card_order_option =
70
+ hash.key?('IsCardOrderOption') ? hash['IsCardOrderOption'] : SKIP
71
+ is_pin_reminder_option =
72
+ hash.key?('IsPINReminderOption') ? hash['IsPINReminderOption'] : SKIP
73
+
74
+ # Create object from extracted values.
75
+ PINAdviceTypes.new(pin_advice_type_id,
76
+ is_card_order_option,
77
+ is_pin_reminder_option)
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,242 @@
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
+ # Request entity object for PINDeliveryContact Mandatory when
8
+ # PINDeliveryAddressType is ‘3’ (New delivery address). Else, ignored.
9
+ class PINDeliveryContact < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # Title of the contact person <br />
14
+ # Optional
15
+ # @return [String]
16
+ attr_accessor :delivery_contact_title
17
+
18
+ # Name of the contact person <br />
19
+ # Mandatory - If PINAdviceType is paper else optional. <br />
20
+ # Max field length: 50 <br />
21
+ # Optional
22
+ # @return [String]
23
+ attr_accessor :delivery_contact_name
24
+
25
+ # Company name <br />
26
+ # Mandatory - If PINAdviceType is paper else optional. <br />
27
+ # Max field length: 50 <br />
28
+ # Optional
29
+ # @return [String]
30
+ attr_accessor :delivery_company_name
31
+
32
+ # Address line 1 <br />
33
+ # Mandatory - if PINAdviceType is paper else optional.<br />
34
+ # Max field length: 40 <br />
35
+ # Optional
36
+ # @return [String]
37
+ attr_accessor :delivery_address_line1
38
+
39
+ # Address line 2 <br />
40
+ # Optional <br />
41
+ # Max field length: 40 <br />
42
+ # Optional
43
+ # @return [String]
44
+ attr_accessor :delivery_address_line2
45
+
46
+ # Address line 3 <br />
47
+ # Optional <br />
48
+ # Max field length: 40 <br />
49
+ # Optional
50
+ # @return [String]
51
+ attr_accessor :delivery_address_line3
52
+
53
+ # ZIP code <br />
54
+ # Mandatory - if PINAdviceType is paper else optional. <br />
55
+ # Max field length: 10 <br />
56
+ # Optional
57
+ # @return [String]
58
+ attr_accessor :delivery_zip_code
59
+
60
+ # City <br />
61
+ # Mandatory - If PINAdviceType is paper else optional. <br />
62
+ # Max field length: 40 <br />
63
+ # Optional
64
+ # @return [String]
65
+ attr_accessor :delivery_city
66
+
67
+ # Region Id <br />
68
+ # Optional
69
+ # @return [Integer]
70
+ attr_accessor :delivery_region_id
71
+
72
+ # Region <br />
73
+ # Optional<br />
74
+ # @return [String]
75
+ attr_accessor :delivery_region
76
+
77
+ # The ISO code of the country.<br />
78
+ # Mandatory if PINAdviceType is paper else optional.
79
+ # @return [String]
80
+ attr_accessor :delivery_country
81
+
82
+ # Phone number for to send SMS of the PIN in case PINAdviceType is SMS.<br
83
+ # />
84
+ # Mandatory if PINAdviceType is SMS else optional.<br />
85
+ # Max field length: 20
86
+ # @return [String]
87
+ attr_accessor :phone_number
88
+
89
+ # Email address for to send email of the PIN in case PINAdviceType is
90
+ # Email.<br />
91
+ # Mandatory if PINAdviceType is email else optional.<br />
92
+ # Max field length: 90. <br/>Note:Based on the international standard that
93
+ # there can be Max Length 64 before the @ (the 'Local part’) =64(minimum of
94
+ # 1) Max Lenth after the (the domain) = 88 (Minimum of 2)
95
+ # @return [String]
96
+ attr_accessor :email_address
97
+
98
+ # The given address will be used for sending PIN reminders in future when
99
+ # requested.<br />
100
+ # Only allowed for paper delivery<br />
101
+ # Optional
102
+ # @return [TrueClass | FalseClass]
103
+ attr_accessor :save_for_pin_reminder
104
+
105
+ # A mapping from model property names to API property names.
106
+ def self.names
107
+ @_hash = {} if @_hash.nil?
108
+ @_hash['delivery_contact_title'] = 'DeliveryContactTitle'
109
+ @_hash['delivery_contact_name'] = 'DeliveryContactName'
110
+ @_hash['delivery_company_name'] = 'DeliveryCompanyName'
111
+ @_hash['delivery_address_line1'] = 'DeliveryAddressLine1'
112
+ @_hash['delivery_address_line2'] = 'DeliveryAddressLine2'
113
+ @_hash['delivery_address_line3'] = 'DeliveryAddressLine3'
114
+ @_hash['delivery_zip_code'] = 'DeliveryZipCode'
115
+ @_hash['delivery_city'] = 'DeliveryCity'
116
+ @_hash['delivery_region_id'] = 'DeliveryRegionId'
117
+ @_hash['delivery_region'] = 'DeliveryRegion'
118
+ @_hash['delivery_country'] = 'DeliveryCountry'
119
+ @_hash['phone_number'] = 'PhoneNumber'
120
+ @_hash['email_address'] = 'EmailAddress'
121
+ @_hash['save_for_pin_reminder'] = 'SaveForPINReminder'
122
+ @_hash
123
+ end
124
+
125
+ # An array for optional fields
126
+ def self.optionals
127
+ %w[
128
+ delivery_contact_title
129
+ delivery_contact_name
130
+ delivery_company_name
131
+ delivery_address_line1
132
+ delivery_address_line2
133
+ delivery_address_line3
134
+ delivery_zip_code
135
+ delivery_city
136
+ delivery_region_id
137
+ delivery_region
138
+ delivery_country
139
+ phone_number
140
+ email_address
141
+ save_for_pin_reminder
142
+ ]
143
+ end
144
+
145
+ # An array for nullable fields
146
+ def self.nullables
147
+ %w[
148
+ delivery_contact_title
149
+ delivery_contact_name
150
+ delivery_company_name
151
+ delivery_address_line1
152
+ delivery_address_line2
153
+ delivery_address_line3
154
+ delivery_zip_code
155
+ delivery_city
156
+ delivery_region_id
157
+ delivery_region
158
+ delivery_country
159
+ phone_number
160
+ email_address
161
+ ]
162
+ end
163
+
164
+ def initialize(delivery_contact_title = SKIP,
165
+ delivery_contact_name = SKIP,
166
+ delivery_company_name = SKIP,
167
+ delivery_address_line1 = SKIP,
168
+ delivery_address_line2 = SKIP,
169
+ delivery_address_line3 = SKIP,
170
+ delivery_zip_code = SKIP,
171
+ delivery_city = SKIP,
172
+ delivery_region_id = SKIP,
173
+ delivery_region = SKIP,
174
+ delivery_country = SKIP,
175
+ phone_number = SKIP,
176
+ email_address = SKIP,
177
+ save_for_pin_reminder = SKIP)
178
+ @delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
179
+ @delivery_contact_name = delivery_contact_name unless delivery_contact_name == SKIP
180
+ @delivery_company_name = delivery_company_name unless delivery_company_name == SKIP
181
+ @delivery_address_line1 = delivery_address_line1 unless delivery_address_line1 == SKIP
182
+ @delivery_address_line2 = delivery_address_line2 unless delivery_address_line2 == SKIP
183
+ @delivery_address_line3 = delivery_address_line3 unless delivery_address_line3 == SKIP
184
+ @delivery_zip_code = delivery_zip_code unless delivery_zip_code == SKIP
185
+ @delivery_city = delivery_city unless delivery_city == SKIP
186
+ @delivery_region_id = delivery_region_id unless delivery_region_id == SKIP
187
+ @delivery_region = delivery_region unless delivery_region == SKIP
188
+ @delivery_country = delivery_country unless delivery_country == SKIP
189
+ @phone_number = phone_number unless phone_number == SKIP
190
+ @email_address = email_address unless email_address == SKIP
191
+ @save_for_pin_reminder = save_for_pin_reminder unless save_for_pin_reminder == SKIP
192
+ end
193
+
194
+ # Creates an instance of the object from a hash.
195
+ def self.from_hash(hash)
196
+ return nil unless hash
197
+
198
+ # Extract variables from the hash.
199
+ delivery_contact_title =
200
+ hash.key?('DeliveryContactTitle') ? hash['DeliveryContactTitle'] : SKIP
201
+ delivery_contact_name =
202
+ hash.key?('DeliveryContactName') ? hash['DeliveryContactName'] : SKIP
203
+ delivery_company_name =
204
+ hash.key?('DeliveryCompanyName') ? hash['DeliveryCompanyName'] : SKIP
205
+ delivery_address_line1 =
206
+ hash.key?('DeliveryAddressLine1') ? hash['DeliveryAddressLine1'] : SKIP
207
+ delivery_address_line2 =
208
+ hash.key?('DeliveryAddressLine2') ? hash['DeliveryAddressLine2'] : SKIP
209
+ delivery_address_line3 =
210
+ hash.key?('DeliveryAddressLine3') ? hash['DeliveryAddressLine3'] : SKIP
211
+ delivery_zip_code =
212
+ hash.key?('DeliveryZipCode') ? hash['DeliveryZipCode'] : SKIP
213
+ delivery_city = hash.key?('DeliveryCity') ? hash['DeliveryCity'] : SKIP
214
+ delivery_region_id =
215
+ hash.key?('DeliveryRegionId') ? hash['DeliveryRegionId'] : SKIP
216
+ delivery_region =
217
+ hash.key?('DeliveryRegion') ? hash['DeliveryRegion'] : SKIP
218
+ delivery_country =
219
+ hash.key?('DeliveryCountry') ? hash['DeliveryCountry'] : SKIP
220
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
221
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
222
+ save_for_pin_reminder =
223
+ hash.key?('SaveForPINReminder') ? hash['SaveForPINReminder'] : SKIP
224
+
225
+ # Create object from extracted values.
226
+ PINDeliveryContact.new(delivery_contact_title,
227
+ delivery_contact_name,
228
+ delivery_company_name,
229
+ delivery_address_line1,
230
+ delivery_address_line2,
231
+ delivery_address_line3,
232
+ delivery_zip_code,
233
+ delivery_city,
234
+ delivery_region_id,
235
+ delivery_region,
236
+ delivery_country,
237
+ phone_number,
238
+ email_address,
239
+ save_for_pin_reminder)
240
+ end
241
+ end
242
+ end