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
+ # DeleteBundleRequest Model.
8
+ class DeleteBundleRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting Company Id of the selected payer.
13
+ # Optional if ColCoCode is passed else Mandatory.
14
+ # Example:
15
+ # 1 for Philippines
16
+ # @return [Integer]
17
+ attr_accessor :col_co_id
18
+
19
+ # Collecting Company Code (Shell Code) of the selected payer.
20
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
21
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
22
+ # Example:
23
+ # 86 for Philippines
24
+ # 5 for UK
25
+ # @return [Integer]
26
+ attr_accessor :col_co_code
27
+
28
+ # Payer Number of the selected payer.
29
+ # Either PayerId or PayerNumber or both must be passed.
30
+ # Example: GB000000123
31
+ # @return [String]
32
+ attr_accessor :payer_number
33
+
34
+ # Payer Id of the selected payer.
35
+ # Either PayerId or PayerNumber or both must be passed.
36
+ # Example: 123456
37
+ # @return [Integer]
38
+ attr_accessor :payer_id
39
+
40
+ # Account ID of the customer.
41
+ # Either AccountId or AccountNumber or both must be passed.
42
+ # Example: 123456
43
+ # @return [Integer]
44
+ attr_accessor :account_id
45
+
46
+ # Account Number of the customer.
47
+ # Either AccountId or AccountNumber or both must be passed.
48
+ # Example: GB000000123
49
+ # @return [String]
50
+ attr_accessor :account_number
51
+
52
+ # Identifier of the card bundle in Gateway.
53
+ # Mandatory
54
+ # @return [String]
55
+ attr_accessor :bundle_id
56
+
57
+ # A mapping from model property names to API property names.
58
+ def self.names
59
+ @_hash = {} if @_hash.nil?
60
+ @_hash['col_co_id'] = 'ColCoId'
61
+ @_hash['col_co_code'] = 'ColCoCode'
62
+ @_hash['payer_number'] = 'PayerNumber'
63
+ @_hash['payer_id'] = 'PayerId'
64
+ @_hash['account_id'] = 'AccountId'
65
+ @_hash['account_number'] = 'AccountNumber'
66
+ @_hash['bundle_id'] = 'BundleId'
67
+ @_hash
68
+ end
69
+
70
+ # An array for optional fields
71
+ def self.optionals
72
+ %w[
73
+ col_co_id
74
+ col_co_code
75
+ payer_number
76
+ payer_id
77
+ account_id
78
+ account_number
79
+ ]
80
+ end
81
+
82
+ # An array for nullable fields
83
+ def self.nullables
84
+ []
85
+ end
86
+
87
+ def initialize(bundle_id = nil,
88
+ col_co_id = SKIP,
89
+ col_co_code = SKIP,
90
+ payer_number = SKIP,
91
+ payer_id = SKIP,
92
+ account_id = SKIP,
93
+ account_number = SKIP)
94
+ @col_co_id = col_co_id unless col_co_id == SKIP
95
+ @col_co_code = col_co_code unless col_co_code == SKIP
96
+ @payer_number = payer_number unless payer_number == SKIP
97
+ @payer_id = payer_id unless payer_id == SKIP
98
+ @account_id = account_id unless account_id == SKIP
99
+ @account_number = account_number unless account_number == SKIP
100
+ @bundle_id = bundle_id
101
+ end
102
+
103
+ # Creates an instance of the object from a hash.
104
+ def self.from_hash(hash)
105
+ return nil unless hash
106
+
107
+ # Extract variables from the hash.
108
+ bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
109
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
110
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
111
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
112
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
113
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
114
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
115
+
116
+ # Create object from extracted values.
117
+ DeleteBundleRequest.new(bundle_id,
118
+ col_co_id,
119
+ col_co_code,
120
+ payer_number,
121
+ payer_id,
122
+ account_id,
123
+ account_number)
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,60 @@
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
+ # DeleteBundleResponse Model.
8
+ class DeleteBundleResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # API Request Id
13
+ # @return [String]
14
+ attr_accessor :request_id
15
+
16
+ # API Response Status
17
+ # @return [String]
18
+ attr_accessor :status
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['request_id'] = 'RequestId'
24
+ @_hash['status'] = 'Status'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ %w[
31
+ request_id
32
+ status
33
+ ]
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(request_id = SKIP,
42
+ status = SKIP)
43
+ @request_id = request_id unless request_id == SKIP
44
+ @status = status unless status == SKIP
45
+ end
46
+
47
+ # Creates an instance of the object from a hash.
48
+ def self.from_hash(hash)
49
+ return nil unless hash
50
+
51
+ # Extract variables from the hash.
52
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
53
+ status = hash.key?('Status') ? hash['Status'] : SKIP
54
+
55
+ # Create object from extracted values.
56
+ DeleteBundleResponse.new(request_id,
57
+ status)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,112 @@
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
+ # List of cards for delivery address update. Maximum number of cards that can
8
+ # be provided in the list is 50
9
+ class DeliveryAddressUpdate < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # Card Id of the card.
14
+ # Optional if PAN is passed, else Mandatory.
15
+ # @return [Integer]
16
+ attr_accessor :card_id
17
+
18
+ # PAN of the card.
19
+ # Optional if CardId is passed, else Mandatory.
20
+ # Note: -
21
+ # PAN & ExpiryDate parameters will be considered only if CardId & PANID are
22
+ # not provided.
23
+ # @return [String]
24
+ attr_accessor :pan
25
+
26
+ # Expiry date of the card.
27
+ # Mandatory if PAN is passed, else optional.
28
+ # Format: yyyyMMdd
29
+ # @return [String]
30
+ attr_accessor :card_expiry_date
31
+
32
+ # Whether to use the default delivery address configured at customer (or
33
+ # card group) level as the delivery address for this card.
34
+ # Mandatory
35
+ # Note: If value is false then ‘UpdateCardRenewalAddress’ is mandatory. If
36
+ # value set to ‘True’ then
37
+ # ‘UpdateCardRenewalAddress’ may be null/empty. It will be ignored if
38
+ # provided.
39
+ # @return [TrueClass | FalseClass]
40
+ attr_accessor :use_customer_default_address
41
+
42
+ # Delivery address of card. This address will be used for card reissue and
43
+ # PIN reminders in future.
44
+ # Note: Mandatory when ‘UseCustomerDefaultAddress’ is set to ‘false’. The
45
+ # field is ignored otherwise.
46
+ # @return [UpdateCardRenewalAddress]
47
+ attr_accessor :update_card_renewal_address
48
+
49
+ # A mapping from model property names to API property names.
50
+ def self.names
51
+ @_hash = {} if @_hash.nil?
52
+ @_hash['card_id'] = 'CardId'
53
+ @_hash['pan'] = 'PAN'
54
+ @_hash['card_expiry_date'] = 'CardExpiryDate'
55
+ @_hash['use_customer_default_address'] = 'UseCustomerDefaultAddress'
56
+ @_hash['update_card_renewal_address'] = 'UpdateCardRenewalAddress'
57
+ @_hash
58
+ end
59
+
60
+ # An array for optional fields
61
+ def self.optionals
62
+ %w[
63
+ card_id
64
+ pan
65
+ card_expiry_date
66
+ update_card_renewal_address
67
+ ]
68
+ end
69
+
70
+ # An array for nullable fields
71
+ def self.nullables
72
+ []
73
+ end
74
+
75
+ def initialize(use_customer_default_address = false,
76
+ card_id = SKIP,
77
+ pan = SKIP,
78
+ card_expiry_date = SKIP,
79
+ update_card_renewal_address = SKIP)
80
+ @card_id = card_id unless card_id == SKIP
81
+ @pan = pan unless pan == SKIP
82
+ @card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
83
+ @use_customer_default_address = use_customer_default_address
84
+ unless update_card_renewal_address == SKIP
85
+ @update_card_renewal_address =
86
+ update_card_renewal_address
87
+ end
88
+ end
89
+
90
+ # Creates an instance of the object from a hash.
91
+ def self.from_hash(hash)
92
+ return nil unless hash
93
+
94
+ # Extract variables from the hash.
95
+ use_customer_default_address = hash['UseCustomerDefaultAddress'] ||= false
96
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
97
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
98
+ card_expiry_date =
99
+ hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
100
+ if hash['UpdateCardRenewalAddress']
101
+ update_card_renewal_address = UpdateCardRenewalAddress.from_hash(hash['UpdateCardRenewalAddress'])
102
+ end
103
+
104
+ # Create object from extracted values.
105
+ DeliveryAddressUpdate.new(use_customer_default_address,
106
+ card_id,
107
+ pan,
108
+ card_expiry_date,
109
+ update_card_renewal_address)
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,102 @@
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
+ # List of Delivery address update entity. The fields of this entity are
8
+ # described below.
9
+ class DeliveryAddressUpdateReferences < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # CardId
14
+ # @return [Integer]
15
+ attr_accessor :card_id
16
+
17
+ # PAN of the card.
18
+ # @return [String]
19
+ attr_accessor :card_pan
20
+
21
+ # AccountId
22
+ # @return [Integer]
23
+ attr_accessor :account_id
24
+
25
+ # Account number
26
+ # @return [String]
27
+ attr_accessor :account_number
28
+
29
+ # Individual delivery address update reference number for the delivery
30
+ # address update request.
31
+ # @return [Integer]
32
+ attr_accessor :reference_id
33
+
34
+ # Individual error information for the delivery address update request.
35
+ # @return [String]
36
+ attr_accessor :error_info
37
+
38
+ # A mapping from model property names to API property names.
39
+ def self.names
40
+ @_hash = {} if @_hash.nil?
41
+ @_hash['card_id'] = 'CardId'
42
+ @_hash['card_pan'] = 'CardPAN'
43
+ @_hash['account_id'] = 'AccountId'
44
+ @_hash['account_number'] = 'AccountNumber'
45
+ @_hash['reference_id'] = 'ReferenceId'
46
+ @_hash['error_info'] = 'ErrorInfo'
47
+ @_hash
48
+ end
49
+
50
+ # An array for optional fields
51
+ def self.optionals
52
+ %w[
53
+ card_id
54
+ card_pan
55
+ account_id
56
+ account_number
57
+ reference_id
58
+ error_info
59
+ ]
60
+ end
61
+
62
+ # An array for nullable fields
63
+ def self.nullables
64
+ []
65
+ end
66
+
67
+ def initialize(card_id = SKIP,
68
+ card_pan = SKIP,
69
+ account_id = SKIP,
70
+ account_number = SKIP,
71
+ reference_id = SKIP,
72
+ error_info = SKIP)
73
+ @card_id = card_id unless card_id == SKIP
74
+ @card_pan = card_pan unless card_pan == SKIP
75
+ @account_id = account_id unless account_id == SKIP
76
+ @account_number = account_number unless account_number == SKIP
77
+ @reference_id = reference_id unless reference_id == SKIP
78
+ @error_info = error_info unless error_info == SKIP
79
+ end
80
+
81
+ # Creates an instance of the object from a hash.
82
+ def self.from_hash(hash)
83
+ return nil unless hash
84
+
85
+ # Extract variables from the hash.
86
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
87
+ card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
88
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
89
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
90
+ reference_id = hash.key?('ReferenceId') ? hash['ReferenceId'] : SKIP
91
+ error_info = hash.key?('ErrorInfo') ? hash['ErrorInfo'] : SKIP
92
+
93
+ # Create object from extracted values.
94
+ DeliveryAddressUpdateReferences.new(card_id,
95
+ card_pan,
96
+ account_id,
97
+ account_number,
98
+ reference_id,
99
+ error_info)
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,129 @@
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
+ # DeliveryAddressUpdateRequest Model.
8
+ class DeliveryAddressUpdateRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting Company Id of the selected payer.
13
+ # Optional if ColCoCode is passed else Mandatory.
14
+ # @return [Integer]
15
+ attr_accessor :col_co_id
16
+
17
+ # Collecting Company Code (Shell Code) of the selected payer.
18
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
19
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
20
+ # @return [Integer]
21
+ attr_accessor :col_co_code
22
+
23
+ # Payer Id (i.e. Customer Id of the Payment Customer) of the selected payer.
24
+ # Optional if PayerNumber is passed else Mandatory
25
+ # @return [Integer]
26
+ attr_accessor :payer_id
27
+
28
+ # Payer Number (Ex: GB000000123) of the selected payer.
29
+ # Optional if PayerId is passed else Mandatory
30
+ # @return [String]
31
+ attr_accessor :payer_number
32
+
33
+ # Account ID of the customer.
34
+ # Optional if AccountNumber is passed, else mandatory.
35
+ # @return [Integer]
36
+ attr_accessor :account_id
37
+
38
+ # Account Number of the customer.
39
+ # Optional if AccountId is passed, else mandatory.
40
+ # This input is a search criterion, if given.
41
+ # @return [String]
42
+ attr_accessor :account_number
43
+
44
+ # Account Number of the customer.
45
+ # Optional if AccountId is passed, else mandatory.
46
+ # This input is a search criterion, if given.
47
+ # @return [Array[DeliveryAddressUpdate]]
48
+ attr_accessor :delivery_address_updates
49
+
50
+ # A mapping from model property names to API property names.
51
+ def self.names
52
+ @_hash = {} if @_hash.nil?
53
+ @_hash['col_co_id'] = 'ColCoId'
54
+ @_hash['col_co_code'] = 'ColCoCode'
55
+ @_hash['payer_id'] = 'PayerId'
56
+ @_hash['payer_number'] = 'PayerNumber'
57
+ @_hash['account_id'] = 'AccountId'
58
+ @_hash['account_number'] = 'AccountNumber'
59
+ @_hash['delivery_address_updates'] = 'DeliveryAddressUpdates'
60
+ @_hash
61
+ end
62
+
63
+ # An array for optional fields
64
+ def self.optionals
65
+ %w[
66
+ col_co_id
67
+ col_co_code
68
+ payer_id
69
+ payer_number
70
+ account_id
71
+ account_number
72
+ delivery_address_updates
73
+ ]
74
+ end
75
+
76
+ # An array for nullable fields
77
+ def self.nullables
78
+ []
79
+ end
80
+
81
+ def initialize(col_co_id = SKIP,
82
+ col_co_code = SKIP,
83
+ payer_id = SKIP,
84
+ payer_number = SKIP,
85
+ account_id = SKIP,
86
+ account_number = SKIP,
87
+ delivery_address_updates = SKIP)
88
+ @col_co_id = col_co_id unless col_co_id == SKIP
89
+ @col_co_code = col_co_code unless col_co_code == SKIP
90
+ @payer_id = payer_id unless payer_id == SKIP
91
+ @payer_number = payer_number unless payer_number == SKIP
92
+ @account_id = account_id unless account_id == SKIP
93
+ @account_number = account_number unless account_number == SKIP
94
+ @delivery_address_updates = delivery_address_updates unless delivery_address_updates == SKIP
95
+ end
96
+
97
+ # Creates an instance of the object from a hash.
98
+ def self.from_hash(hash)
99
+ return nil unless hash
100
+
101
+ # Extract variables from the hash.
102
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
103
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
104
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
105
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
106
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
107
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
108
+ # Parameter is an array, so we need to iterate through it
109
+ delivery_address_updates = nil
110
+ unless hash['DeliveryAddressUpdates'].nil?
111
+ delivery_address_updates = []
112
+ hash['DeliveryAddressUpdates'].each do |structure|
113
+ delivery_address_updates << (DeliveryAddressUpdate.from_hash(structure) if structure)
114
+ end
115
+ end
116
+
117
+ delivery_address_updates = SKIP unless hash.key?('DeliveryAddressUpdates')
118
+
119
+ # Create object from extracted values.
120
+ DeliveryAddressUpdateRequest.new(col_co_id,
121
+ col_co_code,
122
+ payer_id,
123
+ payer_number,
124
+ account_id,
125
+ account_number,
126
+ delivery_address_updates)
127
+ end
128
+ end
129
+ end
@@ -0,0 +1,94 @@
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
+ # DeliveryAddressUpdateResponse Model.
8
+ class DeliveryAddressUpdateResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Request ID to which was passed on the API request.
13
+ # @return [String]
14
+ attr_accessor :request_id
15
+
16
+ # Service reference number for tracking.
17
+ # @return [Integer]
18
+ attr_accessor :service_reference
19
+
20
+ # Service reference number for tracking.
21
+ # @return [Array[DeliveryAddressUpdateReferences]]
22
+ attr_accessor :delivery_address_update_references
23
+
24
+ # Service reference number for tracking.
25
+ # @return [ErrorStatus]
26
+ attr_accessor :error
27
+
28
+ # A mapping from model property names to API property names.
29
+ def self.names
30
+ @_hash = {} if @_hash.nil?
31
+ @_hash['request_id'] = 'RequestId'
32
+ @_hash['service_reference'] = 'ServiceReference'
33
+ @_hash['delivery_address_update_references'] =
34
+ 'DeliveryAddressUpdateReferences'
35
+ @_hash['error'] = 'Error'
36
+ @_hash
37
+ end
38
+
39
+ # An array for optional fields
40
+ def self.optionals
41
+ %w[
42
+ request_id
43
+ service_reference
44
+ delivery_address_update_references
45
+ error
46
+ ]
47
+ end
48
+
49
+ # An array for nullable fields
50
+ def self.nullables
51
+ []
52
+ end
53
+
54
+ def initialize(request_id = SKIP,
55
+ service_reference = SKIP,
56
+ delivery_address_update_references = SKIP,
57
+ error = SKIP)
58
+ @request_id = request_id unless request_id == SKIP
59
+ @service_reference = service_reference unless service_reference == SKIP
60
+ unless delivery_address_update_references == SKIP
61
+ @delivery_address_update_references =
62
+ delivery_address_update_references
63
+ end
64
+ @error = error unless error == SKIP
65
+ end
66
+
67
+ # Creates an instance of the object from a hash.
68
+ def self.from_hash(hash)
69
+ return nil unless hash
70
+
71
+ # Extract variables from the hash.
72
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
73
+ service_reference =
74
+ hash.key?('ServiceReference') ? hash['ServiceReference'] : SKIP
75
+ # Parameter is an array, so we need to iterate through it
76
+ delivery_address_update_references = nil
77
+ unless hash['DeliveryAddressUpdateReferences'].nil?
78
+ delivery_address_update_references = []
79
+ hash['DeliveryAddressUpdateReferences'].each do |structure|
80
+ delivery_address_update_references << (DeliveryAddressUpdateReferences.from_hash(structure) if structure)
81
+ end
82
+ end
83
+
84
+ delivery_address_update_references = SKIP unless hash.key?('DeliveryAddressUpdateReferences')
85
+ error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
86
+
87
+ # Create object from extracted values.
88
+ DeliveryAddressUpdateResponse.new(request_id,
89
+ service_reference,
90
+ delivery_address_update_references,
91
+ error)
92
+ end
93
+ end
94
+ end