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,696 @@
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
+ # Card Model.
8
+ class Card < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Account ID
13
+ # @return [Integer]
14
+ attr_accessor :account_id
15
+
16
+ # Account Name
17
+ # @return [String]
18
+ attr_accessor :account_name
19
+
20
+ # Account Number
21
+ # @return [String]
22
+ attr_accessor :account_number
23
+
24
+ # Account Short Name
25
+ # @return [String]
26
+ attr_accessor :account_short_name
27
+
28
+ # Bundle Id associated with card in the Gateway.<br />
29
+ # This field will have null value if the card is not associated with any
30
+ # bundle in Gateway or the value of IncludeBundleDetails in request is
31
+ # false.
32
+ # @return [String]
33
+ attr_accessor :bundle_id
34
+
35
+ # List of Scheduled Card Blocks details<br />
36
+ # Entity: CardBlockSchedule
37
+ # @return [Array[CardBlockSchedule]]
38
+ attr_accessor :card_block_schedules
39
+
40
+ # Card group ID
41
+ # @return [Integer]
42
+ attr_accessor :card_group_id
43
+
44
+ # Card group name
45
+ # @return [String]
46
+ attr_accessor :card_group_name
47
+
48
+ # Unique Card Id
49
+ # @return [Integer]
50
+ attr_accessor :card_id
51
+
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
+ # Card Type ID Example Id and Description: 1 -Philippines CRT 7077861
57
+ # 2-Philippines<br />
58
+ # Fleet 7002861 5-SHELL FLEET-HONG KONG 7002821 6-SHELL NHF- HONG KONG
59
+ # 7002821 7-SHELL CRT- HONG KONG 7077821
60
+ # @return [Integer]
61
+ attr_accessor :card_type_id
62
+
63
+ # Card Type Name Example Id and Description: 1-Philippines CRT 7077861
64
+ # 2-Philippines <br />
65
+ # Fleet 7002861 5-SHELL FLEET- HONG KONG 7002821 6-SHELL NHF- HONG KONG
66
+ # 7002821 7-SHELL CRT- HONG KONG 7077821
67
+ # @return [String]
68
+ attr_accessor :card_type_name
69
+
70
+ # The 2 character ISO Code for the customer and card owning country. <br />
71
+ # If default card type is not set then the first two alphabets of the
72
+ # account ID is returned.
73
+ # @return [String]
74
+ attr_accessor :col_co_country_code
75
+
76
+ # Card Creation datetime.<br />
77
+ # Format: yyyyMMdd HH:mm:ss<br />
78
+ # Note: Clients to convert this to appropriate DateTime type.
79
+ # @return [String]
80
+ attr_accessor :creation_date
81
+
82
+ # Driver name
83
+ # @return [String]
84
+ attr_accessor :driver_name
85
+
86
+ # Effective date for the Card<br />
87
+ # Format: yyyyMMdd<br />
88
+ # Note: Clients to convert this to appropriate DateTime type.
89
+ # @return [String]
90
+ attr_accessor :effective_date
91
+
92
+ # Expiry date of the card.<br />
93
+ # Format: yyyyMMdd<br />
94
+ # Note: Clients to convert this to appropriate DateTime type.
95
+ # @return [String]
96
+ attr_accessor :expiry_date
97
+
98
+ # True/False True if fleet id input is enabled, else false
99
+ # @return [TrueClass | FalseClass]
100
+ attr_accessor :fleet_id_input
101
+
102
+ # True/False True if it is a CRT type card, else false
103
+ # @return [TrueClass | FalseClass]
104
+ attr_accessor :is_crt
105
+
106
+ # True/False True if it is a Fleet type card, else false
107
+ # @return [TrueClass | FalseClass]
108
+ attr_accessor :is_fleet
109
+
110
+ # True/False True if it is an international card, else false
111
+ # @return [TrueClass | FalseClass]
112
+ attr_accessor :is_international
113
+
114
+ # True/False True if it is a national card, else false
115
+ # @return [TrueClass | FalseClass]
116
+ attr_accessor :is_national
117
+
118
+ # True/False True if it is allowed at all partner sites, else false
119
+ # @return [TrueClass | FalseClass]
120
+ attr_accessor :is_partner_sites_included
121
+
122
+ # True/False True if it is only allowed at Shell sites, else false
123
+ # @return [TrueClass | FalseClass]
124
+ attr_accessor :is_shell_sites_only
125
+
126
+ # Issue date<br />
127
+ # Format: yyyyMMdd<br />
128
+ # Note: Clients to convert this to appropriate DateTime type.
129
+ # @return [String]
130
+ attr_accessor :issue_date
131
+
132
+ # True/False True if a new card is issued with the same PAN, else false.
133
+ # @return [TrueClass | FalseClass]
134
+ attr_accessor :is_superseded
135
+
136
+ # True/False True if it is a virtual card, else false
137
+ # @return [TrueClass | FalseClass]
138
+ attr_accessor :is_virtual_card
139
+
140
+ # Card last modified date and time<br />
141
+ # Format: yyyyMMdd HH:mm:ss<br />
142
+ # Note: Clients to convert this to appropriate DateTime type.
143
+ # @return [String]
144
+ attr_accessor :last_modified_date
145
+
146
+ # Card last used date .<br />
147
+ # Note: last used date of a card will be calculated based on billed/unbilled
148
+ # sales items
149
+ # of a given card.The query that extracts the last used dates will be
150
+ # applied on the
151
+ # subset of the cards being returned to the client.Unbilled sales
152
+ # items is checked
153
+ # first and for those not found in the unbilled table, sales items
154
+ # will be checked
155
+ # (only when the last used date is not found in unbilled table for at
156
+ # least a single
157
+ # card from the result). The transactions in last 48 hours are not
158
+ # expected to be
159
+ # Therefore this field gives the correct information up to 48 hours
160
+ # early.<br />
161
+ # Format: yyyyMMdd HH:mm:ss<br />
162
+ # Note: Clients to convert this to appropriate DateTime type
163
+ # @return [String]
164
+ attr_accessor :last_used_date
165
+
166
+ # ISO code of the local currency. <br />
167
+ # @return [String]
168
+ attr_accessor :local_currency_code
169
+
170
+ # Local currency symbol. <br />
171
+ # @return [String]
172
+ attr_accessor :local_currency_symbol
173
+
174
+ # True/False True if odometer input is enabled on the card, else false
175
+ # @return [TrueClass | FalseClass]
176
+ attr_accessor :odometer_input
177
+
178
+ # Card PAN Mask PAN (Mask all digits except the Last 6 digits of the PAN)
179
+ # @return [String]
180
+ attr_accessor :pan
181
+
182
+ # Purchase category code
183
+ # @return [String]
184
+ attr_accessor :purchase_category_code
185
+
186
+ # Purchase category Id <br />
187
+ # Note: Not Purchase code.
188
+ # @return [Integer]
189
+ attr_accessor :purchase_category_id
190
+
191
+ # Purchase category name
192
+ # @return [String]
193
+ attr_accessor :purchase_category_name
194
+
195
+ # Card Status reason Example: Lost Stolen Card no longer required
196
+ # @return [String]
197
+ attr_accessor :reason
198
+
199
+ # Reissue setting of the card. If the card is superseded (i.e. a
200
+ # replacement/new card is issued) then reissue setting of the latest card
201
+ # issued. <br />
202
+ # Values<br />
203
+ # •True –Card will be Reissued when nearing its expiry date <br />
204
+ # •False –Card will not be Reissued
205
+ # @return [String]
206
+ attr_accessor :reissue_setting
207
+
208
+ # Status Description (Active, Temporarily Blocked, etc.,)<br />
209
+ # Possible Ids and description: 1 Active 7 Blocked Card 8 Expired 9
210
+ # Cancelled 10 New 23 Pending Renewal 31 Replaced 41<br />
211
+ # Temporary Block(Customer) 42 Temporary Block(Shell) 43 Fraud 101
212
+ # Active(Block in progress)<br />
213
+ # * 102 Blocked Card(Unblock in progress) <br />
214
+ # * 103 Active(Cancel in progress) <br />
215
+ # * 104 Active(Marked as damaged)<br />
216
+ # * 105 New(Cancel in progress) <br />
217
+ # * 106 { Status}(Scheduled for block)<br />
218
+ # * 107 { Status}(Scheduled for unblock) <br />
219
+ # *# Note: Items marked with* are intermediate statuses to indicate that
220
+ # there are pending requests in progress.<br />
221
+ # The response can contain these intermediate statuses only if the<br />
222
+ # IncludeIntermediateStatus flag is true. The placeholder { Status} in the
223
+ # items<br />
224
+ # marked with # will be replaced with the status description. E.g., Active
225
+ # (Scheduled for block)
226
+ # @return [String]
227
+ attr_accessor :status_description
228
+
229
+ # Card Status id Possible Ids and description: 1 Active 7 Blocked Card 8
230
+ # Expired 9 Cancelled 10 New 23 Pending Renewal 31 Replaced 41 Temporary
231
+ # Block(Customer) 42 <br />
232
+ # Temporary Block(Shell) 43 Fraud 101 Active(Block in progress) <br />
233
+ # * 102 Blocked Card(Unblock in progress)<br />
234
+ # * 103 Active(Cancel in progress) <br />
235
+ # * 104 Active(Marked as damaged) <br />
236
+ # * 105 New(Cancel in progress)<br />
237
+ # * 106 { Status}(Scheduled for block) <br />
238
+ # # 107 {Status}(Scheduled for unblock)<br />
239
+ # *# Note: Items marked with* are intermediate statuses to indicate that
240
+ # there are pending requests in progress.<br />
241
+ # The response can contain these intermediate statuses only if the
242
+ # IncludeIntermediateStatus flag is true.<br />
243
+ # The placeholder { Status} in the items marked with # will be replaced
244
+ # with<br />
245
+ # the status description. E.g., Active (Scheduled for block)
246
+ # @return [Integer]
247
+ attr_accessor :status_id
248
+
249
+ # Token Type ID configured for the Card E.g. 107
250
+ # @return [Integer]
251
+ attr_accessor :token_type_id
252
+
253
+ # Token Type Name configured for the Card
254
+ # @return [String]
255
+ attr_accessor :token_type_name
256
+
257
+ # Vehicle registration number
258
+ # @return [String]
259
+ attr_accessor :vrn
260
+
261
+ # Customer reference number of the card.
262
+ # @return [String]
263
+ attr_accessor :client_reference_id
264
+
265
+ # Is Europay, MasterCard, and Visa Contact enabled or not.
266
+ # @return [TrueClass | FalseClass]
267
+ attr_accessor :is_emv_contact
268
+
269
+ # Is Europay, MasterCard, and Visa Contactless enabled or not.
270
+ # @return [TrueClass | FalseClass]
271
+ attr_accessor :is_emv_contactless
272
+
273
+ # Whether the card type is enabled for RFID (Radio Frequency Identification)
274
+ # @return [TrueClass | FalseClass]
275
+ attr_accessor :is_rfid
276
+
277
+ # RFIDUID
278
+ # @return [String]
279
+ attr_accessor :rfiduid
280
+
281
+ # EMAID
282
+ # @return [String]
283
+ attr_accessor :emaid
284
+
285
+ # EV Printed Number
286
+ # @return [String]
287
+ attr_accessor :ev_printed_number
288
+
289
+ # Card Media Code.
290
+ # @return [String]
291
+ attr_accessor :card_media_code
292
+
293
+ # A mapping from model property names to API property names.
294
+ def self.names
295
+ @_hash = {} if @_hash.nil?
296
+ @_hash['account_id'] = 'AccountId'
297
+ @_hash['account_name'] = 'AccountName'
298
+ @_hash['account_number'] = 'AccountNumber'
299
+ @_hash['account_short_name'] = 'AccountShortName'
300
+ @_hash['bundle_id'] = 'BundleId'
301
+ @_hash['card_block_schedules'] = 'CardBlockSchedules'
302
+ @_hash['card_group_id'] = 'CardGroupId'
303
+ @_hash['card_group_name'] = 'CardGroupName'
304
+ @_hash['card_id'] = 'CardId'
305
+ @_hash['card_type_code'] = 'CardTypeCode'
306
+ @_hash['card_type_id'] = 'CardTypeId'
307
+ @_hash['card_type_name'] = 'CardTypeName'
308
+ @_hash['col_co_country_code'] = 'ColCoCountryCode'
309
+ @_hash['creation_date'] = 'CreationDate'
310
+ @_hash['driver_name'] = 'DriverName'
311
+ @_hash['effective_date'] = 'EffectiveDate'
312
+ @_hash['expiry_date'] = 'ExpiryDate'
313
+ @_hash['fleet_id_input'] = 'FleetIdInput'
314
+ @_hash['is_crt'] = 'IsCRT'
315
+ @_hash['is_fleet'] = 'IsFleet'
316
+ @_hash['is_international'] = 'IsInternational'
317
+ @_hash['is_national'] = 'IsNational'
318
+ @_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded'
319
+ @_hash['is_shell_sites_only'] = 'IsShellSitesOnly'
320
+ @_hash['issue_date'] = 'IssueDate'
321
+ @_hash['is_superseded'] = 'IsSuperseded'
322
+ @_hash['is_virtual_card'] = 'IsVirtualCard'
323
+ @_hash['last_modified_date'] = 'LastModifiedDate'
324
+ @_hash['last_used_date'] = 'LastUsedDate'
325
+ @_hash['local_currency_code'] = 'LocalCurrencyCode'
326
+ @_hash['local_currency_symbol'] = 'LocalCurrencySymbol'
327
+ @_hash['odometer_input'] = 'OdometerInput'
328
+ @_hash['pan'] = 'PAN'
329
+ @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
330
+ @_hash['purchase_category_id'] = 'PurchaseCategoryId'
331
+ @_hash['purchase_category_name'] = 'PurchaseCategoryName'
332
+ @_hash['reason'] = 'Reason'
333
+ @_hash['reissue_setting'] = 'ReissueSetting'
334
+ @_hash['status_description'] = 'StatusDescription'
335
+ @_hash['status_id'] = 'StatusId'
336
+ @_hash['token_type_id'] = 'TokenTypeID'
337
+ @_hash['token_type_name'] = 'TokenTypeName'
338
+ @_hash['vrn'] = 'VRN'
339
+ @_hash['client_reference_id'] = 'ClientReferenceId'
340
+ @_hash['is_emv_contact'] = 'IsEMVContact'
341
+ @_hash['is_emv_contactless'] = 'IsEMVContactless'
342
+ @_hash['is_rfid'] = 'IsRFID'
343
+ @_hash['rfiduid'] = 'RFIDUID'
344
+ @_hash['emaid'] = 'EMAID'
345
+ @_hash['ev_printed_number'] = 'EVPrintedNumber'
346
+ @_hash['card_media_code'] = 'CardMediaCode'
347
+ @_hash
348
+ end
349
+
350
+ # An array for optional fields
351
+ def self.optionals
352
+ %w[
353
+ account_id
354
+ account_name
355
+ account_number
356
+ account_short_name
357
+ bundle_id
358
+ card_block_schedules
359
+ card_group_id
360
+ card_group_name
361
+ card_id
362
+ card_type_code
363
+ card_type_id
364
+ card_type_name
365
+ col_co_country_code
366
+ creation_date
367
+ driver_name
368
+ effective_date
369
+ expiry_date
370
+ fleet_id_input
371
+ is_crt
372
+ is_fleet
373
+ is_international
374
+ is_national
375
+ is_partner_sites_included
376
+ is_shell_sites_only
377
+ issue_date
378
+ is_superseded
379
+ is_virtual_card
380
+ last_modified_date
381
+ last_used_date
382
+ local_currency_code
383
+ local_currency_symbol
384
+ odometer_input
385
+ pan
386
+ purchase_category_code
387
+ purchase_category_id
388
+ purchase_category_name
389
+ reason
390
+ reissue_setting
391
+ status_description
392
+ status_id
393
+ token_type_id
394
+ token_type_name
395
+ vrn
396
+ client_reference_id
397
+ is_emv_contact
398
+ is_emv_contactless
399
+ is_rfid
400
+ rfiduid
401
+ emaid
402
+ ev_printed_number
403
+ card_media_code
404
+ ]
405
+ end
406
+
407
+ # An array for nullable fields
408
+ def self.nullables
409
+ %w[
410
+ account_id
411
+ account_name
412
+ account_number
413
+ account_short_name
414
+ bundle_id
415
+ card_group_id
416
+ card_group_name
417
+ card_id
418
+ card_type_code
419
+ card_type_id
420
+ card_type_name
421
+ col_co_country_code
422
+ creation_date
423
+ driver_name
424
+ effective_date
425
+ expiry_date
426
+ issue_date
427
+ last_modified_date
428
+ last_used_date
429
+ local_currency_code
430
+ local_currency_symbol
431
+ pan
432
+ purchase_category_code
433
+ purchase_category_id
434
+ purchase_category_name
435
+ reason
436
+ reissue_setting
437
+ status_description
438
+ status_id
439
+ token_type_id
440
+ vrn
441
+ client_reference_id
442
+ rfiduid
443
+ emaid
444
+ ev_printed_number
445
+ card_media_code
446
+ ]
447
+ end
448
+
449
+ def initialize(account_id = SKIP,
450
+ account_name = SKIP,
451
+ account_number = SKIP,
452
+ account_short_name = SKIP,
453
+ bundle_id = SKIP,
454
+ card_block_schedules = SKIP,
455
+ card_group_id = SKIP,
456
+ card_group_name = SKIP,
457
+ card_id = SKIP,
458
+ card_type_code = SKIP,
459
+ card_type_id = SKIP,
460
+ card_type_name = SKIP,
461
+ col_co_country_code = SKIP,
462
+ creation_date = SKIP,
463
+ driver_name = SKIP,
464
+ effective_date = SKIP,
465
+ expiry_date = SKIP,
466
+ fleet_id_input = SKIP,
467
+ is_crt = SKIP,
468
+ is_fleet = SKIP,
469
+ is_international = SKIP,
470
+ is_national = SKIP,
471
+ is_partner_sites_included = SKIP,
472
+ is_shell_sites_only = SKIP,
473
+ issue_date = SKIP,
474
+ is_superseded = SKIP,
475
+ is_virtual_card = SKIP,
476
+ last_modified_date = SKIP,
477
+ last_used_date = SKIP,
478
+ local_currency_code = SKIP,
479
+ local_currency_symbol = SKIP,
480
+ odometer_input = SKIP,
481
+ pan = SKIP,
482
+ purchase_category_code = SKIP,
483
+ purchase_category_id = SKIP,
484
+ purchase_category_name = SKIP,
485
+ reason = SKIP,
486
+ reissue_setting = SKIP,
487
+ status_description = SKIP,
488
+ status_id = SKIP,
489
+ token_type_id = SKIP,
490
+ token_type_name = SKIP,
491
+ vrn = SKIP,
492
+ client_reference_id = SKIP,
493
+ is_emv_contact = SKIP,
494
+ is_emv_contactless = SKIP,
495
+ is_rfid = SKIP,
496
+ rfiduid = SKIP,
497
+ emaid = SKIP,
498
+ ev_printed_number = SKIP,
499
+ card_media_code = SKIP)
500
+ @account_id = account_id unless account_id == SKIP
501
+ @account_name = account_name unless account_name == SKIP
502
+ @account_number = account_number unless account_number == SKIP
503
+ @account_short_name = account_short_name unless account_short_name == SKIP
504
+ @bundle_id = bundle_id unless bundle_id == SKIP
505
+ @card_block_schedules = card_block_schedules unless card_block_schedules == SKIP
506
+ @card_group_id = card_group_id unless card_group_id == SKIP
507
+ @card_group_name = card_group_name unless card_group_name == SKIP
508
+ @card_id = card_id unless card_id == SKIP
509
+ @card_type_code = card_type_code unless card_type_code == SKIP
510
+ @card_type_id = card_type_id unless card_type_id == SKIP
511
+ @card_type_name = card_type_name unless card_type_name == SKIP
512
+ @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP
513
+ @creation_date = creation_date unless creation_date == SKIP
514
+ @driver_name = driver_name unless driver_name == SKIP
515
+ @effective_date = effective_date unless effective_date == SKIP
516
+ @expiry_date = expiry_date unless expiry_date == SKIP
517
+ @fleet_id_input = fleet_id_input unless fleet_id_input == SKIP
518
+ @is_crt = is_crt unless is_crt == SKIP
519
+ @is_fleet = is_fleet unless is_fleet == SKIP
520
+ @is_international = is_international unless is_international == SKIP
521
+ @is_national = is_national unless is_national == SKIP
522
+ unless is_partner_sites_included == SKIP
523
+ @is_partner_sites_included =
524
+ is_partner_sites_included
525
+ end
526
+ @is_shell_sites_only = is_shell_sites_only unless is_shell_sites_only == SKIP
527
+ @issue_date = issue_date unless issue_date == SKIP
528
+ @is_superseded = is_superseded unless is_superseded == SKIP
529
+ @is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
530
+ @last_modified_date = last_modified_date unless last_modified_date == SKIP
531
+ @last_used_date = last_used_date unless last_used_date == SKIP
532
+ @local_currency_code = local_currency_code unless local_currency_code == SKIP
533
+ @local_currency_symbol = local_currency_symbol unless local_currency_symbol == SKIP
534
+ @odometer_input = odometer_input unless odometer_input == SKIP
535
+ @pan = pan unless pan == SKIP
536
+ @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP
537
+ @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP
538
+ @purchase_category_name = purchase_category_name unless purchase_category_name == SKIP
539
+ @reason = reason unless reason == SKIP
540
+ @reissue_setting = reissue_setting unless reissue_setting == SKIP
541
+ @status_description = status_description unless status_description == SKIP
542
+ @status_id = status_id unless status_id == SKIP
543
+ @token_type_id = token_type_id unless token_type_id == SKIP
544
+ @token_type_name = token_type_name unless token_type_name == SKIP
545
+ @vrn = vrn unless vrn == SKIP
546
+ @client_reference_id = client_reference_id unless client_reference_id == SKIP
547
+ @is_emv_contact = is_emv_contact unless is_emv_contact == SKIP
548
+ @is_emv_contactless = is_emv_contactless unless is_emv_contactless == SKIP
549
+ @is_rfid = is_rfid unless is_rfid == SKIP
550
+ @rfiduid = rfiduid unless rfiduid == SKIP
551
+ @emaid = emaid unless emaid == SKIP
552
+ @ev_printed_number = ev_printed_number unless ev_printed_number == SKIP
553
+ @card_media_code = card_media_code unless card_media_code == SKIP
554
+ end
555
+
556
+ # Creates an instance of the object from a hash.
557
+ def self.from_hash(hash)
558
+ return nil unless hash
559
+
560
+ # Extract variables from the hash.
561
+ account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
562
+ account_name = hash.key?('AccountName') ? hash['AccountName'] : SKIP
563
+ account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
564
+ account_short_name =
565
+ hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
566
+ bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
567
+ # Parameter is an array, so we need to iterate through it
568
+ card_block_schedules = nil
569
+ unless hash['CardBlockSchedules'].nil?
570
+ card_block_schedules = []
571
+ hash['CardBlockSchedules'].each do |structure|
572
+ card_block_schedules << (CardBlockSchedule.from_hash(structure) if structure)
573
+ end
574
+ end
575
+
576
+ card_block_schedules = SKIP unless hash.key?('CardBlockSchedules')
577
+ card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
578
+ card_group_name =
579
+ hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
580
+ card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
581
+ card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP
582
+ card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
583
+ card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
584
+ col_co_country_code =
585
+ hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP
586
+ creation_date = hash.key?('CreationDate') ? hash['CreationDate'] : SKIP
587
+ driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
588
+ effective_date = hash.key?('EffectiveDate') ? hash['EffectiveDate'] : SKIP
589
+ expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
590
+ fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : SKIP
591
+ is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP
592
+ is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP
593
+ is_international =
594
+ hash.key?('IsInternational') ? hash['IsInternational'] : SKIP
595
+ is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP
596
+ is_partner_sites_included =
597
+ hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP
598
+ is_shell_sites_only =
599
+ hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP
600
+ issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
601
+ is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
602
+ is_virtual_card =
603
+ hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
604
+ last_modified_date =
605
+ hash.key?('LastModifiedDate') ? hash['LastModifiedDate'] : SKIP
606
+ last_used_date = hash.key?('LastUsedDate') ? hash['LastUsedDate'] : SKIP
607
+ local_currency_code =
608
+ hash.key?('LocalCurrencyCode') ? hash['LocalCurrencyCode'] : SKIP
609
+ local_currency_symbol =
610
+ hash.key?('LocalCurrencySymbol') ? hash['LocalCurrencySymbol'] : SKIP
611
+ odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
612
+ pan = hash.key?('PAN') ? hash['PAN'] : SKIP
613
+ purchase_category_code =
614
+ hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP
615
+ purchase_category_id =
616
+ hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP
617
+ purchase_category_name =
618
+ hash.key?('PurchaseCategoryName') ? hash['PurchaseCategoryName'] : SKIP
619
+ reason = hash.key?('Reason') ? hash['Reason'] : SKIP
620
+ reissue_setting =
621
+ hash.key?('ReissueSetting') ? hash['ReissueSetting'] : SKIP
622
+ status_description =
623
+ hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
624
+ status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP
625
+ token_type_id = hash.key?('TokenTypeID') ? hash['TokenTypeID'] : SKIP
626
+ token_type_name =
627
+ hash.key?('TokenTypeName') ? hash['TokenTypeName'] : SKIP
628
+ vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
629
+ client_reference_id =
630
+ hash.key?('ClientReferenceId') ? hash['ClientReferenceId'] : SKIP
631
+ is_emv_contact = hash.key?('IsEMVContact') ? hash['IsEMVContact'] : SKIP
632
+ is_emv_contactless =
633
+ hash.key?('IsEMVContactless') ? hash['IsEMVContactless'] : SKIP
634
+ is_rfid = hash.key?('IsRFID') ? hash['IsRFID'] : SKIP
635
+ rfiduid = hash.key?('RFIDUID') ? hash['RFIDUID'] : SKIP
636
+ emaid = hash.key?('EMAID') ? hash['EMAID'] : SKIP
637
+ ev_printed_number =
638
+ hash.key?('EVPrintedNumber') ? hash['EVPrintedNumber'] : SKIP
639
+ card_media_code =
640
+ hash.key?('CardMediaCode') ? hash['CardMediaCode'] : SKIP
641
+
642
+ # Create object from extracted values.
643
+ Card.new(account_id,
644
+ account_name,
645
+ account_number,
646
+ account_short_name,
647
+ bundle_id,
648
+ card_block_schedules,
649
+ card_group_id,
650
+ card_group_name,
651
+ card_id,
652
+ card_type_code,
653
+ card_type_id,
654
+ card_type_name,
655
+ col_co_country_code,
656
+ creation_date,
657
+ driver_name,
658
+ effective_date,
659
+ expiry_date,
660
+ fleet_id_input,
661
+ is_crt,
662
+ is_fleet,
663
+ is_international,
664
+ is_national,
665
+ is_partner_sites_included,
666
+ is_shell_sites_only,
667
+ issue_date,
668
+ is_superseded,
669
+ is_virtual_card,
670
+ last_modified_date,
671
+ last_used_date,
672
+ local_currency_code,
673
+ local_currency_symbol,
674
+ odometer_input,
675
+ pan,
676
+ purchase_category_code,
677
+ purchase_category_id,
678
+ purchase_category_name,
679
+ reason,
680
+ reissue_setting,
681
+ status_description,
682
+ status_id,
683
+ token_type_id,
684
+ token_type_name,
685
+ vrn,
686
+ client_reference_id,
687
+ is_emv_contact,
688
+ is_emv_contactless,
689
+ is_rfid,
690
+ rfiduid,
691
+ emaid,
692
+ ev_printed_number,
693
+ card_media_code)
694
+ end
695
+ end
696
+ end