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,107 @@
|
|
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 sent in the http request body for Logged
|
8
|
+
# In User operation. This class inherits RequestBase class.
|
9
|
+
class LoggedInUserRequest < BaseModel
|
10
|
+
SKIP = Object.new
|
11
|
+
private_constant :SKIP
|
12
|
+
|
13
|
+
# True/False. The output will include the payer group information only when
|
14
|
+
# true is passed.
|
15
|
+
# @return [TrueClass | FalseClass]
|
16
|
+
attr_accessor :include_payer_group
|
17
|
+
|
18
|
+
# True/False. The output will include the EID (Electronic Invoice data)
|
19
|
+
# information only when true is passed..
|
20
|
+
# @return [TrueClass | FalseClass]
|
21
|
+
attr_accessor :include_eid_details
|
22
|
+
|
23
|
+
# Name of the API on which user access needs to be validated
|
24
|
+
# Optional.
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :requested_api_name
|
27
|
+
|
28
|
+
# Payer id of the customer.</br>
|
29
|
+
# Optional.</br>
|
30
|
+
# This input is a search criterion.</br>
|
31
|
+
# Note: If PayerId or PayerNumber is provided in the input, the given payer
|
32
|
+
# will be available in the output if the user has access to the given payer.
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :payer_id
|
35
|
+
|
36
|
+
# PayerNumber of the customer.</br>
|
37
|
+
# Optional</br>
|
38
|
+
# This input is a search criterion.</br>
|
39
|
+
# Note: If Payerid or PayerNumber is provided in the input, the given payer
|
40
|
+
# will be available in the output if the user has access to the given payer.
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :payer_number
|
43
|
+
|
44
|
+
# A mapping from model property names to API property names.
|
45
|
+
def self.names
|
46
|
+
@_hash = {} if @_hash.nil?
|
47
|
+
@_hash['include_payer_group'] = 'IncludePayerGroup'
|
48
|
+
@_hash['include_eid_details'] = 'IncludeEIDDetails'
|
49
|
+
@_hash['requested_api_name'] = 'RequestedAPIName'
|
50
|
+
@_hash['payer_id'] = 'PayerId'
|
51
|
+
@_hash['payer_number'] = 'PayerNumber'
|
52
|
+
@_hash
|
53
|
+
end
|
54
|
+
|
55
|
+
# An array for optional fields
|
56
|
+
def self.optionals
|
57
|
+
%w[
|
58
|
+
include_payer_group
|
59
|
+
include_eid_details
|
60
|
+
requested_api_name
|
61
|
+
payer_id
|
62
|
+
payer_number
|
63
|
+
]
|
64
|
+
end
|
65
|
+
|
66
|
+
# An array for nullable fields
|
67
|
+
def self.nullables
|
68
|
+
%w[
|
69
|
+
requested_api_name
|
70
|
+
payer_id
|
71
|
+
payer_number
|
72
|
+
]
|
73
|
+
end
|
74
|
+
|
75
|
+
def initialize(include_payer_group = false,
|
76
|
+
include_eid_details = false,
|
77
|
+
requested_api_name = SKIP,
|
78
|
+
payer_id = SKIP,
|
79
|
+
payer_number = SKIP)
|
80
|
+
@include_payer_group = include_payer_group unless include_payer_group == SKIP
|
81
|
+
@include_eid_details = include_eid_details unless include_eid_details == SKIP
|
82
|
+
@requested_api_name = requested_api_name unless requested_api_name == SKIP
|
83
|
+
@payer_id = payer_id unless payer_id == SKIP
|
84
|
+
@payer_number = payer_number unless payer_number == SKIP
|
85
|
+
end
|
86
|
+
|
87
|
+
# Creates an instance of the object from a hash.
|
88
|
+
def self.from_hash(hash)
|
89
|
+
return nil unless hash
|
90
|
+
|
91
|
+
# Extract variables from the hash.
|
92
|
+
include_payer_group = hash['IncludePayerGroup'] ||= false
|
93
|
+
include_eid_details = hash['IncludeEIDDetails'] ||= false
|
94
|
+
requested_api_name =
|
95
|
+
hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP
|
96
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
97
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
98
|
+
|
99
|
+
# Create object from extracted values.
|
100
|
+
LoggedInUserRequest.new(include_payer_group,
|
101
|
+
include_eid_details,
|
102
|
+
requested_api_name,
|
103
|
+
payer_id,
|
104
|
+
payer_number)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,394 @@
|
|
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
|
+
# LoggedInUserResponse Model.
|
8
|
+
class LoggedInUserResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Logged in User Identifier
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :user_name
|
15
|
+
|
16
|
+
# Name of the logged in user.
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :display_name
|
19
|
+
|
20
|
+
# Single Sign On/Unique Identifier of the User in Identity Management system
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :id_mssoid
|
23
|
+
|
24
|
+
# ISO culture code/ Language chosen by the logged in user
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :preferred_language
|
27
|
+
|
28
|
+
# Whether the user is a super administrator
|
29
|
+
# @return [TrueClass | FalseClass]
|
30
|
+
attr_accessor :is_super_admin
|
31
|
+
|
32
|
+
# Preferred Date format for the logged in user
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :date_format
|
35
|
+
|
36
|
+
# Preferred Time format for the logged in user
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :time_format
|
39
|
+
|
40
|
+
# Preferred Day to Begin the Week. The value will be between 1 to 7 or null.
|
41
|
+
# @return [Integer]
|
42
|
+
attr_accessor :week_begins
|
43
|
+
|
44
|
+
# Preferred Display Week on Fuel Prices configuration for the logged in
|
45
|
+
# User.
|
46
|
+
# @return [TrueClass | FalseClass]
|
47
|
+
attr_accessor :display_week
|
48
|
+
|
49
|
+
# Preferred CSV Separator for the logged in user.
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :csv_separator
|
52
|
+
|
53
|
+
# Preferred Decimal separator configured for the logged in user
|
54
|
+
# Note: - Colco default value (configured at Microservices) is returned when
|
55
|
+
# the user is not provided or does not exist.
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :decimal_separator
|
58
|
+
|
59
|
+
# Preferred report format configured for the logged in user
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :report_format
|
62
|
+
|
63
|
+
# True/False
|
64
|
+
# True, if user has access to the requested API. This is validated based on
|
65
|
+
# the role Vs API access matrix and client Vs API access matrix.
|
66
|
+
# @return [TrueClass | FalseClass]
|
67
|
+
attr_accessor :has_api_access
|
68
|
+
|
69
|
+
# List of roles the user have access to
|
70
|
+
# @return [Array[Role]]
|
71
|
+
attr_accessor :roles
|
72
|
+
|
73
|
+
# List of payers which the user has access to.
|
74
|
+
# • It will return 250 payers only and it is configurable. If the user has
|
75
|
+
# more than that, the remaining will be ignored.
|
76
|
+
# • The payer which is marked as default will be the first item in the
|
77
|
+
# output.
|
78
|
+
# Note: This list will be empty for users mapped with roles which has either
|
79
|
+
# IsShellAdmin or IsServiceAccount set to true as their access level is
|
80
|
+
# controlled at ColCo level only.
|
81
|
+
# @return [Array[PayerAccess]]
|
82
|
+
attr_accessor :payers
|
83
|
+
|
84
|
+
# List of accounts which the user has access to.
|
85
|
+
# Note: This list will be empty for users mapped with roles which has either
|
86
|
+
# IsCustomerAdmin, IsShellAdmin or IsServiceAccount set to true as their
|
87
|
+
# access level is controller at either ColCo or payer level only.
|
88
|
+
# @return [Array[AccountAccess]]
|
89
|
+
attr_accessor :accounts
|
90
|
+
|
91
|
+
# List of collecting companies to which the user has access to
|
92
|
+
# Note: This list will be empty for users mapped with roles which has either
|
93
|
+
# IsCustomerAdmin or IsCustomerUser set to true as their access level is
|
94
|
+
# controller at Payer or Account level.
|
95
|
+
# @return [Array[ColCoAccess]]
|
96
|
+
attr_accessor :collecting_companies
|
97
|
+
|
98
|
+
# List of Electronic Invoice Data configured for the user.
|
99
|
+
# Note: This list will be empty if the value of EIDDetails is set to false
|
100
|
+
# or empty in the request.
|
101
|
+
# @return [Array[EIDAccess]]
|
102
|
+
attr_accessor :eid_access_details
|
103
|
+
|
104
|
+
# User classification by system.
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :user_classification_by_system
|
107
|
+
|
108
|
+
# User classification by Shell.
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :user_classification_by_shell
|
111
|
+
|
112
|
+
# Count of payers accessible to the user at the time when user was created
|
113
|
+
# or last updated.
|
114
|
+
# Note:
|
115
|
+
# Count may vary based on customer operations hence it may not be an up to
|
116
|
+
# date value.
|
117
|
+
# @return [Integer]
|
118
|
+
attr_accessor :payer_count
|
119
|
+
|
120
|
+
# Count of accounts at the time when the user was created or last updated.
|
121
|
+
# Note:
|
122
|
+
# Count may vary based on customer operations hence it may not be an up to
|
123
|
+
# date value.
|
124
|
+
# @return [Integer]
|
125
|
+
attr_accessor :account_count
|
126
|
+
|
127
|
+
# Count of cards at the time when the user was created or last updated.
|
128
|
+
# Note:
|
129
|
+
# Count may vary based on customer operations hence it may not be an up to
|
130
|
+
# date value.
|
131
|
+
# @return [Integer]
|
132
|
+
attr_accessor :card_count
|
133
|
+
|
134
|
+
# Count of cards at the time when the user was created or last updated.
|
135
|
+
# Note:
|
136
|
+
# Count may vary based on customer operations hence it may not be an up to
|
137
|
+
# date value.
|
138
|
+
# @return [ErrorStatus]
|
139
|
+
attr_accessor :error
|
140
|
+
|
141
|
+
# Request Id of the API call
|
142
|
+
# @return [String]
|
143
|
+
attr_accessor :request_id
|
144
|
+
|
145
|
+
# A mapping from model property names to API property names.
|
146
|
+
def self.names
|
147
|
+
@_hash = {} if @_hash.nil?
|
148
|
+
@_hash['user_name'] = 'UserName'
|
149
|
+
@_hash['display_name'] = 'DisplayName'
|
150
|
+
@_hash['id_mssoid'] = 'IdMSSOID'
|
151
|
+
@_hash['preferred_language'] = 'PreferredLanguage'
|
152
|
+
@_hash['is_super_admin'] = 'IsSuperAdmin'
|
153
|
+
@_hash['date_format'] = 'DateFormat'
|
154
|
+
@_hash['time_format'] = 'TimeFormat'
|
155
|
+
@_hash['week_begins'] = 'WeekBegins'
|
156
|
+
@_hash['display_week'] = 'DisplayWeek'
|
157
|
+
@_hash['csv_separator'] = 'CSVSeparator'
|
158
|
+
@_hash['decimal_separator'] = 'DecimalSeparator'
|
159
|
+
@_hash['report_format'] = 'ReportFormat'
|
160
|
+
@_hash['has_api_access'] = 'HasAPIAccess'
|
161
|
+
@_hash['roles'] = 'Roles'
|
162
|
+
@_hash['payers'] = 'Payers'
|
163
|
+
@_hash['accounts'] = 'Accounts'
|
164
|
+
@_hash['collecting_companies'] = 'CollectingCompanies'
|
165
|
+
@_hash['eid_access_details'] = 'EIDAccessDetails'
|
166
|
+
@_hash['user_classification_by_system'] = 'UserClassificationBySystem'
|
167
|
+
@_hash['user_classification_by_shell'] = 'UserClassificationByShell'
|
168
|
+
@_hash['payer_count'] = 'PayerCount'
|
169
|
+
@_hash['account_count'] = 'AccountCount'
|
170
|
+
@_hash['card_count'] = 'CardCount'
|
171
|
+
@_hash['error'] = 'Error'
|
172
|
+
@_hash['request_id'] = 'RequestId'
|
173
|
+
@_hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# An array for optional fields
|
177
|
+
def self.optionals
|
178
|
+
%w[
|
179
|
+
user_name
|
180
|
+
display_name
|
181
|
+
id_mssoid
|
182
|
+
preferred_language
|
183
|
+
is_super_admin
|
184
|
+
date_format
|
185
|
+
time_format
|
186
|
+
week_begins
|
187
|
+
display_week
|
188
|
+
csv_separator
|
189
|
+
decimal_separator
|
190
|
+
report_format
|
191
|
+
has_api_access
|
192
|
+
roles
|
193
|
+
payers
|
194
|
+
accounts
|
195
|
+
collecting_companies
|
196
|
+
eid_access_details
|
197
|
+
user_classification_by_system
|
198
|
+
user_classification_by_shell
|
199
|
+
payer_count
|
200
|
+
account_count
|
201
|
+
card_count
|
202
|
+
error
|
203
|
+
request_id
|
204
|
+
]
|
205
|
+
end
|
206
|
+
|
207
|
+
# An array for nullable fields
|
208
|
+
def self.nullables
|
209
|
+
%w[
|
210
|
+
user_name
|
211
|
+
display_name
|
212
|
+
id_mssoid
|
213
|
+
preferred_language
|
214
|
+
date_format
|
215
|
+
time_format
|
216
|
+
week_begins
|
217
|
+
csv_separator
|
218
|
+
decimal_separator
|
219
|
+
report_format
|
220
|
+
user_classification_by_system
|
221
|
+
user_classification_by_shell
|
222
|
+
payer_count
|
223
|
+
account_count
|
224
|
+
card_count
|
225
|
+
]
|
226
|
+
end
|
227
|
+
|
228
|
+
def initialize(user_name = SKIP,
|
229
|
+
display_name = SKIP,
|
230
|
+
id_mssoid = SKIP,
|
231
|
+
preferred_language = SKIP,
|
232
|
+
is_super_admin = false,
|
233
|
+
date_format = SKIP,
|
234
|
+
time_format = SKIP,
|
235
|
+
week_begins = SKIP,
|
236
|
+
display_week = true,
|
237
|
+
csv_separator = SKIP,
|
238
|
+
decimal_separator = SKIP,
|
239
|
+
report_format = SKIP,
|
240
|
+
has_api_access = true,
|
241
|
+
roles = SKIP,
|
242
|
+
payers = SKIP,
|
243
|
+
accounts = SKIP,
|
244
|
+
collecting_companies = SKIP,
|
245
|
+
eid_access_details = SKIP,
|
246
|
+
user_classification_by_system = SKIP,
|
247
|
+
user_classification_by_shell = SKIP,
|
248
|
+
payer_count = SKIP,
|
249
|
+
account_count = SKIP,
|
250
|
+
card_count = SKIP,
|
251
|
+
error = SKIP,
|
252
|
+
request_id = SKIP)
|
253
|
+
@user_name = user_name unless user_name == SKIP
|
254
|
+
@display_name = display_name unless display_name == SKIP
|
255
|
+
@id_mssoid = id_mssoid unless id_mssoid == SKIP
|
256
|
+
@preferred_language = preferred_language unless preferred_language == SKIP
|
257
|
+
@is_super_admin = is_super_admin unless is_super_admin == SKIP
|
258
|
+
@date_format = date_format unless date_format == SKIP
|
259
|
+
@time_format = time_format unless time_format == SKIP
|
260
|
+
@week_begins = week_begins unless week_begins == SKIP
|
261
|
+
@display_week = display_week unless display_week == SKIP
|
262
|
+
@csv_separator = csv_separator unless csv_separator == SKIP
|
263
|
+
@decimal_separator = decimal_separator unless decimal_separator == SKIP
|
264
|
+
@report_format = report_format unless report_format == SKIP
|
265
|
+
@has_api_access = has_api_access unless has_api_access == SKIP
|
266
|
+
@roles = roles unless roles == SKIP
|
267
|
+
@payers = payers unless payers == SKIP
|
268
|
+
@accounts = accounts unless accounts == SKIP
|
269
|
+
@collecting_companies = collecting_companies unless collecting_companies == SKIP
|
270
|
+
@eid_access_details = eid_access_details unless eid_access_details == SKIP
|
271
|
+
unless user_classification_by_system == SKIP
|
272
|
+
@user_classification_by_system =
|
273
|
+
user_classification_by_system
|
274
|
+
end
|
275
|
+
unless user_classification_by_shell == SKIP
|
276
|
+
@user_classification_by_shell =
|
277
|
+
user_classification_by_shell
|
278
|
+
end
|
279
|
+
@payer_count = payer_count unless payer_count == SKIP
|
280
|
+
@account_count = account_count unless account_count == SKIP
|
281
|
+
@card_count = card_count unless card_count == SKIP
|
282
|
+
@error = error unless error == SKIP
|
283
|
+
@request_id = request_id unless request_id == SKIP
|
284
|
+
end
|
285
|
+
|
286
|
+
# Creates an instance of the object from a hash.
|
287
|
+
def self.from_hash(hash)
|
288
|
+
return nil unless hash
|
289
|
+
|
290
|
+
# Extract variables from the hash.
|
291
|
+
user_name = hash.key?('UserName') ? hash['UserName'] : SKIP
|
292
|
+
display_name = hash.key?('DisplayName') ? hash['DisplayName'] : SKIP
|
293
|
+
id_mssoid = hash.key?('IdMSSOID') ? hash['IdMSSOID'] : SKIP
|
294
|
+
preferred_language =
|
295
|
+
hash.key?('PreferredLanguage') ? hash['PreferredLanguage'] : SKIP
|
296
|
+
is_super_admin = hash['IsSuperAdmin'] ||= false
|
297
|
+
date_format = hash.key?('DateFormat') ? hash['DateFormat'] : SKIP
|
298
|
+
time_format = hash.key?('TimeFormat') ? hash['TimeFormat'] : SKIP
|
299
|
+
week_begins = hash.key?('WeekBegins') ? hash['WeekBegins'] : SKIP
|
300
|
+
display_week = hash['DisplayWeek'] ||= true
|
301
|
+
csv_separator = hash.key?('CSVSeparator') ? hash['CSVSeparator'] : SKIP
|
302
|
+
decimal_separator =
|
303
|
+
hash.key?('DecimalSeparator') ? hash['DecimalSeparator'] : SKIP
|
304
|
+
report_format = hash.key?('ReportFormat') ? hash['ReportFormat'] : SKIP
|
305
|
+
has_api_access = hash['HasAPIAccess'] ||= true
|
306
|
+
# Parameter is an array, so we need to iterate through it
|
307
|
+
roles = nil
|
308
|
+
unless hash['Roles'].nil?
|
309
|
+
roles = []
|
310
|
+
hash['Roles'].each do |structure|
|
311
|
+
roles << (Role.from_hash(structure) if structure)
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
roles = SKIP unless hash.key?('Roles')
|
316
|
+
# Parameter is an array, so we need to iterate through it
|
317
|
+
payers = nil
|
318
|
+
unless hash['Payers'].nil?
|
319
|
+
payers = []
|
320
|
+
hash['Payers'].each do |structure|
|
321
|
+
payers << (PayerAccess.from_hash(structure) if structure)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
payers = SKIP unless hash.key?('Payers')
|
326
|
+
# Parameter is an array, so we need to iterate through it
|
327
|
+
accounts = nil
|
328
|
+
unless hash['Accounts'].nil?
|
329
|
+
accounts = []
|
330
|
+
hash['Accounts'].each do |structure|
|
331
|
+
accounts << (AccountAccess.from_hash(structure) if structure)
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
accounts = SKIP unless hash.key?('Accounts')
|
336
|
+
# Parameter is an array, so we need to iterate through it
|
337
|
+
collecting_companies = nil
|
338
|
+
unless hash['CollectingCompanies'].nil?
|
339
|
+
collecting_companies = []
|
340
|
+
hash['CollectingCompanies'].each do |structure|
|
341
|
+
collecting_companies << (ColCoAccess.from_hash(structure) if structure)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
collecting_companies = SKIP unless hash.key?('CollectingCompanies')
|
346
|
+
# Parameter is an array, so we need to iterate through it
|
347
|
+
eid_access_details = nil
|
348
|
+
unless hash['EIDAccessDetails'].nil?
|
349
|
+
eid_access_details = []
|
350
|
+
hash['EIDAccessDetails'].each do |structure|
|
351
|
+
eid_access_details << (EIDAccess.from_hash(structure) if structure)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
eid_access_details = SKIP unless hash.key?('EIDAccessDetails')
|
356
|
+
user_classification_by_system =
|
357
|
+
hash.key?('UserClassificationBySystem') ? hash['UserClassificationBySystem'] : SKIP
|
358
|
+
user_classification_by_shell =
|
359
|
+
hash.key?('UserClassificationByShell') ? hash['UserClassificationByShell'] : SKIP
|
360
|
+
payer_count = hash.key?('PayerCount') ? hash['PayerCount'] : SKIP
|
361
|
+
account_count = hash.key?('AccountCount') ? hash['AccountCount'] : SKIP
|
362
|
+
card_count = hash.key?('CardCount') ? hash['CardCount'] : SKIP
|
363
|
+
error = ErrorStatus.from_hash(hash['Error']) if hash['Error']
|
364
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
365
|
+
|
366
|
+
# Create object from extracted values.
|
367
|
+
LoggedInUserResponse.new(user_name,
|
368
|
+
display_name,
|
369
|
+
id_mssoid,
|
370
|
+
preferred_language,
|
371
|
+
is_super_admin,
|
372
|
+
date_format,
|
373
|
+
time_format,
|
374
|
+
week_begins,
|
375
|
+
display_week,
|
376
|
+
csv_separator,
|
377
|
+
decimal_separator,
|
378
|
+
report_format,
|
379
|
+
has_api_access,
|
380
|
+
roles,
|
381
|
+
payers,
|
382
|
+
accounts,
|
383
|
+
collecting_companies,
|
384
|
+
eid_access_details,
|
385
|
+
user_classification_by_system,
|
386
|
+
user_classification_by_shell,
|
387
|
+
payer_count,
|
388
|
+
account_count,
|
389
|
+
card_count,
|
390
|
+
error,
|
391
|
+
request_id)
|
392
|
+
end
|
393
|
+
end
|
394
|
+
end
|
@@ -0,0 +1,45 @@
|
|
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
|
+
# OAuth 2 Authorization error codes
|
8
|
+
class OAuthProviderErrorEnum
|
9
|
+
O_AUTH_PROVIDER_ERROR_ENUM = [
|
10
|
+
# The request is missing a required parameter, includes an unsupported
|
11
|
+
# parameter value (other than grant type), repeats a parameter, includes
|
12
|
+
# multiple credentials, utilizes more than one mechanism for
|
13
|
+
# authenticating the client, or is otherwise malformed.
|
14
|
+
INVALID_REQUEST = 'invalid_request'.freeze,
|
15
|
+
|
16
|
+
# Client authentication failed (e.g., unknown client, no client
|
17
|
+
# authentication included, or unsupported authentication method).
|
18
|
+
INVALID_CLIENT = 'invalid_client'.freeze,
|
19
|
+
|
20
|
+
# The provided authorization grant (e.g., authorization code, resource
|
21
|
+
# owner credentials) or refresh token is invalid, expired, revoked, does
|
22
|
+
# not match the redirection URI used in the authorization request, or was
|
23
|
+
# issued to another client.
|
24
|
+
INVALID_GRANT = 'invalid_grant'.freeze,
|
25
|
+
|
26
|
+
# The authenticated client is not authorized to use this authorization
|
27
|
+
# grant type.
|
28
|
+
UNAUTHORIZED_CLIENT = 'unauthorized_client'.freeze,
|
29
|
+
|
30
|
+
# The authorization grant type is not supported by the authorization
|
31
|
+
# server.
|
32
|
+
UNSUPPORTED_GRANT_TYPE = 'unsupported_grant_type'.freeze,
|
33
|
+
|
34
|
+
# The requested scope is invalid, unknown, malformed, or exceeds the scope
|
35
|
+
# granted by the resource owner.
|
36
|
+
INVALID_SCOPE = 'invalid_scope'.freeze
|
37
|
+
].freeze
|
38
|
+
|
39
|
+
def self.validate(value)
|
40
|
+
return false if value.nil?
|
41
|
+
|
42
|
+
O_AUTH_PROVIDER_ERROR_ENUM.include?(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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
|
+
# OAuth 2 Authorization endpoint response
|
8
|
+
class OAuthToken < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Access token
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :access_token
|
15
|
+
|
16
|
+
# Type of access token
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :token_type
|
19
|
+
|
20
|
+
# Time in seconds before the access token expires
|
21
|
+
# @return [Integer]
|
22
|
+
attr_accessor :expires_in
|
23
|
+
|
24
|
+
# List of scopes granted
|
25
|
+
# This is a space-delimited list of strings.
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :scope
|
28
|
+
|
29
|
+
# Time of token expiry as unix timestamp (UTC)
|
30
|
+
# @return [Integer]
|
31
|
+
attr_accessor :expiry
|
32
|
+
|
33
|
+
# Refresh token
|
34
|
+
# Used to get a new access token when it expires.
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :refresh_token
|
37
|
+
|
38
|
+
# A mapping from model property names to API property names.
|
39
|
+
def self.names
|
40
|
+
@_hash = {} if @_hash.nil?
|
41
|
+
@_hash['access_token'] = 'access_token'
|
42
|
+
@_hash['token_type'] = 'token_type'
|
43
|
+
@_hash['expires_in'] = 'expires_in'
|
44
|
+
@_hash['scope'] = 'scope'
|
45
|
+
@_hash['expiry'] = 'expiry'
|
46
|
+
@_hash['refresh_token'] = 'refresh_token'
|
47
|
+
@_hash
|
48
|
+
end
|
49
|
+
|
50
|
+
# An array for optional fields
|
51
|
+
def self.optionals
|
52
|
+
%w[
|
53
|
+
expires_in
|
54
|
+
scope
|
55
|
+
expiry
|
56
|
+
refresh_token
|
57
|
+
]
|
58
|
+
end
|
59
|
+
|
60
|
+
# An array for nullable fields
|
61
|
+
def self.nullables
|
62
|
+
[]
|
63
|
+
end
|
64
|
+
|
65
|
+
def initialize(access_token = nil,
|
66
|
+
token_type = nil,
|
67
|
+
expires_in = SKIP,
|
68
|
+
scope = SKIP,
|
69
|
+
expiry = SKIP,
|
70
|
+
refresh_token = SKIP)
|
71
|
+
@access_token = access_token
|
72
|
+
@token_type = token_type
|
73
|
+
@expires_in = expires_in unless expires_in == SKIP
|
74
|
+
@scope = scope unless scope == SKIP
|
75
|
+
@expiry = expiry unless expiry == SKIP
|
76
|
+
@refresh_token = refresh_token unless refresh_token == 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
|
+
access_token = hash.key?('access_token') ? hash['access_token'] : nil
|
85
|
+
token_type = hash.key?('token_type') ? hash['token_type'] : nil
|
86
|
+
expires_in = hash.key?('expires_in') ? hash['expires_in'] : SKIP
|
87
|
+
scope = hash.key?('scope') ? hash['scope'] : SKIP
|
88
|
+
expiry = hash.key?('expiry') ? hash['expiry'] : SKIP
|
89
|
+
refresh_token = hash.key?('refresh_token') ? hash['refresh_token'] : SKIP
|
90
|
+
|
91
|
+
# Create object from extracted values.
|
92
|
+
OAuthToken.new(access_token,
|
93
|
+
token_type,
|
94
|
+
expires_in,
|
95
|
+
scope,
|
96
|
+
expiry,
|
97
|
+
refresh_token)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|