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,112 @@
|
|
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
|
+
# UpdateMPayRegStatusRequest Model.
|
8
|
+
class UpdateMPayRegStatusRequest < 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-Philippines
|
16
|
+
# 5-UK
|
17
|
+
# @return [Integer]
|
18
|
+
attr_accessor :col_co_id
|
19
|
+
|
20
|
+
# Collecting Company Code (Shell Code) of the selected payer.
|
21
|
+
# Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia,
|
22
|
+
# Ukraine etc. It is optional for other countries if ColCoID is provided.
|
23
|
+
# Example:
|
24
|
+
# 86-Philippines
|
25
|
+
# 5-UK
|
26
|
+
# @return [Integer]
|
27
|
+
attr_accessor :col_co_code
|
28
|
+
|
29
|
+
# Payer Id of the selected payer.
|
30
|
+
# Optional if PayerNumber is passed else Mandatory
|
31
|
+
# @return [Integer]
|
32
|
+
attr_accessor :payer_id
|
33
|
+
|
34
|
+
# Payer Number (Ex: GB000000123) of the selected payer.
|
35
|
+
# Optional if PayerId is passed else Mandatory
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :payer_number
|
38
|
+
|
39
|
+
# List of MPay Request to be updated for Fleet Manager approval status.
|
40
|
+
# Mandatory
|
41
|
+
# Maximum number of requests that can be submitted are 50
|
42
|
+
# @return [Array[UpdateMPayRegStatusRequestMPayRequestsItems]]
|
43
|
+
attr_accessor :m_pay_requests
|
44
|
+
|
45
|
+
# A mapping from model property names to API property names.
|
46
|
+
def self.names
|
47
|
+
@_hash = {} if @_hash.nil?
|
48
|
+
@_hash['col_co_id'] = 'ColCoId'
|
49
|
+
@_hash['col_co_code'] = 'ColCoCode'
|
50
|
+
@_hash['payer_id'] = 'PayerId'
|
51
|
+
@_hash['payer_number'] = 'PayerNumber'
|
52
|
+
@_hash['m_pay_requests'] = 'MPayRequests'
|
53
|
+
@_hash
|
54
|
+
end
|
55
|
+
|
56
|
+
# An array for optional fields
|
57
|
+
def self.optionals
|
58
|
+
%w[
|
59
|
+
col_co_id
|
60
|
+
col_co_code
|
61
|
+
payer_id
|
62
|
+
payer_number
|
63
|
+
m_pay_requests
|
64
|
+
]
|
65
|
+
end
|
66
|
+
|
67
|
+
# An array for nullable fields
|
68
|
+
def self.nullables
|
69
|
+
[]
|
70
|
+
end
|
71
|
+
|
72
|
+
def initialize(col_co_id = SKIP,
|
73
|
+
col_co_code = SKIP,
|
74
|
+
payer_id = SKIP,
|
75
|
+
payer_number = SKIP,
|
76
|
+
m_pay_requests = SKIP)
|
77
|
+
@col_co_id = col_co_id unless col_co_id == SKIP
|
78
|
+
@col_co_code = col_co_code unless col_co_code == SKIP
|
79
|
+
@payer_id = payer_id unless payer_id == SKIP
|
80
|
+
@payer_number = payer_number unless payer_number == SKIP
|
81
|
+
@m_pay_requests = m_pay_requests unless m_pay_requests == SKIP
|
82
|
+
end
|
83
|
+
|
84
|
+
# Creates an instance of the object from a hash.
|
85
|
+
def self.from_hash(hash)
|
86
|
+
return nil unless hash
|
87
|
+
|
88
|
+
# Extract variables from the hash.
|
89
|
+
col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP
|
90
|
+
col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP
|
91
|
+
payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP
|
92
|
+
payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP
|
93
|
+
# Parameter is an array, so we need to iterate through it
|
94
|
+
m_pay_requests = nil
|
95
|
+
unless hash['MPayRequests'].nil?
|
96
|
+
m_pay_requests = []
|
97
|
+
hash['MPayRequests'].each do |structure|
|
98
|
+
m_pay_requests << (UpdateMPayRegStatusRequestMPayRequestsItems.from_hash(structure) if structure)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
m_pay_requests = SKIP unless hash.key?('MPayRequests')
|
103
|
+
|
104
|
+
# Create object from extracted values.
|
105
|
+
UpdateMPayRegStatusRequest.new(col_co_id,
|
106
|
+
col_co_code,
|
107
|
+
payer_id,
|
108
|
+
payer_number,
|
109
|
+
m_pay_requests)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
data/lib/shell_card_management_ap_is/models/update_m_pay_reg_status_request_m_pay_requests_items.rb
ADDED
@@ -0,0 +1,105 @@
|
|
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
|
+
# UpdateMPayRegStatusRequestMPayRequestsItems Model.
|
8
|
+
class UpdateMPayRegStatusRequestMPayRequestsItems < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# List of MPay Request to be updated for Fleet Manager approval status.
|
13
|
+
# Mandatory
|
14
|
+
# Maximum number of requests that can be submitted are 50
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :global_request_id
|
17
|
+
|
18
|
+
# Status of mobile payment registration request
|
19
|
+
# Mandatory.
|
20
|
+
# Allowed values –
|
21
|
+
# • Approved
|
22
|
+
# • Rejected
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :status
|
25
|
+
|
26
|
+
# Approver’s User ID
|
27
|
+
# ApproverUserID is mandatory when Status is Approved else optional
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :approver_user_id
|
30
|
+
|
31
|
+
# Approver’s display name
|
32
|
+
# Mandatory when Status is Approved else optional.
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :approver_user_display_name
|
35
|
+
|
36
|
+
# Reason for Fleet Manager approval/rejection.
|
37
|
+
# Optional
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :reason
|
40
|
+
|
41
|
+
# A mapping from model property names to API property names.
|
42
|
+
def self.names
|
43
|
+
@_hash = {} if @_hash.nil?
|
44
|
+
@_hash['global_request_id'] = 'GlobalRequestID'
|
45
|
+
@_hash['status'] = 'Status'
|
46
|
+
@_hash['approver_user_id'] = 'ApproverUserID'
|
47
|
+
@_hash['approver_user_display_name'] = 'ApproverUserDisplayName'
|
48
|
+
@_hash['reason'] = 'Reason'
|
49
|
+
@_hash
|
50
|
+
end
|
51
|
+
|
52
|
+
# An array for optional fields
|
53
|
+
def self.optionals
|
54
|
+
%w[
|
55
|
+
global_request_id
|
56
|
+
status
|
57
|
+
approver_user_id
|
58
|
+
approver_user_display_name
|
59
|
+
reason
|
60
|
+
]
|
61
|
+
end
|
62
|
+
|
63
|
+
# An array for nullable fields
|
64
|
+
def self.nullables
|
65
|
+
[]
|
66
|
+
end
|
67
|
+
|
68
|
+
def initialize(global_request_id = SKIP,
|
69
|
+
status = SKIP,
|
70
|
+
approver_user_id = SKIP,
|
71
|
+
approver_user_display_name = SKIP,
|
72
|
+
reason = SKIP)
|
73
|
+
@global_request_id = global_request_id unless global_request_id == SKIP
|
74
|
+
@status = status unless status == SKIP
|
75
|
+
@approver_user_id = approver_user_id unless approver_user_id == SKIP
|
76
|
+
unless approver_user_display_name == SKIP
|
77
|
+
@approver_user_display_name =
|
78
|
+
approver_user_display_name
|
79
|
+
end
|
80
|
+
@reason = reason unless reason == SKIP
|
81
|
+
end
|
82
|
+
|
83
|
+
# Creates an instance of the object from a hash.
|
84
|
+
def self.from_hash(hash)
|
85
|
+
return nil unless hash
|
86
|
+
|
87
|
+
# Extract variables from the hash.
|
88
|
+
global_request_id =
|
89
|
+
hash.key?('GlobalRequestID') ? hash['GlobalRequestID'] : SKIP
|
90
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
91
|
+
approver_user_id =
|
92
|
+
hash.key?('ApproverUserID') ? hash['ApproverUserID'] : SKIP
|
93
|
+
approver_user_display_name =
|
94
|
+
hash.key?('ApproverUserDisplayName') ? hash['ApproverUserDisplayName'] : SKIP
|
95
|
+
reason = hash.key?('Reason') ? hash['Reason'] : SKIP
|
96
|
+
|
97
|
+
# Create object from extracted values.
|
98
|
+
UpdateMPayRegStatusRequestMPayRequestsItems.new(global_request_id,
|
99
|
+
status,
|
100
|
+
approver_user_id,
|
101
|
+
approver_user_display_name,
|
102
|
+
reason)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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
|
+
# UpdateMPayRegStatusResponse Model.
|
8
|
+
class UpdateMPayRegStatusResponse < 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
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['request_id'] = 'RequestId'
|
24
|
+
@_hash['status'] = 'Status'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
%w[
|
31
|
+
request_id
|
32
|
+
status
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
# An array for nullable fields
|
37
|
+
def self.nullables
|
38
|
+
[]
|
39
|
+
end
|
40
|
+
|
41
|
+
def initialize(request_id = SKIP,
|
42
|
+
status = SKIP)
|
43
|
+
@request_id = request_id unless request_id == SKIP
|
44
|
+
@status = status unless status == SKIP
|
45
|
+
end
|
46
|
+
|
47
|
+
# Creates an instance of the object from a hash.
|
48
|
+
def self.from_hash(hash)
|
49
|
+
return nil unless hash
|
50
|
+
|
51
|
+
# Extract variables from the hash.
|
52
|
+
request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP
|
53
|
+
status = hash.key?('Status') ? hash['Status'] : SKIP
|
54
|
+
|
55
|
+
# Create object from extracted values.
|
56
|
+
UpdateMPayRegStatusResponse.new(request_id,
|
57
|
+
status)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# url.
|
8
|
+
class UrlEnum
|
9
|
+
URL_ENUM = [
|
10
|
+
# TODO: Write general description for ENUM_APITESTSHELLCOMTEST
|
11
|
+
ENUM_APITESTSHELLCOMTEST = 'api-test.shell.com/test'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for ENUM_APISHELLCOM
|
14
|
+
ENUM_APISHELLCOM = 'api.shell.com'.freeze
|
15
|
+
].freeze
|
16
|
+
|
17
|
+
def self.validate(value)
|
18
|
+
return false if value.nil?
|
19
|
+
|
20
|
+
URL_ENUM.include?(value)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,311 @@
|
|
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
|
+
# UsageRestrictions Model.
|
8
|
+
class UsageRestrictions < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# Maximum spend value (amount) allowed per day.
|
13
|
+
# Optional
|
14
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
15
|
+
# considered as inherited.
|
16
|
+
# Valid range: 0 to 9999999999
|
17
|
+
# @return [Float]
|
18
|
+
attr_accessor :daily_spend
|
19
|
+
|
20
|
+
# Maximum spend value (amount) allowed per week.
|
21
|
+
# Optional
|
22
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
23
|
+
# considered as inherited.
|
24
|
+
# Valid range: 0 to 9999999999
|
25
|
+
# @return [Float]
|
26
|
+
attr_accessor :weekly_spend
|
27
|
+
|
28
|
+
# Maximum spend value (amount) allowed per month.
|
29
|
+
# Optional
|
30
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
31
|
+
# considered as inherited.
|
32
|
+
# Valid range: 0 to 9999999999
|
33
|
+
# @return [Float]
|
34
|
+
attr_accessor :monthly_spend
|
35
|
+
|
36
|
+
# Maximum spend value (amount) allowed per transaction.
|
37
|
+
# Optional
|
38
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
39
|
+
# considered as inherited.
|
40
|
+
# Valid range: 0 to 9999999999
|
41
|
+
# @return [Float]
|
42
|
+
attr_accessor :per_transaction_spend
|
43
|
+
|
44
|
+
# Maximum volume (quantity) allowed per day.
|
45
|
+
# Optional
|
46
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
47
|
+
# considered as inherited.
|
48
|
+
# Valid range: 0 to 9999999999
|
49
|
+
# @return [Integer]
|
50
|
+
attr_accessor :daily_volume
|
51
|
+
|
52
|
+
# Maximum volume (quantity) allowed per week.
|
53
|
+
# Optional
|
54
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
55
|
+
# considered as inherited.
|
56
|
+
# Valid range: 0 to 9999999999
|
57
|
+
# @return [Integer]
|
58
|
+
attr_accessor :weekly_volume
|
59
|
+
|
60
|
+
# Maximum volume (quantity) allowed per month.
|
61
|
+
# Optional
|
62
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
63
|
+
# considered as inherited.
|
64
|
+
# Valid range: 0 to 9999999999
|
65
|
+
# @return [Integer]
|
66
|
+
attr_accessor :monthly_volume
|
67
|
+
|
68
|
+
# Maximum volume (quantity) allowed per transaction.
|
69
|
+
# Optional
|
70
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
71
|
+
# considered as inherited.
|
72
|
+
# Valid range: 0 to 9999999999
|
73
|
+
# @return [Integer]
|
74
|
+
attr_accessor :per_transaction_volume
|
75
|
+
|
76
|
+
# Maximum number of transactions allowed per day.
|
77
|
+
# Optional
|
78
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
79
|
+
# considered as inherited.
|
80
|
+
# Valid range: 0 to 9999999999
|
81
|
+
# @return [Float]
|
82
|
+
attr_accessor :daily_transaction_count
|
83
|
+
|
84
|
+
# Maximum number of transactions allowed per week.
|
85
|
+
# Optional
|
86
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
87
|
+
# considered as inherited.
|
88
|
+
# Valid range: 0 to 9999999999
|
89
|
+
# @return [Float]
|
90
|
+
attr_accessor :weekly_transaction_count
|
91
|
+
|
92
|
+
# Maximum number of transactions allowed per month.
|
93
|
+
# Optional.
|
94
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
95
|
+
# considered as inherited.
|
96
|
+
# Valid range: 0 to 9999999999
|
97
|
+
# @return [Float]
|
98
|
+
attr_accessor :monthly_transaction_count
|
99
|
+
|
100
|
+
# Maximum spend value (amount) allowed per annum.
|
101
|
+
# Optional
|
102
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
103
|
+
# considered as inherited.
|
104
|
+
# Valid range: 0 to 9999999999
|
105
|
+
# @return [Float]
|
106
|
+
attr_accessor :annual_spend
|
107
|
+
|
108
|
+
# Maximum spend value (amount) allowed in card’s life time.
|
109
|
+
# Optional
|
110
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
111
|
+
# considered as inherited.
|
112
|
+
# Valid range: 0 to 9999999999
|
113
|
+
# @return [Float]
|
114
|
+
attr_accessor :life_time_spend
|
115
|
+
|
116
|
+
# Maximum volume (quantity) allowed per annum.
|
117
|
+
# Optional
|
118
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
119
|
+
# considered as inherited.
|
120
|
+
# Valid range: 0 to 9999999999
|
121
|
+
# @return [Float]
|
122
|
+
attr_accessor :annual_volume
|
123
|
+
|
124
|
+
# Maximum volume (quantity) allowed in card’s life time.
|
125
|
+
# Optional
|
126
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
127
|
+
# considered as inherited.
|
128
|
+
# Valid range: 0 to 9999999999
|
129
|
+
# @return [Float]
|
130
|
+
attr_accessor :life_time_volume
|
131
|
+
|
132
|
+
# Maximum number of transactions allowed per annum.
|
133
|
+
# Optional.
|
134
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
135
|
+
# considered as inherited.
|
136
|
+
# Valid range: 0 to 9999999999
|
137
|
+
# @return [Float]
|
138
|
+
attr_accessor :annual_transaction_count
|
139
|
+
|
140
|
+
# Maximum number of transactions allowed in card’s lifetime.
|
141
|
+
# Optional
|
142
|
+
# The value ‘0’ represents not set. If Values is passed as null, will be
|
143
|
+
# considered as inherited.
|
144
|
+
# Valid range: 0 to 9999999999
|
145
|
+
# @return [Float]
|
146
|
+
attr_accessor :life_time_transaction_count
|
147
|
+
|
148
|
+
# A mapping from model property names to API property names.
|
149
|
+
def self.names
|
150
|
+
@_hash = {} if @_hash.nil?
|
151
|
+
@_hash['daily_spend'] = 'DailySpend'
|
152
|
+
@_hash['weekly_spend'] = 'WeeklySpend'
|
153
|
+
@_hash['monthly_spend'] = 'MonthlySpend'
|
154
|
+
@_hash['per_transaction_spend'] = 'PerTransactionSpend'
|
155
|
+
@_hash['daily_volume'] = 'DailyVolume'
|
156
|
+
@_hash['weekly_volume'] = 'WeeklyVolume'
|
157
|
+
@_hash['monthly_volume'] = 'MonthlyVolume'
|
158
|
+
@_hash['per_transaction_volume'] = 'PerTransactionVolume'
|
159
|
+
@_hash['daily_transaction_count'] = 'DailyTransactionCount'
|
160
|
+
@_hash['weekly_transaction_count'] = 'WeeklyTransactionCount'
|
161
|
+
@_hash['monthly_transaction_count'] = 'MonthlyTransactionCount'
|
162
|
+
@_hash['annual_spend'] = 'AnnualSpend'
|
163
|
+
@_hash['life_time_spend'] = 'LifeTimeSpend'
|
164
|
+
@_hash['annual_volume'] = 'AnnualVolume'
|
165
|
+
@_hash['life_time_volume'] = 'LifeTimeVolume'
|
166
|
+
@_hash['annual_transaction_count'] = 'AnnualTransactionCount'
|
167
|
+
@_hash['life_time_transaction_count'] = 'LifeTimeTransactionCount'
|
168
|
+
@_hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# An array for optional fields
|
172
|
+
def self.optionals
|
173
|
+
%w[
|
174
|
+
daily_spend
|
175
|
+
weekly_spend
|
176
|
+
monthly_spend
|
177
|
+
per_transaction_spend
|
178
|
+
daily_volume
|
179
|
+
weekly_volume
|
180
|
+
monthly_volume
|
181
|
+
per_transaction_volume
|
182
|
+
daily_transaction_count
|
183
|
+
weekly_transaction_count
|
184
|
+
monthly_transaction_count
|
185
|
+
annual_spend
|
186
|
+
life_time_spend
|
187
|
+
annual_volume
|
188
|
+
life_time_volume
|
189
|
+
annual_transaction_count
|
190
|
+
life_time_transaction_count
|
191
|
+
]
|
192
|
+
end
|
193
|
+
|
194
|
+
# An array for nullable fields
|
195
|
+
def self.nullables
|
196
|
+
%w[
|
197
|
+
daily_spend
|
198
|
+
weekly_spend
|
199
|
+
monthly_spend
|
200
|
+
per_transaction_spend
|
201
|
+
daily_volume
|
202
|
+
weekly_volume
|
203
|
+
monthly_volume
|
204
|
+
per_transaction_volume
|
205
|
+
daily_transaction_count
|
206
|
+
weekly_transaction_count
|
207
|
+
monthly_transaction_count
|
208
|
+
annual_spend
|
209
|
+
life_time_spend
|
210
|
+
annual_volume
|
211
|
+
life_time_volume
|
212
|
+
annual_transaction_count
|
213
|
+
life_time_transaction_count
|
214
|
+
]
|
215
|
+
end
|
216
|
+
|
217
|
+
def initialize(daily_spend = SKIP,
|
218
|
+
weekly_spend = SKIP,
|
219
|
+
monthly_spend = SKIP,
|
220
|
+
per_transaction_spend = SKIP,
|
221
|
+
daily_volume = SKIP,
|
222
|
+
weekly_volume = SKIP,
|
223
|
+
monthly_volume = SKIP,
|
224
|
+
per_transaction_volume = SKIP,
|
225
|
+
daily_transaction_count = SKIP,
|
226
|
+
weekly_transaction_count = SKIP,
|
227
|
+
monthly_transaction_count = SKIP,
|
228
|
+
annual_spend = SKIP,
|
229
|
+
life_time_spend = SKIP,
|
230
|
+
annual_volume = SKIP,
|
231
|
+
life_time_volume = SKIP,
|
232
|
+
annual_transaction_count = SKIP,
|
233
|
+
life_time_transaction_count = SKIP)
|
234
|
+
@daily_spend = daily_spend unless daily_spend == SKIP
|
235
|
+
@weekly_spend = weekly_spend unless weekly_spend == SKIP
|
236
|
+
@monthly_spend = monthly_spend unless monthly_spend == SKIP
|
237
|
+
@per_transaction_spend = per_transaction_spend unless per_transaction_spend == SKIP
|
238
|
+
@daily_volume = daily_volume unless daily_volume == SKIP
|
239
|
+
@weekly_volume = weekly_volume unless weekly_volume == SKIP
|
240
|
+
@monthly_volume = monthly_volume unless monthly_volume == SKIP
|
241
|
+
@per_transaction_volume = per_transaction_volume unless per_transaction_volume == SKIP
|
242
|
+
@daily_transaction_count = daily_transaction_count unless daily_transaction_count == SKIP
|
243
|
+
@weekly_transaction_count = weekly_transaction_count unless weekly_transaction_count == SKIP
|
244
|
+
unless monthly_transaction_count == SKIP
|
245
|
+
@monthly_transaction_count =
|
246
|
+
monthly_transaction_count
|
247
|
+
end
|
248
|
+
@annual_spend = annual_spend unless annual_spend == SKIP
|
249
|
+
@life_time_spend = life_time_spend unless life_time_spend == SKIP
|
250
|
+
@annual_volume = annual_volume unless annual_volume == SKIP
|
251
|
+
@life_time_volume = life_time_volume unless life_time_volume == SKIP
|
252
|
+
@annual_transaction_count = annual_transaction_count unless annual_transaction_count == SKIP
|
253
|
+
unless life_time_transaction_count == SKIP
|
254
|
+
@life_time_transaction_count =
|
255
|
+
life_time_transaction_count
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# Creates an instance of the object from a hash.
|
260
|
+
def self.from_hash(hash)
|
261
|
+
return nil unless hash
|
262
|
+
|
263
|
+
# Extract variables from the hash.
|
264
|
+
daily_spend = hash.key?('DailySpend') ? hash['DailySpend'] : SKIP
|
265
|
+
weekly_spend = hash.key?('WeeklySpend') ? hash['WeeklySpend'] : SKIP
|
266
|
+
monthly_spend = hash.key?('MonthlySpend') ? hash['MonthlySpend'] : SKIP
|
267
|
+
per_transaction_spend =
|
268
|
+
hash.key?('PerTransactionSpend') ? hash['PerTransactionSpend'] : SKIP
|
269
|
+
daily_volume = hash.key?('DailyVolume') ? hash['DailyVolume'] : SKIP
|
270
|
+
weekly_volume = hash.key?('WeeklyVolume') ? hash['WeeklyVolume'] : SKIP
|
271
|
+
monthly_volume = hash.key?('MonthlyVolume') ? hash['MonthlyVolume'] : SKIP
|
272
|
+
per_transaction_volume =
|
273
|
+
hash.key?('PerTransactionVolume') ? hash['PerTransactionVolume'] : SKIP
|
274
|
+
daily_transaction_count =
|
275
|
+
hash.key?('DailyTransactionCount') ? hash['DailyTransactionCount'] : SKIP
|
276
|
+
weekly_transaction_count =
|
277
|
+
hash.key?('WeeklyTransactionCount') ? hash['WeeklyTransactionCount'] : SKIP
|
278
|
+
monthly_transaction_count =
|
279
|
+
hash.key?('MonthlyTransactionCount') ? hash['MonthlyTransactionCount'] : SKIP
|
280
|
+
annual_spend = hash.key?('AnnualSpend') ? hash['AnnualSpend'] : SKIP
|
281
|
+
life_time_spend =
|
282
|
+
hash.key?('LifeTimeSpend') ? hash['LifeTimeSpend'] : SKIP
|
283
|
+
annual_volume = hash.key?('AnnualVolume') ? hash['AnnualVolume'] : SKIP
|
284
|
+
life_time_volume =
|
285
|
+
hash.key?('LifeTimeVolume') ? hash['LifeTimeVolume'] : SKIP
|
286
|
+
annual_transaction_count =
|
287
|
+
hash.key?('AnnualTransactionCount') ? hash['AnnualTransactionCount'] : SKIP
|
288
|
+
life_time_transaction_count =
|
289
|
+
hash.key?('LifeTimeTransactionCount') ? hash['LifeTimeTransactionCount'] : SKIP
|
290
|
+
|
291
|
+
# Create object from extracted values.
|
292
|
+
UsageRestrictions.new(daily_spend,
|
293
|
+
weekly_spend,
|
294
|
+
monthly_spend,
|
295
|
+
per_transaction_spend,
|
296
|
+
daily_volume,
|
297
|
+
weekly_volume,
|
298
|
+
monthly_volume,
|
299
|
+
per_transaction_volume,
|
300
|
+
daily_transaction_count,
|
301
|
+
weekly_transaction_count,
|
302
|
+
monthly_transaction_count,
|
303
|
+
annual_spend,
|
304
|
+
life_time_spend,
|
305
|
+
annual_volume,
|
306
|
+
life_time_volume,
|
307
|
+
annual_transaction_count,
|
308
|
+
life_time_transaction_count)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# shell_card_management_ap_is
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
require 'date'
|
7
|
+
module ShellCardManagementApIs
|
8
|
+
# A utility that supports dateTime conversion to different formats
|
9
|
+
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
# A utility to allow users to set the content-type for files
|
8
|
+
class FileWrapper < CoreLibrary::FileWrapper
|
9
|
+
# The constructor.
|
10
|
+
# @param [File] file The file to be sent in the request.
|
11
|
+
# @param [string] content_type The content type of the provided file.
|
12
|
+
def initialize(file, content_type: 'application/octet-stream')
|
13
|
+
super
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|