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,234 @@
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
+ # PINContact Model.
8
+ class PINContact < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Title of the contact person <br />
13
+ # Optional
14
+ # @return [String]
15
+ attr_accessor :delivery_contact_title
16
+
17
+ # Name of the contact person <br />
18
+ # Mandatory - If PINAdviceType is paper else optional. <br />
19
+ # Max field length: 50 <br />
20
+ # Optional
21
+ # @return [String]
22
+ attr_accessor :delivery_contact_name
23
+
24
+ # Company name <br />
25
+ # Mandatory - If PINAdviceType is paper else optional. <br />
26
+ # Max field length: 50 <br />
27
+ # Optional
28
+ # @return [String]
29
+ attr_accessor :delivery_company_name
30
+
31
+ # Address line 1 <br />
32
+ # Mandatory - if PINAdviceType is paper else optional.<br />
33
+ # Max field length: 40 <br />
34
+ # Optional
35
+ # @return [String]
36
+ attr_accessor :delivery_address_line1
37
+
38
+ # Address line 2 <br />
39
+ # Optional <br />
40
+ # Max field length: 40 <br />
41
+ # Optional
42
+ # @return [String]
43
+ attr_accessor :delivery_address_line2
44
+
45
+ # Address line 3 <br />
46
+ # Optional <br />
47
+ # Max field length: 40 <br />
48
+ # Optional
49
+ # @return [String]
50
+ attr_accessor :delivery_address_line3
51
+
52
+ # ZIP code <br />
53
+ # Mandatory - if PINAdviceType is paper else optional. <br />
54
+ # Max field length: 10 <br />
55
+ # Optional
56
+ # @return [String]
57
+ attr_accessor :delivery_zip_code
58
+
59
+ # City <br />
60
+ # Mandatory - If PINAdviceType is paper else optional. <br />
61
+ # Max field length: 40 <br />
62
+ # Optional
63
+ # @return [String]
64
+ attr_accessor :delivery_city
65
+
66
+ # Region Id <br />
67
+ # Optional
68
+ # @return [Integer]
69
+ attr_accessor :delivery_region_id
70
+
71
+ # Region <br />
72
+ # Optional<br />
73
+ # @return [String]
74
+ attr_accessor :delivery_region
75
+
76
+ # The ISO code of the country.<br />
77
+ # Mandatory if PINAdviceType is paper else optional.
78
+ # @return [String]
79
+ attr_accessor :delivery_country
80
+
81
+ # Phone number for to send SMS of the PIN in case PINAdviceType is SMS.<br
82
+ # />
83
+ # Mandatory if PINAdviceType is SMS else optional.<br />
84
+ # Max field length: 20
85
+ # @return [String]
86
+ attr_accessor :phone_number
87
+
88
+ # Email address for to send email of the PIN in case PINAdviceType is
89
+ # Email.<br />
90
+ # Mandatory if PINAdviceType is email else optional.<br />
91
+ # Max field length: 90. <br/>Note:Based on the international standard that
92
+ # there can be Max Length 64 before the @ (the 'Local part’) =64(minimum of
93
+ # 1) Max Lenth after the (the domain) = 88 (Minimum of 2)
94
+ # @return [String]
95
+ attr_accessor :email_address
96
+
97
+ # The given address will be used for sending PIN reminders in future when
98
+ # requested.<br />
99
+ # Only allowed for paper delivery<br />
100
+ # Optional
101
+ # @return [TrueClass | FalseClass]
102
+ attr_accessor :save_for_pin_reminder
103
+
104
+ # A mapping from model property names to API property names.
105
+ def self.names
106
+ @_hash = {} if @_hash.nil?
107
+ @_hash['delivery_contact_title'] = 'DeliveryContactTitle'
108
+ @_hash['delivery_contact_name'] = 'DeliveryContactName'
109
+ @_hash['delivery_company_name'] = 'DeliveryCompanyName'
110
+ @_hash['delivery_address_line1'] = 'DeliveryAddressLine1'
111
+ @_hash['delivery_address_line2'] = 'DeliveryAddressLine2'
112
+ @_hash['delivery_address_line3'] = 'DeliveryAddressLine3'
113
+ @_hash['delivery_zip_code'] = 'DeliveryZipCode'
114
+ @_hash['delivery_city'] = 'DeliveryCity'
115
+ @_hash['delivery_region_id'] = 'DeliveryRegionId'
116
+ @_hash['delivery_region'] = 'DeliveryRegion'
117
+ @_hash['delivery_country'] = 'DeliveryCountry'
118
+ @_hash['phone_number'] = 'PhoneNumber'
119
+ @_hash['email_address'] = 'EmailAddress'
120
+ @_hash['save_for_pin_reminder'] = 'SaveForPINReminder'
121
+ @_hash
122
+ end
123
+
124
+ # An array for optional fields
125
+ def self.optionals
126
+ %w[
127
+ delivery_contact_title
128
+ delivery_contact_name
129
+ delivery_company_name
130
+ delivery_address_line1
131
+ delivery_address_line2
132
+ delivery_address_line3
133
+ delivery_zip_code
134
+ delivery_city
135
+ delivery_region_id
136
+ delivery_region
137
+ delivery_country
138
+ phone_number
139
+ email_address
140
+ save_for_pin_reminder
141
+ ]
142
+ end
143
+
144
+ # An array for nullable fields
145
+ def self.nullables
146
+ %w[
147
+ delivery_contact_title
148
+ delivery_contact_name
149
+ delivery_company_name
150
+ delivery_address_line1
151
+ delivery_address_line2
152
+ delivery_address_line3
153
+ delivery_zip_code
154
+ delivery_city
155
+ delivery_region_id
156
+ delivery_region
157
+ delivery_country
158
+ phone_number
159
+ email_address
160
+ ]
161
+ end
162
+
163
+ def initialize(delivery_contact_title = SKIP, delivery_contact_name = SKIP,
164
+ delivery_company_name = SKIP, delivery_address_line1 = SKIP,
165
+ delivery_address_line2 = SKIP, delivery_address_line3 = SKIP,
166
+ delivery_zip_code = SKIP, delivery_city = SKIP,
167
+ delivery_region_id = SKIP, delivery_region = SKIP,
168
+ delivery_country = SKIP, phone_number = SKIP,
169
+ email_address = SKIP, save_for_pin_reminder = SKIP)
170
+ @delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
171
+ @delivery_contact_name = delivery_contact_name unless delivery_contact_name == SKIP
172
+ @delivery_company_name = delivery_company_name unless delivery_company_name == SKIP
173
+ @delivery_address_line1 = delivery_address_line1 unless delivery_address_line1 == SKIP
174
+ @delivery_address_line2 = delivery_address_line2 unless delivery_address_line2 == SKIP
175
+ @delivery_address_line3 = delivery_address_line3 unless delivery_address_line3 == SKIP
176
+ @delivery_zip_code = delivery_zip_code unless delivery_zip_code == SKIP
177
+ @delivery_city = delivery_city unless delivery_city == SKIP
178
+ @delivery_region_id = delivery_region_id unless delivery_region_id == SKIP
179
+ @delivery_region = delivery_region unless delivery_region == SKIP
180
+ @delivery_country = delivery_country unless delivery_country == SKIP
181
+ @phone_number = phone_number unless phone_number == SKIP
182
+ @email_address = email_address unless email_address == SKIP
183
+ @save_for_pin_reminder = save_for_pin_reminder unless save_for_pin_reminder == SKIP
184
+ end
185
+
186
+ # Creates an instance of the object from a hash.
187
+ def self.from_hash(hash)
188
+ return nil unless hash
189
+
190
+ # Extract variables from the hash.
191
+ delivery_contact_title =
192
+ hash.key?('DeliveryContactTitle') ? hash['DeliveryContactTitle'] : SKIP
193
+ delivery_contact_name =
194
+ hash.key?('DeliveryContactName') ? hash['DeliveryContactName'] : SKIP
195
+ delivery_company_name =
196
+ hash.key?('DeliveryCompanyName') ? hash['DeliveryCompanyName'] : SKIP
197
+ delivery_address_line1 =
198
+ hash.key?('DeliveryAddressLine1') ? hash['DeliveryAddressLine1'] : SKIP
199
+ delivery_address_line2 =
200
+ hash.key?('DeliveryAddressLine2') ? hash['DeliveryAddressLine2'] : SKIP
201
+ delivery_address_line3 =
202
+ hash.key?('DeliveryAddressLine3') ? hash['DeliveryAddressLine3'] : SKIP
203
+ delivery_zip_code =
204
+ hash.key?('DeliveryZipCode') ? hash['DeliveryZipCode'] : SKIP
205
+ delivery_city = hash.key?('DeliveryCity') ? hash['DeliveryCity'] : SKIP
206
+ delivery_region_id =
207
+ hash.key?('DeliveryRegionId') ? hash['DeliveryRegionId'] : SKIP
208
+ delivery_region =
209
+ hash.key?('DeliveryRegion') ? hash['DeliveryRegion'] : SKIP
210
+ delivery_country =
211
+ hash.key?('DeliveryCountry') ? hash['DeliveryCountry'] : SKIP
212
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
213
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
214
+ save_for_pin_reminder =
215
+ hash.key?('SaveForPINReminder') ? hash['SaveForPINReminder'] : SKIP
216
+
217
+ # Create object from extracted values.
218
+ PINContact.new(delivery_contact_title,
219
+ delivery_contact_name,
220
+ delivery_company_name,
221
+ delivery_address_line1,
222
+ delivery_address_line2,
223
+ delivery_address_line3,
224
+ delivery_zip_code,
225
+ delivery_city,
226
+ delivery_region_id,
227
+ delivery_region,
228
+ delivery_country,
229
+ phone_number,
230
+ email_address,
231
+ save_for_pin_reminder)
232
+ end
233
+ end
234
+ end
@@ -0,0 +1,161 @@
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
+ # PINDeliverTo Model.
8
+ class PINDeliverTo < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Contact Name
13
+ # Max Length: 50
14
+ # @return [String]
15
+ attr_accessor :contact_name
16
+
17
+ # Contact Title
18
+ # Max Length: 50
19
+ # @return [String]
20
+ attr_accessor :contact_title
21
+
22
+ # Company Name for PIN delivery.
23
+ # Max Length: 50
24
+ # @return [String]
25
+ attr_accessor :company_name
26
+
27
+ # Address Lines
28
+ # Max Length: 1024
29
+ # @return [String]
30
+ attr_accessor :address_line
31
+
32
+ # Zip Code
33
+ # Max Length: 10
34
+ # @return [String]
35
+ attr_accessor :zip_code
36
+
37
+ # City
38
+ # Max Length: 40
39
+ # @return [String]
40
+ attr_accessor :city
41
+
42
+ # Region
43
+ # @return [Integer]
44
+ attr_accessor :region_id
45
+
46
+ # Country
47
+ # @return [Integer]
48
+ attr_accessor :country_id
49
+
50
+ # Cardholder phone number for PIN delivery.
51
+ # @return [String]
52
+ attr_accessor :phone_number
53
+
54
+ # Cardholder email address for PIN delivery
55
+ # Max Length : 90
56
+ # Example: xxxxxx@example.com <br/>Note:Based on the international standard
57
+ # that there can be Max Length 64 before the @ (the 'Local part’)
58
+ # =64(minimum of 1) Max Lenth after the (the domain) = 88 (Minimum of 2)
59
+ # @return [String]
60
+ attr_accessor :email_address
61
+
62
+ # Save PIN Reminder
63
+ # If SavePINReminder is true, the contact address will be saved database for
64
+ # PIN reminder.
65
+ # <br/>Only allowed for PIN Advice paper delivery.
66
+ # @return [TrueClass | FalseClass]
67
+ attr_accessor :save_pin_reminder
68
+
69
+ # A mapping from model property names to API property names.
70
+ def self.names
71
+ @_hash = {} if @_hash.nil?
72
+ @_hash['contact_name'] = 'ContactName'
73
+ @_hash['contact_title'] = 'ContactTitle'
74
+ @_hash['company_name'] = 'CompanyName'
75
+ @_hash['address_line'] = 'AddressLine'
76
+ @_hash['zip_code'] = 'ZipCode'
77
+ @_hash['city'] = 'City'
78
+ @_hash['region_id'] = 'RegionID'
79
+ @_hash['country_id'] = 'CountryID'
80
+ @_hash['phone_number'] = 'PhoneNumber'
81
+ @_hash['email_address'] = 'EmailAddress'
82
+ @_hash['save_pin_reminder'] = 'SavePINReminder'
83
+ @_hash
84
+ end
85
+
86
+ # An array for optional fields
87
+ def self.optionals
88
+ %w[
89
+ contact_name
90
+ contact_title
91
+ region_id
92
+ country_id
93
+ phone_number
94
+ email_address
95
+ save_pin_reminder
96
+ ]
97
+ end
98
+
99
+ # An array for nullable fields
100
+ def self.nullables
101
+ %w[
102
+ contact_name
103
+ contact_title
104
+ zip_code
105
+ region_id
106
+ country_id
107
+ phone_number
108
+ email_address
109
+ ]
110
+ end
111
+
112
+ def initialize(company_name = nil, address_line = nil, zip_code = nil,
113
+ city = nil, contact_name = SKIP, contact_title = SKIP,
114
+ region_id = SKIP, country_id = SKIP, phone_number = SKIP,
115
+ email_address = SKIP, save_pin_reminder = SKIP)
116
+ @contact_name = contact_name unless contact_name == SKIP
117
+ @contact_title = contact_title unless contact_title == SKIP
118
+ @company_name = company_name
119
+ @address_line = address_line
120
+ @zip_code = zip_code
121
+ @city = city
122
+ @region_id = region_id unless region_id == SKIP
123
+ @country_id = country_id unless country_id == SKIP
124
+ @phone_number = phone_number unless phone_number == SKIP
125
+ @email_address = email_address unless email_address == SKIP
126
+ @save_pin_reminder = save_pin_reminder unless save_pin_reminder == SKIP
127
+ end
128
+
129
+ # Creates an instance of the object from a hash.
130
+ def self.from_hash(hash)
131
+ return nil unless hash
132
+
133
+ # Extract variables from the hash.
134
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
135
+ address_line = hash.key?('AddressLine') ? hash['AddressLine'] : nil
136
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
137
+ city = hash.key?('City') ? hash['City'] : nil
138
+ contact_name = hash.key?('ContactName') ? hash['ContactName'] : SKIP
139
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
140
+ region_id = hash.key?('RegionID') ? hash['RegionID'] : SKIP
141
+ country_id = hash.key?('CountryID') ? hash['CountryID'] : SKIP
142
+ phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
143
+ email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
144
+ save_pin_reminder =
145
+ hash.key?('SavePINReminder') ? hash['SavePINReminder'] : SKIP
146
+
147
+ # Create object from extracted values.
148
+ PINDeliverTo.new(company_name,
149
+ address_line,
150
+ zip_code,
151
+ city,
152
+ contact_name,
153
+ contact_title,
154
+ region_id,
155
+ country_id,
156
+ phone_number,
157
+ email_address,
158
+ save_pin_reminder)
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,222 @@
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
+ # PINDeliveryAddress Model.
8
+ class PINDeliveryAddress < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Fore name of the contact person
13
+ # @return [String]
14
+ attr_accessor :contact_fore_name
15
+
16
+ # Middle name of the contact person
17
+ # @return [String]
18
+ attr_accessor :contact_middle_name
19
+
20
+ # Last name of the contact person
21
+ # @return [String]
22
+ attr_accessor :contact_last_name
23
+
24
+ # Title of the contact person Optional Max field length- 10 Note- If the
25
+ # Shell Card Platform configuration is set to clear the personal details
26
+ # captured on card orders, this value will be cleared from the record after
27
+ # processing the request.
28
+ # @return [String]
29
+ attr_accessor :contact_title
30
+
31
+ # Company name Mandatory if IsNewDeliveryAddress and OrderReplacement are
32
+ # passed. True, Note- If the Shell Card Platform configuration is set to
33
+ # clear the personal details captured on card orders, this value will be
34
+ # cleared from the record after processing the request.
35
+ # @return [String]
36
+ attr_accessor :company_name
37
+
38
+ # Address Id in cards platform.
39
+ # @return [Integer]
40
+ attr_accessor :address_id
41
+
42
+ # Address line 1 Mandatory if IsNewDeliveryAddress and OrderReplacement are
43
+ # passed True. Max field length- 40 Note- If the Shell Card Platform
44
+ # configuration is set to clear the personal details captured on card
45
+ # orders, this value will be cleared from the record after processing the
46
+ # request.
47
+ # @return [String]
48
+ attr_accessor :address_line1
49
+
50
+ # Address line 2 Optional Max field length- 40 Note- If the Shell Card
51
+ # Platform configuration is set to clear the personal details captured on
52
+ # card orders, this value will be cleared from the record after processing
53
+ # the request.
54
+ # @return [String]
55
+ attr_accessor :address_line2
56
+
57
+ # Address line Optional Max field length- 40 Note- If the Shell Card
58
+ # Platform configuration is set to clear the personal details captured on
59
+ # card orders, this value will be cleared from the record after processing
60
+ # the request.
61
+ # @return [String]
62
+ attr_accessor :address_line3
63
+
64
+ # ZIP code Mandatory if IsNewDeliveryAddress and OrderReplacement are
65
+ # passed. True, Max field length- 10 Note- If the Shell Card Platform
66
+ # configuration is set to clear the personal details captured on card
67
+ # orders, this value will be cleared from the record after processing the
68
+ # request.
69
+ # @return [String]
70
+ attr_accessor :zip_code
71
+
72
+ # City Max field length- 40 Note- If the Shell Card Platform configuration
73
+ # is set to clear the personal details captured on card orders, this value
74
+ # will be cleared from the record after processing the request.
75
+ # @return [String]
76
+ attr_accessor :city
77
+
78
+ # Region Id
79
+ # @return [Integer]
80
+ attr_accessor :region_id
81
+
82
+ # Region Optional When region is passed, Shell Card Platform will look up
83
+ # for the region id for the given region. If the option to clear personal
84
+ # details is set in the Shell Card Platform, then this value will be cleared
85
+ # from the record after processing the request .
86
+ # @return [String]
87
+ attr_accessor :region
88
+
89
+ # Country Id in cards platform.
90
+ # @return [Integer]
91
+ attr_accessor :country_id
92
+
93
+ # The ISO code of the country. Mandatory if IsNewDeliveryAddress and
94
+ # OrderReplacement are passed. If the option to clear personal details is
95
+ # set in the Shell Card Platform, then this value will be cleared from the
96
+ # record after processing the request .
97
+ # @return [String]
98
+ attr_accessor :country_iso_code
99
+
100
+ # Country name.
101
+ # @return [String]
102
+ attr_accessor :country
103
+
104
+ # A mapping from model property names to API property names.
105
+ def self.names
106
+ @_hash = {} if @_hash.nil?
107
+ @_hash['contact_fore_name'] = 'ContactForeName'
108
+ @_hash['contact_middle_name'] = 'ContactMiddleName'
109
+ @_hash['contact_last_name'] = 'ContactLastName'
110
+ @_hash['contact_title'] = 'ContactTitle'
111
+ @_hash['company_name'] = 'CompanyName'
112
+ @_hash['address_id'] = 'AddressId'
113
+ @_hash['address_line1'] = 'AddressLine1'
114
+ @_hash['address_line2'] = 'AddressLine2'
115
+ @_hash['address_line3'] = 'AddressLine3'
116
+ @_hash['zip_code'] = 'ZipCode'
117
+ @_hash['city'] = 'City'
118
+ @_hash['region_id'] = 'RegionId'
119
+ @_hash['region'] = 'Region'
120
+ @_hash['country_id'] = 'CountryId'
121
+ @_hash['country_iso_code'] = 'CountryISOCode'
122
+ @_hash['country'] = 'Country'
123
+ @_hash
124
+ end
125
+
126
+ # An array for optional fields
127
+ def self.optionals
128
+ %w[
129
+ contact_fore_name
130
+ contact_middle_name
131
+ contact_last_name
132
+ contact_title
133
+ address_line2
134
+ address_line3
135
+ city
136
+ region_id
137
+ region
138
+ ]
139
+ end
140
+
141
+ # An array for nullable fields
142
+ def self.nullables
143
+ %w[
144
+ contact_fore_name
145
+ contact_middle_name
146
+ contact_last_name
147
+ contact_title
148
+ region_id
149
+ ]
150
+ end
151
+
152
+ def initialize(company_name = nil, address_id = nil, address_line1 = nil,
153
+ zip_code = nil, country_id = nil, country_iso_code = nil,
154
+ country = nil, contact_fore_name = SKIP,
155
+ contact_middle_name = SKIP, contact_last_name = SKIP,
156
+ contact_title = SKIP, address_line2 = SKIP,
157
+ address_line3 = SKIP, city = SKIP, region_id = SKIP,
158
+ region = SKIP)
159
+ @contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
160
+ @contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
161
+ @contact_last_name = contact_last_name unless contact_last_name == SKIP
162
+ @contact_title = contact_title unless contact_title == SKIP
163
+ @company_name = company_name
164
+ @address_id = address_id
165
+ @address_line1 = address_line1
166
+ @address_line2 = address_line2 unless address_line2 == SKIP
167
+ @address_line3 = address_line3 unless address_line3 == SKIP
168
+ @zip_code = zip_code
169
+ @city = city unless city == SKIP
170
+ @region_id = region_id unless region_id == SKIP
171
+ @region = region unless region == SKIP
172
+ @country_id = country_id
173
+ @country_iso_code = country_iso_code
174
+ @country = country
175
+ end
176
+
177
+ # Creates an instance of the object from a hash.
178
+ def self.from_hash(hash)
179
+ return nil unless hash
180
+
181
+ # Extract variables from the hash.
182
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
183
+ address_id = hash.key?('AddressId') ? hash['AddressId'] : nil
184
+ address_line1 = hash.key?('AddressLine1') ? hash['AddressLine1'] : nil
185
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
186
+ country_id = hash.key?('CountryId') ? hash['CountryId'] : nil
187
+ country_iso_code =
188
+ hash.key?('CountryISOCode') ? hash['CountryISOCode'] : nil
189
+ country = hash.key?('Country') ? hash['Country'] : nil
190
+ contact_fore_name =
191
+ hash.key?('ContactForeName') ? hash['ContactForeName'] : SKIP
192
+ contact_middle_name =
193
+ hash.key?('ContactMiddleName') ? hash['ContactMiddleName'] : SKIP
194
+ contact_last_name =
195
+ hash.key?('ContactLastName') ? hash['ContactLastName'] : SKIP
196
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
197
+ address_line2 = hash.key?('AddressLine2') ? hash['AddressLine2'] : SKIP
198
+ address_line3 = hash.key?('AddressLine3') ? hash['AddressLine3'] : SKIP
199
+ city = hash.key?('City') ? hash['City'] : SKIP
200
+ region_id = hash.key?('RegionId') ? hash['RegionId'] : SKIP
201
+ region = hash.key?('Region') ? hash['Region'] : SKIP
202
+
203
+ # Create object from extracted values.
204
+ PINDeliveryAddress.new(company_name,
205
+ address_id,
206
+ address_line1,
207
+ zip_code,
208
+ country_id,
209
+ country_iso_code,
210
+ country,
211
+ contact_fore_name,
212
+ contact_middle_name,
213
+ contact_last_name,
214
+ contact_title,
215
+ address_line2,
216
+ address_line3,
217
+ city,
218
+ region_id,
219
+ region)
220
+ end
221
+ end
222
+ end
@@ -161,20 +161,13 @@ module ShellCardManagementApIs
161
161
  ]
162
162
  end
163
163
 
164
- def initialize(delivery_contact_title = SKIP,
165
- delivery_contact_name = SKIP,
166
- delivery_company_name = SKIP,
167
- delivery_address_line1 = SKIP,
168
- delivery_address_line2 = SKIP,
169
- delivery_address_line3 = SKIP,
170
- delivery_zip_code = SKIP,
171
- delivery_city = SKIP,
172
- delivery_region_id = SKIP,
173
- delivery_region = SKIP,
174
- delivery_country = SKIP,
175
- phone_number = SKIP,
176
- email_address = SKIP,
177
- save_for_pin_reminder = SKIP)
164
+ def initialize(delivery_contact_title = SKIP, delivery_contact_name = SKIP,
165
+ delivery_company_name = SKIP, delivery_address_line1 = SKIP,
166
+ delivery_address_line2 = SKIP, delivery_address_line3 = SKIP,
167
+ delivery_zip_code = SKIP, delivery_city = SKIP,
168
+ delivery_region_id = SKIP, delivery_region = SKIP,
169
+ delivery_country = SKIP, phone_number = SKIP,
170
+ email_address = SKIP, save_for_pin_reminder = SKIP)
178
171
  @delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
179
172
  @delivery_contact_name = delivery_contact_name unless delivery_contact_name == SKIP
180
173
  @delivery_company_name = delivery_company_name unless delivery_company_name == SKIP
@@ -110,17 +110,10 @@ module ShellCardManagementApIs
110
110
  ]
111
111
  end
112
112
 
113
- def initialize(company_name = nil,
114
- address_line = nil,
115
- zip_code = nil,
116
- city = nil,
117
- contact_name = SKIP,
118
- contact_title = SKIP,
119
- region_id = SKIP,
120
- country_id = SKIP,
121
- phone_number = SKIP,
122
- email_address = SKIP,
123
- save_pin_reminder = SKIP)
113
+ def initialize(company_name = nil, address_line = nil, zip_code = nil,
114
+ city = nil, contact_name = SKIP, contact_title = SKIP,
115
+ region_id = SKIP, country_id = SKIP, phone_number = SKIP,
116
+ email_address = SKIP, save_pin_reminder = SKIP)
124
117
  @contact_name = contact_name unless contact_name == SKIP
125
118
  @contact_title = contact_title unless contact_title == SKIP
126
119
  @company_name = company_name