card-management-sdk 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -19
- data/lib/shell_card_management_ap_is/client.rb +2 -3
- data/lib/shell_card_management_ap_is/configuration.rb +15 -22
- data/lib/shell_card_management_ap_is/controllers/card_controller.rb +227 -232
- data/lib/shell_card_management_ap_is/controllers/customer_controller.rb +135 -145
- data/lib/shell_card_management_ap_is/controllers/o_auth_authorization_controller.rb +2 -2
- data/lib/shell_card_management_ap_is/controllers/restriction_controller.rb +351 -229
- data/lib/shell_card_management_ap_is/exceptions/{error_user_access_error1_exception.rb → fleetmanagement_v1_customer_customer403_error_exception.rb} +2 -2
- data/lib/shell_card_management_ap_is/exceptions/{default_error_exception.rb → fleetmanagement_v1_customer_payers400_error_exception.rb} +5 -5
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_customer_payers404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser400_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser403_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser404_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v1_user_loggedinuser500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard401_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/exceptions/fleetmanagement_v2_restriction_searchcard500_error_exception.rb +32 -0
- data/lib/shell_card_management_ap_is/http/auth/bearer_token.rb +54 -10
- data/lib/shell_card_management_ap_is/models/account_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/account_request.rb +6 -15
- data/lib/shell_card_management_ap_is/models/account_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/account_response_accounts_items.rb +21 -45
- data/lib/shell_card_management_ap_is/models/account_restriction_request.rb +28 -9
- data/lib/shell_card_management_ap_is/models/account_restriction_response.rb +60 -11
- data/lib/shell_card_management_ap_is/models/account_velocity_limit.rb +11 -19
- data/lib/shell_card_management_ap_is/models/accounts.rb +1 -2
- data/lib/shell_card_management_ap_is/models/address.rb +4 -11
- data/lib/shell_card_management_ap_is/models/audit_request.rb +25 -21
- data/lib/shell_card_management_ap_is/models/audit_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/audit_response_audits_items.rb +9 -22
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_request_auto_renew_cards_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/auto_renew_card_response_data_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/bank_account.rb +5 -13
- data/lib/shell_card_management_ap_is/models/{search_account_limit_request_filters.rb → budle_details_request.rb} +29 -22
- data/lib/shell_card_management_ap_is/models/{create_bundle_response_data_items_cards_items.rb → bundle_card_restriction_status.rb} +4 -3
- data/lib/shell_card_management_ap_is/models/bundle_details_response.rb +181 -0
- data/lib/shell_card_management_ap_is/models/bundle_restriction.rb +73 -103
- data/lib/shell_card_management_ap_is/models/bundle_restriction_update.rb +187 -0
- data/lib/shell_card_management_ap_is/models/bundled_details_product_list.rb +116 -0
- data/lib/shell_card_management_ap_is/models/bundled_restrictions_list.rb +88 -0
- data/lib/shell_card_management_ap_is/models/cancel_card_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/cancel_card_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/card.rb +23 -50
- data/lib/shell_card_management_ap_is/models/card_block_schedule.rb +1 -2
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items_card_bundles_items.rb → card_bundle.rb} +11 -18
- data/lib/shell_card_management_ap_is/models/card_contact.rb +222 -0
- data/lib/shell_card_management_ap_is/models/card_day_time_restrictions.rb +3 -9
- data/lib/shell_card_management_ap_is/models/card_delivery_address.rb +218 -0
- data/lib/shell_card_management_ap_is/models/card_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/card_detail.rb +36 -49
- data/lib/shell_card_management_ap_is/models/card_details_request.rb +6 -14
- data/lib/shell_card_management_ap_is/models/card_details_response.rb +60 -249
- data/lib/shell_card_management_ap_is/models/card_details_response_card_block_schedules_items_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_card_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_details_response_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_non_fuel_sets_items.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_details_response_pin_delivery_address.rb +6 -15
- data/lib/shell_card_management_ap_is/models/card_group_request.rb +3 -9
- data/lib/shell_card_management_ap_is/models/card_group_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/card_group_response_card_groups_items.rb +10 -20
- data/lib/shell_card_management_ap_is/models/card_management_v1_cancel_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_ordercard_request.rb +59 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_pinreminder_request.rb +130 -0
- data/lib/shell_card_management_ap_is/models/card_management_v1_updatestatus_request.rb +122 -0
- data/lib/shell_card_management_ap_is/models/card_move_request.rb +4 -9
- data/lib/shell_card_management_ap_is/models/card_move_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_move_response.rb +2 -4
- data/lib/shell_card_management_ap_is/models/card_move_response_error_cards_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/card_move_response_successful_requests_items.rb +2 -5
- data/lib/shell_card_management_ap_is/models/{restriction_card_request.rb → card_restriction_req.rb} +42 -50
- data/lib/shell_card_management_ap_is/models/card_restriction_response.rb +96 -0
- data/lib/shell_card_management_ap_is/models/card_search_response.rb +2 -7
- data/lib/shell_card_management_ap_is/models/card_settings.rb +626 -0
- data/lib/shell_card_management_ap_is/models/card_summary_request.rb +3 -5
- data/lib/shell_card_management_ap_is/models/card_summary_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/card_type_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/card_type_response_customer_card_types_items.rb +15 -31
- data/lib/shell_card_management_ap_is/models/card_type_response_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/card_usage_restrictions.rb +5 -10
- data/lib/shell_card_management_ap_is/models/col_co_access.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions_country_restrictions.rb → country_restriction.rb} +20 -21
- data/lib/shell_card_management_ap_is/models/create_bundle_request.rb +65 -62
- data/lib/shell_card_management_ap_is/models/create_bundle_response.rb +122 -47
- data/lib/shell_card_management_ap_is/models/create_card_group_request.rb +3 -9
- data/lib/shell_card_management_ap_is/models/create_card_group_request_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/create_card_group_response_error_cards_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_group_response_successful_requests_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/create_card_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_contract.rb +1 -2
- data/lib/shell_card_management_ap_is/models/customer_detail_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/customer_detail_response.rb +13 -27
- data/lib/shell_card_management_ap_is/models/day_time_restriction.rb +133 -0
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_request.rb → default_error.rb} +10 -10
- data/lib/shell_card_management_ap_is/models/default_error_fault.rb +4 -5
- data/lib/shell_card_management_ap_is/models/delete_bundle_request.rb +14 -16
- data/lib/shell_card_management_ap_is/models/delete_bundle_response.rb +9 -10
- data/lib/shell_card_management_ap_is/models/delivery_address_update.rb +13 -11
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references.rb +2 -5
- data/lib/shell_card_management_ap_is/models/delivery_address_update_references2.rb +98 -0
- data/lib/shell_card_management_ap_is/models/delivery_address_update_request.rb +3 -7
- data/lib/shell_card_management_ap_is/models/delivery_address_update_response.rb +5 -14
- data/lib/shell_card_management_ap_is/models/delivery_addresses.rb +7 -18
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request.rb → detail.rb} +11 -11
- data/lib/shell_card_management_ap_is/models/eid_access.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_details.rb +1 -3
- data/lib/shell_card_management_ap_is/models/error_status.rb +1 -2
- data/lib/shell_card_management_ap_is/models/error_user_access_error.rb +1 -2
- data/lib/shell_card_management_ap_is/models/fault.rb +59 -0
- data/lib/shell_card_management_ap_is/models/filters.rb +702 -0
- data/lib/shell_card_management_ap_is/models/filters1.rb +579 -0
- data/lib/shell_card_management_ap_is/models/filters2.rb +194 -0
- data/lib/shell_card_management_ap_is/models/finance_currency.rb +1 -2
- data/lib/shell_card_management_ap_is/models/finance_currency2.rb +96 -0
- data/lib/shell_card_management_ap_is/models/fleetmanagement_v1_user_loggedinuser_request.rb +104 -0
- data/lib/shell_card_management_ap_is/models/generate_pin_key_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/invoice_distribution_method.rb +2 -4
- data/lib/shell_card_management_ap_is/models/{location_restrictions.rb → location_restriction.rb} +20 -35
- data/lib/shell_card_management_ap_is/models/logged_in_user_request.rb +2 -4
- data/lib/shell_card_management_ap_is/models/logged_in_user_response.rb +9 -22
- data/lib/shell_card_management_ap_is/models/{location_restrictions_network_restrictions_items.rb → network_restriction.rb} +18 -20
- data/lib/shell_card_management_ap_is/models/o_auth_token.rb +2 -6
- data/lib/shell_card_management_ap_is/models/order_card_enquiry.rb +22 -40
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_req.rb +8 -21
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_request.rb +3 -4
- data/lib/shell_card_management_ap_is/models/order_card_enquiry_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/order_card_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/{location_restrictions_partner_site_restrictions_items.rb → partner_site_restriction.rb} +10 -12
- data/lib/shell_card_management_ap_is/models/payer_access.rb +3 -8
- data/lib/shell_card_management_ap_is/models/payer_details.rb +45 -86
- data/lib/shell_card_management_ap_is/models/payer_request.rb +3 -6
- data/lib/shell_card_management_ap_is/models/payer_response.rb +2 -6
- data/lib/shell_card_management_ap_is/models/payers.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_advice_types.rb +1 -2
- data/lib/shell_card_management_ap_is/models/pin_contact.rb +234 -0
- data/lib/shell_card_management_ap_is/models/pin_deliver_to.rb +161 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_address.rb +222 -0
- data/lib/shell_card_management_ap_is/models/pin_delivery_contact.rb +7 -14
- data/lib/shell_card_management_ap_is/models/pin_delivery_details.rb +4 -11
- data/lib/shell_card_management_ap_is/models/pin_reminder_card_details.rb +12 -10
- data/lib/shell_card_management_ap_is/models/pin_reminder_reference.rb +2 -5
- data/lib/shell_card_management_ap_is/models/pin_reminder_request.rb +2 -6
- data/lib/shell_card_management_ap_is/models/pin_reminder_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/product_all_of0.rb +1 -2
- data/lib/shell_card_management_ap_is/models/product_group.rb +2 -6
- data/lib/shell_card_management_ap_is/models/{product_restrictions.rb → product_restriction_card.rb} +9 -12
- data/lib/shell_card_management_ap_is/models/purchase_categories.rb +1 -4
- data/lib/shell_card_management_ap_is/models/purchase_category1_all_of0.rb +2 -7
- data/lib/shell_card_management_ap_is/models/purchase_category_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/purchase_category_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/replace_card_settings.rb +15 -30
- data/lib/shell_card_management_ap_is/models/restriction.rb +88 -0
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_response_data_items.rb → restriction_card_list.rb} +284 -328
- data/lib/shell_card_management_ap_is/models/{restriction_card_request_cards_items.rb → restriction_cards_list.rb} +66 -83
- data/lib/shell_card_management_ap_is/models/restriction_product.rb +62 -0
- data/lib/shell_card_management_ap_is/models/{restriction_card_response_data_items.rb → restrictioncards_res.rb} +100 -114
- data/lib/shell_card_management_ap_is/models/role.rb +3 -6
- data/lib/shell_card_management_ap_is/models/schedule_card_block_cards_items.rb +5 -14
- data/lib/shell_card_management_ap_is/models/schedule_card_block_request.rb +1 -2
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response.rb +1 -3
- data/lib/shell_card_management_ap_is/models/schedule_card_block_response_data_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/search_account_limit_request.rb +79 -10
- data/lib/shell_card_management_ap_is/models/search_account_limit_response.rb +74 -20
- data/lib/shell_card_management_ap_is/models/search_card.rb +1 -2
- data/lib/shell_card_management_ap_is/models/search_card_request.rb +4 -6
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters_cards_items.rb → search_card_restriction.rb} +19 -16
- data/lib/shell_card_management_ap_is/models/{restriction_search_card_request_filters.rb → search_card_restriction_req.rb} +72 -71
- data/lib/shell_card_management_ap_is/models/search_card_restriction_res.rb +89 -0
- data/lib/shell_card_management_ap_is/models/search_product_restriction.rb +3 -4
- data/lib/shell_card_management_ap_is/models/search_request.rb +19 -41
- data/lib/shell_card_management_ap_is/models/{location_restrictions_shell_site_restrictions_items.rb → shell_site_restriction.rb} +10 -17
- data/lib/shell_card_management_ap_is/models/submitted_card.rb +4 -10
- data/lib/shell_card_management_ap_is/models/summary_request.rb +15 -33
- data/lib/shell_card_management_ap_is/models/summary_response.rb +5 -11
- data/lib/shell_card_management_ap_is/models/{summary_of_bundle_response_data_items.rb → summaryofbundle_response.rb} +36 -33
- data/lib/shell_card_management_ap_is/models/{summaryof_bundle.rb → summaryofbundler_request.rb} +43 -36
- data/lib/shell_card_management_ap_is/models/update_bundle_request.rb +58 -63
- data/lib/shell_card_management_ap_is/models/update_bundle_response.rb +75 -21
- data/lib/shell_card_management_ap_is/models/update_card.rb +21 -20
- data/lib/shell_card_management_ap_is/models/update_card_group_request.rb +6 -14
- data/lib/shell_card_management_ap_is/models/update_card_group_response.rb +3 -6
- data/lib/shell_card_management_ap_is/models/update_card_group_response_move_card_references_items.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address.rb +3 -9
- data/lib/shell_card_management_ap_is/models/update_card_renewal_address2.rb +155 -0
- data/lib/shell_card_management_ap_is/models/update_card_status_request.rb +1 -3
- data/lib/shell_card_management_ap_is/models/update_card_status_response.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request.rb +2 -5
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb +2 -4
- data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_response.rb +1 -2
- data/lib/shell_card_management_ap_is/models/usage_restriction.rb +1127 -0
- data/lib/shell_card_management_ap_is/models/{usage_restrictions.rb → usage_restrictions_card.rb} +74 -131
- data/lib/shell_card_management_ap_is.rb +128 -101
- metadata +60 -33
- data/lib/shell_card_management_ap_is/models/create_bundle_request_restrictions.rb +0 -147
- data/lib/shell_card_management_ap_is/models/create_bundle_response_data_items.rb +0 -125
- data/lib/shell_card_management_ap_is/models/day_time_restrictions.rb +0 -162
- data/lib/shell_card_management_ap_is/models/restriction_card_response.rb +0 -91
- data/lib/shell_card_management_ap_is/models/restriction_search_card_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/search_account_limit_response_data.rb +0 -106
- data/lib/shell_card_management_ap_is/models/search_card_response_restrictions.rb +0 -99
- data/lib/shell_card_management_ap_is/models/summary_of_bundle_response.rb +0 -79
- data/lib/shell_card_management_ap_is/models/url_enum.rb +0 -23
@@ -0,0 +1,218 @@
|
|
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
|
+
# CardDeliveryAddress Model.
|
8
|
+
class CardDeliveryAddress < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Fore name of the contact person
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :contact_fore_name
|
15
|
+
|
16
|
+
# Middle name of the contact person
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :contact_middle_name
|
19
|
+
|
20
|
+
# Last name of the contact person
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :contact_last_name
|
23
|
+
|
24
|
+
# Title of the contact person Optional Max field length- 10 Note- If the
|
25
|
+
# Shell Card Platform configuration is set to clear the personal details
|
26
|
+
# captured on card orders, this value will be cleared from the record after
|
27
|
+
# processing the request.
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :contact_title
|
30
|
+
|
31
|
+
# Company name Mandatory if IsNewDeliveryAddress and OrderReplacement are
|
32
|
+
# passed. True, Note- If the Shell Card Platform configuration is set to
|
33
|
+
# clear the personal details captured on card orders, this value will be
|
34
|
+
# cleared from the record after processing the request.
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :company_name
|
37
|
+
|
38
|
+
# Address Id in cards platform.
|
39
|
+
# @return [Integer]
|
40
|
+
attr_accessor :address_id
|
41
|
+
|
42
|
+
# Address line 1 Mandatory if IsNewDeliveryAddress and OrderReplacement are
|
43
|
+
# passed True. Max field length- 40 Note- If the Shell Card Platform
|
44
|
+
# configuration is set to clear the personal details captured on card
|
45
|
+
# orders, this value will be cleared from the record after processing the
|
46
|
+
# request.
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :address_line1
|
49
|
+
|
50
|
+
# Address line 2 Optional Max field length- 40 Note- If the Shell Card
|
51
|
+
# Platform configuration is set to clear the personal details captured on
|
52
|
+
# card orders, this value will be cleared from the record after processing
|
53
|
+
# the request.
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :address_line2
|
56
|
+
|
57
|
+
# Address line Optional Max field length- 40 Note- If the Shell Card
|
58
|
+
# Platform configuration is set to clear the personal details captured on
|
59
|
+
# card orders, this value will be cleared from the record after processing
|
60
|
+
# the request.
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :address_line3
|
63
|
+
|
64
|
+
# ZIP code Mandatory if IsNewDeliveryAddress and OrderReplacement are
|
65
|
+
# passed. True, Max field length- 10 Note- If the Shell Card Platform
|
66
|
+
# configuration is set to clear the personal details captured on card
|
67
|
+
# orders, this value will be cleared from the record after processing the
|
68
|
+
# request.
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :zip_code
|
71
|
+
|
72
|
+
# City Max field length- 40 Note- If the Shell Card Platform configuration
|
73
|
+
# is set to clear the personal details captured on card orders, this value
|
74
|
+
# will be cleared from the record after processing the request.
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :city
|
77
|
+
|
78
|
+
# Region Id
|
79
|
+
# @return [Integer]
|
80
|
+
attr_accessor :region_id
|
81
|
+
|
82
|
+
# Region Optional When region is passed, Shell Card Platform will look up
|
83
|
+
# for the region id for the given region. If the option to clear personal
|
84
|
+
# details is set in the Shell Card Platform, then this value will be cleared
|
85
|
+
# from the record after processing the request .
|
86
|
+
# @return [String]
|
87
|
+
attr_accessor :region
|
88
|
+
|
89
|
+
# Country Id in cards platform.
|
90
|
+
# @return [Integer]
|
91
|
+
attr_accessor :country_id
|
92
|
+
|
93
|
+
# The ISO code of the country. Mandatory if IsNewDeliveryAddress and
|
94
|
+
# OrderReplacement are passed. If the option to clear personal details is
|
95
|
+
# set in the Shell Card Platform, then this value will be cleared from the
|
96
|
+
# record after processing the request .
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :country_iso_code
|
99
|
+
|
100
|
+
# Country name.
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :country
|
103
|
+
|
104
|
+
# A mapping from model property names to API property names.
|
105
|
+
def self.names
|
106
|
+
@_hash = {} if @_hash.nil?
|
107
|
+
@_hash['contact_fore_name'] = 'ContactForeName'
|
108
|
+
@_hash['contact_middle_name'] = 'ContactMiddleName'
|
109
|
+
@_hash['contact_last_name'] = 'ContactLastName'
|
110
|
+
@_hash['contact_title'] = 'ContactTitle'
|
111
|
+
@_hash['company_name'] = 'CompanyName'
|
112
|
+
@_hash['address_id'] = 'AddressId'
|
113
|
+
@_hash['address_line1'] = 'AddressLine1'
|
114
|
+
@_hash['address_line2'] = 'AddressLine2'
|
115
|
+
@_hash['address_line3'] = 'AddressLine3'
|
116
|
+
@_hash['zip_code'] = 'ZipCode'
|
117
|
+
@_hash['city'] = 'City'
|
118
|
+
@_hash['region_id'] = 'RegionId'
|
119
|
+
@_hash['region'] = 'Region'
|
120
|
+
@_hash['country_id'] = 'CountryId'
|
121
|
+
@_hash['country_iso_code'] = 'CountryISOCode'
|
122
|
+
@_hash['country'] = 'Country'
|
123
|
+
@_hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# An array for optional fields
|
127
|
+
def self.optionals
|
128
|
+
%w[
|
129
|
+
contact_fore_name
|
130
|
+
contact_middle_name
|
131
|
+
contact_last_name
|
132
|
+
contact_title
|
133
|
+
address_line2
|
134
|
+
address_line3
|
135
|
+
city
|
136
|
+
region_id
|
137
|
+
region
|
138
|
+
]
|
139
|
+
end
|
140
|
+
|
141
|
+
# An array for nullable fields
|
142
|
+
def self.nullables
|
143
|
+
%w[
|
144
|
+
region_id
|
145
|
+
]
|
146
|
+
end
|
147
|
+
|
148
|
+
def initialize(company_name = nil, address_id = nil, address_line1 = nil,
|
149
|
+
zip_code = nil, country_id = nil, country_iso_code = nil,
|
150
|
+
country = nil, contact_fore_name = SKIP,
|
151
|
+
contact_middle_name = SKIP, contact_last_name = SKIP,
|
152
|
+
contact_title = SKIP, address_line2 = SKIP,
|
153
|
+
address_line3 = SKIP, city = SKIP, region_id = SKIP,
|
154
|
+
region = SKIP)
|
155
|
+
@contact_fore_name = contact_fore_name unless contact_fore_name == SKIP
|
156
|
+
@contact_middle_name = contact_middle_name unless contact_middle_name == SKIP
|
157
|
+
@contact_last_name = contact_last_name unless contact_last_name == SKIP
|
158
|
+
@contact_title = contact_title unless contact_title == SKIP
|
159
|
+
@company_name = company_name
|
160
|
+
@address_id = address_id
|
161
|
+
@address_line1 = address_line1
|
162
|
+
@address_line2 = address_line2 unless address_line2 == SKIP
|
163
|
+
@address_line3 = address_line3 unless address_line3 == SKIP
|
164
|
+
@zip_code = zip_code
|
165
|
+
@city = city unless city == SKIP
|
166
|
+
@region_id = region_id unless region_id == SKIP
|
167
|
+
@region = region unless region == SKIP
|
168
|
+
@country_id = country_id
|
169
|
+
@country_iso_code = country_iso_code
|
170
|
+
@country = country
|
171
|
+
end
|
172
|
+
|
173
|
+
# Creates an instance of the object from a hash.
|
174
|
+
def self.from_hash(hash)
|
175
|
+
return nil unless hash
|
176
|
+
|
177
|
+
# Extract variables from the hash.
|
178
|
+
company_name = hash.key?('CompanyName') ? hash['CompanyName'] : nil
|
179
|
+
address_id = hash.key?('AddressId') ? hash['AddressId'] : nil
|
180
|
+
address_line1 = hash.key?('AddressLine1') ? hash['AddressLine1'] : nil
|
181
|
+
zip_code = hash.key?('ZipCode') ? hash['ZipCode'] : nil
|
182
|
+
country_id = hash.key?('CountryId') ? hash['CountryId'] : nil
|
183
|
+
country_iso_code =
|
184
|
+
hash.key?('CountryISOCode') ? hash['CountryISOCode'] : nil
|
185
|
+
country = hash.key?('Country') ? hash['Country'] : nil
|
186
|
+
contact_fore_name =
|
187
|
+
hash.key?('ContactForeName') ? hash['ContactForeName'] : SKIP
|
188
|
+
contact_middle_name =
|
189
|
+
hash.key?('ContactMiddleName') ? hash['ContactMiddleName'] : SKIP
|
190
|
+
contact_last_name =
|
191
|
+
hash.key?('ContactLastName') ? hash['ContactLastName'] : SKIP
|
192
|
+
contact_title = hash.key?('ContactTitle') ? hash['ContactTitle'] : SKIP
|
193
|
+
address_line2 = hash.key?('AddressLine2') ? hash['AddressLine2'] : SKIP
|
194
|
+
address_line3 = hash.key?('AddressLine3') ? hash['AddressLine3'] : SKIP
|
195
|
+
city = hash.key?('City') ? hash['City'] : SKIP
|
196
|
+
region_id = hash.key?('RegionId') ? hash['RegionId'] : SKIP
|
197
|
+
region = hash.key?('Region') ? hash['Region'] : SKIP
|
198
|
+
|
199
|
+
# Create object from extracted values.
|
200
|
+
CardDeliveryAddress.new(company_name,
|
201
|
+
address_id,
|
202
|
+
address_line1,
|
203
|
+
zip_code,
|
204
|
+
country_id,
|
205
|
+
country_iso_code,
|
206
|
+
country,
|
207
|
+
contact_fore_name,
|
208
|
+
contact_middle_name,
|
209
|
+
contact_last_name,
|
210
|
+
contact_title,
|
211
|
+
address_line2,
|
212
|
+
address_line3,
|
213
|
+
city,
|
214
|
+
region_id,
|
215
|
+
region)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
@@ -149,20 +149,13 @@ module ShellCardManagementApIs
|
|
149
149
|
]
|
150
150
|
end
|
151
151
|
|
152
|
-
def initialize(delivery_contact_name = nil,
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
delivery_address_line2 = SKIP,
|
160
|
-
delivery_address_line3 = SKIP,
|
161
|
-
delivery_region_id = SKIP,
|
162
|
-
delivery_region = SKIP,
|
163
|
-
phone_number = SKIP,
|
164
|
-
email_address = SKIP,
|
165
|
-
save_for_card_reissue = SKIP)
|
152
|
+
def initialize(delivery_contact_name = nil, delivery_company_name = nil,
|
153
|
+
delivery_address_line1 = nil, delivery_zip_code = nil,
|
154
|
+
delivery_city = nil, delivery_country = nil,
|
155
|
+
delivery_contact_title = SKIP, delivery_address_line2 = SKIP,
|
156
|
+
delivery_address_line3 = SKIP, delivery_region_id = SKIP,
|
157
|
+
delivery_region = SKIP, phone_number = SKIP,
|
158
|
+
email_address = SKIP, save_for_card_reissue = SKIP)
|
166
159
|
@delivery_contact_title = delivery_contact_title unless delivery_contact_title == SKIP
|
167
160
|
@delivery_contact_name = delivery_contact_name
|
168
161
|
@delivery_company_name = delivery_company_name
|
@@ -179,9 +179,12 @@ module ShellCardManagementApIs
|
|
179
179
|
# @return [Integer]
|
180
180
|
attr_accessor :card_delivery_type
|
181
181
|
|
182
|
-
#
|
183
|
-
# Mandatory
|
184
|
-
#
|
182
|
+
# Card delivery type.<br />
|
183
|
+
# Mandatory <br />
|
184
|
+
# Allowed Value: <br />
|
185
|
+
# 1. Customer Address(Default) <br />
|
186
|
+
# 2. New Delivery Address
|
187
|
+
# @return [CardContact]
|
185
188
|
attr_accessor :card_contact
|
186
189
|
|
187
190
|
# PIN delivery address type selection.<br />
|
@@ -204,10 +207,15 @@ module ShellCardManagementApIs
|
|
204
207
|
# @return [Integer]
|
205
208
|
attr_accessor :pin_advice_type
|
206
209
|
|
207
|
-
#
|
208
|
-
# Mandatory
|
209
|
-
#
|
210
|
-
#
|
210
|
+
# PIN delivery method.<br />
|
211
|
+
# Mandatory<br />
|
212
|
+
# Allowed Values:<br />
|
213
|
+
# 1. Paper<br />
|
214
|
+
# 2. Email<br />
|
215
|
+
# 3. SMS<br />
|
216
|
+
# 4. None <br /> **Note:** Paper delivery not applicable for selfselctedPIN
|
217
|
+
# type
|
218
|
+
# @return [PINContact]
|
211
219
|
attr_accessor :pin_contact
|
212
220
|
|
213
221
|
# True/False.<br />
|
@@ -335,11 +343,9 @@ module ShellCardManagementApIs
|
|
335
343
|
# @return [String]
|
336
344
|
attr_accessor :client_reference_id
|
337
345
|
|
338
|
-
#
|
339
|
-
#
|
340
|
-
#
|
341
|
-
# 2. Card will be Reissued when nearing its expiry date.
|
342
|
-
# 3. Card will not be Reissued.
|
346
|
+
# This is the Client Reference Id of card in the order which needs to be
|
347
|
+
# passed by the client.This will be playback in the ordercard enquiry<br />
|
348
|
+
# Optional
|
343
349
|
# @return [CardDetailAutoRenewEnum]
|
344
350
|
attr_accessor :auto_renew
|
345
351
|
|
@@ -463,45 +469,26 @@ module ShellCardManagementApIs
|
|
463
469
|
]
|
464
470
|
end
|
465
471
|
|
466
|
-
def initialize(card_delivery_type = nil,
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
account_number = SKIP,
|
472
|
-
col_co_code = SKIP,
|
473
|
-
col_co_id = SKIP,
|
474
|
-
card_type_id = SKIP,
|
475
|
-
token_type_id = SKIP,
|
476
|
-
emboss_text = SKIP,
|
477
|
-
vrn = SKIP,
|
478
|
-
driver_name = SKIP,
|
472
|
+
def initialize(card_delivery_type = nil, pin_advice_type = nil,
|
473
|
+
payer_id = SKIP, payer_number = SKIP, account_id = SKIP,
|
474
|
+
account_number = SKIP, col_co_code = SKIP, col_co_id = SKIP,
|
475
|
+
card_type_id = SKIP, token_type_id = SKIP,
|
476
|
+
emboss_text = SKIP, vrn = SKIP, driver_name = SKIP,
|
479
477
|
odometer_input_required = SKIP,
|
480
|
-
fleet_id_input_required = SKIP,
|
481
|
-
purchase_category_id = SKIP,
|
478
|
+
fleet_id_input_required = SKIP, purchase_category_id = SKIP,
|
482
479
|
self_selected_encrypted_pin = SKIP,
|
483
480
|
self_selected_pin_key_id = SKIP,
|
484
|
-
self_selected_pin_session_key = SKIP,
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
pin_contact = SKIP,
|
492
|
-
notify_caller = SKIP,
|
493
|
-
caller = SKIP,
|
494
|
-
notify_caller_on_sync = SKIP,
|
495
|
-
validate_fleet_id = SKIP,
|
496
|
-
fleet_option = SKIP,
|
497
|
-
bundle_id = SKIP,
|
481
|
+
self_selected_pin_session_key = SKIP, card_group_id = SKIP,
|
482
|
+
card_group_name = SKIP, is_new_card_group = SKIP,
|
483
|
+
emboss_card_group = SKIP, card_contact = SKIP,
|
484
|
+
pin_delivery_address_type = SKIP, pin_contact = SKIP,
|
485
|
+
notify_caller = SKIP, caller = SKIP,
|
486
|
+
notify_caller_on_sync = SKIP, validate_fleet_id = SKIP,
|
487
|
+
fleet_option = SKIP, bundle_id = SKIP,
|
498
488
|
usage_restriction_action = SKIP,
|
499
|
-
product_restriction_action = SKIP,
|
500
|
-
|
501
|
-
|
502
|
-
expiry_date = SKIP,
|
503
|
-
client_reference_id = SKIP,
|
504
|
-
auto_renew = SKIP)
|
489
|
+
product_restriction_action = SKIP, products = SKIP,
|
490
|
+
product_groups = SKIP, expiry_date = SKIP,
|
491
|
+
client_reference_id = SKIP, auto_renew = SKIP)
|
505
492
|
@payer_id = payer_id unless payer_id == SKIP
|
506
493
|
@payer_number = payer_number unless payer_number == SKIP
|
507
494
|
@account_id = account_id unless account_id == SKIP
|
@@ -593,10 +580,10 @@ module ShellCardManagementApIs
|
|
593
580
|
hash.key?('IsNewCardGroup') ? hash['IsNewCardGroup'] : SKIP
|
594
581
|
emboss_card_group =
|
595
582
|
hash.key?('EmbossCardGroup') ? hash['EmbossCardGroup'] : SKIP
|
596
|
-
card_contact =
|
583
|
+
card_contact = CardContact.from_hash(hash['CardContact']) if hash['CardContact']
|
597
584
|
pin_delivery_address_type =
|
598
585
|
hash.key?('PINDeliveryAddressType') ? hash['PINDeliveryAddressType'] : SKIP
|
599
|
-
pin_contact =
|
586
|
+
pin_contact = PINContact.from_hash(hash['PINContact']) if hash['PINContact']
|
600
587
|
notify_caller = hash.key?('NotifyCaller') ? hash['NotifyCaller'] : SKIP
|
601
588
|
caller = hash.key?('Caller') ? hash['Caller'] : SKIP
|
602
589
|
notify_caller_on_sync =
|
@@ -166,20 +166,12 @@ module ShellCardManagementApIs
|
|
166
166
|
]
|
167
167
|
end
|
168
168
|
|
169
|
-
def initialize(col_co_code = SKIP,
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
account_number = SKIP,
|
176
|
-
account_id = SKIP,
|
177
|
-
pan = SKIP,
|
178
|
-
card_id = SKIP,
|
179
|
-
token_type_id = SKIP,
|
180
|
-
token_type_name = SKIP,
|
181
|
-
creation_date = SKIP,
|
182
|
-
effective_date = SKIP,
|
169
|
+
def initialize(col_co_code = SKIP, col_co_id = SKIP,
|
170
|
+
col_co_country_code = SKIP, client_reference_id = SKIP,
|
171
|
+
payer_number = SKIP, payer_id = SKIP, account_number = SKIP,
|
172
|
+
account_id = SKIP, pan = SKIP, card_id = SKIP,
|
173
|
+
token_type_id = SKIP, token_type_name = SKIP,
|
174
|
+
creation_date = SKIP, effective_date = SKIP,
|
183
175
|
include_bundle_details = SKIP,
|
184
176
|
include_intermediate_status = SKIP,
|
185
177
|
include_scheduled_card_blocks = SKIP)
|