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,258 @@
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
+ # DeliveryAddresses Model.
8
+ class DeliveryAddresses < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Address Id
13
+ # @return [Integer]
14
+ attr_accessor :address_id
15
+
16
+ # AddressLine1
17
+ # @return [String]
18
+ attr_accessor :address_line1
19
+
20
+ # AddressLine2
21
+ # @return [String]
22
+ attr_accessor :address_line2
23
+
24
+ # AddressLine3
25
+ # @return [String]
26
+ attr_accessor :address_line3
27
+
28
+ # City
29
+ # @return [String]
30
+ attr_accessor :city
31
+
32
+ # Account Name
33
+ # @return [String]
34
+ attr_accessor :company_name
35
+
36
+ # Contact fore name of the delivery address.
37
+ # @return [String]
38
+ attr_accessor :contact_fore_name
39
+
40
+ # Contact last name of the delivery address.
41
+ # @return [String]
42
+ attr_accessor :contact_last_name
43
+
44
+ # Contact middle name of the delivery address.
45
+ # @return [String]
46
+ attr_accessor :contact_middle_name
47
+
48
+ # ContactTitle
49
+ # @return [String]
50
+ attr_accessor :contact_title
51
+
52
+ # Country
53
+ # @return [String]
54
+ attr_accessor :country
55
+
56
+ # Country Id
57
+ # @return [Integer]
58
+ attr_accessor :country_id
59
+
60
+ # Country ISO code
61
+ # @return [String]
62
+ attr_accessor :country_iso_code
63
+
64
+ # Fax number of the address contact.
65
+ # @return [String]
66
+ attr_accessor :fax
67
+
68
+ # Region of the Card Delivery address
69
+ # @return [String]
70
+ attr_accessor :region
71
+
72
+ # Region Id of the address.
73
+ # @return [Integer]
74
+ attr_accessor :region_id
75
+
76
+ # Telephone number of the address contact
77
+ # @return [String]
78
+ attr_accessor :telephone
79
+
80
+ # Delivery Zip code
81
+ # @return [String]
82
+ attr_accessor :zip_code
83
+
84
+ # Delivery address type.
85
+ # Possible Values:
86
+ # 1 – Card and PIN delivery address
87
+ # 2 – Card delivery address
88
+ # 3 – PIN delivery address
89
+ # @return [Integer]
90
+ attr_accessor :address_type
91
+
92
+ # A mapping from model property names to API property names.
93
+ def self.names
94
+ @_hash = {} if @_hash.nil?
95
+ @_hash['address_id'] = 'AddressId'
96
+ @_hash['address_line1'] = 'AddressLine1'
97
+ @_hash['address_line2'] = 'AddressLine2'
98
+ @_hash['address_line3'] = 'AddressLine3'
99
+ @_hash['city'] = 'City'
100
+ @_hash['company_name'] = 'CompanyName'
101
+ @_hash['contact_fore_name'] = 'ContactForeName'
102
+ @_hash['contact_last_name'] = 'ContactLastName'
103
+ @_hash['contact_middle_name'] = 'ContactMiddleName'
104
+ @_hash['contact_title'] = 'ContactTitle'
105
+ @_hash['country'] = 'Country'
106
+ @_hash['country_id'] = 'CountryId'
107
+ @_hash['country_iso_code'] = 'CountryISOCode'
108
+ @_hash['fax'] = 'Fax'
109
+ @_hash['region'] = 'Region'
110
+ @_hash['region_id'] = 'RegionId'
111
+ @_hash['telephone'] = 'Telephone'
112
+ @_hash['zip_code'] = 'ZipCode'
113
+ @_hash['address_type'] = 'AddressType'
114
+ @_hash
115
+ end
116
+
117
+ # An array for optional fields
118
+ def self.optionals
119
+ %w[
120
+ address_id
121
+ address_line1
122
+ address_line2
123
+ address_line3
124
+ city
125
+ company_name
126
+ contact_fore_name
127
+ contact_last_name
128
+ contact_middle_name
129
+ contact_title
130
+ country
131
+ country_id
132
+ country_iso_code
133
+ fax
134
+ region
135
+ region_id
136
+ telephone
137
+ zip_code
138
+ address_type
139
+ ]
140
+ end
141
+
142
+ # An array for nullable fields
143
+ def self.nullables
144
+ %w[
145
+ address_id
146
+ address_line1
147
+ address_line2
148
+ address_line3
149
+ city
150
+ company_name
151
+ contact_fore_name
152
+ contact_last_name
153
+ contact_middle_name
154
+ contact_title
155
+ country
156
+ country_id
157
+ country_iso_code
158
+ fax
159
+ region
160
+ region_id
161
+ telephone
162
+ zip_code
163
+ address_type
164
+ ]
165
+ end
166
+
167
+ def initialize(address_id = SKIP,
168
+ address_line1 = SKIP,
169
+ address_line2 = SKIP,
170
+ address_line3 = SKIP,
171
+ city = SKIP,
172
+ company_name = SKIP,
173
+ contact_fore_name = SKIP,
174
+ contact_last_name = SKIP,
175
+ contact_middle_name = SKIP,
176
+ contact_title = SKIP,
177
+ country = SKIP,
178
+ country_id = SKIP,
179
+ country_iso_code = SKIP,
180
+ fax = SKIP,
181
+ region = SKIP,
182
+ region_id = SKIP,
183
+ telephone = SKIP,
184
+ zip_code = SKIP,
185
+ address_type = SKIP)
186
+ @address_id = address_id unless address_id == SKIP
187
+ @address_line1 = address_line1 unless address_line1 == SKIP
188
+ @address_line2 = address_line2 unless address_line2 == SKIP
189
+ @address_line3 = address_line3 unless address_line3 == SKIP
190
+ @city = city unless city == SKIP
191
+ @company_name = company_name unless company_name == SKIP
192
+ @contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
193
+ @contact_last_name = contact_last_name unless contact_last_name == SKIP
194
+ @contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
195
+ @contact_title = contact_title unless contact_title == SKIP
196
+ @country = country unless country == SKIP
197
+ @country_id = country_id unless country_id == SKIP
198
+ @country_iso_code = country_iso_code unless country_iso_code == SKIP
199
+ @fax = fax unless fax == SKIP
200
+ @region = region unless region == SKIP
201
+ @region_id = region_id unless region_id == SKIP
202
+ @telephone = telephone unless telephone == SKIP
203
+ @zip_code = zip_code unless zip_code == SKIP
204
+ @address_type = address_type unless address_type == SKIP
205
+ end
206
+
207
+ # Creates an instance of the object from a hash.
208
+ def self.from_hash(hash)
209
+ return nil unless hash
210
+
211
+ # Extract variables from the hash.
212
+ address_id = hash.key?('AddressId') ? hash['AddressId'] : SKIP
213
+ address_line1 = hash.key?('AddressLine1') ? hash['AddressLine1'] : SKIP
214
+ address_line2 = hash.key?('AddressLine2') ? hash['AddressLine2'] : SKIP
215
+ address_line3 = hash.key?('AddressLine3') ? hash['AddressLine3'] : SKIP
216
+ city = hash.key?('City') ? hash['City'] : SKIP
217
+ company_name = hash.key?('CompanyName') ? hash['CompanyName'] : SKIP
218
+ contact_fore_name =
219
+ hash.key?('ContactForeName') ? hash['ContactForeName'] : SKIP
220
+ contact_last_name =
221
+ hash.key?('ContactLastName') ? hash['ContactLastName'] : SKIP
222
+ contact_middle_name =
223
+ hash.key?('ContactMiddleName') ? hash['ContactMiddleName'] : SKIP
224
+ contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
225
+ country = hash.key?('Country') ? hash['Country'] : SKIP
226
+ country_id = hash.key?('CountryId') ? hash['CountryId'] : SKIP
227
+ country_iso_code =
228
+ hash.key?('CountryISOCode') ? hash['CountryISOCode'] : SKIP
229
+ fax = hash.key?('Fax') ? hash['Fax'] : SKIP
230
+ region = hash.key?('Region') ? hash['Region'] : SKIP
231
+ region_id = hash.key?('RegionId') ? hash['RegionId'] : SKIP
232
+ telephone = hash.key?('Telephone') ? hash['Telephone'] : SKIP
233
+ zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : SKIP
234
+ address_type = hash.key?('AddressType') ? hash['AddressType'] : SKIP
235
+
236
+ # Create object from extracted values.
237
+ DeliveryAddresses.new(address_id,
238
+ address_line1,
239
+ address_line2,
240
+ address_line3,
241
+ city,
242
+ company_name,
243
+ contact_fore_name,
244
+ contact_last_name,
245
+ contact_middle_name,
246
+ contact_title,
247
+ country,
248
+ country_id,
249
+ country_iso_code,
250
+ fax,
251
+ region,
252
+ region_id,
253
+ telephone,
254
+ zip_code,
255
+ address_type)
256
+ end
257
+ end
258
+ end
@@ -0,0 +1,75 @@
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
+ # EIDAccess Model.
8
+ class EIDAccess < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Collecting company id.
13
+ # @return [String]
14
+ attr_accessor :col_co_id
15
+
16
+ # Collecting company Code
17
+ # @return [Integer]
18
+ attr_accessor :col_co_code
19
+
20
+ # Identifier for the EID account group configured for the user.
21
+ # @return [String]
22
+ attr_accessor :account_group_id
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['col_co_id'] = 'ColCoId'
28
+ @_hash['col_co_code'] = 'ColCoCode'
29
+ @_hash['account_group_id'] = 'AccountGroupId'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ %w[
36
+ col_co_id
37
+ col_co_code
38
+ account_group_id
39
+ ]
40
+ end
41
+
42
+ # An array for nullable fields
43
+ def self.nullables
44
+ %w[
45
+ col_co_id
46
+ col_co_code
47
+ account_group_id
48
+ ]
49
+ end
50
+
51
+ def initialize(col_co_id = SKIP,
52
+ col_co_code = SKIP,
53
+ account_group_id = SKIP)
54
+ @col_co_id = col_co_id unless col_co_id == SKIP
55
+ @col_co_code = col_co_code unless col_co_code == SKIP
56
+ @account_group_id = account_group_id unless account_group_id == SKIP
57
+ end
58
+
59
+ # Creates an instance of the object from a hash.
60
+ def self.from_hash(hash)
61
+ return nil unless hash
62
+
63
+ # Extract variables from the hash.
64
+ col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
65
+ col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
66
+ account_group_id =
67
+ hash.key?('AccountGroupId') ? hash['AccountGroupId'] : SKIP
68
+
69
+ # Create object from extracted values.
70
+ EIDAccess.new(col_co_id,
71
+ col_co_code,
72
+ account_group_id)
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,81 @@
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
+ # ErrorDetails Model.
8
+ class ErrorDetails < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Error code representing the error encountered
13
+ # @return [String]
14
+ attr_accessor :code
15
+
16
+ # Error type description
17
+ # @return [String]
18
+ attr_accessor :title
19
+
20
+ # Detailed inforamtion about the error
21
+ # @return [String]
22
+ attr_accessor :detail
23
+
24
+ # Applicable when more details related to error to be returned
25
+ # @return [Object]
26
+ attr_accessor :additional_info
27
+
28
+ # A mapping from model property names to API property names.
29
+ def self.names
30
+ @_hash = {} if @_hash.nil?
31
+ @_hash['code'] = 'Code'
32
+ @_hash['title'] = 'Title'
33
+ @_hash['detail'] = 'Detail'
34
+ @_hash['additional_info'] = 'AdditionalInfo'
35
+ @_hash
36
+ end
37
+
38
+ # An array for optional fields
39
+ def self.optionals
40
+ %w[
41
+ code
42
+ title
43
+ detail
44
+ additional_info
45
+ ]
46
+ end
47
+
48
+ # An array for nullable fields
49
+ def self.nullables
50
+ []
51
+ end
52
+
53
+ def initialize(code = SKIP,
54
+ title = SKIP,
55
+ detail = SKIP,
56
+ additional_info = SKIP)
57
+ @code = code unless code == SKIP
58
+ @title = title unless title == SKIP
59
+ @detail = detail unless detail == SKIP
60
+ @additional_info = additional_info unless additional_info == SKIP
61
+ end
62
+
63
+ # Creates an instance of the object from a hash.
64
+ def self.from_hash(hash)
65
+ return nil unless hash
66
+
67
+ # Extract variables from the hash.
68
+ code = hash.key?('Code') ? hash['Code'] : SKIP
69
+ title = hash.key?('Title') ? hash['Title'] : SKIP
70
+ detail = hash.key?('Detail') ? hash['Detail'] : SKIP
71
+ additional_info =
72
+ hash.key?('AdditionalInfo') ? hash['AdditionalInfo'] : SKIP
73
+
74
+ # Create object from extracted values.
75
+ ErrorDetails.new(code,
76
+ title,
77
+ detail,
78
+ additional_info)
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,60 @@
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
+ # ErrorStatus Model.
8
+ class ErrorStatus < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Error Code
13
+ # @return [String]
14
+ attr_accessor :code
15
+
16
+ # Error 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['code'] = 'Code'
24
+ @_hash['description'] = 'Description'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ %w[
31
+ code
32
+ description
33
+ ]
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(code = SKIP,
42
+ description = SKIP)
43
+ @code = code unless code == SKIP
44
+ @description = description unless description == SKIP
45
+ end
46
+
47
+ # Creates an instance of the object from a hash.
48
+ def self.from_hash(hash)
49
+ return nil unless hash
50
+
51
+ # Extract variables from the hash.
52
+ code = hash.key?('Code') ? hash['Code'] : SKIP
53
+ description = hash.key?('Description') ? hash['Description'] : SKIP
54
+
55
+ # Create object from extracted values.
56
+ ErrorStatus.new(code,
57
+ description)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,50 @@
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
+ # ErrorUserAccess Model.
8
+ class ErrorUserAccess < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [ErrorUserAccessError]
14
+ attr_accessor :error
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['error'] = 'Error'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ error
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(error = SKIP)
36
+ @error = error unless error == SKIP
37
+ end
38
+
39
+ # Creates an instance of the object from a hash.
40
+ def self.from_hash(hash)
41
+ return nil unless hash
42
+
43
+ # Extract variables from the hash.
44
+ error = ErrorUserAccessError.from_hash(hash['Error']) if hash['Error']
45
+
46
+ # Create object from extracted values.
47
+ ErrorUserAccess.new(error)
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,60 @@
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
+ # ErrorUserAccessError Model.
8
+ class ErrorUserAccessError < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # Error Code
13
+ # @return [String]
14
+ attr_accessor :code
15
+
16
+ # 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['code'] = 'Code'
24
+ @_hash['description'] = 'Description'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ %w[
31
+ code
32
+ description
33
+ ]
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(code = SKIP,
42
+ description = SKIP)
43
+ @code = code unless code == SKIP
44
+ @description = description unless description == SKIP
45
+ end
46
+
47
+ # Creates an instance of the object from a hash.
48
+ def self.from_hash(hash)
49
+ return nil unless hash
50
+
51
+ # Extract variables from the hash.
52
+ code = hash.key?('Code') ? hash['Code'] : SKIP
53
+ description = hash.key?('Description') ? hash['Description'] : SKIP
54
+
55
+ # Create object from extracted values.
56
+ ErrorUserAccessError.new(code,
57
+ description)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,98 @@
1
+ # shell_card_management_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module ShellCardManagementApIs
7
+ # This entity will not be present in the response if the
8
+ # ‘IncludeFinanceCurrency’ flag in the request is ‘false’
9
+ class FinanceCurrency < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # Currency ISO Code used for the Finance Widget.
14
+ # @return [String]
15
+ attr_accessor :currency_code
16
+
17
+ # Currency Symbol
18
+ # @return [String]
19
+ attr_accessor :currency_symbol
20
+
21
+ # Factor to be used for converting the amounts in invoice currency to
22
+ # finance widget currency. (If finance currency is same as invoice currency,
23
+ # then the value of this field will be “1” so that the value does not
24
+ # change)
25
+ # @return [Float]
26
+ attr_accessor :invoice_exchange_rate
27
+
28
+ # Factor to be used for converting the amounts in credit limit currency to
29
+ # finance widget currency. (If finance currency is same as credit limit
30
+ # currency, then the value of this field will be “1” so that the value does
31
+ # not change)
32
+ # @return [Float]
33
+ attr_accessor :credit_limit_exchange_rate
34
+
35
+ # A mapping from model property names to API property names.
36
+ def self.names
37
+ @_hash = {} if @_hash.nil?
38
+ @_hash['currency_code'] = 'CurrencyCode'
39
+ @_hash['currency_symbol'] = 'CurrencySymbol'
40
+ @_hash['invoice_exchange_rate'] = 'Invoice_ExchangeRate'
41
+ @_hash['credit_limit_exchange_rate'] = 'CreditLimit_ExchangeRate'
42
+ @_hash
43
+ end
44
+
45
+ # An array for optional fields
46
+ def self.optionals
47
+ %w[
48
+ currency_code
49
+ currency_symbol
50
+ invoice_exchange_rate
51
+ credit_limit_exchange_rate
52
+ ]
53
+ end
54
+
55
+ # An array for nullable fields
56
+ def self.nullables
57
+ %w[
58
+ currency_code
59
+ currency_symbol
60
+ invoice_exchange_rate
61
+ credit_limit_exchange_rate
62
+ ]
63
+ end
64
+
65
+ def initialize(currency_code = SKIP,
66
+ currency_symbol = SKIP,
67
+ invoice_exchange_rate = SKIP,
68
+ credit_limit_exchange_rate = SKIP)
69
+ @currency_code = currency_code unless currency_code == SKIP
70
+ @currency_symbol = currency_symbol unless currency_symbol == SKIP
71
+ @invoice_exchange_rate = invoice_exchange_rate unless invoice_exchange_rate == SKIP
72
+ unless credit_limit_exchange_rate == SKIP
73
+ @credit_limit_exchange_rate =
74
+ credit_limit_exchange_rate
75
+ end
76
+ end
77
+
78
+ # Creates an instance of the object from a hash.
79
+ def self.from_hash(hash)
80
+ return nil unless hash
81
+
82
+ # Extract variables from the hash.
83
+ currency_code = hash.key?('CurrencyCode') ? hash['CurrencyCode'] : SKIP
84
+ currency_symbol =
85
+ hash.key?('CurrencySymbol') ? hash['CurrencySymbol'] : SKIP
86
+ invoice_exchange_rate =
87
+ hash.key?('Invoice_ExchangeRate') ? hash['Invoice_ExchangeRate'] : SKIP
88
+ credit_limit_exchange_rate =
89
+ hash.key?('CreditLimit_ExchangeRate') ? hash['CreditLimit_ExchangeRate'] : SKIP
90
+
91
+ # Create object from extracted values.
92
+ FinanceCurrency.new(currency_code,
93
+ currency_symbol,
94
+ invoice_exchange_rate,
95
+ credit_limit_exchange_rate)
96
+ end
97
+ end
98
+ end