card-management-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +88 -0
- data/lib/shell_card_management_ap_is/api_helper.rb +10 -0
- data/lib/shell_card_management_ap_is/client.rb +85 -0
- data/lib/shell_card_management_ap_is/configuration.rb +117 -0
- data/lib/shell_card_management_ap_is/controllers/base_controller.rb +66 -0
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +1047 -0
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +538 -0
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +42 -0
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +496 -0
- data/lib/shell_card_management_ap_is/exceptions/api_exception.rb +10 -0
- data/lib/shell_card_management_ap_is/exceptions/default_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/error_object_exception.rb +54 -0
- data/lib/shell_card_management_ap_is/exceptions/error_user_access_error1_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/o_auth_provider_exception.rb +48 -0
- data/lib/shell_card_management_ap_is/http/auth/basic_auth.rb +50 -0
- data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +89 -0
- data/lib/shell_card_management_ap_is/http/http_call_back.rb +10 -0
- data/lib/shell_card_management_ap_is/http/http_method_enum.rb +10 -0
- data/lib/shell_card_management_ap_is/http/http_request.rb +10 -0
- data/lib/shell_card_management_ap_is/http/http_response.rb +10 -0
- data/lib/shell_card_management_ap_is/models/account_access.rb +128 -0
- data/lib/shell_card_management_ap_is/models/account_request.rb +252 -0
- data/lib/shell_card_management_ap_is/models/account_response.rb +111 -0
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +750 -0
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +131 -0
- data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -0
- data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +145 -0
- data/lib/shell_card_management_ap_is/models/accounts.rb +65 -0
- data/lib/shell_card_management_ap_is/models/address.rb +174 -0
- data/lib/shell_card_management_ap_is/models/audit_request.rb +256 -0
- data/lib/shell_card_management_ap_is/models/audit_response.rb +111 -0
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +450 -0
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +111 -0
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +98 -0
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +92 -0
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +64 -0
- data/lib/shell_card_management_ap_is/models/bank_account.rb +192 -0
- data/lib/shell_card_management_ap_is/models/base_model.rb +62 -0
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +166 -0
- data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +107 -0
- data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +127 -0
- data/lib/shell_card_management_ap_is/models/card.rb +696 -0
- data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +65 -0
- data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +159 -0
- data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +230 -0
- data/lib/shell_card_management_ap_is/models/card_detail.rb +661 -0
- data/lib/shell_card_management_ap_is/models/card_detail_auto_renew_enum.rb +28 -0
- data/lib/shell_card_management_ap_is/models/card_details_request.rb +260 -0
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +1058 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +60 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +227 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +58 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_code_enum.rb +118 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_international_pos_language_id_enum.rb +118 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_code_enum.rb +118 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_local_pos_language_id_enum.rb +118 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +58 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +231 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_pin_type_enum.rb +23 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_reissue_setting_enum.rb +26 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_renewed_card_reissue_setting_enum.rb +25 -0
- data/lib/shell_card_management_ap_is/models/card_details_response_status_id_enum.rb +83 -0
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +178 -0
- data/lib/shell_card_management_ap_is/models/card_group_response.rb +109 -0
- data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +301 -0
- data/lib/shell_card_management_ap_is/models/card_move_request.rb +163 -0
- data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +80 -0
- data/lib/shell_card_management_ap_is/models/card_move_response.rb +112 -0
- data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +112 -0
- data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +97 -0
- data/lib/shell_card_management_ap_is/models/card_search_response.rb +126 -0
- data/lib/shell_card_management_ap_is/models/card_summary_request.rb +52 -0
- data/lib/shell_card_management_ap_is/models/card_summary_response.rb +82 -0
- data/lib/shell_card_management_ap_is/models/card_type_request.rb +145 -0
- data/lib/shell_card_management_ap_is/models/card_type_response.rb +79 -0
- data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +470 -0
- data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +60 -0
- data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +281 -0
- data/lib/shell_card_management_ap_is/models/col_co_access.rb +88 -0
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +167 -0
- data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +147 -0
- data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +98 -0
- data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +125 -0
- data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items_cards_items.rb +50 -0
- data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +161 -0
- data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +84 -0
- data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +130 -0
- data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +81 -0
- data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +71 -0
- data/lib/shell_card_management_ap_is/models/create_card_response.rb +65 -0
- data/lib/shell_card_management_ap_is/models/customer_contract.rb +63 -0
- data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +123 -0
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +437 -0
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +162 -0
- data/lib/shell_card_management_ap_is/models/default_error_fault.rb +60 -0
- data/lib/shell_card_management_ap_is/models/default_error_fault_detail.rb +50 -0
- data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +126 -0
- data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +60 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +112 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +102 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +129 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +94 -0
- data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +258 -0
- data/lib/shell_card_management_ap_is/models/eid_access.rb +75 -0
- data/lib/shell_card_management_ap_is/models/error_details.rb +81 -0
- data/lib/shell_card_management_ap_is/models/error_status.rb +60 -0
- data/lib/shell_card_management_ap_is/models/error_user_access.rb +50 -0
- data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +60 -0
- data/lib/shell_card_management_ap_is/models/finance_currency.rb +98 -0
- data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +60 -0
- data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +99 -0
- data/lib/shell_card_management_ap_is/models/location_restrictions.rb +125 -0
- data/lib/shell_card_management_ap_is/models/location_restrictions_country_restrictions.rb +65 -0
- data/lib/shell_card_management_ap_is/models/location_restrictions_network_restrictions_items.rb +77 -0
- data/lib/shell_card_management_ap_is/models/location_restrictions_partner_site_restrictions_items.rb +95 -0
- data/lib/shell_card_management_ap_is/models/location_restrictions_shell_site_restrictions_items.rb +95 -0
- data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +107 -0
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +394 -0
- data/lib/shell_card_management_ap_is/models/o_auth_provider_error_enum.rb +45 -0
- data/lib/shell_card_management_ap_is/models/o_auth_token.rb +100 -0
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +502 -0
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +208 -0
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req_reference_type_enum.rb +32 -0
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +51 -0
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +79 -0
- data/lib/shell_card_management_ap_is/models/order_card_request.rb +60 -0
- data/lib/shell_card_management_ap_is/models/order_card_response.rb +90 -0
- data/lib/shell_card_management_ap_is/models/payer_access.rb +147 -0
- data/lib/shell_card_management_ap_is/models/payer_details.rb +1412 -0
- data/lib/shell_card_management_ap_is/models/payer_request.rb +126 -0
- data/lib/shell_card_management_ap_is/models/payer_response.rb +115 -0
- data/lib/shell_card_management_ap_is/models/payers.rb +109 -0
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +80 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +242 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +169 -0
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +137 -0
- data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +99 -0
- data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +135 -0
- data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +90 -0
- data/lib/shell_card_management_ap_is/models/product_all_of0.rb +62 -0
- data/lib/shell_card_management_ap_is/models/product_group.rb +116 -0
- data/lib/shell_card_management_ap_is/models/product_restrictions.rb +66 -0
- data/lib/shell_card_management_ap_is/models/purchase_categories.rb +114 -0
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +140 -0
- data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +114 -0
- data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +69 -0
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +641 -0
- data/lib/shell_card_management_ap_is/models/restriction_card_request.rb +115 -0
- data/lib/shell_card_management_ap_is/models/restriction_card_request_cards_items.rb +220 -0
- data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +91 -0
- data/lib/shell_card_management_ap_is/models/restriction_card_response_data_items.rb +240 -0
- data/lib/shell_card_management_ap_is/models/restriction_search_card_request.rb +50 -0
- data/lib/shell_card_management_ap_is/models/restriction_search_card_request_filters.rb +177 -0
- data/lib/shell_card_management_ap_is/models/restriction_search_card_request_filters_cards_items.rb +63 -0
- data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +79 -0
- data/lib/shell_card_management_ap_is/models/restriction_search_card_response_data_items.rb +514 -0
- data/lib/shell_card_management_ap_is/models/role.rb +102 -0
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +249 -0
- data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +77 -0
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +91 -0
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +89 -0
- data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +50 -0
- data/lib/shell_card_management_ap_is/models/search_account_limit_request_filters.rb +118 -0
- data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +70 -0
- data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +106 -0
- data/lib/shell_card_management_ap_is/models/search_card.rb +66 -0
- data/lib/shell_card_management_ap_is/models/search_card_request.rb +72 -0
- data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +99 -0
- data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +78 -0
- data/lib/shell_card_management_ap_is/models/search_request.rb +724 -0
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +183 -0
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_request.rb +50 -0
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +79 -0
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response_data_items.rb +123 -0
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response_data_items_card_bundles_items.rb +86 -0
- data/lib/shell_card_management_ap_is/models/summary_request.rb +598 -0
- data/lib/shell_card_management_ap_is/models/summary_response.rb +184 -0
- data/lib/shell_card_management_ap_is/models/summaryof_bundle.rb +126 -0
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +194 -0
- data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +70 -0
- data/lib/shell_card_management_ap_is/models/update_card.rb +316 -0
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +258 -0
- data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +130 -0
- data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +77 -0
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +163 -0
- data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +124 -0
- data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +133 -0
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +112 -0
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +105 -0
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +60 -0
- data/lib/shell_card_management_ap_is/models/url_enum.rb +23 -0
- data/lib/shell_card_management_ap_is/models/usage_restrictions.rb +311 -0
- data/lib/shell_card_management_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/shell_card_management_ap_is/utilities/file_wrapper.rb +16 -0
- data/lib/shell_card_management_ap_is.rb +288 -0
- metadata +283 -0
@@ -0,0 +1,169 @@
|
|
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
|
+
# PINDeliverDetails entity. The fields of this entity are described below.
|
8
|
+
# This is mandatory if PINContactType is 4 else optional and ignored.
|
9
|
+
class PINDeliveryDetails < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# Contact Name
|
14
|
+
# Max Length: 50
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :contact_name
|
17
|
+
|
18
|
+
# Contact Title
|
19
|
+
# Max Length: 50
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :contact_title
|
22
|
+
|
23
|
+
# Company Name for PIN delivery.
|
24
|
+
# Max Length: 50
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :company_name
|
27
|
+
|
28
|
+
# Address Lines
|
29
|
+
# Max Length: 1024
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :address_line
|
32
|
+
|
33
|
+
# Zip Code
|
34
|
+
# Max Length: 10
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :zip_code
|
37
|
+
|
38
|
+
# City
|
39
|
+
# Max Length: 40
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :city
|
42
|
+
|
43
|
+
# Region
|
44
|
+
# @return [Integer]
|
45
|
+
attr_accessor :region_id
|
46
|
+
|
47
|
+
# Country
|
48
|
+
# @return [Integer]
|
49
|
+
attr_accessor :country_id
|
50
|
+
|
51
|
+
# Cardholder phone number for PIN delivery.
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :phone_number
|
54
|
+
|
55
|
+
# Cardholder email address for PIN delivery
|
56
|
+
# Max Length : 90
|
57
|
+
# Example: xxxxxx@example.com <br/>Note:Based on the international standard
|
58
|
+
# that there can be Max Length 64 before the @ (the 'Local part’)
|
59
|
+
# =64(minimum of 1) Max Lenth after the (the domain) = 88 (Minimum of 2)
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :email_address
|
62
|
+
|
63
|
+
# Save PIN Reminder
|
64
|
+
# If SavePINReminder is true, the contact address will be saved database for
|
65
|
+
# PIN reminder.
|
66
|
+
# <br/>Only allowed for PIN Advice paper delivery.
|
67
|
+
# @return [TrueClass | FalseClass]
|
68
|
+
attr_accessor :save_pin_reminder
|
69
|
+
|
70
|
+
# A mapping from model property names to API property names.
|
71
|
+
def self.names
|
72
|
+
@_hash = {} if @_hash.nil?
|
73
|
+
@_hash['contact_name'] = 'ContactName'
|
74
|
+
@_hash['contact_title'] = 'ContactTitle'
|
75
|
+
@_hash['company_name'] = 'CompanyName'
|
76
|
+
@_hash['address_line'] = 'AddressLine'
|
77
|
+
@_hash['zip_code'] = 'ZipCode'
|
78
|
+
@_hash['city'] = 'City'
|
79
|
+
@_hash['region_id'] = 'RegionID'
|
80
|
+
@_hash['country_id'] = 'CountryID'
|
81
|
+
@_hash['phone_number'] = 'PhoneNumber'
|
82
|
+
@_hash['email_address'] = 'EmailAddress'
|
83
|
+
@_hash['save_pin_reminder'] = 'SavePINReminder'
|
84
|
+
@_hash
|
85
|
+
end
|
86
|
+
|
87
|
+
# An array for optional fields
|
88
|
+
def self.optionals
|
89
|
+
%w[
|
90
|
+
contact_name
|
91
|
+
contact_title
|
92
|
+
region_id
|
93
|
+
country_id
|
94
|
+
phone_number
|
95
|
+
email_address
|
96
|
+
save_pin_reminder
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
# An array for nullable fields
|
101
|
+
def self.nullables
|
102
|
+
%w[
|
103
|
+
contact_name
|
104
|
+
contact_title
|
105
|
+
zip_code
|
106
|
+
region_id
|
107
|
+
country_id
|
108
|
+
phone_number
|
109
|
+
email_address
|
110
|
+
]
|
111
|
+
end
|
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)
|
124
|
+
@contact_name = contact_name unless contact_name == SKIP
|
125
|
+
@contact_title = contact_title unless contact_title == SKIP
|
126
|
+
@company_name = company_name
|
127
|
+
@address_line = address_line
|
128
|
+
@zip_code = zip_code
|
129
|
+
@city = city
|
130
|
+
@region_id = region_id unless region_id == SKIP
|
131
|
+
@country_id = country_id unless country_id == SKIP
|
132
|
+
@phone_number = phone_number unless phone_number == SKIP
|
133
|
+
@email_address = email_address unless email_address == SKIP
|
134
|
+
@save_pin_reminder = save_pin_reminder unless save_pin_reminder == SKIP
|
135
|
+
end
|
136
|
+
|
137
|
+
# Creates an instance of the object from a hash.
|
138
|
+
def self.from_hash(hash)
|
139
|
+
return nil unless hash
|
140
|
+
|
141
|
+
# Extract variables from the hash.
|
142
|
+
company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
|
143
|
+
address_line = hash.key?('AddressLine') ? hash['AddressLine'] : nil
|
144
|
+
zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
|
145
|
+
city = hash.key?('City') ? hash['City'] : nil
|
146
|
+
contact_name = hash.key?('ContactName') ? hash['ContactName'] : SKIP
|
147
|
+
contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
|
148
|
+
region_id = hash.key?('RegionID') ? hash['RegionID'] : SKIP
|
149
|
+
country_id = hash.key?('CountryID') ? hash['CountryID'] : SKIP
|
150
|
+
phone_number = hash.key?('PhoneNumber') ? hash['PhoneNumber'] : SKIP
|
151
|
+
email_address = hash.key?('EmailAddress') ? hash['EmailAddress'] : SKIP
|
152
|
+
save_pin_reminder =
|
153
|
+
hash.key?('SavePINReminder') ? hash['SavePINReminder'] : SKIP
|
154
|
+
|
155
|
+
# Create object from extracted values.
|
156
|
+
PINDeliveryDetails.new(company_name,
|
157
|
+
address_line,
|
158
|
+
zip_code,
|
159
|
+
city,
|
160
|
+
contact_name,
|
161
|
+
contact_title,
|
162
|
+
region_id,
|
163
|
+
country_id,
|
164
|
+
phone_number,
|
165
|
+
email_address,
|
166
|
+
save_pin_reminder)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
@@ -0,0 +1,137 @@
|
|
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
|
+
# Request entity object for PINReminderCardDetails
|
8
|
+
class PINReminderCardDetails < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Card Id
|
13
|
+
# Optional if Either PANID AND CardExpiryDate or PAN AND CardExpiryDate is
|
14
|
+
# passed, else Mandatory. Example: 275549 .<br/>Note:PANID, PAN & ExpiryDate
|
15
|
+
# parameters will be ignored if CardId is provided.
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :card_id
|
18
|
+
|
19
|
+
# PAN ID - Unique PAN ID
|
20
|
+
# Optional if Either CardId or PAN AND ExpiryDate is passed, else
|
21
|
+
# Mandatory. Example: 123456. <br/>Note:PANID parameter will be considered
|
22
|
+
# only if CardId is not provided
|
23
|
+
# @return [Integer]
|
24
|
+
attr_accessor :panid
|
25
|
+
|
26
|
+
# PAN of the card.
|
27
|
+
# Optional if Either CardId or PANID is passed, else Mandatory.
|
28
|
+
# <br/>Note:PAN & ExpiryDate parameters will be considered only if CardId &
|
29
|
+
# PANID are not provided
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :pan
|
32
|
+
|
33
|
+
# Expiry date of the card.
|
34
|
+
# Mandatory if Either PAN or PANID is passed, else optional.
|
35
|
+
# Format: yyyyMMdd
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :card_expiry_date
|
38
|
+
|
39
|
+
# PIN delivery method.
|
40
|
+
# Mandatory
|
41
|
+
# Allowed Values:
|
42
|
+
# 1. Paper
|
43
|
+
# 2. Email
|
44
|
+
# 3. SMS
|
45
|
+
# @return [Integer]
|
46
|
+
attr_accessor :pin_advice_type
|
47
|
+
|
48
|
+
# PIN Contact Type.
|
49
|
+
# Mandatory
|
50
|
+
# Allowed Values:
|
51
|
+
# 1. Use PIN Delivery contact details stored previously for this card
|
52
|
+
# 2. Use Card Delivery contact details stored previously for this card
|
53
|
+
# 3. Use default PIN Delivery contact details stored for this customer
|
54
|
+
# 4. Use new specific contact for PIN Reminder only
|
55
|
+
# Note: - PINContactType “3” is only allowed for Paper delivery
|
56
|
+
# @return [Integer]
|
57
|
+
attr_accessor :pin_contact_type
|
58
|
+
|
59
|
+
# PINDeliverDetails entity. The fields of this entity are described below.
|
60
|
+
# This is mandatory if PINContactType is 4 else optional and ignored.
|
61
|
+
# @return [PINDeliveryDetails]
|
62
|
+
attr_accessor :pin_deliver_to
|
63
|
+
|
64
|
+
# A mapping from model property names to API property names.
|
65
|
+
def self.names
|
66
|
+
@_hash = {} if @_hash.nil?
|
67
|
+
@_hash['card_id'] = 'CardId'
|
68
|
+
@_hash['panid'] = 'PANID'
|
69
|
+
@_hash['pan'] = 'PAN'
|
70
|
+
@_hash['card_expiry_date'] = 'CardExpiryDate'
|
71
|
+
@_hash['pin_advice_type'] = 'PINAdviceType'
|
72
|
+
@_hash['pin_contact_type'] = 'PINContactType'
|
73
|
+
@_hash['pin_deliver_to'] = 'PINDeliverTo'
|
74
|
+
@_hash
|
75
|
+
end
|
76
|
+
|
77
|
+
# An array for optional fields
|
78
|
+
def self.optionals
|
79
|
+
%w[
|
80
|
+
card_id
|
81
|
+
panid
|
82
|
+
pan
|
83
|
+
card_expiry_date
|
84
|
+
pin_contact_type
|
85
|
+
pin_deliver_to
|
86
|
+
]
|
87
|
+
end
|
88
|
+
|
89
|
+
# An array for nullable fields
|
90
|
+
def self.nullables
|
91
|
+
%w[
|
92
|
+
card_expiry_date
|
93
|
+
]
|
94
|
+
end
|
95
|
+
|
96
|
+
def initialize(pin_advice_type = nil,
|
97
|
+
card_id = SKIP,
|
98
|
+
panid = SKIP,
|
99
|
+
pan = SKIP,
|
100
|
+
card_expiry_date = SKIP,
|
101
|
+
pin_contact_type = SKIP,
|
102
|
+
pin_deliver_to = SKIP)
|
103
|
+
@card_id = card_id unless card_id == SKIP
|
104
|
+
@panid = panid unless panid == SKIP
|
105
|
+
@pan = pan unless pan == SKIP
|
106
|
+
@card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
|
107
|
+
@pin_advice_type = pin_advice_type
|
108
|
+
@pin_contact_type = pin_contact_type unless pin_contact_type == SKIP
|
109
|
+
@pin_deliver_to = pin_deliver_to unless pin_deliver_to == SKIP
|
110
|
+
end
|
111
|
+
|
112
|
+
# Creates an instance of the object from a hash.
|
113
|
+
def self.from_hash(hash)
|
114
|
+
return nil unless hash
|
115
|
+
|
116
|
+
# Extract variables from the hash.
|
117
|
+
pin_advice_type = hash.key?('PINAdviceType') ? hash['PINAdviceType'] : nil
|
118
|
+
card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
|
119
|
+
panid = hash.key?('PANID') ? hash['PANID'] : SKIP
|
120
|
+
pan = hash.key?('PAN') ? hash['PAN'] : SKIP
|
121
|
+
card_expiry_date =
|
122
|
+
hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
|
123
|
+
pin_contact_type =
|
124
|
+
hash.key?('PINContactType') ? hash['PINContactType'] : SKIP
|
125
|
+
pin_deliver_to = PINDeliveryDetails.from_hash(hash['PINDeliverTo']) if hash['PINDeliverTo']
|
126
|
+
|
127
|
+
# Create object from extracted values.
|
128
|
+
PINReminderCardDetails.new(pin_advice_type,
|
129
|
+
card_id,
|
130
|
+
panid,
|
131
|
+
pan,
|
132
|
+
card_expiry_date,
|
133
|
+
pin_contact_type,
|
134
|
+
pin_deliver_to)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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 class holds the PIN Reminder References
|
8
|
+
class PINReminderReference < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Card Id
|
13
|
+
# @return [Integer]
|
14
|
+
attr_accessor :card_id
|
15
|
+
|
16
|
+
# PAN ID
|
17
|
+
# @return [Integer]
|
18
|
+
attr_accessor :panid
|
19
|
+
|
20
|
+
# PAN
|
21
|
+
# @return [Integer]
|
22
|
+
attr_accessor :pan
|
23
|
+
|
24
|
+
# Expiry date of the card.
|
25
|
+
# Mandatory if Either PAN or PANID is passed, else optional.
|
26
|
+
# Format: yyyyMMdd
|
27
|
+
# @return [String]
|
28
|
+
attr_accessor :card_expiry_date
|
29
|
+
|
30
|
+
# Individual card pin reminder reference number for the Pin Reminder
|
31
|
+
# request.
|
32
|
+
# @return [Integer]
|
33
|
+
attr_accessor :reference_id
|
34
|
+
|
35
|
+
# A mapping from model property names to API property names.
|
36
|
+
def self.names
|
37
|
+
@_hash = {} if @_hash.nil?
|
38
|
+
@_hash['card_id'] = 'CardId'
|
39
|
+
@_hash['panid'] = 'PANID'
|
40
|
+
@_hash['pan'] = 'PAN'
|
41
|
+
@_hash['card_expiry_date'] = 'CardExpiryDate'
|
42
|
+
@_hash['reference_id'] = 'ReferenceId'
|
43
|
+
@_hash
|
44
|
+
end
|
45
|
+
|
46
|
+
# An array for optional fields
|
47
|
+
def self.optionals
|
48
|
+
%w[
|
49
|
+
card_id
|
50
|
+
panid
|
51
|
+
pan
|
52
|
+
card_expiry_date
|
53
|
+
reference_id
|
54
|
+
]
|
55
|
+
end
|
56
|
+
|
57
|
+
# An array for nullable fields
|
58
|
+
def self.nullables
|
59
|
+
%w[
|
60
|
+
card_id
|
61
|
+
panid
|
62
|
+
pan
|
63
|
+
card_expiry_date
|
64
|
+
]
|
65
|
+
end
|
66
|
+
|
67
|
+
def initialize(card_id = SKIP,
|
68
|
+
panid = SKIP,
|
69
|
+
pan = SKIP,
|
70
|
+
card_expiry_date = SKIP,
|
71
|
+
reference_id = SKIP)
|
72
|
+
@card_id = card_id unless card_id == SKIP
|
73
|
+
@panid = panid unless panid == SKIP
|
74
|
+
@pan = pan unless pan == SKIP
|
75
|
+
@card_expiry_date = card_expiry_date unless card_expiry_date == SKIP
|
76
|
+
@reference_id = reference_id unless reference_id == SKIP
|
77
|
+
end
|
78
|
+
|
79
|
+
# Creates an instance of the object from a hash.
|
80
|
+
def self.from_hash(hash)
|
81
|
+
return nil unless hash
|
82
|
+
|
83
|
+
# Extract variables from the hash.
|
84
|
+
card_id = hash.key?('CardId') ? hash['CardId'] : SKIP
|
85
|
+
panid = hash.key?('PANID') ? hash['PANID'] : SKIP
|
86
|
+
pan = hash.key?('PAN') ? hash['PAN'] : SKIP
|
87
|
+
card_expiry_date =
|
88
|
+
hash.key?('CardExpiryDate') ? hash['CardExpiryDate'] : SKIP
|
89
|
+
reference_id = hash.key?('ReferenceId') ? hash['ReferenceId'] : SKIP
|
90
|
+
|
91
|
+
# Create object from extracted values.
|
92
|
+
PINReminderReference.new(card_id,
|
93
|
+
panid,
|
94
|
+
pan,
|
95
|
+
card_expiry_date,
|
96
|
+
reference_id)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,135 @@
|
|
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 models the data that is received in the https request body of
|
8
|
+
# the PINReminder operation.
|
9
|
+
class PINReminderRequest < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# Account Id of the customer.<br />
|
14
|
+
# Optional if AccountNumber is passed, else Mandatory.<br />
|
15
|
+
# This input is a search criterion, if given.
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :account_id
|
18
|
+
|
19
|
+
# Account Number of the customer.<br />
|
20
|
+
# Optional if AccountId is passed, else Mandatory.<br />
|
21
|
+
# This input is a search criterion, if given.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :account_number
|
24
|
+
|
25
|
+
# Collecting Company Code (Shell Code) of the selected payer. <br />
|
26
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
27
|
+
# Ukraine etc. <br />
|
28
|
+
# It is optional for other countries if ColCoID is provided.
|
29
|
+
# @return [Integer]
|
30
|
+
attr_accessor :col_co_code
|
31
|
+
|
32
|
+
# Collecting Company Id of the selected payer<br />
|
33
|
+
# Optional if ColCoCode is passed else Mandatory.
|
34
|
+
# @return [Integer]
|
35
|
+
attr_accessor :col_co_id
|
36
|
+
|
37
|
+
# Payer Id (i.e. Customer Id of the Payment Customer of the selected
|
38
|
+
# payer.<br />
|
39
|
+
# Optional if PayerNumber is passed else Mandatory
|
40
|
+
# @return [Integer]
|
41
|
+
attr_accessor :payer_id
|
42
|
+
|
43
|
+
# Payer Number (Ex: GB000000123) of the selected payer.<br />
|
44
|
+
# Optional if PayerId is passed else Mandatory
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :payer_number
|
47
|
+
|
48
|
+
# List of PINReminderCardDetails entity. The fields of this entity are
|
49
|
+
# described below.
|
50
|
+
# @return [Array[PINReminderCardDetails]]
|
51
|
+
attr_accessor :pin_reminder_card_details
|
52
|
+
|
53
|
+
# A mapping from model property names to API property names.
|
54
|
+
def self.names
|
55
|
+
@_hash = {} if @_hash.nil?
|
56
|
+
@_hash['account_id'] = 'AccountId'
|
57
|
+
@_hash['account_number'] = 'AccountNumber'
|
58
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
59
|
+
@_hash['col_co_id'] = 'ColCoId'
|
60
|
+
@_hash['payer_id'] = 'PayerId'
|
61
|
+
@_hash['payer_number'] = 'PayerNumber'
|
62
|
+
@_hash['pin_reminder_card_details'] = 'PINReminderCardDetails'
|
63
|
+
@_hash
|
64
|
+
end
|
65
|
+
|
66
|
+
# An array for optional fields
|
67
|
+
def self.optionals
|
68
|
+
%w[
|
69
|
+
account_id
|
70
|
+
account_number
|
71
|
+
col_co_code
|
72
|
+
col_co_id
|
73
|
+
payer_id
|
74
|
+
payer_number
|
75
|
+
pin_reminder_card_details
|
76
|
+
]
|
77
|
+
end
|
78
|
+
|
79
|
+
# An array for nullable fields
|
80
|
+
def self.nullables
|
81
|
+
[]
|
82
|
+
end
|
83
|
+
|
84
|
+
def initialize(account_id = SKIP,
|
85
|
+
account_number = SKIP,
|
86
|
+
col_co_code = SKIP,
|
87
|
+
col_co_id = SKIP,
|
88
|
+
payer_id = SKIP,
|
89
|
+
payer_number = SKIP,
|
90
|
+
pin_reminder_card_details = SKIP)
|
91
|
+
@account_id = account_id unless account_id == SKIP
|
92
|
+
@account_number = account_number unless account_number == SKIP
|
93
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
94
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
95
|
+
@payer_id = payer_id unless payer_id == SKIP
|
96
|
+
@payer_number = payer_number unless payer_number == SKIP
|
97
|
+
unless pin_reminder_card_details == SKIP
|
98
|
+
@pin_reminder_card_details =
|
99
|
+
pin_reminder_card_details
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# Creates an instance of the object from a hash.
|
104
|
+
def self.from_hash(hash)
|
105
|
+
return nil unless hash
|
106
|
+
|
107
|
+
# Extract variables from the hash.
|
108
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
109
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
110
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
111
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
112
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
113
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
114
|
+
# Parameter is an array, so we need to iterate through it
|
115
|
+
pin_reminder_card_details = nil
|
116
|
+
unless hash['PINReminderCardDetails'].nil?
|
117
|
+
pin_reminder_card_details = []
|
118
|
+
hash['PINReminderCardDetails'].each do |structure|
|
119
|
+
pin_reminder_card_details << (PINReminderCardDetails.from_hash(structure) if structure)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
pin_reminder_card_details = SKIP unless hash.key?('PINReminderCardDetails')
|
124
|
+
|
125
|
+
# Create object from extracted values.
|
126
|
+
PINReminderRequest.new(account_id,
|
127
|
+
account_number,
|
128
|
+
col_co_code,
|
129
|
+
col_co_id,
|
130
|
+
payer_id,
|
131
|
+
payer_number,
|
132
|
+
pin_reminder_card_details)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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
|
+
# PINReminderResponse Model.
|
8
|
+
class PINReminderResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Unique request identifier passed from end user. This identifier helps in
|
13
|
+
# tracing a transaction
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :request_id
|
16
|
+
|
17
|
+
# Service reference number for tracking.
|
18
|
+
# @return [Integer]
|
19
|
+
attr_accessor :main_reference
|
20
|
+
|
21
|
+
# Indicates overall status of the request. Allowed values: SUCCESS, FAILED
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :status
|
24
|
+
|
25
|
+
# Indicates overall status of the request. Allowed values: SUCCESS, FAILED
|
26
|
+
# @return [Array[PINReminderReference]]
|
27
|
+
attr_accessor :data
|
28
|
+
|
29
|
+
# A mapping from model property names to API property names.
|
30
|
+
def self.names
|
31
|
+
@_hash = {} if @_hash.nil?
|
32
|
+
@_hash['request_id'] = 'RequestId'
|
33
|
+
@_hash['main_reference'] = 'MainReference'
|
34
|
+
@_hash['status'] = 'Status'
|
35
|
+
@_hash['data'] = 'Data'
|
36
|
+
@_hash
|
37
|
+
end
|
38
|
+
|
39
|
+
# An array for optional fields
|
40
|
+
def self.optionals
|
41
|
+
%w[
|
42
|
+
request_id
|
43
|
+
main_reference
|
44
|
+
status
|
45
|
+
data
|
46
|
+
]
|
47
|
+
end
|
48
|
+
|
49
|
+
# An array for nullable fields
|
50
|
+
def self.nullables
|
51
|
+
[]
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(request_id = SKIP,
|
55
|
+
main_reference = SKIP,
|
56
|
+
status = SKIP,
|
57
|
+
data = SKIP)
|
58
|
+
@request_id = request_id unless request_id == SKIP
|
59
|
+
@main_reference = main_reference unless main_reference == SKIP
|
60
|
+
@status = status unless status == SKIP
|
61
|
+
@data = data unless data == SKIP
|
62
|
+
end
|
63
|
+
|
64
|
+
# Creates an instance of the object from a hash.
|
65
|
+
def self.from_hash(hash)
|
66
|
+
return nil unless hash
|
67
|
+
|
68
|
+
# Extract variables from the hash.
|
69
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
70
|
+
main_reference = hash.key?('MainReference') ? hash['MainReference'] : SKIP
|
71
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
72
|
+
# Parameter is an array, so we need to iterate through it
|
73
|
+
data = nil
|
74
|
+
unless hash['Data'].nil?
|
75
|
+
data = []
|
76
|
+
hash['Data'].each do |structure|
|
77
|
+
data << (PINReminderReference.from_hash(structure) if structure)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
data = SKIP unless hash.key?('Data')
|
82
|
+
|
83
|
+
# Create object from extracted values.
|
84
|
+
PINReminderResponse.new(request_id,
|
85
|
+
main_reference,
|
86
|
+
status,
|
87
|
+
data)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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
|
+
# ProductAllOf0 Model.
|
8
|
+
class ProductAllOf0 < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# The productCode returned by the Gateway API.
|
13
|
+
# Example: 021
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :global_product_code
|
16
|
+
|
17
|
+
# The description returned by the Gateway API.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :description
|
20
|
+
|
21
|
+
# A mapping from model property names to API property names.
|
22
|
+
def self.names
|
23
|
+
@_hash = {} if @_hash.nil?
|
24
|
+
@_hash['global_product_code'] = 'GlobalProductCode'
|
25
|
+
@_hash['description'] = 'Description'
|
26
|
+
@_hash
|
27
|
+
end
|
28
|
+
|
29
|
+
# An array for optional fields
|
30
|
+
def self.optionals
|
31
|
+
[]
|
32
|
+
end
|
33
|
+
|
34
|
+
# An array for nullable fields
|
35
|
+
def self.nullables
|
36
|
+
%w[
|
37
|
+
global_product_code
|
38
|
+
description
|
39
|
+
]
|
40
|
+
end
|
41
|
+
|
42
|
+
def initialize(global_product_code = nil,
|
43
|
+
description = nil)
|
44
|
+
@global_product_code = global_product_code
|
45
|
+
@description = description
|
46
|
+
end
|
47
|
+
|
48
|
+
# Creates an instance of the object from a hash.
|
49
|
+
def self.from_hash(hash)
|
50
|
+
return nil unless hash
|
51
|
+
|
52
|
+
# Extract variables from the hash.
|
53
|
+
global_product_code =
|
54
|
+
hash.key?('GlobalProductCode') ? hash['GlobalProductCode'] : nil
|
55
|
+
description = hash.key?('Description') ? hash['Description'] : nil
|
56
|
+
|
57
|
+
# Create object from extracted values.
|
58
|
+
ProductAllOf0.new(global_product_code,
|
59
|
+
description)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|