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,118 @@
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
+ # POS language identifier. Language Id: * `1` - German * `2` - French *
8
+ # `3` - Bulgarian * `4` - Croatian * `5` - Czech * `6` - Danish * `7`
9
+ # - Finnish * `8` - English * `9` - Greek * `10` - Chinese * `11` -
10
+ # Hungarian * `12` - Italian * `13` - Luxembourgish * `14` - Malay *
11
+ # `15` - Dutch * `16` - Norwegian, Bokmal * `17` - Urdu * `18` - Polish
12
+ # * `19` - Portuguese * `20` - Romanian * `21` - Russian * `22` -
13
+ # Slovak * `23` - Slovenian * `24` - Spanish * `25` - Swedish * `26` -
14
+ # Turkish * `27` - Thai * `28` - Filipino * `29` - Estonian * `30` -
15
+ # Latvian * `31` - Lithuanian
16
+ class CardDetailsResponseLocalPOSLanguageIDEnum
17
+ CARD_DETAILS_RESPONSE_LOCAL_POS_LANGUAGE_ID_ENUM = [
18
+ # TODO: Write general description for ENUM_1
19
+ ENUM_1 = 1,
20
+
21
+ # TODO: Write general description for ENUM_2
22
+ ENUM_2 = 2,
23
+
24
+ # TODO: Write general description for ENUM_3
25
+ ENUM_3 = 3,
26
+
27
+ # TODO: Write general description for ENUM_4
28
+ ENUM_4 = 4,
29
+
30
+ # TODO: Write general description for ENUM_5
31
+ ENUM_5 = 5,
32
+
33
+ # TODO: Write general description for ENUM_6
34
+ ENUM_6 = 6,
35
+
36
+ # TODO: Write general description for ENUM_7
37
+ ENUM_7 = 7,
38
+
39
+ # TODO: Write general description for ENUM_8
40
+ ENUM_8 = 8,
41
+
42
+ # TODO: Write general description for ENUM_9
43
+ ENUM_9 = 9,
44
+
45
+ # TODO: Write general description for ENUM_10
46
+ ENUM_10 = 10,
47
+
48
+ # TODO: Write general description for ENUM_11
49
+ ENUM_11 = 11,
50
+
51
+ # TODO: Write general description for ENUM_12
52
+ ENUM_12 = 12,
53
+
54
+ # TODO: Write general description for ENUM_13
55
+ ENUM_13 = 13,
56
+
57
+ # TODO: Write general description for ENUM_14
58
+ ENUM_14 = 14,
59
+
60
+ # TODO: Write general description for ENUM_15
61
+ ENUM_15 = 15,
62
+
63
+ # TODO: Write general description for ENUM_16
64
+ ENUM_16 = 16,
65
+
66
+ # TODO: Write general description for ENUM_17
67
+ ENUM_17 = 17,
68
+
69
+ # TODO: Write general description for ENUM_18
70
+ ENUM_18 = 18,
71
+
72
+ # TODO: Write general description for ENUM_19
73
+ ENUM_19 = 19,
74
+
75
+ # TODO: Write general description for ENUM_20
76
+ ENUM_20 = 20,
77
+
78
+ # TODO: Write general description for ENUM_21
79
+ ENUM_21 = 21,
80
+
81
+ # TODO: Write general description for ENUM_22
82
+ ENUM_22 = 22,
83
+
84
+ # TODO: Write general description for ENUM_23
85
+ ENUM_23 = 23,
86
+
87
+ # TODO: Write general description for ENUM_24
88
+ ENUM_24 = 24,
89
+
90
+ # TODO: Write general description for ENUM_25
91
+ ENUM_25 = 25,
92
+
93
+ # TODO: Write general description for ENUM_26
94
+ ENUM_26 = 26,
95
+
96
+ # TODO: Write general description for ENUM_27
97
+ ENUM_27 = 27,
98
+
99
+ # TODO: Write general description for ENUM_28
100
+ ENUM_28 = 28,
101
+
102
+ # TODO: Write general description for ENUM_29
103
+ ENUM_29 = 29,
104
+
105
+ # TODO: Write general description for ENUM_30
106
+ ENUM_30 = 30,
107
+
108
+ # TODO: Write general description for ENUM_31
109
+ ENUM_31 = 31
110
+ ].freeze
111
+
112
+ def self.validate(value)
113
+ return false if value.nil?
114
+
115
+ CARD_DETAILS_RESPONSE_LOCAL_POS_LANGUAGE_ID_ENUM.include?(value)
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,58 @@
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
+ # Product restriction
8
+ class CardDetailsResponseNonFuelSetsItems < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # product restriction identifier
13
+ # @return [Integer]
14
+ attr_accessor :product_restriction_id
15
+
16
+ # product set description.
17
+ # @return [String]
18
+ attr_accessor :description
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['product_restriction_id'] = 'ProductRestrictionId'
24
+ @_hash['description'] = 'Description'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(product_restriction_id = nil,
39
+ description = nil)
40
+ @product_restriction_id = product_restriction_id
41
+ @description = description
42
+ end
43
+
44
+ # Creates an instance of the object from a hash.
45
+ def self.from_hash(hash)
46
+ return nil unless hash
47
+
48
+ # Extract variables from the hash.
49
+ product_restriction_id =
50
+ hash.key?('ProductRestrictionId') ? hash['ProductRestrictionId'] : nil
51
+ description = hash.key?('Description') ? hash['Description'] : nil
52
+
53
+ # Create object from extracted values.
54
+ CardDetailsResponseNonFuelSetsItems.new(product_restriction_id,
55
+ description)
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,231 @@
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
+ # Delivery address.
8
+ class CardDetailsResponsePINDeliveryAddress < 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,
153
+ address_id = nil,
154
+ address_line1 = nil,
155
+ zip_code = nil,
156
+ country_id = nil,
157
+ country_iso_code = nil,
158
+ country = nil,
159
+ contact_fore_name = SKIP,
160
+ contact_middle_name = SKIP,
161
+ contact_last_name = SKIP,
162
+ contact_title = SKIP,
163
+ address_line2 = SKIP,
164
+ address_line3 = SKIP,
165
+ city = SKIP,
166
+ region_id = SKIP,
167
+ region = SKIP)
168
+ @contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
169
+ @contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
170
+ @contact_last_name = contact_last_name unless contact_last_name == SKIP
171
+ @contact_title = contact_title unless contact_title == SKIP
172
+ @company_name = company_name
173
+ @address_id = address_id
174
+ @address_line1 = address_line1
175
+ @address_line2 = address_line2 unless address_line2 == SKIP
176
+ @address_line3 = address_line3 unless address_line3 == SKIP
177
+ @zip_code = zip_code
178
+ @city = city unless city == SKIP
179
+ @region_id = region_id unless region_id == SKIP
180
+ @region = region unless region == SKIP
181
+ @country_id = country_id
182
+ @country_iso_code = country_iso_code
183
+ @country = country
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
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
192
+ address_id = hash.key?('AddressId') ? hash['AddressId'] : nil
193
+ address_line1 = hash.key?('AddressLine1') ? hash['AddressLine1'] : nil
194
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
195
+ country_id = hash.key?('CountryId') ? hash['CountryId'] : nil
196
+ country_iso_code =
197
+ hash.key?('CountryISOCode') ? hash['CountryISOCode'] : nil
198
+ country = hash.key?('Country') ? hash['Country'] : nil
199
+ contact_fore_name =
200
+ hash.key?('ContactForeName') ? hash['ContactForeName'] : SKIP
201
+ contact_middle_name =
202
+ hash.key?('ContactMiddleName') ? hash['ContactMiddleName'] : SKIP
203
+ contact_last_name =
204
+ hash.key?('ContactLastName') ? hash['ContactLastName'] : SKIP
205
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
206
+ address_line2 = hash.key?('AddressLine2') ? hash['AddressLine2'] : SKIP
207
+ address_line3 = hash.key?('AddressLine3') ? hash['AddressLine3'] : SKIP
208
+ city = hash.key?('City') ? hash['City'] : SKIP
209
+ region_id = hash.key?('RegionId') ? hash['RegionId'] : SKIP
210
+ region = hash.key?('Region') ? hash['Region'] : SKIP
211
+
212
+ # Create object from extracted values.
213
+ CardDetailsResponsePINDeliveryAddress.new(company_name,
214
+ address_id,
215
+ address_line1,
216
+ zip_code,
217
+ country_id,
218
+ country_iso_code,
219
+ country,
220
+ contact_fore_name,
221
+ contact_middle_name,
222
+ contact_last_name,
223
+ contact_title,
224
+ address_line2,
225
+ address_line3,
226
+ city,
227
+ region_id,
228
+ region)
229
+ end
230
+ end
231
+ end
@@ -0,0 +1,23 @@
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
+ # PIN type: * `Card` - Card PIN * `Fleet` - Fleet PIN
8
+ class CardDetailsResponsePINTypeEnum
9
+ CARD_DETAILS_RESPONSE_PIN_TYPE_ENUM = [
10
+ # TODO: Write general description for CARD
11
+ CARD = 'Card'.freeze,
12
+
13
+ # TODO: Write general description for FLEET
14
+ FLEET = 'Fleet'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ CARD_DETAILS_RESPONSE_PIN_TYPE_ENUM.include?(value)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,26 @@
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
+ # Reissue setting of the card. If the card is superseded (i.e. a
8
+ # replacement/new card is issued) then reissue setting of the latest card
9
+ # issued. Reissue setting: * `True` - Card will be Reissued when nearing its
10
+ # expiry date * `False` - Card will not be Reissued
11
+ class CardDetailsResponseReissueSettingEnum
12
+ CARD_DETAILS_RESPONSE_REISSUE_SETTING_ENUM = [
13
+ # TODO: Write general description for TRUE
14
+ TRUE = 'True'.freeze,
15
+
16
+ # TODO: Write general description for FALSE
17
+ FALSE = 'False'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ CARD_DETAILS_RESPONSE_REISSUE_SETTING_ENUM.include?(value)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,25 @@
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
+ # Reissue setting of the renewed new card. Reissue Setting: * `True` - Card
8
+ # will be sent to production * `False` - Parent Card is Dormant or the Card
9
+ # is not to be produced
10
+ class CardDetailsResponseRenewedCardReissueSettingEnum
11
+ CARD_DETAILS_RESPONSE_RENEWED_CARD_REISSUE_SETTING_ENUM = [
12
+ # TODO: Write general description for TRUE
13
+ TRUE = 'True'.freeze,
14
+
15
+ # TODO: Write general description for FALSE
16
+ FALSE = 'False'.freeze
17
+ ].freeze
18
+
19
+ def self.validate(value)
20
+ return false if value.nil?
21
+
22
+ CARD_DETAILS_RESPONSE_RENEWED_CARD_REISSUE_SETTING_ENUM.include?(value)
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,83 @@
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
+ # Possible Id’s and description: * 1 Active * 7 Blocked Card * 8 Expired *
8
+ # 9 Cancelled * 10 New * 23 Pending Renewal * 31 Replaced * 41 Temporary
9
+ # Block (Customer) * 42 Temporary Block (Shell) * 43 Fraud * 101 Active
10
+ # (Block in progress) * * 102 Blocked Card (Unblock in progress) * * 103
11
+ # Active (Cancel in progress) * * 104 Active (Marked as damaged) * * 105 New
12
+ # (Cancel as damaged) * * 106 Active(Scheduled for block) ”# * 107 Blocked
13
+ # Card(Scheduled for unblock)*# * 108 Blocked Card (Cancel in progress) * >
14
+ # Note: • Items marked with * are intermediate statuses to indicate that
15
+ # there are pending requests in progress. , The response can contain these
16
+ # intermediate statuses only if the IncludeIntermediateStatus flag is true. •
17
+ # The placeholder “<Shell Card Platform Status>” in the items marked with #
18
+ # will be replaced with the Shell Card Platform status description. E.g.,
19
+ # “Active (Scheduled for block)”
20
+ class CardDetailsResponseStatusIdEnum
21
+ CARD_DETAILS_RESPONSE_STATUS_ID_ENUM = [
22
+ # TODO: Write general description for ENUM_1
23
+ ENUM_1 = 1,
24
+
25
+ # TODO: Write general description for ENUM_7
26
+ ENUM_7 = 7,
27
+
28
+ # TODO: Write general description for ENUM_8
29
+ ENUM_8 = 8,
30
+
31
+ # TODO: Write general description for ENUM_9
32
+ ENUM_9 = 9,
33
+
34
+ # TODO: Write general description for ENUM_10
35
+ ENUM_10 = 10,
36
+
37
+ # TODO: Write general description for ENUM_23
38
+ ENUM_23 = 23,
39
+
40
+ # TODO: Write general description for ENUM_31
41
+ ENUM_31 = 31,
42
+
43
+ # TODO: Write general description for ENUM_41
44
+ ENUM_41 = 41,
45
+
46
+ # TODO: Write general description for ENUM_42
47
+ ENUM_42 = 42,
48
+
49
+ # TODO: Write general description for ENUM_43
50
+ ENUM_43 = 43,
51
+
52
+ # TODO: Write general description for ENUM_101
53
+ ENUM_101 = 101,
54
+
55
+ # TODO: Write general description for ENUM_102
56
+ ENUM_102 = 102,
57
+
58
+ # TODO: Write general description for ENUM_103
59
+ ENUM_103 = 103,
60
+
61
+ # TODO: Write general description for ENUM_104
62
+ ENUM_104 = 104,
63
+
64
+ # TODO: Write general description for ENUM_105
65
+ ENUM_105 = 105,
66
+
67
+ # TODO: Write general description for ENUM_106
68
+ ENUM_106 = 106,
69
+
70
+ # TODO: Write general description for ENUM_107
71
+ ENUM_107 = 107,
72
+
73
+ # TODO: Write general description for ENUM_108
74
+ ENUM_108 = 108
75
+ ].freeze
76
+
77
+ def self.validate(value)
78
+ return false if value.nil?
79
+
80
+ CARD_DETAILS_RESPONSE_STATUS_ID_ENUM.include?(value)
81
+ end
82
+ end
83
+ end