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,502 @@
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 https
8
+ class OrderCardEnquiry < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Account ID on the card request
13
+ # @return [Integer]
14
+ attr_accessor :account_id
15
+
16
+ # AccountNumber
17
+ # @return [String]
18
+ attr_accessor :account_number
19
+
20
+ # Bulk card order request refrence numer.<br />
21
+ # This field will be null if the order is not through BCO.
22
+ # @return [Integer]
23
+ attr_accessor :bco_reference
24
+
25
+ # Row number of the request in the BCO file.<br />
26
+ # This field will be null if the order is not through BCO.
27
+ # @return [Integer]
28
+ attr_accessor :bco_row_number
29
+
30
+ # Card group ID
31
+ # @return [Integer]
32
+ attr_accessor :card_group_id
33
+
34
+ # Card group name
35
+ # @return [String]
36
+ attr_accessor :card_group_name
37
+
38
+ # Unique Card Id.<br />
39
+ # The field will be null if the card order request is not successly
40
+ # processed.
41
+ # @return [Integer]
42
+ attr_accessor :card_id
43
+
44
+ # Card PAN.<br />
45
+ # Mask PAN (Mask all digits except the Last 6 digits of the PAN).<br />
46
+ # The field will be null if the card order request is not successly
47
+ # processed.
48
+ # @return [String]
49
+ attr_accessor :card_pan
50
+
51
+ # CardTypeCode<br />
52
+ # ISO code of the card i.e. first 7 digits of the PAN
53
+ # @return [String]
54
+ attr_accessor :card_type_code
55
+
56
+ # CardTypeId
57
+ # @return [Integer]
58
+ attr_accessor :card_type_id
59
+
60
+ # CardTypeName
61
+ # @return [String]
62
+ attr_accessor :card_type_name
63
+
64
+ # Driver name
65
+ # @return [String]
66
+ attr_accessor :driver_name
67
+
68
+ # Error code for the order card request.<br />
69
+ # The value will be 0000 if it is processed without errors.
70
+ # @return [String]
71
+ attr_accessor :error_code
72
+
73
+ # Error description for the order card request.<br />
74
+ # The value will be empty string if it is processed without errors.
75
+ # @return [String]
76
+ attr_accessor :error_description
77
+
78
+ # Error code for the Gateway sync error.<br />
79
+ # The value will be 0000 if it is processed without errors.
80
+ # @return [String]
81
+ attr_accessor :gateway_sync_error_code
82
+
83
+ # Error description for the Gateway sync error.<br />
84
+ # The value will be empty string if it is processed without errors.
85
+ # @return [String]
86
+ attr_accessor :gateway_sync_error_description
87
+
88
+ # GatewaySyncStatus<br />
89
+ # Status of the card sync with CFGW.<br />
90
+ # Possible values:<br />
91
+ # -Success<br />
92
+ # -Failed<br />
93
+ # -In Progress<br />
94
+ # -Not Submitted
95
+ # @return [String]
96
+ attr_accessor :gateway_sync_status
97
+
98
+ # Main reference number for the order card request.<br />
99
+ # This field will be null if the order is through BCO.
100
+ # @return [Integer]
101
+ attr_accessor :main_reference
102
+
103
+ # Indivitual card reference number for the order card request.<br />
104
+ # This field will be null if the order is through BCO.
105
+ # @return [Integer]
106
+ attr_accessor :order_card_reference
107
+
108
+ # Order status.<br />
109
+ # Possible values:<br />
110
+ # P Pending<br />
111
+ # I Picked up for processing<br />
112
+ # PX Failed at Queue but retry attempts pending<br />
113
+ # X Failed at Queue<br />
114
+ # R Card is processed, awaiting for PAN update.<br />
115
+ # S Processed<br />
116
+ # F Failed
117
+ # @return [String]
118
+ attr_accessor :order_status
119
+
120
+ # Payer ID on the card request.
121
+ # @return [Integer]
122
+ attr_accessor :payer_id
123
+
124
+ # Payer Number on the card request
125
+ # @return [String]
126
+ attr_accessor :payer_number
127
+
128
+ # Date and time (in cutomers local time) when the card order request is
129
+ # processed<br />
130
+ # Format: yyyyMMdd HH:mm:ss<br />
131
+ # Note: The client application to convert the string to appropriate
132
+ # date/time type.
133
+ # @return [String]
134
+ attr_accessor :processed_date
135
+
136
+ # PurchaseCategoryCode
137
+ # @return [String]
138
+ attr_accessor :purchase_category_code
139
+
140
+ # PurchaseCategoryId <br />
141
+ # Note: Not Purchase code. This is a unique purchase category id assigned
142
+ # @return [Integer]
143
+ attr_accessor :purchase_category_id
144
+
145
+ # PurchaseCategoryName
146
+ # @return [String]
147
+ attr_accessor :purchase_category_name
148
+
149
+ # Date and time (in cutomers local time) when the card order request is
150
+ # submitted.<br />
151
+ # Format: yyyyMMdd HH:mm:ss<br />
152
+ # Note: The client application to convert the string to appropriate
153
+ # date/time type.
154
+ # @return [String]
155
+ attr_accessor :submitted_date
156
+
157
+ # SyncProcessedDate<br />
158
+ # Date and time (in cutomers local time) when the sync card request is
159
+ # processed.<br />
160
+ # Format: yyyyMMdd HH:mm:ss<br />
161
+ # Note: The client application to convert the string to appropriate
162
+ # date/time type.
163
+ # @return [String]
164
+ attr_accessor :sync_processed_date
165
+
166
+ # SyncRequestedDate<br />
167
+ # Date and time (in cutomers local time) when the sync card request is
168
+ # submitted.<br />
169
+ # Format: yyyyMMdd HH:mm:ss <br />
170
+ # Note: The client application to convert the string to appropriate
171
+ # date/time type.
172
+ # @return [String]
173
+ attr_accessor :sync_requested_date
174
+
175
+ # Vehicle registration number
176
+ # @return [String]
177
+ attr_accessor :vrn
178
+
179
+ # Unique Id of the Original Order card request, the status of which is
180
+ # enquired by this API. <br />
181
+ # This is returned for end to end traceability of a request based on the
182
+ # original Order Card request.
183
+ # @return [String]
184
+ attr_accessor :order_request_id
185
+
186
+ # Expiry date of the card.<br />
187
+ # Format: MMyy<br />
188
+ # (Clients to convert this to appropriate DateTime type.)<br />
189
+ # Note: This is the Expiry Date saved.<br />
190
+ # If the Order Card request is still not processed, i.e.PAN is not yet
191
+ # issued, this field will be null or empty. <br />
192
+ # For a Card Order with a custom Expiry Date passed in the request, this
193
+ # value will be returned after it is updated successfully.
194
+ # @return [String]
195
+ attr_accessor :expiry_date
196
+
197
+ # This is the Client Reference Id of card in the order which needs to be
198
+ # passed by the client.
199
+ # @return [String]
200
+ attr_accessor :client_reference_id
201
+
202
+ # Order status.<br />
203
+ # Possible values<br />
204
+ # Success<br />
205
+ # Failed<br />
206
+ # InProgress<br />
207
+ # @return [String]
208
+ attr_accessor :status_description
209
+
210
+ # Colcoid
211
+ # @return [Integer]
212
+ attr_accessor :col_co_id
213
+
214
+ # A mapping from model property names to API property names.
215
+ def self.names
216
+ @_hash = {} if @_hash.nil?
217
+ @_hash['account_id'] = 'AccountId'
218
+ @_hash['account_number'] = 'AccountNumber'
219
+ @_hash['bco_reference'] = 'BCOReference'
220
+ @_hash['bco_row_number'] = 'BCORowNumber'
221
+ @_hash['card_group_id'] = 'CardGroupId'
222
+ @_hash['card_group_name'] = 'CardGroupName'
223
+ @_hash['card_id'] = 'CardId'
224
+ @_hash['card_pan'] = 'CardPAN'
225
+ @_hash['card_type_code'] = 'CardTypeCode'
226
+ @_hash['card_type_id'] = 'CardTypeId'
227
+ @_hash['card_type_name'] = 'CardTypeName'
228
+ @_hash['driver_name'] = 'DriverName'
229
+ @_hash['error_code'] = 'ErrorCode'
230
+ @_hash['error_description'] = 'ErrorDescription'
231
+ @_hash['gateway_sync_error_code'] = 'GatewaySyncErrorCode'
232
+ @_hash['gateway_sync_error_description'] = 'GatewaySyncErrorDescription'
233
+ @_hash['gateway_sync_status'] = 'GatewaySyncStatus'
234
+ @_hash['main_reference'] = 'MainReference'
235
+ @_hash['order_card_reference'] = 'OrderCardReference'
236
+ @_hash['order_status'] = 'OrderStatus'
237
+ @_hash['payer_id'] = 'PayerId'
238
+ @_hash['payer_number'] = 'PayerNumber'
239
+ @_hash['processed_date'] = 'ProcessedDate'
240
+ @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
241
+ @_hash['purchase_category_id'] = 'PurchaseCategoryId'
242
+ @_hash['purchase_category_name'] = 'PurchaseCategoryName'
243
+ @_hash['submitted_date'] = 'SubmittedDate'
244
+ @_hash['sync_processed_date'] = 'SyncProcessedDate'
245
+ @_hash['sync_requested_date'] = 'SyncRequestedDate'
246
+ @_hash['vrn'] = 'VRN'
247
+ @_hash['order_request_id'] = 'OrderRequestId'
248
+ @_hash['expiry_date'] = 'ExpiryDate'
249
+ @_hash['client_reference_id'] = 'ClientReferenceId'
250
+ @_hash['status_description'] = 'StatusDescription'
251
+ @_hash['col_co_id'] = 'ColCoId'
252
+ @_hash
253
+ end
254
+
255
+ # An array for optional fields
256
+ def self.optionals
257
+ %w[
258
+ account_id
259
+ account_number
260
+ bco_reference
261
+ bco_row_number
262
+ card_group_id
263
+ card_group_name
264
+ card_id
265
+ card_pan
266
+ card_type_code
267
+ card_type_id
268
+ card_type_name
269
+ driver_name
270
+ error_code
271
+ error_description
272
+ gateway_sync_error_code
273
+ gateway_sync_error_description
274
+ gateway_sync_status
275
+ main_reference
276
+ order_card_reference
277
+ order_status
278
+ payer_id
279
+ payer_number
280
+ processed_date
281
+ purchase_category_code
282
+ purchase_category_id
283
+ purchase_category_name
284
+ submitted_date
285
+ sync_processed_date
286
+ sync_requested_date
287
+ vrn
288
+ order_request_id
289
+ expiry_date
290
+ client_reference_id
291
+ status_description
292
+ col_co_id
293
+ ]
294
+ end
295
+
296
+ # An array for nullable fields
297
+ def self.nullables
298
+ %w[
299
+ account_id
300
+ account_number
301
+ bco_reference
302
+ bco_row_number
303
+ card_group_id
304
+ card_group_name
305
+ card_id
306
+ card_pan
307
+ card_type_code
308
+ card_type_id
309
+ card_type_name
310
+ driver_name
311
+ error_code
312
+ error_description
313
+ gateway_sync_error_code
314
+ gateway_sync_error_description
315
+ gateway_sync_status
316
+ order_status
317
+ payer_number
318
+ processed_date
319
+ purchase_category_code
320
+ purchase_category_id
321
+ purchase_category_name
322
+ submitted_date
323
+ sync_processed_date
324
+ sync_requested_date
325
+ vrn
326
+ order_request_id
327
+ expiry_date
328
+ client_reference_id
329
+ status_description
330
+ col_co_id
331
+ ]
332
+ end
333
+
334
+ def initialize(account_id = SKIP,
335
+ account_number = SKIP,
336
+ bco_reference = SKIP,
337
+ bco_row_number = SKIP,
338
+ card_group_id = SKIP,
339
+ card_group_name = SKIP,
340
+ card_id = SKIP,
341
+ card_pan = SKIP,
342
+ card_type_code = SKIP,
343
+ card_type_id = SKIP,
344
+ card_type_name = SKIP,
345
+ driver_name = SKIP,
346
+ error_code = SKIP,
347
+ error_description = SKIP,
348
+ gateway_sync_error_code = SKIP,
349
+ gateway_sync_error_description = SKIP,
350
+ gateway_sync_status = SKIP,
351
+ main_reference = SKIP,
352
+ order_card_reference = SKIP,
353
+ order_status = SKIP,
354
+ payer_id = SKIP,
355
+ payer_number = SKIP,
356
+ processed_date = SKIP,
357
+ purchase_category_code = SKIP,
358
+ purchase_category_id = SKIP,
359
+ purchase_category_name = SKIP,
360
+ submitted_date = SKIP,
361
+ sync_processed_date = SKIP,
362
+ sync_requested_date = SKIP,
363
+ vrn = SKIP,
364
+ order_request_id = SKIP,
365
+ expiry_date = SKIP,
366
+ client_reference_id = SKIP,
367
+ status_description = SKIP,
368
+ col_co_id = SKIP)
369
+ @account_id = account_id unless account_id == SKIP
370
+ @account_number = account_number unless account_number == SKIP
371
+ @bco_reference = bco_reference unless bco_reference == SKIP
372
+ @bco_row_number = bco_row_number unless bco_row_number == SKIP
373
+ @card_group_id = card_group_id unless card_group_id == SKIP
374
+ @card_group_name = card_group_name unless card_group_name == SKIP
375
+ @card_id = card_id unless card_id == SKIP
376
+ @card_pan = card_pan unless card_pan == SKIP
377
+ @card_type_code = card_type_code unless card_type_code == SKIP
378
+ @card_type_id = card_type_id unless card_type_id == SKIP
379
+ @card_type_name = card_type_name unless card_type_name == SKIP
380
+ @driver_name = driver_name unless driver_name == SKIP
381
+ @error_code = error_code unless error_code == SKIP
382
+ @error_description = error_description unless error_description == SKIP
383
+ @gateway_sync_error_code = gateway_sync_error_code unless gateway_sync_error_code == SKIP
384
+ unless gateway_sync_error_description == SKIP
385
+ @gateway_sync_error_description =
386
+ gateway_sync_error_description
387
+ end
388
+ @gateway_sync_status = gateway_sync_status unless gateway_sync_status == SKIP
389
+ @main_reference = main_reference unless main_reference == SKIP
390
+ @order_card_reference = order_card_reference unless order_card_reference == SKIP
391
+ @order_status = order_status unless order_status == SKIP
392
+ @payer_id = payer_id unless payer_id == SKIP
393
+ @payer_number = payer_number unless payer_number == SKIP
394
+ @processed_date = processed_date unless processed_date == SKIP
395
+ @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
396
+ @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
397
+ @purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
398
+ @submitted_date = submitted_date unless submitted_date == SKIP
399
+ @sync_processed_date = sync_processed_date unless sync_processed_date == SKIP
400
+ @sync_requested_date = sync_requested_date unless sync_requested_date == SKIP
401
+ @vrn = vrn unless vrn == SKIP
402
+ @order_request_id = order_request_id unless order_request_id == SKIP
403
+ @expiry_date = expiry_date unless expiry_date == SKIP
404
+ @client_reference_id = client_reference_id unless client_reference_id == SKIP
405
+ @status_description = status_description unless status_description == SKIP
406
+ @col_co_id = col_co_id unless col_co_id == SKIP
407
+ end
408
+
409
+ # Creates an instance of the object from a hash.
410
+ def self.from_hash(hash)
411
+ return nil unless hash
412
+
413
+ # Extract variables from the hash.
414
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
415
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
416
+ bco_reference = hash.key?('BCOReference') ? hash['BCOReference'] : SKIP
417
+ bco_row_number = hash.key?('BCORowNumber') ? hash['BCORowNumber'] : SKIP
418
+ card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
419
+ card_group_name =
420
+ hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
421
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
422
+ card_pan = hash.key?('CardPAN') ? hash['CardPAN'] : SKIP
423
+ card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
424
+ card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
425
+ card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
426
+ driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
427
+ error_code = hash.key?('ErrorCode') ? hash['ErrorCode'] : SKIP
428
+ error_description =
429
+ hash.key?('ErrorDescription') ? hash['ErrorDescription'] : SKIP
430
+ gateway_sync_error_code =
431
+ hash.key?('GatewaySyncErrorCode') ? hash['GatewaySyncErrorCode'] : SKIP
432
+ gateway_sync_error_description =
433
+ hash.key?('GatewaySyncErrorDescription') ? hash['GatewaySyncErrorDescription'] : SKIP
434
+ gateway_sync_status =
435
+ hash.key?('GatewaySyncStatus') ? hash['GatewaySyncStatus'] : SKIP
436
+ main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
437
+ order_card_reference =
438
+ hash.key?('OrderCardReference') ? hash['OrderCardReference'] : SKIP
439
+ order_status = hash.key?('OrderStatus') ? hash['OrderStatus'] : SKIP
440
+ payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
441
+ payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
442
+ processed_date = hash.key?('ProcessedDate') ? hash['ProcessedDate'] : SKIP
443
+ purchase_category_code =
444
+ hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
445
+ purchase_category_id =
446
+ hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP
447
+ purchase_category_name =
448
+ hash.key?('PurchaseCategoryName') ? hash['PurchaseCategoryName'] : SKIP
449
+ submitted_date = hash.key?('SubmittedDate') ? hash['SubmittedDate'] : SKIP
450
+ sync_processed_date =
451
+ hash.key?('SyncProcessedDate') ? hash['SyncProcessedDate'] : SKIP
452
+ sync_requested_date =
453
+ hash.key?('SyncRequestedDate') ? hash['SyncRequestedDate'] : SKIP
454
+ vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
455
+ order_request_id =
456
+ hash.key?('OrderRequestId') ? hash['OrderRequestId'] : SKIP
457
+ expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
458
+ client_reference_id =
459
+ hash.key?('ClientReferenceId') ? hash['ClientReferenceId'] : SKIP
460
+ status_description =
461
+ hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
462
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
463
+
464
+ # Create object from extracted values.
465
+ OrderCardEnquiry.new(account_id,
466
+ account_number,
467
+ bco_reference,
468
+ bco_row_number,
469
+ card_group_id,
470
+ card_group_name,
471
+ card_id,
472
+ card_pan,
473
+ card_type_code,
474
+ card_type_id,
475
+ card_type_name,
476
+ driver_name,
477
+ error_code,
478
+ error_description,
479
+ gateway_sync_error_code,
480
+ gateway_sync_error_description,
481
+ gateway_sync_status,
482
+ main_reference,
483
+ order_card_reference,
484
+ order_status,
485
+ payer_id,
486
+ payer_number,
487
+ processed_date,
488
+ purchase_category_code,
489
+ purchase_category_id,
490
+ purchase_category_name,
491
+ submitted_date,
492
+ sync_processed_date,
493
+ sync_requested_date,
494
+ vrn,
495
+ order_request_id,
496
+ expiry_date,
497
+ client_reference_id,
498
+ status_description,
499
+ col_co_id)
500
+ end
501
+ end
502
+ end