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,208 @@
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
+ # This class holds Order Card Enquiry list based on which the Order Card
8
+ # Enquiry need to be filtered.
9
+ class OrderCardEnquiryReq < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # Account ID of the customer.<br/> Optional if AccountNumber is passed, else
14
+ # mandatory. <br/> This input is a search criterion, if given.
15
+ # @return [Integer]
16
+ attr_accessor :account_id
17
+
18
+ # Account Number of the customer.<br/> Optional if AccountId is passed, else
19
+ # mandatory.<br/> This input is a search criterion, if given.
20
+ # @return [String]
21
+ attr_accessor :account_number
22
+
23
+ # Collecting Company Code (Shell Code) of the selected payer. <br />
24
+ # Optional – when ‘ReferenceNumber’ is provided.<br />
25
+ # @return [Integer]
26
+ attr_accessor :col_co_code
27
+
28
+ # Collecting Company Id (in ) of the selected payer. <br />
29
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘ColCoId’ or
30
+ # ‘ColCoCode’ is mandatory.<br />
31
+ # @return [Integer]
32
+ attr_accessor :col_co_id
33
+
34
+ # ISO 3166 Alpha-2 Country Code for the customer and card owning country.
35
+ # @return [String]
36
+ attr_accessor :col_co_country_code
37
+
38
+ # Payer Id (i.e. Customer Id of the Payment Customer) of the selected
39
+ # payer.<br />
40
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘PayerId’ or
41
+ # ‘PayerNumber’ is mandatory.
42
+ # @return [Integer]
43
+ attr_accessor :payer_id
44
+
45
+ # Payer Number of the selected payer.<br />
46
+ # Optional – when ‘ReferenceNumber’ is provided. Else, either ‘PayerId’ or
47
+ # ‘PayerNumber’ is mandatory.
48
+ # @return [String]
49
+ attr_accessor :payer_number
50
+
51
+ # Reference number of the Card Order/ Bulk Card Order/ Order Card
52
+ # Request.<br />
53
+ # Mandatory when ColCo and Payer fields are not provided. Else, optional.
54
+ # @return [Integer]
55
+ attr_accessor :reference_number
56
+
57
+ # Type of the reference number provided.<br />
58
+ # Mandatory if ReferenceNumber is provided. Else optional.<br />
59
+ # Allowed Values:<br />
60
+ # 1=Main Reference(Main Order Reference Number returned in the output of
61
+ # Card/OrderCard service. <br />
62
+ # 2=Order Card Reference (Reference number for each individual card in the
63
+ # order submitted via Card/OrderCard service. <br />
64
+ # 3=Bulk Order Card Reference (Reference number returned in the response of
65
+ # bulkcardinterface /UploadOrderCardTemplate. )
66
+ # @return [OrderCardEnquiryReqReferenceTypeEnum]
67
+ attr_accessor :reference_type
68
+
69
+ # Card Orders from Date/Time.<br />
70
+ # Optional.<br />
71
+ # Value should be with in last 7 days<br />
72
+ # This field is ignored if ReferenceNumber is provided <br />
73
+ # This field is optional when not provided and ReferenceNumber is null or
74
+ # empty then the value should be set to D-7(Where D is current date)<br />
75
+ # Format: yyyyMMdd
76
+ # @return [String]
77
+ attr_accessor :from_date
78
+
79
+ # Card Order to Date/Time<br />
80
+ # Optional<br />
81
+ # Value should be with in last 7 days<br />
82
+ # This field is ignored if ReferenceNumber is provided <br />
83
+ # This field is optional when not provided and ReferenceNumber is null or
84
+ # empty then the value should be set to current date<br />
85
+ # Format: yyyyMMdd
86
+ # @return [String]
87
+ attr_accessor :to_date
88
+
89
+ # Client provided Unique Id of the original Order Card request, the status
90
+ # of which is enquired by this API
91
+ # @return [String]
92
+ attr_accessor :order_request_id
93
+
94
+ # A mapping from model property names to API property names.
95
+ def self.names
96
+ @_hash = {} if @_hash.nil?
97
+ @_hash['account_id'] = 'AccountId'
98
+ @_hash['account_number'] = 'AccountNumber'
99
+ @_hash['col_co_code'] = 'ColCoCode'
100
+ @_hash['col_co_id'] = 'ColCoId'
101
+ @_hash['col_co_country_code'] = 'ColCoCountryCode'
102
+ @_hash['payer_id'] = 'PayerId'
103
+ @_hash['payer_number'] = 'PayerNumber'
104
+ @_hash['reference_number'] = 'ReferenceNumber'
105
+ @_hash['reference_type'] = 'ReferenceType'
106
+ @_hash['from_date'] = 'FromDate'
107
+ @_hash['to_date'] = 'ToDate'
108
+ @_hash['order_request_id'] = 'OrderRequestId'
109
+ @_hash
110
+ end
111
+
112
+ # An array for optional fields
113
+ def self.optionals
114
+ %w[
115
+ account_id
116
+ account_number
117
+ col_co_code
118
+ col_co_id
119
+ col_co_country_code
120
+ payer_id
121
+ payer_number
122
+ reference_number
123
+ reference_type
124
+ from_date
125
+ to_date
126
+ order_request_id
127
+ ]
128
+ end
129
+
130
+ # An array for nullable fields
131
+ def self.nullables
132
+ %w[
133
+ account_id
134
+ account_number
135
+ col_co_code
136
+ col_co_id
137
+ col_co_country_code
138
+ payer_id
139
+ payer_number
140
+ from_date
141
+ to_date
142
+ order_request_id
143
+ ]
144
+ end
145
+
146
+ def initialize(account_id = SKIP,
147
+ account_number = SKIP,
148
+ col_co_code = SKIP,
149
+ col_co_id = SKIP,
150
+ col_co_country_code = SKIP,
151
+ payer_id = SKIP,
152
+ payer_number = SKIP,
153
+ reference_number = SKIP,
154
+ reference_type = SKIP,
155
+ from_date = SKIP,
156
+ to_date = SKIP,
157
+ order_request_id = SKIP)
158
+ @account_id = account_id unless account_id == SKIP
159
+ @account_number = account_number unless account_number == SKIP
160
+ @col_co_code = col_co_code unless col_co_code == SKIP
161
+ @col_co_id = col_co_id unless col_co_id == SKIP
162
+ @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP
163
+ @payer_id = payer_id unless payer_id == SKIP
164
+ @payer_number = payer_number unless payer_number == SKIP
165
+ @reference_number = reference_number unless reference_number == SKIP
166
+ @reference_type = reference_type unless reference_type == SKIP
167
+ @from_date = from_date unless from_date == SKIP
168
+ @to_date = to_date unless to_date == SKIP
169
+ @order_request_id = order_request_id unless order_request_id == SKIP
170
+ end
171
+
172
+ # Creates an instance of the object from a hash.
173
+ def self.from_hash(hash)
174
+ return nil unless hash
175
+
176
+ # Extract variables from the hash.
177
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
178
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
179
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
180
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
181
+ col_co_country_code =
182
+ hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP
183
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
184
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
185
+ reference_number =
186
+ hash.key?('ReferenceNumber') ? hash['ReferenceNumber'] : SKIP
187
+ reference_type = hash.key?('ReferenceType') ? hash['ReferenceType'] : SKIP
188
+ from_date = hash.key?('FromDate') ? hash['FromDate'] : SKIP
189
+ to_date = hash.key?('ToDate') ? hash['ToDate'] : SKIP
190
+ order_request_id =
191
+ hash.key?('OrderRequestId') ? hash['OrderRequestId'] : SKIP
192
+
193
+ # Create object from extracted values.
194
+ OrderCardEnquiryReq.new(account_id,
195
+ account_number,
196
+ col_co_code,
197
+ col_co_id,
198
+ col_co_country_code,
199
+ payer_id,
200
+ payer_number,
201
+ reference_number,
202
+ reference_type,
203
+ from_date,
204
+ to_date,
205
+ order_request_id)
206
+ end
207
+ end
208
+ end
@@ -0,0 +1,32 @@
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
+ # Type of the reference number provided.<br /> Mandatory if ReferenceNumber is
8
+ # provided. Else optional.<br /> Allowed Values:<br /> 1=Main Reference(Main
9
+ # Order Reference Number returned in the output of Card/OrderCard service. <br
10
+ # /> 2=Order Card Reference (Reference number for each individual card in the
11
+ # order submitted via Card/OrderCard service. <br /> 3=Bulk Order Card
12
+ # Reference (Reference number returned in the response of bulkcardinterface
13
+ # /UploadOrderCardTemplate. )
14
+ class OrderCardEnquiryReqReferenceTypeEnum
15
+ ORDER_CARD_ENQUIRY_REQ_REFERENCE_TYPE_ENUM = [
16
+ # TODO: Write general description for ENUM_1
17
+ ENUM_1 = 1,
18
+
19
+ # TODO: Write general description for ENUM_2
20
+ ENUM_2 = 2,
21
+
22
+ # TODO: Write general description for ENUM_3
23
+ ENUM_3 = 3
24
+ ].freeze
25
+
26
+ def self.validate(value)
27
+ return false if value.nil?
28
+
29
+ ORDER_CARD_ENQUIRY_REQ_REFERENCE_TYPE_ENUM.include?(value)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,51 @@
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
+ # OrderCardEnquiryRequest Model.
8
+ class OrderCardEnquiryRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # This class holds Order Card Enquiry list based on which the Order Card
13
+ # Enquiry need to be filtered.
14
+ # @return [OrderCardEnquiryReq]
15
+ attr_accessor :filters
16
+
17
+ # A mapping from model property names to API property names.
18
+ def self.names
19
+ @_hash = {} if @_hash.nil?
20
+ @_hash['filters'] = 'Filters'
21
+ @_hash
22
+ end
23
+
24
+ # An array for optional fields
25
+ def self.optionals
26
+ %w[
27
+ filters
28
+ ]
29
+ end
30
+
31
+ # An array for nullable fields
32
+ def self.nullables
33
+ []
34
+ end
35
+
36
+ def initialize(filters = SKIP)
37
+ @filters = filters unless filters == SKIP
38
+ end
39
+
40
+ # Creates an instance of the object from a hash.
41
+ def self.from_hash(hash)
42
+ return nil unless hash
43
+
44
+ # Extract variables from the hash.
45
+ filters = OrderCardEnquiryReq.from_hash(hash['Filters']) if hash['Filters']
46
+
47
+ # Create object from extracted values.
48
+ OrderCardEnquiryRequest.new(filters)
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,79 @@
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
+ # OrderCardEnquiryResponse Model.
8
+ class OrderCardEnquiryResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :request_id
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :status
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [Array[OrderCardEnquiry]]
22
+ attr_accessor :data
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['request_id'] = 'RequestId'
28
+ @_hash['status'] = 'Status'
29
+ @_hash['data'] = 'Data'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ %w[
36
+ request_id
37
+ status
38
+ data
39
+ ]
40
+ end
41
+
42
+ # An array for nullable fields
43
+ def self.nullables
44
+ []
45
+ end
46
+
47
+ def initialize(request_id = SKIP,
48
+ status = SKIP,
49
+ data = SKIP)
50
+ @request_id = request_id unless request_id == SKIP
51
+ @status = status unless status == SKIP
52
+ @data = data unless data == SKIP
53
+ end
54
+
55
+ # Creates an instance of the object from a hash.
56
+ def self.from_hash(hash)
57
+ return nil unless hash
58
+
59
+ # Extract variables from the hash.
60
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
61
+ status = hash.key?('Status') ? hash['Status'] : SKIP
62
+ # Parameter is an array, so we need to iterate through it
63
+ data = nil
64
+ unless hash['Data'].nil?
65
+ data = []
66
+ hash['Data'].each do |structure|
67
+ data << (OrderCardEnquiry.from_hash(structure) if structure)
68
+ end
69
+ end
70
+
71
+ data = SKIP unless hash.key?('Data')
72
+
73
+ # Create object from extracted values.
74
+ OrderCardEnquiryResponse.new(request_id,
75
+ status,
76
+ data)
77
+ end
78
+ end
79
+ 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
+ # This entity models the data that is sent in the http request body for this
8
+ # operation.
9
+ class OrderCardRequest < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # List of CardOrder entity. The fields in this entity are described below.
14
+ # @return [Array[CardDetail]]
15
+ attr_accessor :card_details
16
+
17
+ # A mapping from model property names to API property names.
18
+ def self.names
19
+ @_hash = {} if @_hash.nil?
20
+ @_hash['card_details'] = 'CardDetails'
21
+ @_hash
22
+ end
23
+
24
+ # An array for optional fields
25
+ def self.optionals
26
+ %w[
27
+ card_details
28
+ ]
29
+ end
30
+
31
+ # An array for nullable fields
32
+ def self.nullables
33
+ []
34
+ end
35
+
36
+ def initialize(card_details = SKIP)
37
+ @card_details = card_details unless card_details == SKIP
38
+ end
39
+
40
+ # Creates an instance of the object from a hash.
41
+ def self.from_hash(hash)
42
+ return nil unless hash
43
+
44
+ # Extract variables from the hash.
45
+ # Parameter is an array, so we need to iterate through it
46
+ card_details = nil
47
+ unless hash['CardDetails'].nil?
48
+ card_details = []
49
+ hash['CardDetails'].each do |structure|
50
+ card_details << (CardDetail.from_hash(structure) if structure)
51
+ end
52
+ end
53
+
54
+ card_details = SKIP unless hash.key?('CardDetails')
55
+
56
+ # Create object from extracted values.
57
+ OrderCardRequest.new(card_details)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,90 @@
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
+ # OrderCardResponse Model.
8
+ class OrderCardResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Unique request identifier passed from end user. This identifier helps in
13
+ # tracing a transaction
14
+ # @return [String]
15
+ attr_accessor :request_id
16
+
17
+ # Indicates overall status of the request. Allowed values: SUCCESS, FAILED
18
+ # @return [String]
19
+ attr_accessor :status
20
+
21
+ # Indicates overall status of the request. Allowed values: SUCCESS, FAILED
22
+ # @return [Array[CreateCardResponse]]
23
+ attr_accessor :data
24
+
25
+ # Main order reference number for tracking.
26
+ # @return [Integer]
27
+ attr_accessor :main_reference
28
+
29
+ # A mapping from model property names to API property names.
30
+ def self.names
31
+ @_hash = {} if @_hash.nil?
32
+ @_hash['request_id'] = 'RequestId'
33
+ @_hash['status'] = 'Status'
34
+ @_hash['data'] = 'Data'
35
+ @_hash['main_reference'] = 'MainReference'
36
+ @_hash
37
+ end
38
+
39
+ # An array for optional fields
40
+ def self.optionals
41
+ %w[
42
+ request_id
43
+ status
44
+ data
45
+ main_reference
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
+ status = SKIP,
56
+ data = SKIP,
57
+ main_reference = SKIP)
58
+ @request_id = request_id unless request_id == SKIP
59
+ @status = status unless status == SKIP
60
+ @data = data unless data == SKIP
61
+ @main_reference = main_reference unless main_reference == SKIP
62
+ end
63
+
64
+ # Creates an instance of the object from a hash.
65
+ def self.from_hash(hash)
66
+ return nil unless hash
67
+
68
+ # Extract variables from the hash.
69
+ request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
70
+ status = hash.key?('Status') ? hash['Status'] : SKIP
71
+ # Parameter is an array, so we need to iterate through it
72
+ data = nil
73
+ unless hash['Data'].nil?
74
+ data = []
75
+ hash['Data'].each do |structure|
76
+ data << (CreateCardResponse.from_hash(structure) if structure)
77
+ end
78
+ end
79
+
80
+ data = SKIP unless hash.key?('Data')
81
+ main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
82
+
83
+ # Create object from extracted values.
84
+ OrderCardResponse.new(request_id,
85
+ status,
86
+ data,
87
+ main_reference)
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,147 @@
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
+ # PayerAccess Model.
8
+ class PayerAccess < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Whether this payer is the default payer of the user.
13
+ # @return [TrueClass | FalseClass]
14
+ attr_accessor :is_default
15
+
16
+ # Collecting company id.
17
+ # @return [Integer]
18
+ attr_accessor :colco_id
19
+
20
+ # Collecting company code.
21
+ # Example:
22
+ # 86-Philippines
23
+ # 5-UK
24
+ # @return [Integer]
25
+ attr_accessor :colco_code
26
+
27
+ # The 2-character ISO Code for the customer and card owning country
28
+ # @return [String]
29
+ attr_accessor :col_co_country_code
30
+
31
+ # Payer Group Id of the payer.
32
+ # @return [Integer]
33
+ attr_accessor :payer_group_id
34
+
35
+ # Payer group of the payer.
36
+ # The value of this parameter will always be null when the input parameter
37
+ # “IncludePayerGroup” is false.
38
+ # @return [String]
39
+ attr_accessor :payer_group
40
+
41
+ # Payer Id to which the user has access
42
+ # Example: 123456
43
+ # @return [Integer]
44
+ attr_accessor :payer_id
45
+
46
+ # Payer Number to which the user has access
47
+ # Example: GB000000123
48
+ # @return [String]
49
+ attr_accessor :payer_number
50
+
51
+ # Name of the Payer to which the user has access
52
+ # @return [String]
53
+ attr_accessor :payer_name
54
+
55
+ # A mapping from model property names to API property names.
56
+ def self.names
57
+ @_hash = {} if @_hash.nil?
58
+ @_hash['is_default'] = 'IsDefault'
59
+ @_hash['colco_id'] = 'ColcoId'
60
+ @_hash['colco_code'] = 'ColcoCode'
61
+ @_hash['col_co_country_code'] = 'ColCoCountryCode'
62
+ @_hash['payer_group_id'] = 'PayerGroupId'
63
+ @_hash['payer_group'] = 'PayerGroup'
64
+ @_hash['payer_id'] = 'PayerId'
65
+ @_hash['payer_number'] = 'PayerNumber'
66
+ @_hash['payer_name'] = 'PayerName'
67
+ @_hash
68
+ end
69
+
70
+ # An array for optional fields
71
+ def self.optionals
72
+ %w[
73
+ is_default
74
+ colco_id
75
+ colco_code
76
+ col_co_country_code
77
+ payer_group_id
78
+ payer_group
79
+ payer_id
80
+ payer_number
81
+ payer_name
82
+ ]
83
+ end
84
+
85
+ # An array for nullable fields
86
+ def self.nullables
87
+ %w[
88
+ colco_id
89
+ colco_code
90
+ col_co_country_code
91
+ payer_group_id
92
+ payer_group
93
+ payer_id
94
+ payer_number
95
+ payer_name
96
+ ]
97
+ end
98
+
99
+ def initialize(is_default = false,
100
+ colco_id = SKIP,
101
+ colco_code = SKIP,
102
+ col_co_country_code = SKIP,
103
+ payer_group_id = SKIP,
104
+ payer_group = SKIP,
105
+ payer_id = SKIP,
106
+ payer_number = SKIP,
107
+ payer_name = SKIP)
108
+ @is_default = is_default unless is_default == SKIP
109
+ @colco_id = colco_id unless colco_id == SKIP
110
+ @colco_code = colco_code unless colco_code == SKIP
111
+ @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP
112
+ @payer_group_id = payer_group_id unless payer_group_id == SKIP
113
+ @payer_group = payer_group unless payer_group == SKIP
114
+ @payer_id = payer_id unless payer_id == SKIP
115
+ @payer_number = payer_number unless payer_number == SKIP
116
+ @payer_name = payer_name unless payer_name == SKIP
117
+ end
118
+
119
+ # Creates an instance of the object from a hash.
120
+ def self.from_hash(hash)
121
+ return nil unless hash
122
+
123
+ # Extract variables from the hash.
124
+ is_default = hash['IsDefault'] ||= false
125
+ colco_id = hash.key?('ColcoId') ? hash['ColcoId'] : SKIP
126
+ colco_code = hash.key?('ColcoCode') ? hash['ColcoCode'] : SKIP
127
+ col_co_country_code =
128
+ hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP
129
+ payer_group_id = hash.key?('PayerGroupId') ? hash['PayerGroupId'] : SKIP
130
+ payer_group = hash.key?('PayerGroup') ? hash['PayerGroup'] : SKIP
131
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
132
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
133
+ payer_name = hash.key?('PayerName') ? hash['PayerName'] : SKIP
134
+
135
+ # Create object from extracted values.
136
+ PayerAccess.new(is_default,
137
+ colco_id,
138
+ colco_code,
139
+ col_co_country_code,
140
+ payer_group_id,
141
+ payer_group,
142
+ payer_id,
143
+ payer_number,
144
+ payer_name)
145
+ end
146
+ end
147
+ end