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,249 @@
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
+ # ScheduleCardBlockCardsItems Model.
8
+ class ScheduleCardBlockCardsItems < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting Company Code (Shell Code) of the selected payer.
13
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
14
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
15
+ # Example:
16
+ # 86-Philippines
17
+ # 5-UK
18
+ # @return [Integer]
19
+ attr_accessor :col_co_code
20
+
21
+ # Collecting Company Id of the selected payer.
22
+ # Optional if ColCoCode is passed else Mandatory.
23
+ # Example:
24
+ # 1-Philippines
25
+ # 5-UK
26
+ # @return [Integer]
27
+ attr_accessor :col_co_id
28
+
29
+ # Account Id of the customer.
30
+ # Optional if AccountNumber is passed, else Mandatory.
31
+ # @return [Integer]
32
+ attr_accessor :account_id
33
+
34
+ # Account Number of the customer.
35
+ # Optional if AccountId is passed, else Mandatory.
36
+ # @return [String]
37
+ attr_accessor :account_number
38
+
39
+ # Payer id of the customer.
40
+ # Optional if PayerNumber is passed, else Mandatory.
41
+ # Example: 123456
42
+ # @return [Integer]
43
+ attr_accessor :payer_id
44
+
45
+ # PayerNumber of the customer.
46
+ # Optional if PayerId is passed, else Mandatory.
47
+ # @return [String]
48
+ attr_accessor :payer_number
49
+
50
+ # Unique Id of the card.
51
+ # Optional if PAN is passed, else Mandatory.
52
+ # @return [Integer]
53
+ attr_accessor :card_id
54
+
55
+ # PAN of the card.
56
+ # Optional if CardId is passed, else Mandatory.
57
+ # @return [String]
58
+ attr_accessor :pan
59
+
60
+ # Expiry date of the card.
61
+ # Optional if CardId is passed, else Mandatory.
62
+ # Format: yyyyMMdd
63
+ # Example: 20170930
64
+ # @return [String]
65
+ attr_accessor :card_expiry_date
66
+
67
+ # Action
68
+ # Mandatory
69
+ # Possible values are:
70
+ # • AddOrUpdate – adds a new request or updates any existing requests, with
71
+ # overlapping dates, for the card
72
+ # • AddAndOverwriteAll - all the existing requests of the given card will be
73
+ # removed and a new request with the specified FromDate and ToDate will be
74
+ # added.
75
+ # • Delete – deletes any existing request with the same start date and end
76
+ # date for the card
77
+ # • DeleteAll – deletes all saved future dated requests (all block and
78
+ # unblock requests) of the card.
79
+ # @return [String]
80
+ attr_accessor :action
81
+
82
+ # Effective start date of Block / Unblock
83
+ # Allowed Formats: –
84
+ # • yyyyMMdd
85
+ # • yyyyMMdd HH:mm
86
+ # Eg: 20230512 14:30, 20230512
87
+ # Optional
88
+ # Default value:
89
+ # • If the card status is “Active” then Current date & Time
90
+ # • If the card status is “TemporaryBlock (Customer)” then null.
91
+ # Note:
92
+ # • Time is considered only when “IsTimeSupported” is true else it will be
93
+ # treated as a date.
94
+ # • Time will be passed in UTC time-zone.
95
+ # • If the Card Status is “Temporary Block (Customer)” and FromDate is
96
+ # provided – The fromdate & time is considered as starting period of unblock
97
+ # request.
98
+ # @return [String]
99
+ attr_accessor :from_date
100
+
101
+ # Effective end date of Block / Unblock
102
+ # Allowed Formats: –
103
+ # • yyyyMMdd
104
+ # • yyyyMMdd HH:mm
105
+ # Eg: 20230512 14:30, 20230512
106
+ # Optional – When the Card status is Active else mandatory.
107
+ # When not provided, the card will remain blocked until manually unblocked.
108
+ # Note:
109
+ # • Time is considered only when the “IsTimeSupported” flag is set as true,
110
+ # else it will be considered as only date.
111
+ # • Date & Time passed in the request will be considered in UTC time-zone.
112
+ # • If the card is currently in ‘Temporary Block (Customer)’ status, then
113
+ # this date is treated as the unblock date and is mandatory.
114
+ # • If the Card Status is “Temporary Block (Customer)” and FromDate & ToDate
115
+ # is provided - The request will be considered as a scheduled specific
116
+ # period unblock request.
117
+ # @return [String]
118
+ attr_accessor :to_date
119
+
120
+ # The caller to be notified with the status of the scheduled card block /
121
+ # unblock request.
122
+ # Mandatory, if NotifyCaller is true.
123
+ # Maximum field length: 20
124
+ # @return [String]
125
+ attr_accessor :caller
126
+
127
+ # True/False.
128
+ # Optional.
129
+ # Default: False
130
+ # If true, the caller would be notified back with the status as success or
131
+ # failure after the scheduled card block / unblock request is processed.
132
+ # @return [TrueClass | FalseClass]
133
+ attr_accessor :notify_caller
134
+
135
+ # A mapping from model property names to API property names.
136
+ def self.names
137
+ @_hash = {} if @_hash.nil?
138
+ @_hash['col_co_code'] = 'ColCoCode'
139
+ @_hash['col_co_id'] = 'ColCoId'
140
+ @_hash['account_id'] = 'AccountId'
141
+ @_hash['account_number'] = 'AccountNumber'
142
+ @_hash['payer_id'] = 'PayerId'
143
+ @_hash['payer_number'] = 'PayerNumber'
144
+ @_hash['card_id'] = 'CardId'
145
+ @_hash['pan'] = 'PAN'
146
+ @_hash['card_expiry_date'] = 'CardExpiryDate'
147
+ @_hash['action'] = 'Action'
148
+ @_hash['from_date'] = 'FromDate'
149
+ @_hash['to_date'] = 'ToDate'
150
+ @_hash['caller'] = 'Caller'
151
+ @_hash['notify_caller'] = 'NotifyCaller'
152
+ @_hash
153
+ end
154
+
155
+ # An array for optional fields
156
+ def self.optionals
157
+ %w[
158
+ col_co_code
159
+ col_co_id
160
+ account_id
161
+ account_number
162
+ payer_id
163
+ payer_number
164
+ card_id
165
+ pan
166
+ card_expiry_date
167
+ from_date
168
+ to_date
169
+ caller
170
+ notify_caller
171
+ ]
172
+ end
173
+
174
+ # An array for nullable fields
175
+ def self.nullables
176
+ %w[
177
+ caller
178
+ ]
179
+ end
180
+
181
+ def initialize(action = nil,
182
+ col_co_code = SKIP,
183
+ col_co_id = SKIP,
184
+ account_id = SKIP,
185
+ account_number = SKIP,
186
+ payer_id = SKIP,
187
+ payer_number = SKIP,
188
+ card_id = SKIP,
189
+ pan = SKIP,
190
+ card_expiry_date = SKIP,
191
+ from_date = SKIP,
192
+ to_date = SKIP,
193
+ caller = SKIP,
194
+ notify_caller = SKIP)
195
+ @col_co_code = col_co_code unless col_co_code == SKIP
196
+ @col_co_id = col_co_id unless col_co_id == SKIP
197
+ @account_id = account_id unless account_id == SKIP
198
+ @account_number = account_number unless account_number == SKIP
199
+ @payer_id = payer_id unless payer_id == SKIP
200
+ @payer_number = payer_number unless payer_number == SKIP
201
+ @card_id = card_id unless card_id == SKIP
202
+ @pan = pan unless pan == SKIP
203
+ @card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
204
+ @action = action
205
+ @from_date = from_date unless from_date == SKIP
206
+ @to_date = to_date unless to_date == SKIP
207
+ @caller = caller unless caller == SKIP
208
+ @notify_caller = notify_caller unless notify_caller == SKIP
209
+ end
210
+
211
+ # Creates an instance of the object from a hash.
212
+ def self.from_hash(hash)
213
+ return nil unless hash
214
+
215
+ # Extract variables from the hash.
216
+ action = hash.key?('Action') ? hash['Action'] : nil
217
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
218
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
219
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
220
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
221
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
222
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
223
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
224
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
225
+ card_expiry_date =
226
+ hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
227
+ from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
228
+ to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
229
+ caller = hash.key?('Caller') ? hash['Caller'] : SKIP
230
+ notify_caller = hash.key?('NotifyCaller') ? hash['NotifyCaller'] : SKIP
231
+
232
+ # Create object from extracted values.
233
+ ScheduleCardBlockCardsItems.new(action,
234
+ col_co_code,
235
+ col_co_id,
236
+ account_id,
237
+ account_number,
238
+ payer_id,
239
+ payer_number,
240
+ card_id,
241
+ pan,
242
+ card_expiry_date,
243
+ from_date,
244
+ to_date,
245
+ caller,
246
+ notify_caller)
247
+ end
248
+ end
249
+ 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
+ # ScheduleCardBlockRequest Model.
8
+ class ScheduleCardBlockRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Default: False
13
+ # True – It supports both date & time.
14
+ # False – It supports only date. Time will be ignored if it is provided in
15
+ # the request.
16
+ # @return [TrueClass | FalseClass]
17
+ attr_accessor :is_time_supported
18
+
19
+ # List of ScheduleCardBlockCard entity. Each card in the list will be
20
+ # scheduled for Block or Unblock. The details of the entity are given below.
21
+ # @return [Array[ScheduleCardBlockCardsItems]]
22
+ attr_accessor :schedule_card_block_cards
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['is_time_supported'] = 'IsTimeSupported'
28
+ @_hash['schedule_card_block_cards'] = 'ScheduleCardBlockCards'
29
+ @_hash
30
+ end
31
+
32
+ # An array for optional fields
33
+ def self.optionals
34
+ %w[
35
+ is_time_supported
36
+ schedule_card_block_cards
37
+ ]
38
+ end
39
+
40
+ # An array for nullable fields
41
+ def self.nullables
42
+ []
43
+ end
44
+
45
+ def initialize(is_time_supported = SKIP,
46
+ schedule_card_block_cards = SKIP)
47
+ @is_time_supported = is_time_supported unless is_time_supported == SKIP
48
+ unless schedule_card_block_cards == SKIP
49
+ @schedule_card_block_cards =
50
+ schedule_card_block_cards
51
+ end
52
+ end
53
+
54
+ # Creates an instance of the object from a hash.
55
+ def self.from_hash(hash)
56
+ return nil unless hash
57
+
58
+ # Extract variables from the hash.
59
+ is_time_supported =
60
+ hash.key?('IsTimeSupported') ? hash['IsTimeSupported'] : SKIP
61
+ # Parameter is an array, so we need to iterate through it
62
+ schedule_card_block_cards = nil
63
+ unless hash['ScheduleCardBlockCards'].nil?
64
+ schedule_card_block_cards = []
65
+ hash['ScheduleCardBlockCards'].each do |structure|
66
+ schedule_card_block_cards << (ScheduleCardBlockCardsItems.from_hash(structure) if structure)
67
+ end
68
+ end
69
+
70
+ schedule_card_block_cards = SKIP unless hash.key?('ScheduleCardBlockCards')
71
+
72
+ # Create object from extracted values.
73
+ ScheduleCardBlockRequest.new(is_time_supported,
74
+ schedule_card_block_cards)
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,91 @@
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
+ # ScheduleCardBlockResponse Model.
8
+ class ScheduleCardBlockResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Reference number for tracking the execution of the request.
13
+ # Note: Reference will be empty for status 9006 and 9012 i.e., request for
14
+ # all the cards failed.
15
+ # @return [Integer]
16
+ attr_accessor :main_reference
17
+
18
+ # API Request ID
19
+ # @return [String]
20
+ attr_accessor :request_id
21
+
22
+ # Overall Status of the API call
23
+ # @return [String]
24
+ attr_accessor :status
25
+
26
+ # List of SubmittedScheduleCardBlockCard entity.
27
+ # @return [Array[ScheduleCardBlockResponseDataItems]]
28
+ attr_accessor :data
29
+
30
+ # A mapping from model property names to API property names.
31
+ def self.names
32
+ @_hash = {} if @_hash.nil?
33
+ @_hash['main_reference'] = 'MainReference'
34
+ @_hash['request_id'] = 'RequestId'
35
+ @_hash['status'] = 'Status'
36
+ @_hash['data'] = 'Data'
37
+ @_hash
38
+ end
39
+
40
+ # An array for optional fields
41
+ def self.optionals
42
+ %w[
43
+ main_reference
44
+ request_id
45
+ status
46
+ data
47
+ ]
48
+ end
49
+
50
+ # An array for nullable fields
51
+ def self.nullables
52
+ []
53
+ end
54
+
55
+ def initialize(main_reference = SKIP,
56
+ request_id = SKIP,
57
+ status = SKIP,
58
+ data = SKIP)
59
+ @main_reference = main_reference unless main_reference == SKIP
60
+ @request_id = request_id unless request_id == SKIP
61
+ @status = status unless status == SKIP
62
+ @data = data unless data == SKIP
63
+ end
64
+
65
+ # Creates an instance of the object from a hash.
66
+ def self.from_hash(hash)
67
+ return nil unless hash
68
+
69
+ # Extract variables from the hash.
70
+ main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
71
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
72
+ status = hash.key?('Status') ? hash['Status'] : SKIP
73
+ # Parameter is an array, so we need to iterate through it
74
+ data = nil
75
+ unless hash['Data'].nil?
76
+ data = []
77
+ hash['Data'].each do |structure|
78
+ data << (ScheduleCardBlockResponseDataItems.from_hash(structure) if structure)
79
+ end
80
+ end
81
+
82
+ data = SKIP unless hash.key?('Data')
83
+
84
+ # Create object from extracted values.
85
+ ScheduleCardBlockResponse.new(main_reference,
86
+ request_id,
87
+ status,
88
+ data)
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,89 @@
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
+ # ScheduleCardBlockResponseDataItems Model.
8
+ class ScheduleCardBlockResponseDataItems < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Unique Id of the card.
13
+ # @return [Integer]
14
+ attr_accessor :card_id
15
+
16
+ # Effective start date & time of Block / Unblock as updated in the
17
+ # intermediate queue table.
18
+ # Format: yyyyMMdd HH:mm
19
+ # Eg: 20230512 12:30
20
+ # @return [String]
21
+ attr_accessor :from_date
22
+
23
+ # Effective end date & time of Block / Unblock as updated in the
24
+ # intermediate queue table.
25
+ # Format: yyyyMMdd HH:mm
26
+ # Eg: 20230512 14:30
27
+ # @return [String]
28
+ attr_accessor :to_date
29
+
30
+ # Effective end date & time of Block / Unblock as updated in the
31
+ # intermediate queue table.
32
+ # Format: yyyyMMdd HH:mm
33
+ # Eg: 20230512 14:30
34
+ # @return [Integer]
35
+ attr_accessor :reference_id
36
+
37
+ # A mapping from model property names to API property names.
38
+ def self.names
39
+ @_hash = {} if @_hash.nil?
40
+ @_hash['card_id'] = 'CardId'
41
+ @_hash['from_date'] = 'FromDate'
42
+ @_hash['to_date'] = 'ToDate'
43
+ @_hash['reference_id'] = 'ReferenceId'
44
+ @_hash
45
+ end
46
+
47
+ # An array for optional fields
48
+ def self.optionals
49
+ %w[
50
+ card_id
51
+ from_date
52
+ to_date
53
+ reference_id
54
+ ]
55
+ end
56
+
57
+ # An array for nullable fields
58
+ def self.nullables
59
+ []
60
+ end
61
+
62
+ def initialize(card_id = SKIP,
63
+ from_date = SKIP,
64
+ to_date = SKIP,
65
+ reference_id = SKIP)
66
+ @card_id = card_id unless card_id == SKIP
67
+ @from_date = from_date unless from_date == SKIP
68
+ @to_date = to_date unless to_date == SKIP
69
+ @reference_id = reference_id unless reference_id == SKIP
70
+ end
71
+
72
+ # Creates an instance of the object from a hash.
73
+ def self.from_hash(hash)
74
+ return nil unless hash
75
+
76
+ # Extract variables from the hash.
77
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
78
+ from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
79
+ to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
80
+ reference_id = hash.key?('ReferenceId') ? hash['ReferenceId'] : SKIP
81
+
82
+ # Create object from extracted values.
83
+ ScheduleCardBlockResponseDataItems.new(card_id,
84
+ from_date,
85
+ to_date,
86
+ reference_id)
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,50 @@
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
+ # SearchAccountLimitRequest Model.
8
+ class SearchAccountLimitRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [SearchAccountLimitRequestFilters]
14
+ attr_accessor :filters
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['filters'] = 'Filters'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ filters
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(filters = SKIP)
36
+ @filters = filters unless filters == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ filters = SearchAccountLimitRequestFilters.from_hash(hash['Filters']) if hash['Filters']
45
+
46
+ # Create object from extracted values.
47
+ SearchAccountLimitRequest.new(filters)
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,118 @@
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
+ # SearchAccountLimitRequestFilters Model.
8
+ class SearchAccountLimitRequestFilters < 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
+ # 5 for UK
17
+ # @return [Integer]
18
+ attr_accessor :col_co_id
19
+
20
+ # Collecting Company Code (Shell Code) of the selected payer.
21
+ # Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
22
+ # Ukraine etc. It is optional for other countries if ColCoID is provided.
23
+ # Example:
24
+ # 86 for Philippines
25
+ # 5 for UK
26
+ # @return [Integer]
27
+ attr_accessor :col_co_code
28
+
29
+ # Payer Id of the selected payer.
30
+ # Optional if PayerNumber is passed else Mandatory
31
+ # Example: 123456
32
+ # @return [Integer]
33
+ attr_accessor :payer_id
34
+
35
+ # Payer Number of the selected payer.
36
+ # Optional if PayerId is passed else Mandatory
37
+ # Example: GB000000123
38
+ # @return [String]
39
+ attr_accessor :payer_number
40
+
41
+ # Optional if AccountNumber is passed else Mandatory
42
+ # Example: 123456
43
+ # @return [Integer]
44
+ attr_accessor :account_id
45
+
46
+ # Account Number of the customer.
47
+ # Optional if AccountId is passed else Mandatory
48
+ # Example: GB000000123
49
+ # @return [String]
50
+ attr_accessor :account_number
51
+
52
+ # A mapping from model property names to API property names.
53
+ def self.names
54
+ @_hash = {} if @_hash.nil?
55
+ @_hash['col_co_id'] = 'ColCoId'
56
+ @_hash['col_co_code'] = 'ColCoCode'
57
+ @_hash['payer_id'] = 'PayerId'
58
+ @_hash['payer_number'] = 'PayerNumber'
59
+ @_hash['account_id'] = 'AccountId'
60
+ @_hash['account_number'] = 'AccountNumber'
61
+ @_hash
62
+ end
63
+
64
+ # An array for optional fields
65
+ def self.optionals
66
+ %w[
67
+ col_co_id
68
+ col_co_code
69
+ payer_id
70
+ payer_number
71
+ account_id
72
+ account_number
73
+ ]
74
+ end
75
+
76
+ # An array for nullable fields
77
+ def self.nullables
78
+ %w[
79
+ col_co_id
80
+ ]
81
+ end
82
+
83
+ def initialize(col_co_id = SKIP,
84
+ col_co_code = SKIP,
85
+ payer_id = SKIP,
86
+ payer_number = SKIP,
87
+ account_id = SKIP,
88
+ account_number = SKIP)
89
+ @col_co_id = col_co_id unless col_co_id == SKIP
90
+ @col_co_code = col_co_code unless col_co_code == SKIP
91
+ @payer_id = payer_id unless payer_id == SKIP
92
+ @payer_number = payer_number unless payer_number == SKIP
93
+ @account_id = account_id unless account_id == SKIP
94
+ @account_number = account_number unless account_number == 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
+
109
+ # Create object from extracted values.
110
+ SearchAccountLimitRequestFilters.new(col_co_id,
111
+ col_co_code,
112
+ payer_id,
113
+ payer_number,
114
+ account_id,
115
+ account_number)
116
+ end
117
+ end
118
+ end