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,184 @@
|
|
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
|
+
# Encapsulates the details of a Summary response.
|
8
|
+
class SummaryResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Total number of active cards for the given search criteria
|
13
|
+
# @return [Integer]
|
14
|
+
attr_accessor :active_cards
|
15
|
+
|
16
|
+
# Total number of cards for the given search criteria that are permanently
|
17
|
+
# blocked (Blocked)
|
18
|
+
# @return [Integer]
|
19
|
+
attr_accessor :blocked_cards
|
20
|
+
|
21
|
+
# Total number of cards for the given search criteria that are cancelled (at
|
22
|
+
# cancelled status) blocked by customer
|
23
|
+
# @return [Integer]
|
24
|
+
attr_accessor :cancelled_cards
|
25
|
+
|
26
|
+
# Total number of expired cards for the given search criteria
|
27
|
+
# @return [Integer]
|
28
|
+
attr_accessor :expired_cards
|
29
|
+
|
30
|
+
# Cards that are active and expiring in X days, X should be configurable
|
31
|
+
# @return [Integer]
|
32
|
+
attr_accessor :expiring_cards
|
33
|
+
|
34
|
+
# Totalnumber of Cards in Fraud status for the given search criteria.
|
35
|
+
# @return [Integer]
|
36
|
+
attr_accessor :fraud_cards
|
37
|
+
|
38
|
+
# Total number of cards in New status for the given search criteria.
|
39
|
+
# @return [Integer]
|
40
|
+
attr_accessor :new_cards
|
41
|
+
|
42
|
+
# Total number of Renewal Pending cards for the given search criteria
|
43
|
+
# @return [Integer]
|
44
|
+
attr_accessor :renewal_pending_cards
|
45
|
+
|
46
|
+
# Cards with status Replaced
|
47
|
+
# @return [Integer]
|
48
|
+
attr_accessor :replaced_cards
|
49
|
+
|
50
|
+
# Total number of cards for the given search criteria that are temporarily
|
51
|
+
# blocked by customer
|
52
|
+
# @return [Integer]
|
53
|
+
attr_accessor :temporary_block_by_customer
|
54
|
+
|
55
|
+
# Total number of cards for the given search criteria that are temporarily
|
56
|
+
# blocked by Shell
|
57
|
+
# @return [Integer]
|
58
|
+
attr_accessor :temporary_block_by_shell
|
59
|
+
|
60
|
+
# Total number of cards for the given search criteria
|
61
|
+
# @return [Integer]
|
62
|
+
attr_accessor :total_cards
|
63
|
+
|
64
|
+
# A mapping from model property names to API property names.
|
65
|
+
def self.names
|
66
|
+
@_hash = {} if @_hash.nil?
|
67
|
+
@_hash['active_cards'] = 'ActiveCards'
|
68
|
+
@_hash['blocked_cards'] = 'BlockedCards'
|
69
|
+
@_hash['cancelled_cards'] = 'CancelledCards'
|
70
|
+
@_hash['expired_cards'] = 'ExpiredCards'
|
71
|
+
@_hash['expiring_cards'] = 'ExpiringCards'
|
72
|
+
@_hash['fraud_cards'] = 'FraudCards'
|
73
|
+
@_hash['new_cards'] = 'NewCards'
|
74
|
+
@_hash['renewal_pending_cards'] = 'RenewalPendingCards'
|
75
|
+
@_hash['replaced_cards'] = 'ReplacedCards'
|
76
|
+
@_hash['temporary_block_by_customer'] = 'TemporaryBlockByCustomer'
|
77
|
+
@_hash['temporary_block_by_shell'] = 'TemporaryBlockByShell'
|
78
|
+
@_hash['total_cards'] = 'TotalCards'
|
79
|
+
@_hash
|
80
|
+
end
|
81
|
+
|
82
|
+
# An array for optional fields
|
83
|
+
def self.optionals
|
84
|
+
%w[
|
85
|
+
active_cards
|
86
|
+
blocked_cards
|
87
|
+
cancelled_cards
|
88
|
+
expired_cards
|
89
|
+
expiring_cards
|
90
|
+
fraud_cards
|
91
|
+
new_cards
|
92
|
+
renewal_pending_cards
|
93
|
+
replaced_cards
|
94
|
+
temporary_block_by_customer
|
95
|
+
temporary_block_by_shell
|
96
|
+
total_cards
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
# An array for nullable fields
|
101
|
+
def self.nullables
|
102
|
+
%w[
|
103
|
+
active_cards
|
104
|
+
blocked_cards
|
105
|
+
cancelled_cards
|
106
|
+
expired_cards
|
107
|
+
expiring_cards
|
108
|
+
fraud_cards
|
109
|
+
new_cards
|
110
|
+
renewal_pending_cards
|
111
|
+
replaced_cards
|
112
|
+
temporary_block_by_customer
|
113
|
+
temporary_block_by_shell
|
114
|
+
total_cards
|
115
|
+
]
|
116
|
+
end
|
117
|
+
|
118
|
+
def initialize(active_cards = SKIP,
|
119
|
+
blocked_cards = SKIP,
|
120
|
+
cancelled_cards = SKIP,
|
121
|
+
expired_cards = SKIP,
|
122
|
+
expiring_cards = SKIP,
|
123
|
+
fraud_cards = SKIP,
|
124
|
+
new_cards = SKIP,
|
125
|
+
renewal_pending_cards = SKIP,
|
126
|
+
replaced_cards = SKIP,
|
127
|
+
temporary_block_by_customer = SKIP,
|
128
|
+
temporary_block_by_shell = SKIP,
|
129
|
+
total_cards = SKIP)
|
130
|
+
@active_cards = active_cards unless active_cards == SKIP
|
131
|
+
@blocked_cards = blocked_cards unless blocked_cards == SKIP
|
132
|
+
@cancelled_cards = cancelled_cards unless cancelled_cards == SKIP
|
133
|
+
@expired_cards = expired_cards unless expired_cards == SKIP
|
134
|
+
@expiring_cards = expiring_cards unless expiring_cards == SKIP
|
135
|
+
@fraud_cards = fraud_cards unless fraud_cards == SKIP
|
136
|
+
@new_cards = new_cards unless new_cards == SKIP
|
137
|
+
@renewal_pending_cards = renewal_pending_cards unless renewal_pending_cards == SKIP
|
138
|
+
@replaced_cards = replaced_cards unless replaced_cards == SKIP
|
139
|
+
unless temporary_block_by_customer == SKIP
|
140
|
+
@temporary_block_by_customer =
|
141
|
+
temporary_block_by_customer
|
142
|
+
end
|
143
|
+
@temporary_block_by_shell = temporary_block_by_shell unless temporary_block_by_shell == SKIP
|
144
|
+
@total_cards = total_cards unless total_cards == SKIP
|
145
|
+
end
|
146
|
+
|
147
|
+
# Creates an instance of the object from a hash.
|
148
|
+
def self.from_hash(hash)
|
149
|
+
return nil unless hash
|
150
|
+
|
151
|
+
# Extract variables from the hash.
|
152
|
+
active_cards = hash.key?('ActiveCards') ? hash['ActiveCards'] : SKIP
|
153
|
+
blocked_cards = hash.key?('BlockedCards') ? hash['BlockedCards'] : SKIP
|
154
|
+
cancelled_cards =
|
155
|
+
hash.key?('CancelledCards') ? hash['CancelledCards'] : SKIP
|
156
|
+
expired_cards = hash.key?('ExpiredCards') ? hash['ExpiredCards'] : SKIP
|
157
|
+
expiring_cards = hash.key?('ExpiringCards') ? hash['ExpiringCards'] : SKIP
|
158
|
+
fraud_cards = hash.key?('FraudCards') ? hash['FraudCards'] : SKIP
|
159
|
+
new_cards = hash.key?('NewCards') ? hash['NewCards'] : SKIP
|
160
|
+
renewal_pending_cards =
|
161
|
+
hash.key?('RenewalPendingCards') ? hash['RenewalPendingCards'] : SKIP
|
162
|
+
replaced_cards = hash.key?('ReplacedCards') ? hash['ReplacedCards'] : SKIP
|
163
|
+
temporary_block_by_customer =
|
164
|
+
hash.key?('TemporaryBlockByCustomer') ? hash['TemporaryBlockByCustomer'] : SKIP
|
165
|
+
temporary_block_by_shell =
|
166
|
+
hash.key?('TemporaryBlockByShell') ? hash['TemporaryBlockByShell'] : SKIP
|
167
|
+
total_cards = hash.key?('TotalCards') ? hash['TotalCards'] : SKIP
|
168
|
+
|
169
|
+
# Create object from extracted values.
|
170
|
+
SummaryResponse.new(active_cards,
|
171
|
+
blocked_cards,
|
172
|
+
cancelled_cards,
|
173
|
+
expired_cards,
|
174
|
+
expiring_cards,
|
175
|
+
fraud_cards,
|
176
|
+
new_cards,
|
177
|
+
renewal_pending_cards,
|
178
|
+
replaced_cards,
|
179
|
+
temporary_block_by_customer,
|
180
|
+
temporary_block_by_shell,
|
181
|
+
total_cards)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
@@ -0,0 +1,126 @@
|
|
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
|
+
# SummaryofBundle Model.
|
8
|
+
class SummaryofBundle < 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
|
+
# Example:
|
15
|
+
# 1 for Philippines
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :col_co_id
|
18
|
+
|
19
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
20
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
21
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
22
|
+
# Example:
|
23
|
+
# 86 for Philippines
|
24
|
+
# 5 for UK
|
25
|
+
# @return [Integer]
|
26
|
+
attr_accessor :col_co_code
|
27
|
+
|
28
|
+
# Payer Number of the selected payer.
|
29
|
+
# Either PayerId or PayerNumber or both must be passed.
|
30
|
+
# Example: GB000000123
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :payer_number
|
33
|
+
|
34
|
+
# Payer Id of the selected payer.
|
35
|
+
# Either PayerId or PayerNumber or both must be passed.
|
36
|
+
# Example: 123456
|
37
|
+
# @return [Integer]
|
38
|
+
attr_accessor :payer_id
|
39
|
+
|
40
|
+
# Account ID of the customer.
|
41
|
+
# Either AccountId or AccountNumber or both must be passed.
|
42
|
+
# Example: 123456
|
43
|
+
# @return [Integer]
|
44
|
+
attr_accessor :account_id
|
45
|
+
|
46
|
+
# Account Number of the customer.
|
47
|
+
# Either AccountId or AccountNumber or both must be passed.
|
48
|
+
# Example: GB000000123
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :account_number
|
51
|
+
|
52
|
+
# Identifier of the card bundle in Gateway.
|
53
|
+
# Mandatory
|
54
|
+
# @return [Array[String]]
|
55
|
+
attr_accessor :bundle_id
|
56
|
+
|
57
|
+
# A mapping from model property names to API property names.
|
58
|
+
def self.names
|
59
|
+
@_hash = {} if @_hash.nil?
|
60
|
+
@_hash['col_co_id'] = 'ColCoId'
|
61
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
62
|
+
@_hash['payer_number'] = 'PayerNumber'
|
63
|
+
@_hash['payer_id'] = 'PayerId'
|
64
|
+
@_hash['account_id'] = 'AccountId'
|
65
|
+
@_hash['account_number'] = 'AccountNumber'
|
66
|
+
@_hash['bundle_id'] = 'BundleId'
|
67
|
+
@_hash
|
68
|
+
end
|
69
|
+
|
70
|
+
# An array for optional fields
|
71
|
+
def self.optionals
|
72
|
+
%w[
|
73
|
+
col_co_id
|
74
|
+
col_co_code
|
75
|
+
payer_number
|
76
|
+
payer_id
|
77
|
+
account_id
|
78
|
+
account_number
|
79
|
+
]
|
80
|
+
end
|
81
|
+
|
82
|
+
# An array for nullable fields
|
83
|
+
def self.nullables
|
84
|
+
[]
|
85
|
+
end
|
86
|
+
|
87
|
+
def initialize(bundle_id = nil,
|
88
|
+
col_co_id = SKIP,
|
89
|
+
col_co_code = SKIP,
|
90
|
+
payer_number = SKIP,
|
91
|
+
payer_id = SKIP,
|
92
|
+
account_id = SKIP,
|
93
|
+
account_number = SKIP)
|
94
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
95
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
96
|
+
@payer_number = payer_number unless payer_number == SKIP
|
97
|
+
@payer_id = payer_id unless payer_id == SKIP
|
98
|
+
@account_id = account_id unless account_id == SKIP
|
99
|
+
@account_number = account_number unless account_number == SKIP
|
100
|
+
@bundle_id = bundle_id
|
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
|
+
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
|
109
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
110
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
111
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
112
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
113
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
114
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
115
|
+
|
116
|
+
# Create object from extracted values.
|
117
|
+
SummaryofBundle.new(bundle_id,
|
118
|
+
col_co_id,
|
119
|
+
col_co_code,
|
120
|
+
payer_number,
|
121
|
+
payer_id,
|
122
|
+
account_id,
|
123
|
+
account_number)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,194 @@
|
|
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
|
+
# UpdateBundleRequest Model.
|
8
|
+
class UpdateBundleRequest < 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
|
+
# Example:
|
15
|
+
# 1 for Philippines
|
16
|
+
# 5 for UK
|
17
|
+
# @return [Integer]
|
18
|
+
attr_accessor :col_co_id
|
19
|
+
|
20
|
+
# Payer Id of the selected payer.
|
21
|
+
# Either PayerId or PayerNumber or both must be passed.
|
22
|
+
# Example: 123456
|
23
|
+
# @return [Integer]
|
24
|
+
attr_accessor :payer_id
|
25
|
+
|
26
|
+
# Account ID of the customer.
|
27
|
+
# Either AccountId or AccountNumber or both must be passed.
|
28
|
+
# Example: 123456
|
29
|
+
# @return [Integer]
|
30
|
+
attr_accessor :account_id
|
31
|
+
|
32
|
+
# Identifier of the bundle in Gateway.
|
33
|
+
# Mandatory
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :bundle_id
|
36
|
+
|
37
|
+
# The value indicates the action to be performed with the request.
|
38
|
+
# Mandatory
|
39
|
+
# Allowed values:
|
40
|
+
# • Add
|
41
|
+
# • Update
|
42
|
+
# • Remove
|
43
|
+
# @return [String]
|
44
|
+
attr_accessor :request_action
|
45
|
+
|
46
|
+
# List of Card PANs to be added in the bundle.
|
47
|
+
# Mandatory for Add / Remove request action. Ignored for Update action.
|
48
|
+
# Example: 7002051006629890645
|
49
|
+
# When PAN matches with multiple cards, the restriction will be applied on
|
50
|
+
# the latest issued card
|
51
|
+
# @return [Array[String]]
|
52
|
+
attr_accessor :cards
|
53
|
+
|
54
|
+
# The value indicates what actions to be performed with respect to usage
|
55
|
+
# restrictions on the list of cards being added or removed.
|
56
|
+
# Mandatory for Add / Remove request action. Ignored for Update action.
|
57
|
+
# Allowed values:
|
58
|
+
# • Update
|
59
|
+
# • None
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :usage_restriction_action
|
62
|
+
|
63
|
+
# The value indicates what actions to be performed with respect to usage
|
64
|
+
# restrictions on the list of cards being added or removed.
|
65
|
+
# Mandatory for Add / Remove request action. Ignored for Update action.
|
66
|
+
# Allowed values:
|
67
|
+
# • Update
|
68
|
+
# • None
|
69
|
+
# @return [BundleRestriction]
|
70
|
+
attr_accessor :restrictions
|
71
|
+
|
72
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
73
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
74
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
75
|
+
# Example:
|
76
|
+
# 86 for Philippines
|
77
|
+
# 5 for UK
|
78
|
+
# @return [Integer]
|
79
|
+
attr_accessor :col_co_code
|
80
|
+
|
81
|
+
# Payer Number of the selected payer.
|
82
|
+
# Either PayerId or PayerNumber or both must be passed.
|
83
|
+
# Example: GB000000123
|
84
|
+
# @return [String]
|
85
|
+
attr_accessor :payer_number
|
86
|
+
|
87
|
+
# Account Number of the customer.
|
88
|
+
# Either AccountId or AccountNumber or both must be passed.
|
89
|
+
# Example: GB000000123
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :account_number
|
92
|
+
|
93
|
+
# A mapping from model property names to API property names.
|
94
|
+
def self.names
|
95
|
+
@_hash = {} if @_hash.nil?
|
96
|
+
@_hash['col_co_id'] = 'ColCoId'
|
97
|
+
@_hash['payer_id'] = 'PayerId'
|
98
|
+
@_hash['account_id'] = 'AccountId'
|
99
|
+
@_hash['bundle_id'] = 'BundleId'
|
100
|
+
@_hash['request_action'] = 'RequestAction'
|
101
|
+
@_hash['cards'] = 'Cards'
|
102
|
+
@_hash['usage_restriction_action'] = 'UsageRestrictionAction'
|
103
|
+
@_hash['restrictions'] = 'Restrictions'
|
104
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
105
|
+
@_hash['payer_number'] = 'PayerNumber'
|
106
|
+
@_hash['account_number'] = 'AccountNumber'
|
107
|
+
@_hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# An array for optional fields
|
111
|
+
def self.optionals
|
112
|
+
%w[
|
113
|
+
col_co_id
|
114
|
+
payer_id
|
115
|
+
account_id
|
116
|
+
cards
|
117
|
+
usage_restriction_action
|
118
|
+
restrictions
|
119
|
+
col_co_code
|
120
|
+
payer_number
|
121
|
+
account_number
|
122
|
+
]
|
123
|
+
end
|
124
|
+
|
125
|
+
# An array for nullable fields
|
126
|
+
def self.nullables
|
127
|
+
%w[
|
128
|
+
col_co_id
|
129
|
+
payer_id
|
130
|
+
account_id
|
131
|
+
request_action
|
132
|
+
col_co_code
|
133
|
+
payer_number
|
134
|
+
account_number
|
135
|
+
]
|
136
|
+
end
|
137
|
+
|
138
|
+
def initialize(bundle_id = nil,
|
139
|
+
request_action = nil,
|
140
|
+
col_co_id = SKIP,
|
141
|
+
payer_id = SKIP,
|
142
|
+
account_id = SKIP,
|
143
|
+
cards = SKIP,
|
144
|
+
usage_restriction_action = SKIP,
|
145
|
+
restrictions = SKIP,
|
146
|
+
col_co_code = SKIP,
|
147
|
+
payer_number = SKIP,
|
148
|
+
account_number = SKIP)
|
149
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
150
|
+
@payer_id = payer_id unless payer_id == SKIP
|
151
|
+
@account_id = account_id unless account_id == SKIP
|
152
|
+
@bundle_id = bundle_id
|
153
|
+
@request_action = request_action
|
154
|
+
@cards = cards unless cards == SKIP
|
155
|
+
@usage_restriction_action = usage_restriction_action unless usage_restriction_action == SKIP
|
156
|
+
@restrictions = restrictions unless restrictions == SKIP
|
157
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
158
|
+
@payer_number = payer_number unless payer_number == SKIP
|
159
|
+
@account_number = account_number unless account_number == SKIP
|
160
|
+
end
|
161
|
+
|
162
|
+
# Creates an instance of the object from a hash.
|
163
|
+
def self.from_hash(hash)
|
164
|
+
return nil unless hash
|
165
|
+
|
166
|
+
# Extract variables from the hash.
|
167
|
+
bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil
|
168
|
+
request_action = hash.key?('RequestAction') ? hash['RequestAction'] : nil
|
169
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
170
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
171
|
+
account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP
|
172
|
+
cards = hash.key?('Cards') ? hash['Cards'] : SKIP
|
173
|
+
usage_restriction_action =
|
174
|
+
hash.key?('UsageRestrictionAction') ? hash['UsageRestrictionAction'] : SKIP
|
175
|
+
restrictions = BundleRestriction.from_hash(hash['Restrictions']) if hash['Restrictions']
|
176
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
177
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
178
|
+
account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
|
179
|
+
|
180
|
+
# Create object from extracted values.
|
181
|
+
UpdateBundleRequest.new(bundle_id,
|
182
|
+
request_action,
|
183
|
+
col_co_id,
|
184
|
+
payer_id,
|
185
|
+
account_id,
|
186
|
+
cards,
|
187
|
+
usage_restriction_action,
|
188
|
+
restrictions,
|
189
|
+
col_co_code,
|
190
|
+
payer_number,
|
191
|
+
account_number)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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
|
+
# UpdateBundleResponse Model.
|
8
|
+
class UpdateBundleResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# API Request Id
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :request_id
|
15
|
+
|
16
|
+
# API Response Status
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :status
|
19
|
+
|
20
|
+
# API Response Status
|
21
|
+
# @return [ErrorDetails]
|
22
|
+
attr_accessor :errors
|
23
|
+
|
24
|
+
# A mapping from model property names to API property names.
|
25
|
+
def self.names
|
26
|
+
@_hash = {} if @_hash.nil?
|
27
|
+
@_hash['request_id'] = 'RequestId'
|
28
|
+
@_hash['status'] = 'Status'
|
29
|
+
@_hash['errors'] = 'Errors'
|
30
|
+
@_hash
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for optional fields
|
34
|
+
def self.optionals
|
35
|
+
%w[
|
36
|
+
request_id
|
37
|
+
status
|
38
|
+
errors
|
39
|
+
]
|
40
|
+
end
|
41
|
+
|
42
|
+
# An array for nullable fields
|
43
|
+
def self.nullables
|
44
|
+
[]
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(request_id = SKIP,
|
48
|
+
status = SKIP,
|
49
|
+
errors = SKIP)
|
50
|
+
@request_id = request_id unless request_id == SKIP
|
51
|
+
@status = status unless status == SKIP
|
52
|
+
@errors = errors unless errors == 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
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
61
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
62
|
+
errors = ErrorDetails.from_hash(hash['Errors']) if hash['Errors']
|
63
|
+
|
64
|
+
# Create object from extracted values.
|
65
|
+
UpdateBundleResponse.new(request_id,
|
66
|
+
status,
|
67
|
+
errors)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|