card-management-sdk 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -19
  3. data/lib/shell_card_management_ap_is/client.rb +2 -3
  4. data/lib/shell_card_management_ap_is/configuration.rb +15 -22
  5. data/lib/shell_card_management_ap_is/controllers/card_controller.rb +227 -232
  6. data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
  7. data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
  8. data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
  9. data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
  10. data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
  11. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
  12. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
  13. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
  14. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
  15. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
  16. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
  17. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
  18. data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
  19. data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
  20. data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
  21. data/lib/shell_card_management_ap_is/models/account_request.rb +6 -15
  22. data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
  23. data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +21 -45
  24. data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
  25. data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
  26. data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
  27. data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
  28. data/lib/shell_card_management_ap_is/models/address.rb +4 -11
  29. data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -21
  30. data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
  31. data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +9 -22
  32. data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
  33. data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +2 -5
  34. data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
  35. data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +1 -2
  36. data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
  37. data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
  38. data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
  39. data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
  40. data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +73 -103
  41. data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -0
  42. data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
  43. data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +88 -0
  44. data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
  45. data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
  46. data/lib/shell_card_management_ap_is/models/card.rb +23 -50
  47. data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
  48. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
  49. data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
  50. data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
  51. data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
  52. data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
  53. data/lib/shell_card_management_ap_is/models/card_detail.rb +36 -49
  54. data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
  55. data/lib/shell_card_management_ap_is/models/card_details_response.rb +60 -249
  56. data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
  57. data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
  58. data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
  59. data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
  60. data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
  61. data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -9
  62. data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
  63. data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
  64. data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
  65. data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
  66. data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
  67. data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
  68. data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
  69. data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
  70. data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
  71. data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
  72. data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
  73. data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
  74. data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
  75. data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
  76. data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
  77. data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
  78. data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
  79. data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
  80. data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
  81. data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
  82. data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
  83. data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
  84. data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
  85. data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
  86. data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +65 -62
  87. data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
  88. data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
  89. data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
  90. data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
  91. data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
  92. data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
  93. data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
  94. data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
  95. data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
  96. data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +13 -27
  97. data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
  98. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
  99. data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
  100. data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
  101. data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
  102. data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
  103. data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
  104. data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
  105. data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
  106. data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
  107. data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
  108. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → detail.rb} +11 -11
  109. data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
  110. data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
  111. data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
  112. data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
  113. data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
  114. data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
  115. data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
  116. data/lib/shell_card_management_ap_is/models/filters2.rb +194 -0
  117. data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
  118. data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
  119. data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
  120. data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
  121. data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
  122. data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
  123. data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
  124. data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +9 -22
  125. data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
  126. data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
  127. data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +22 -40
  128. data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
  129. data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
  130. data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
  131. data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
  132. data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
  133. data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
  134. data/lib/shell_card_management_ap_is/models/payer_details.rb +45 -86
  135. data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
  136. data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
  137. data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
  138. data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +1 -2
  139. data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
  140. data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
  141. data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
  142. data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
  143. data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
  144. data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +12 -10
  145. data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
  146. data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
  147. data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
  148. data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
  149. data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
  150. data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
  151. data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
  152. data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +2 -7
  153. data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
  154. data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
  155. data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +15 -30
  156. data/lib/shell_card_management_ap_is/models/restriction.rb +88 -0
  157. data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
  158. data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +66 -83
  159. data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
  160. data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
  161. data/lib/shell_card_management_ap_is/models/role.rb +3 -6
  162. data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +5 -14
  163. data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
  164. data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
  165. data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
  166. data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
  167. data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
  168. data/lib/shell_card_management_ap_is/models/search_card.rb +1 -2
  169. data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
  170. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
  171. data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
  172. data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
  173. data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
  174. data/lib/shell_card_management_ap_is/models/search_request.rb +19 -41
  175. data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
  176. data/lib/shell_card_management_ap_is/models/submitted_card.rb +4 -10
  177. data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
  178. data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
  179. data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
  180. data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
  181. data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +58 -63
  182. data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
  183. data/lib/shell_card_management_ap_is/models/update_card.rb +21 -20
  184. data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
  185. data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
  186. data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
  187. data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +3 -9
  188. data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
  189. data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
  190. data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
  191. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
  192. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +2 -4
  193. data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
  194. data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
  195. data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
  196. data/lib/shell_card_management_ap_is.rb +128 -101
  197. metadata +60 -33
  198. data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
  199. data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
  200. data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +0 -162
  201. data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
  202. data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
  203. data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
  204. data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
  205. data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
  206. data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -0,0 +1,626 @@
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
+ # CardSettings Model.
8
+ class CardSettings < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The encrypted value of self-selected PIN.<br />
13
+ # Optional – When not provided, the PIN will be auto generated(if the card
14
+ # token type supports PIN) and delivered based on the given PIN delivery
15
+ # option.<br />
16
+ # Max Length: 256
17
+ # @return [String]
18
+ attr_accessor :self_selected_encrypted_pin
19
+
20
+ # KeyId of the PIN encrypted value.<br />
21
+ # Mandatory, if opted for self-selected PIN else optional.<br />
22
+ # Max Length: 30
23
+ # @return [String]
24
+ attr_accessor :self_selected_pin_key_id
25
+
26
+ # Encoded message of the TCS form which is used for encrypting the PIN of
27
+ # this card.<br />
28
+ # The encode message forms are provided to clients by another API
29
+ # (“TCS”).<br />
30
+ # Instructions to encrypt the PIN is covered in the related API
31
+ # specifications document.<br />
32
+ # Mandatory –If opted for self-selected PIN else optional.
33
+ # Max Length: 1024
34
+ # @return [String]
35
+ attr_accessor :self_selected_pin_session_key
36
+
37
+ # True/False.<br />
38
+ # Optional <br />
39
+ # Default: False<br />
40
+ # For cards ordered with Validate Fleet Id parameter set to true, CFGW will
41
+ # be notified to enable this validation for the card.<br />
42
+ # Note: When “FleetIdInputRequired” is not set on the card, validate fleet
43
+ # id will be considered false regardless of the value passed on this
44
+ # parameter.
45
+ # @return [TrueClass | FalseClass]
46
+ attr_accessor :validate_fleet_id
47
+
48
+ # Existing Card Group ID, under which the replacement card is to be
49
+ # created.<br />
50
+ # Pass “-1” if the replacement card should not be assigned to any card
51
+ # group.<br />
52
+ # Optional <br />
53
+ # If not provided, the replacement card will be created under the same card
54
+ # group as the current card.
55
+ # @return [Integer]
56
+ attr_accessor :card_group_id
57
+
58
+ # Card delivery type.<br />
59
+ # Mandatory <br />
60
+ # Allowed Value: <br />
61
+ # 1. Customer Address(Default) <br />
62
+ # 2. New Delivery Address <br />
63
+ # 3. Old Card Address
64
+ # @return [Integer]
65
+ attr_accessor :card_delivery_type
66
+
67
+ # Title of the contact person. <br />
68
+ # Optional<br />
69
+ # Max field length: 10
70
+ # @return [String]
71
+ attr_accessor :delivery_contact_title
72
+
73
+ # Name of the contact person <br />
74
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
75
+ # as true.<br />
76
+ # Max field length: 50
77
+ # @return [String]
78
+ attr_accessor :delivery_contact_name
79
+
80
+ # Company name <br />
81
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
82
+ # as true.
83
+ # Max field length: 50
84
+ # @return [String]
85
+ attr_accessor :delivery_company_name
86
+
87
+ # Address line 1 <br />
88
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
89
+ # as true.<br />
90
+ # Max field length: 40
91
+ # @return [String]
92
+ attr_accessor :delivery_address_line1
93
+
94
+ # Address line 2 <br />
95
+ # Optional <br />
96
+ # Max field length: 40
97
+ # @return [String]
98
+ attr_accessor :delivery_address_line2
99
+
100
+ # Address line 3 <br />
101
+ # Optional<br />
102
+ # Max field length: 40
103
+ # @return [String]
104
+ attr_accessor :delivery_address_line3
105
+
106
+ # ZIP code <br />
107
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
108
+ # as true.<br />
109
+ # Max field length: 10
110
+ # @return [String]
111
+ attr_accessor :delivery_zip_code
112
+
113
+ # City <br />
114
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
115
+ # as true.<br />
116
+ # Max field length: 40
117
+ # @return [String]
118
+ attr_accessor :delivery_city
119
+
120
+ # Region Id <br />
121
+ # Optional
122
+ # @return [Integer]
123
+ attr_accessor :delivery_region_id
124
+
125
+ # Region <br />
126
+ # Optional<br />
127
+ # When region is passed
128
+ # @return [String]
129
+ attr_accessor :delivery_region
130
+
131
+ # The ISO code of the country.<br />
132
+ # Mandatory - If CardDeliveryType is 2 and OrderCardReplacement is passed
133
+ # as true
134
+ # @return [String]
135
+ attr_accessor :delivery_country
136
+
137
+ # The countryId of gicen country.<br />
138
+ # @return [Integer]
139
+ attr_accessor :delivery_country_id
140
+
141
+ # Phone number for to send SMS. <br />
142
+ # Optional<br />
143
+ # Max field length: 20
144
+ # @return [String]
145
+ attr_accessor :phone_number
146
+
147
+ # Email address for to send email.<br />
148
+ # Mandatory if PINAdviceType is email else optional.<br />
149
+ # Max field length: 90
150
+ # @return [String]
151
+ attr_accessor :email_address
152
+
153
+ # PIN delivery address type selection.<br />
154
+ # Optional<br />
155
+ # Allowed Values:<br />
156
+ # 1. Customer Address(Default)<br />
157
+ # 2. Card Address<br />
158
+ # 3. New Delivery Address
159
+ # @return [Integer]
160
+ attr_accessor :pin_delivery_address_type
161
+
162
+ # PIN delivery method.<br />
163
+ # Mandatory when OrderReplacement Is true.<br />
164
+ # Allowed Values:<br />
165
+ # 1. Paper<br />
166
+ # 2. Email<br />
167
+ # 3. SMS<br />
168
+ # 4. None
169
+ # @return [Integer]
170
+ attr_accessor :pin_advice_type
171
+
172
+ # Title of the contact person.<br />
173
+ # Optional <br />
174
+ # Max field length: 10
175
+ # @return [String]
176
+ attr_accessor :pin_delivery_contact_title
177
+
178
+ # Name of the contact person.<br />
179
+ # Mandatory - If PINAdviceType is paper else optional.<br />
180
+ # Max field length: 50
181
+ # @return [String]
182
+ attr_accessor :pin_delivery_contact_name
183
+
184
+ # Company name.<br />
185
+ # Mandatory - If PINAdviceType is paper else optional.<br />
186
+ # Max field length: 50
187
+ # @return [String]
188
+ attr_accessor :pin_delivery_company_name
189
+
190
+ # Address line 1.<br />
191
+ # Mandatory - If PINAdviceType is paper else optional.<br />
192
+ # Max field length: 40
193
+ # @return [String]
194
+ attr_accessor :pin_delivery_address_line1
195
+
196
+ # Address line 2.<br />
197
+ # Optional <br />
198
+ # Max field length: 40
199
+ # @return [String]
200
+ attr_accessor :pin_delivery_address_line2
201
+
202
+ # Address line 3.<br />
203
+ # Optional <br />
204
+ # Max field length: 40
205
+ # @return [String]
206
+ attr_accessor :pin_delivery_address_line3
207
+
208
+ # ZIP code.<br />
209
+ # Mandatory - if PINAdviceType is paper else optional. <br />
210
+ # Max field length: 10
211
+ # @return [String]
212
+ attr_accessor :pin_delivery_zip_code
213
+
214
+ # City.<br />
215
+ # Mandatory - If PINAdviceType is paper else optional. <br />
216
+ # Max field length: 40
217
+ # @return [String]
218
+ attr_accessor :pin_delivery_city
219
+
220
+ # Region Id.<br />
221
+ # Optional
222
+ # @return [Integer]
223
+ attr_accessor :pin_delivery_region_id
224
+
225
+ # Region.<br />
226
+ # When region is passed
227
+ # @return [String]
228
+ attr_accessor :pin_delivery_region
229
+
230
+ # The ISO code of the country.<br />
231
+ # Mappings for ISO code <br />
232
+ # Mandatory if PINAdviceType is paper else optional.
233
+ # @return [String]
234
+ attr_accessor :pin_delivery_country
235
+
236
+ # The countryId of the country.<br />
237
+ # Mappings for ISO code<br />
238
+ # This is not an input parameter.
239
+ # @return [Integer]
240
+ attr_accessor :pin_delivery_country_id
241
+
242
+ # Phone number for to send SMS of the PIN in case PINAdviceType is SMS.<br
243
+ # />
244
+ # Mandatory if PINAdviceType is SMS else optional.<br />
245
+ # Max field length: 20
246
+ # @return [String]
247
+ attr_accessor :pin_phone_number
248
+
249
+ # Email address for to send email of the PIN in case PINAdviceType is
250
+ # Email.<br />
251
+ # Mandatory if PINAdviceType is email else optional.<br />
252
+ # Max field length: 90
253
+ # @return [String]
254
+ attr_accessor :pin_email_address
255
+
256
+ # The given address will be used for sending PIN reminders in future when
257
+ # requested.<br />
258
+ # PIN Advice type should be Paper
259
+ # Optional
260
+ # @return [TrueClass | FalseClass]
261
+ attr_accessor :save_for_pin_reminder
262
+
263
+ # If this is specified, the contact address will be saved in cards platform
264
+ # for card reissue processing.<br />
265
+ # Optional
266
+ # @return [TrueClass | FalseClass]
267
+ attr_accessor :save_for_card_reissue
268
+
269
+ # Expiry Date for newly created card to be update in cards plot form.<br />
270
+ # Optional <br />
271
+ # Format: MMyy <br />
272
+ # Eg:1221 <br />
273
+ # If not apply the default Expiry Date.<br />
274
+ # Note:<br />
275
+ # There is a limit to the ExpiryDate which the user can choose for the Card.
276
+ #
277
+ # If the user chooses a later ExpiryDate than the allowed value for the
278
+ # CardType of the OU,
279
+ # the background service logs the respective error code and description
280
+ # @return [String]
281
+ attr_accessor :expiry_date
282
+
283
+ # A mapping from model property names to API property names.
284
+ def self.names
285
+ @_hash = {} if @_hash.nil?
286
+ @_hash['self_selected_encrypted_pin'] = 'SelfSelectedEncryptedPIN'
287
+ @_hash['self_selected_pin_key_id'] = 'SelfSelectedPINKeyID'
288
+ @_hash['self_selected_pin_session_key'] = 'SelfSelectedPINSessionKey'
289
+ @_hash['validate_fleet_id'] = 'ValidateFleetId'
290
+ @_hash['card_group_id'] = 'CardGroupId'
291
+ @_hash['card_delivery_type'] = 'CardDeliveryType'
292
+ @_hash['delivery_contact_title'] = 'DeliveryContactTitle'
293
+ @_hash['delivery_contact_name'] = 'DeliveryContactName'
294
+ @_hash['delivery_company_name'] = 'DeliveryCompanyName'
295
+ @_hash['delivery_address_line1'] = 'DeliveryAddressLine1'
296
+ @_hash['delivery_address_line2'] = 'DeliveryAddressLine2'
297
+ @_hash['delivery_address_line3'] = 'DeliveryAddressLine3'
298
+ @_hash['delivery_zip_code'] = 'DeliveryZipCode'
299
+ @_hash['delivery_city'] = 'DeliveryCity'
300
+ @_hash['delivery_region_id'] = 'DeliveryRegionId'
301
+ @_hash['delivery_region'] = 'DeliveryRegion'
302
+ @_hash['delivery_country'] = 'DeliveryCountry'
303
+ @_hash['delivery_country_id'] = 'DeliveryCountryId'
304
+ @_hash['phone_number'] = 'PhoneNumber'
305
+ @_hash['email_address'] = 'EmailAddress'
306
+ @_hash['pin_delivery_address_type'] = 'PINDeliveryAddressType'
307
+ @_hash['pin_advice_type'] = 'PINAdviceType'
308
+ @_hash['pin_delivery_contact_title'] = 'PINDeliveryContactTitle'
309
+ @_hash['pin_delivery_contact_name'] = 'PINDeliveryContactName'
310
+ @_hash['pin_delivery_company_name'] = 'PINDeliveryCompanyName'
311
+ @_hash['pin_delivery_address_line1'] = 'PINDeliveryAddressLine1'
312
+ @_hash['pin_delivery_address_line2'] = 'PINDeliveryAddressLine2'
313
+ @_hash['pin_delivery_address_line3'] = 'PINDeliveryAddressLine3'
314
+ @_hash['pin_delivery_zip_code'] = 'PINDeliveryZipCode'
315
+ @_hash['pin_delivery_city'] = 'PINDeliveryCity'
316
+ @_hash['pin_delivery_region_id'] = 'PINDeliveryRegionId'
317
+ @_hash['pin_delivery_region'] = 'PINDeliveryRegion'
318
+ @_hash['pin_delivery_country'] = 'PINDeliveryCountry'
319
+ @_hash['pin_delivery_country_id'] = 'PINDeliveryCountryId'
320
+ @_hash['pin_phone_number'] = 'PINPhoneNumber'
321
+ @_hash['pin_email_address'] = 'PINEmailAddress'
322
+ @_hash['save_for_pin_reminder'] = 'SaveForPINReminder'
323
+ @_hash['save_for_card_reissue'] = 'SaveForCardReissue'
324
+ @_hash['expiry_date'] = 'ExpiryDate'
325
+ @_hash
326
+ end
327
+
328
+ # An array for optional fields
329
+ def self.optionals
330
+ %w[
331
+ self_selected_encrypted_pin
332
+ self_selected_pin_key_id
333
+ self_selected_pin_session_key
334
+ validate_fleet_id
335
+ card_group_id
336
+ delivery_contact_title
337
+ delivery_contact_name
338
+ delivery_company_name
339
+ delivery_address_line1
340
+ delivery_address_line2
341
+ delivery_address_line3
342
+ delivery_zip_code
343
+ delivery_city
344
+ delivery_region_id
345
+ delivery_region
346
+ delivery_country
347
+ delivery_country_id
348
+ phone_number
349
+ email_address
350
+ pin_delivery_address_type
351
+ pin_advice_type
352
+ pin_delivery_contact_title
353
+ pin_delivery_contact_name
354
+ pin_delivery_company_name
355
+ pin_delivery_address_line1
356
+ pin_delivery_address_line2
357
+ pin_delivery_address_line3
358
+ pin_delivery_zip_code
359
+ pin_delivery_city
360
+ pin_delivery_region_id
361
+ pin_delivery_region
362
+ pin_delivery_country
363
+ pin_delivery_country_id
364
+ pin_phone_number
365
+ pin_email_address
366
+ save_for_pin_reminder
367
+ save_for_card_reissue
368
+ expiry_date
369
+ ]
370
+ end
371
+
372
+ # An array for nullable fields
373
+ def self.nullables
374
+ %w[
375
+ self_selected_encrypted_pin
376
+ self_selected_pin_key_id
377
+ self_selected_pin_session_key
378
+ card_group_id
379
+ card_delivery_type
380
+ delivery_contact_title
381
+ delivery_contact_name
382
+ delivery_company_name
383
+ delivery_address_line1
384
+ delivery_address_line2
385
+ delivery_address_line3
386
+ delivery_zip_code
387
+ delivery_city
388
+ delivery_region_id
389
+ delivery_region
390
+ delivery_country
391
+ delivery_country_id
392
+ email_address
393
+ pin_delivery_address_type
394
+ pin_advice_type
395
+ pin_delivery_contact_title
396
+ pin_delivery_contact_name
397
+ pin_delivery_company_name
398
+ pin_delivery_address_line1
399
+ pin_delivery_address_line2
400
+ pin_delivery_address_line3
401
+ pin_delivery_zip_code
402
+ pin_delivery_city
403
+ pin_delivery_region_id
404
+ pin_delivery_region
405
+ pin_delivery_country
406
+ pin_delivery_country_id
407
+ pin_phone_number
408
+ pin_email_address
409
+ expiry_date
410
+ ]
411
+ end
412
+
413
+ def initialize(card_delivery_type = nil, self_selected_encrypted_pin = SKIP,
414
+ self_selected_pin_key_id = SKIP,
415
+ self_selected_pin_session_key = SKIP,
416
+ validate_fleet_id = SKIP, card_group_id = SKIP,
417
+ delivery_contact_title = SKIP, delivery_contact_name = SKIP,
418
+ delivery_company_name = SKIP, delivery_address_line1 = SKIP,
419
+ delivery_address_line2 = SKIP, delivery_address_line3 = SKIP,
420
+ delivery_zip_code = SKIP, delivery_city = SKIP,
421
+ delivery_region_id = SKIP, delivery_region = SKIP,
422
+ delivery_country = SKIP, delivery_country_id = SKIP,
423
+ phone_number = SKIP, email_address = SKIP,
424
+ pin_delivery_address_type = SKIP, pin_advice_type = SKIP,
425
+ pin_delivery_contact_title = SKIP,
426
+ pin_delivery_contact_name = SKIP,
427
+ pin_delivery_company_name = SKIP,
428
+ pin_delivery_address_line1 = SKIP,
429
+ pin_delivery_address_line2 = SKIP,
430
+ pin_delivery_address_line3 = SKIP,
431
+ pin_delivery_zip_code = SKIP, pin_delivery_city = SKIP,
432
+ pin_delivery_region_id = SKIP, pin_delivery_region = SKIP,
433
+ pin_delivery_country = SKIP, pin_delivery_country_id = SKIP,
434
+ pin_phone_number = SKIP, pin_email_address = SKIP,
435
+ save_for_pin_reminder = SKIP, save_for_card_reissue = SKIP,
436
+ expiry_date = SKIP)
437
+ unless self_selected_encrypted_pin == SKIP
438
+ @self_selected_encrypted_pin =
439
+ self_selected_encrypted_pin
440
+ end
441
+ @self_selected_pin_key_id = self_selected_pin_key_id unless self_selected_pin_key_id == SKIP
442
+ unless self_selected_pin_session_key == SKIP
443
+ @self_selected_pin_session_key =
444
+ self_selected_pin_session_key
445
+ end
446
+ @validate_fleet_id = validate_fleet_id unless validate_fleet_id == SKIP
447
+ @card_group_id = card_group_id unless card_group_id == SKIP
448
+ @card_delivery_type = card_delivery_type
449
+ @delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
450
+ @delivery_contact_name = delivery_contact_name unless delivery_contact_name == SKIP
451
+ @delivery_company_name = delivery_company_name unless delivery_company_name == SKIP
452
+ @delivery_address_line1 = delivery_address_line1 unless delivery_address_line1 == SKIP
453
+ @delivery_address_line2 = delivery_address_line2 unless delivery_address_line2 == SKIP
454
+ @delivery_address_line3 = delivery_address_line3 unless delivery_address_line3 == SKIP
455
+ @delivery_zip_code = delivery_zip_code unless delivery_zip_code == SKIP
456
+ @delivery_city = delivery_city unless delivery_city == SKIP
457
+ @delivery_region_id = delivery_region_id unless delivery_region_id == SKIP
458
+ @delivery_region = delivery_region unless delivery_region == SKIP
459
+ @delivery_country = delivery_country unless delivery_country == SKIP
460
+ @delivery_country_id = delivery_country_id unless delivery_country_id == SKIP
461
+ @phone_number = phone_number unless phone_number == SKIP
462
+ @email_address = email_address unless email_address == SKIP
463
+ unless pin_delivery_address_type == SKIP
464
+ @pin_delivery_address_type =
465
+ pin_delivery_address_type
466
+ end
467
+ @pin_advice_type = pin_advice_type unless pin_advice_type == SKIP
468
+ unless pin_delivery_contact_title == SKIP
469
+ @pin_delivery_contact_title =
470
+ pin_delivery_contact_title
471
+ end
472
+ unless pin_delivery_contact_name == SKIP
473
+ @pin_delivery_contact_name =
474
+ pin_delivery_contact_name
475
+ end
476
+ unless pin_delivery_company_name == SKIP
477
+ @pin_delivery_company_name =
478
+ pin_delivery_company_name
479
+ end
480
+ unless pin_delivery_address_line1 == SKIP
481
+ @pin_delivery_address_line1 =
482
+ pin_delivery_address_line1
483
+ end
484
+ unless pin_delivery_address_line2 == SKIP
485
+ @pin_delivery_address_line2 =
486
+ pin_delivery_address_line2
487
+ end
488
+ unless pin_delivery_address_line3 == SKIP
489
+ @pin_delivery_address_line3 =
490
+ pin_delivery_address_line3
491
+ end
492
+ @pin_delivery_zip_code = pin_delivery_zip_code unless pin_delivery_zip_code == SKIP
493
+ @pin_delivery_city = pin_delivery_city unless pin_delivery_city == SKIP
494
+ @pin_delivery_region_id = pin_delivery_region_id unless pin_delivery_region_id == SKIP
495
+ @pin_delivery_region = pin_delivery_region unless pin_delivery_region == SKIP
496
+ @pin_delivery_country = pin_delivery_country unless pin_delivery_country == SKIP
497
+ @pin_delivery_country_id = pin_delivery_country_id unless pin_delivery_country_id == SKIP
498
+ @pin_phone_number = pin_phone_number unless pin_phone_number == SKIP
499
+ @pin_email_address = pin_email_address unless pin_email_address == SKIP
500
+ @save_for_pin_reminder = save_for_pin_reminder unless save_for_pin_reminder == SKIP
501
+ @save_for_card_reissue = save_for_card_reissue unless save_for_card_reissue == SKIP
502
+ @expiry_date = expiry_date unless expiry_date == SKIP
503
+ end
504
+
505
+ # Creates an instance of the object from a hash.
506
+ def self.from_hash(hash)
507
+ return nil unless hash
508
+
509
+ # Extract variables from the hash.
510
+ card_delivery_type =
511
+ hash.key?('CardDeliveryType') ? hash['CardDeliveryType'] : nil
512
+ self_selected_encrypted_pin =
513
+ hash.key?('SelfSelectedEncryptedPIN') ? hash['SelfSelectedEncryptedPIN'] : SKIP
514
+ self_selected_pin_key_id =
515
+ hash.key?('SelfSelectedPINKeyID') ? hash['SelfSelectedPINKeyID'] : SKIP
516
+ self_selected_pin_session_key =
517
+ hash.key?('SelfSelectedPINSessionKey') ? hash['SelfSelectedPINSessionKey'] : SKIP
518
+ validate_fleet_id =
519
+ hash.key?('ValidateFleetId') ? hash['ValidateFleetId'] : SKIP
520
+ card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
521
+ delivery_contact_title =
522
+ hash.key?('DeliveryContactTitle') ? hash['DeliveryContactTitle'] : SKIP
523
+ delivery_contact_name =
524
+ hash.key?('DeliveryContactName') ? hash['DeliveryContactName'] : SKIP
525
+ delivery_company_name =
526
+ hash.key?('DeliveryCompanyName') ? hash['DeliveryCompanyName'] : SKIP
527
+ delivery_address_line1 =
528
+ hash.key?('DeliveryAddressLine1') ? hash['DeliveryAddressLine1'] : SKIP
529
+ delivery_address_line2 =
530
+ hash.key?('DeliveryAddressLine2') ? hash['DeliveryAddressLine2'] : SKIP
531
+ delivery_address_line3 =
532
+ hash.key?('DeliveryAddressLine3') ? hash['DeliveryAddressLine3'] : SKIP
533
+ delivery_zip_code =
534
+ hash.key?('DeliveryZipCode') ? hash['DeliveryZipCode'] : SKIP
535
+ delivery_city = hash.key?('DeliveryCity') ? hash['DeliveryCity'] : SKIP
536
+ delivery_region_id =
537
+ hash.key?('DeliveryRegionId') ? hash['DeliveryRegionId'] : SKIP
538
+ delivery_region =
539
+ hash.key?('DeliveryRegion') ? hash['DeliveryRegion'] : SKIP
540
+ delivery_country =
541
+ hash.key?('DeliveryCountry') ? hash['DeliveryCountry'] : SKIP
542
+ delivery_country_id =
543
+ hash.key?('DeliveryCountryId') ? hash['DeliveryCountryId'] : SKIP
544
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
545
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
546
+ pin_delivery_address_type =
547
+ hash.key?('PINDeliveryAddressType') ? hash['PINDeliveryAddressType'] : SKIP
548
+ pin_advice_type =
549
+ hash.key?('PINAdviceType') ? hash['PINAdviceType'] : SKIP
550
+ pin_delivery_contact_title =
551
+ hash.key?('PINDeliveryContactTitle') ? hash['PINDeliveryContactTitle'] : SKIP
552
+ pin_delivery_contact_name =
553
+ hash.key?('PINDeliveryContactName') ? hash['PINDeliveryContactName'] : SKIP
554
+ pin_delivery_company_name =
555
+ hash.key?('PINDeliveryCompanyName') ? hash['PINDeliveryCompanyName'] : SKIP
556
+ pin_delivery_address_line1 =
557
+ hash.key?('PINDeliveryAddressLine1') ? hash['PINDeliveryAddressLine1'] : SKIP
558
+ pin_delivery_address_line2 =
559
+ hash.key?('PINDeliveryAddressLine2') ? hash['PINDeliveryAddressLine2'] : SKIP
560
+ pin_delivery_address_line3 =
561
+ hash.key?('PINDeliveryAddressLine3') ? hash['PINDeliveryAddressLine3'] : SKIP
562
+ pin_delivery_zip_code =
563
+ hash.key?('PINDeliveryZipCode') ? hash['PINDeliveryZipCode'] : SKIP
564
+ pin_delivery_city =
565
+ hash.key?('PINDeliveryCity') ? hash['PINDeliveryCity'] : SKIP
566
+ pin_delivery_region_id =
567
+ hash.key?('PINDeliveryRegionId') ? hash['PINDeliveryRegionId'] : SKIP
568
+ pin_delivery_region =
569
+ hash.key?('PINDeliveryRegion') ? hash['PINDeliveryRegion'] : SKIP
570
+ pin_delivery_country =
571
+ hash.key?('PINDeliveryCountry') ? hash['PINDeliveryCountry'] : SKIP
572
+ pin_delivery_country_id =
573
+ hash.key?('PINDeliveryCountryId') ? hash['PINDeliveryCountryId'] : SKIP
574
+ pin_phone_number =
575
+ hash.key?('PINPhoneNumber') ? hash['PINPhoneNumber'] : SKIP
576
+ pin_email_address =
577
+ hash.key?('PINEmailAddress') ? hash['PINEmailAddress'] : SKIP
578
+ save_for_pin_reminder =
579
+ hash.key?('SaveForPINReminder') ? hash['SaveForPINReminder'] : SKIP
580
+ save_for_card_reissue =
581
+ hash.key?('SaveForCardReissue') ? hash['SaveForCardReissue'] : SKIP
582
+ expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
583
+
584
+ # Create object from extracted values.
585
+ CardSettings.new(card_delivery_type,
586
+ self_selected_encrypted_pin,
587
+ self_selected_pin_key_id,
588
+ self_selected_pin_session_key,
589
+ validate_fleet_id,
590
+ card_group_id,
591
+ delivery_contact_title,
592
+ delivery_contact_name,
593
+ delivery_company_name,
594
+ delivery_address_line1,
595
+ delivery_address_line2,
596
+ delivery_address_line3,
597
+ delivery_zip_code,
598
+ delivery_city,
599
+ delivery_region_id,
600
+ delivery_region,
601
+ delivery_country,
602
+ delivery_country_id,
603
+ phone_number,
604
+ email_address,
605
+ pin_delivery_address_type,
606
+ pin_advice_type,
607
+ pin_delivery_contact_title,
608
+ pin_delivery_contact_name,
609
+ pin_delivery_company_name,
610
+ pin_delivery_address_line1,
611
+ pin_delivery_address_line2,
612
+ pin_delivery_address_line3,
613
+ pin_delivery_zip_code,
614
+ pin_delivery_city,
615
+ pin_delivery_region_id,
616
+ pin_delivery_region,
617
+ pin_delivery_country,
618
+ pin_delivery_country_id,
619
+ pin_phone_number,
620
+ pin_email_address,
621
+ save_for_pin_reminder,
622
+ save_for_card_reissue,
623
+ expiry_date)
624
+ end
625
+ end
626
+ end
@@ -9,10 +9,8 @@ module ShellCardManagementApIs
9
9
  SKIP = Object.new
10
10
  private_constant :SKIP
11
11
 
12
- # Encapsulates the details of a Summary Request.
13
- # Summary Request fields are same as the Search Request base class and no
14
- # new fields are required.
15
- # @return [SummaryRequest]
12
+ # TODO: Write general description for this method
13
+ # @return [Filters1]
16
14
  attr_accessor :filters
17
15
 
18
16
  # A mapping from model property names to API property names.
@@ -43,7 +41,7 @@ module ShellCardManagementApIs
43
41
  return nil unless hash
44
42
 
45
43
  # Extract variables from the hash.
46
- filters = SummaryRequest.from_hash(hash['Filters']) if hash['Filters']
44
+ filters = Filters1.from_hash(hash['Filters']) if hash['Filters']
47
45
 
48
46
  # Create object from extracted values.
49
47
  CardSummaryRequest.new(filters)
@@ -47,9 +47,7 @@ module ShellCardManagementApIs
47
47
  []
48
48
  end
49
49
 
50
- def initialize(request_id = SKIP,
51
- status = SKIP,
52
- data = SKIP)
50
+ def initialize(request_id = SKIP, status = SKIP, data = SKIP)
53
51
  @request_id = request_id unless request_id == SKIP
54
52
  @status = status unless status == SKIP
55
53
  @data = data unless data == SKIP
@@ -91,13 +91,9 @@ module ShellCardManagementApIs
91
91
  ]
92
92
  end
93
93
 
94
- def initialize(col_co_id = SKIP,
95
- col_co_code = SKIP,
96
- payer_id = SKIP,
97
- payer_number = SKIP,
98
- account_id = SKIP,
99
- account_number = SKIP,
100
- include_usage_restrictions = SKIP,
94
+ def initialize(col_co_id = SKIP, col_co_code = SKIP, payer_id = SKIP,
95
+ payer_number = SKIP, account_id = SKIP,
96
+ account_number = SKIP, include_usage_restrictions = SKIP,
101
97
  include_purchase_categories = SKIP)
102
98
  @col_co_id = col_co_id unless col_co_id == SKIP
103
99
  @col_co_code = col_co_code unless col_co_code == SKIP
@@ -44,9 +44,7 @@ module ShellCardManagementApIs
44
44
  []
45
45
  end
46
46
 
47
- def initialize(customer_card_types = SKIP,
48
- error = SKIP,
49
- request_id = SKIP)
47
+ def initialize(customer_card_types = SKIP, error = SKIP, request_id = SKIP)
50
48
  @customer_card_types = customer_card_types unless customer_card_types == SKIP
51
49
  @error = error unless error == SKIP
52
50
  @request_id = request_id unless request_id == SKIP