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,52 @@
|
|
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
|
+
# CardSummaryRequest Model.
|
8
|
+
class CardSummaryRequest < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Encapsulates the details of a Summary Request.
|
13
|
+
# Summary Request fields are same as the Search Request base class and no
|
14
|
+
# new fields are required.
|
15
|
+
# @return [SummaryRequest]
|
16
|
+
attr_accessor :filters
|
17
|
+
|
18
|
+
# A mapping from model property names to API property names.
|
19
|
+
def self.names
|
20
|
+
@_hash = {} if @_hash.nil?
|
21
|
+
@_hash['filters'] = 'Filters'
|
22
|
+
@_hash
|
23
|
+
end
|
24
|
+
|
25
|
+
# An array for optional fields
|
26
|
+
def self.optionals
|
27
|
+
%w[
|
28
|
+
filters
|
29
|
+
]
|
30
|
+
end
|
31
|
+
|
32
|
+
# An array for nullable fields
|
33
|
+
def self.nullables
|
34
|
+
[]
|
35
|
+
end
|
36
|
+
|
37
|
+
def initialize(filters = SKIP)
|
38
|
+
@filters = filters unless filters == SKIP
|
39
|
+
end
|
40
|
+
|
41
|
+
# Creates an instance of the object from a hash.
|
42
|
+
def self.from_hash(hash)
|
43
|
+
return nil unless hash
|
44
|
+
|
45
|
+
# Extract variables from the hash.
|
46
|
+
filters = SummaryRequest.from_hash(hash['Filters']) if hash['Filters']
|
47
|
+
|
48
|
+
# Create object from extracted values.
|
49
|
+
CardSummaryRequest.new(filters)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,82 @@
|
|
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
|
+
# CardSummaryResponse Model.
|
8
|
+
class CardSummaryResponse < 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
|
+
# Unique request identifier passed from end user. This identifier helps in
|
18
|
+
# tracing a transaction
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :status
|
21
|
+
|
22
|
+
# Unique request identifier passed from end user. This identifier helps in
|
23
|
+
# tracing a transaction
|
24
|
+
# @return [Array[SummaryResponse]]
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# A mapping from model property names to API property names.
|
28
|
+
def self.names
|
29
|
+
@_hash = {} if @_hash.nil?
|
30
|
+
@_hash['request_id'] = 'RequestId'
|
31
|
+
@_hash['status'] = 'Status'
|
32
|
+
@_hash['data'] = 'Data'
|
33
|
+
@_hash
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for optional fields
|
37
|
+
def self.optionals
|
38
|
+
%w[
|
39
|
+
request_id
|
40
|
+
status
|
41
|
+
data
|
42
|
+
]
|
43
|
+
end
|
44
|
+
|
45
|
+
# An array for nullable fields
|
46
|
+
def self.nullables
|
47
|
+
[]
|
48
|
+
end
|
49
|
+
|
50
|
+
def initialize(request_id = SKIP,
|
51
|
+
status = SKIP,
|
52
|
+
data = SKIP)
|
53
|
+
@request_id = request_id unless request_id == SKIP
|
54
|
+
@status = status unless status == SKIP
|
55
|
+
@data = data unless data == SKIP
|
56
|
+
end
|
57
|
+
|
58
|
+
# Creates an instance of the object from a hash.
|
59
|
+
def self.from_hash(hash)
|
60
|
+
return nil unless hash
|
61
|
+
|
62
|
+
# Extract variables from the hash.
|
63
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
64
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
65
|
+
# Parameter is an array, so we need to iterate through it
|
66
|
+
data = nil
|
67
|
+
unless hash['Data'].nil?
|
68
|
+
data = []
|
69
|
+
hash['Data'].each do |structure|
|
70
|
+
data << (SummaryResponse.from_hash(structure) if structure)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
data = SKIP unless hash.key?('Data')
|
75
|
+
|
76
|
+
# Create object from extracted values.
|
77
|
+
CardSummaryResponse.new(request_id,
|
78
|
+
status,
|
79
|
+
data)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,145 @@
|
|
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
|
+
# CardTypeRequest Model.
|
8
|
+
class CardTypeRequest < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Collecting Company Id of the selected payer.
|
13
|
+
# Optional if ColCoCode is passed else Mandatory.
|
14
|
+
# @return [Integer]
|
15
|
+
attr_accessor :col_co_id
|
16
|
+
|
17
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
18
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
19
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
20
|
+
# @return [Integer]
|
21
|
+
attr_accessor :col_co_code
|
22
|
+
|
23
|
+
# Payer Id of the selected payer.
|
24
|
+
# @return [Integer]
|
25
|
+
attr_accessor :payer_id
|
26
|
+
|
27
|
+
# Payer Number of the selected payer.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :payer_number
|
30
|
+
|
31
|
+
# Account Id of the customer.
|
32
|
+
# Optional if AccountNumber is passed else Mandatory.
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :account_id
|
35
|
+
|
36
|
+
# Account Number of the customer.
|
37
|
+
# Optional if AccountId is passed else Mandatory
|
38
|
+
# Example: GB000000124
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :account_number
|
41
|
+
|
42
|
+
# Include usage restrictions in the response.
|
43
|
+
# Optional field– default value is False.
|
44
|
+
# Possible values: True/False
|
45
|
+
# @return [TrueClass | FalseClass]
|
46
|
+
attr_accessor :include_usage_restrictions
|
47
|
+
|
48
|
+
# Include purchase categories in the response.
|
49
|
+
# Optional field– default value is False.
|
50
|
+
# Possible values: True/False
|
51
|
+
# @return [TrueClass | FalseClass]
|
52
|
+
attr_accessor :include_purchase_categories
|
53
|
+
|
54
|
+
# A mapping from model property names to API property names.
|
55
|
+
def self.names
|
56
|
+
@_hash = {} if @_hash.nil?
|
57
|
+
@_hash['col_co_id'] = 'ColCoId'
|
58
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
59
|
+
@_hash['payer_id'] = 'PayerId'
|
60
|
+
@_hash['payer_number'] = 'PayerNumber'
|
61
|
+
@_hash['account_id'] = 'AccountId'
|
62
|
+
@_hash['account_number'] = 'AccountNumber'
|
63
|
+
@_hash['include_usage_restrictions'] = 'IncludeUsageRestrictions'
|
64
|
+
@_hash['include_purchase_categories'] = 'IncludePurchaseCategories'
|
65
|
+
@_hash
|
66
|
+
end
|
67
|
+
|
68
|
+
# An array for optional fields
|
69
|
+
def self.optionals
|
70
|
+
%w[
|
71
|
+
col_co_id
|
72
|
+
col_co_code
|
73
|
+
payer_id
|
74
|
+
payer_number
|
75
|
+
account_id
|
76
|
+
account_number
|
77
|
+
include_usage_restrictions
|
78
|
+
include_purchase_categories
|
79
|
+
]
|
80
|
+
end
|
81
|
+
|
82
|
+
# An array for nullable fields
|
83
|
+
def self.nullables
|
84
|
+
%w[
|
85
|
+
col_co_id
|
86
|
+
col_co_code
|
87
|
+
payer_id
|
88
|
+
payer_number
|
89
|
+
account_id
|
90
|
+
account_number
|
91
|
+
]
|
92
|
+
end
|
93
|
+
|
94
|
+
def initialize(col_co_id = SKIP,
|
95
|
+
col_co_code = SKIP,
|
96
|
+
payer_id = SKIP,
|
97
|
+
payer_number = SKIP,
|
98
|
+
account_id = SKIP,
|
99
|
+
account_number = SKIP,
|
100
|
+
include_usage_restrictions = SKIP,
|
101
|
+
include_purchase_categories = SKIP)
|
102
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
103
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
104
|
+
@payer_id = payer_id unless payer_id == SKIP
|
105
|
+
@payer_number = payer_number unless payer_number == SKIP
|
106
|
+
@account_id = account_id unless account_id == SKIP
|
107
|
+
@account_number = account_number unless account_number == SKIP
|
108
|
+
unless include_usage_restrictions == SKIP
|
109
|
+
@include_usage_restrictions =
|
110
|
+
include_usage_restrictions
|
111
|
+
end
|
112
|
+
unless include_purchase_categories == SKIP
|
113
|
+
@include_purchase_categories =
|
114
|
+
include_purchase_categories
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# Creates an instance of the object from a hash.
|
119
|
+
def self.from_hash(hash)
|
120
|
+
return nil unless hash
|
121
|
+
|
122
|
+
# Extract variables from the hash.
|
123
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
124
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
125
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
126
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
127
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
128
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
129
|
+
include_usage_restrictions =
|
130
|
+
hash.key?('IncludeUsageRestrictions') ? hash['IncludeUsageRestrictions'] : SKIP
|
131
|
+
include_purchase_categories =
|
132
|
+
hash.key?('IncludePurchaseCategories') ? hash['IncludePurchaseCategories'] : SKIP
|
133
|
+
|
134
|
+
# Create object from extracted values.
|
135
|
+
CardTypeRequest.new(col_co_id,
|
136
|
+
col_co_code,
|
137
|
+
payer_id,
|
138
|
+
payer_number,
|
139
|
+
account_id,
|
140
|
+
account_number,
|
141
|
+
include_usage_restrictions,
|
142
|
+
include_purchase_categories)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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
|
+
# CardTypeResponse Model.
|
8
|
+
class CardTypeResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [Array[CardTypeResponseCustomerCardTypesItems]]
|
14
|
+
attr_accessor :customer_card_types
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [CardTypeResponseError]
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
# API Request Id
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :request_id
|
23
|
+
|
24
|
+
# A mapping from model property names to API property names.
|
25
|
+
def self.names
|
26
|
+
@_hash = {} if @_hash.nil?
|
27
|
+
@_hash['customer_card_types'] = 'CustomerCardTypes'
|
28
|
+
@_hash['error'] = 'Error'
|
29
|
+
@_hash['request_id'] = 'RequestId'
|
30
|
+
@_hash
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for optional fields
|
34
|
+
def self.optionals
|
35
|
+
%w[
|
36
|
+
customer_card_types
|
37
|
+
error
|
38
|
+
request_id
|
39
|
+
]
|
40
|
+
end
|
41
|
+
|
42
|
+
# An array for nullable fields
|
43
|
+
def self.nullables
|
44
|
+
[]
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(customer_card_types = SKIP,
|
48
|
+
error = SKIP,
|
49
|
+
request_id = SKIP)
|
50
|
+
@customer_card_types = customer_card_types unless customer_card_types == SKIP
|
51
|
+
@error = error unless error == SKIP
|
52
|
+
@request_id = request_id unless request_id == SKIP
|
53
|
+
end
|
54
|
+
|
55
|
+
# Creates an instance of the object from a hash.
|
56
|
+
def self.from_hash(hash)
|
57
|
+
return nil unless hash
|
58
|
+
|
59
|
+
# Extract variables from the hash.
|
60
|
+
# Parameter is an array, so we need to iterate through it
|
61
|
+
customer_card_types = nil
|
62
|
+
unless hash['CustomerCardTypes'].nil?
|
63
|
+
customer_card_types = []
|
64
|
+
hash['CustomerCardTypes'].each do |structure|
|
65
|
+
customer_card_types << (CardTypeResponseCustomerCardTypesItems.from_hash(structure) if structure)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
customer_card_types = SKIP unless hash.key?('CustomerCardTypes')
|
70
|
+
error = CardTypeResponseError.from_hash(hash['Error']) if hash['Error']
|
71
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
72
|
+
|
73
|
+
# Create object from extracted values.
|
74
|
+
CardTypeResponse.new(customer_card_types,
|
75
|
+
error,
|
76
|
+
request_id)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|