Class: ErpIntegration::Configuration
- Inherits:
-
Object
- Object
- ErpIntegration::Configuration
- Defined in:
- lib/erp_integration/configuration.rb
Overview
Use the ‘Configuration` class to configure the ERP Integration gem. Use an initializer in your project configure the ERP Integration gem.
Instance Attribute Summary collapse
- #bill_of_material_adapter ⇒ Object
- #bill_of_material_input_adapter ⇒ Object
- #bill_of_material_output_adapter ⇒ Object
- #channel_listing_adapter ⇒ Object
- #country_adapter ⇒ Object
- #customer_shipment_adapter ⇒ Object
- #customer_shipment_return_adapter ⇒ Object
-
#fulfil_api_key ⇒ String
The ‘fulfil_api_key` is used by the `FulfilClient` to authorize the requests to the Fulfil API endpoints.
-
#fulfil_merchant_id ⇒ String
The ‘fulfil_merchant_id` is used by the `FulfilClient` to connect to the right Fulfil API endpoints.
- #gift_card_adapter ⇒ Object
- #internal_shipment_adapter ⇒ Object
- #location_adapter ⇒ Object
-
#logger ⇒ Logger
Logger that will be used for HTTP operations on Client.
- #product_adapter ⇒ Object
- #product_category_adapter ⇒ Object
- #product_template_adapter ⇒ Object
- #production_order_adapter ⇒ Object
- #purchase_order_adapter ⇒ Object
- #purchase_order_line_adapter ⇒ Object
- #purchase_request_adapter ⇒ Object
- #sales_order_adapter ⇒ Object
- #sales_order_line_adapter ⇒ Object
- #sales_return_reason_adapter ⇒ Object
- #stock_bin_transfer_adapter ⇒ Object
- #stock_move_adapter ⇒ Object
- #supplier_shipment_adapter ⇒ Object
- #task_adapter ⇒ Object
- #tracking_number_adapter ⇒ Object
Instance Method Summary collapse
- #box_type_adapter ⇒ Object
- #carrier_adapter ⇒ Object
- #carrier_service_adapter ⇒ Object
-
#initialize(**options) ⇒ Configuration
constructor
A new instance of Configuration.
- #webhook_adapter ⇒ Object
Constructor Details
#initialize(**options) ⇒ Configuration
Returns a new instance of Configuration.
154 155 156 157 158 |
# File 'lib/erp_integration/configuration.rb', line 154 def initialize(**) .each_pair do |key, value| public_send("#{key}=", value) if respond_to?("#{key}=") end end |
Instance Attribute Details
#bill_of_material_adapter ⇒ Object
168 169 170 |
# File 'lib/erp_integration/configuration.rb', line 168 def bill_of_material_adapter @bill_of_material_adapter || :fulfil end |
#bill_of_material_input_adapter ⇒ Object
172 173 174 |
# File 'lib/erp_integration/configuration.rb', line 172 def bill_of_material_input_adapter @bill_of_material_input_adapter || :fulfil end |
#bill_of_material_output_adapter ⇒ Object
176 177 178 |
# File 'lib/erp_integration/configuration.rb', line 176 def bill_of_material_output_adapter @bill_of_material_output_adapter || :fulfil end |
#channel_listing_adapter ⇒ Object
188 189 190 |
# File 'lib/erp_integration/configuration.rb', line 188 def channel_listing_adapter @channel_listing_adapter || :fulfil end |
#country_adapter ⇒ Object
184 185 186 |
# File 'lib/erp_integration/configuration.rb', line 184 def country_adapter @country_adapter || :fulfil end |
#customer_shipment_adapter ⇒ Object
192 193 194 |
# File 'lib/erp_integration/configuration.rb', line 192 def customer_shipment_adapter @customer_shipment_adapter || :fulfil end |
#customer_shipment_return_adapter ⇒ Object
196 197 198 |
# File 'lib/erp_integration/configuration.rb', line 196 def customer_shipment_return_adapter @customer_shipment_return_adapter || :fulfil end |
#fulfil_api_key ⇒ String
The ‘fulfil_api_key` is used by the `FulfilClient` to authorize the requests to the Fulfil API endpoints.
18 19 20 |
# File 'lib/erp_integration/configuration.rb', line 18 def fulfil_api_key @fulfil_api_key end |
#fulfil_merchant_id ⇒ String
The ‘fulfil_merchant_id` is used by the `FulfilClient` to connect to the right Fulfil API endpoints.
23 24 25 |
# File 'lib/erp_integration/configuration.rb', line 23 def fulfil_merchant_id @fulfil_merchant_id end |
#gift_card_adapter ⇒ Object
272 273 274 |
# File 'lib/erp_integration/configuration.rb', line 272 def gift_card_adapter @gift_card_adapter || :fulfil end |
#internal_shipment_adapter ⇒ Object
200 201 202 |
# File 'lib/erp_integration/configuration.rb', line 200 def internal_shipment_adapter @internal_shipment_adapter || :fulfil end |
#location_adapter ⇒ Object
204 205 206 |
# File 'lib/erp_integration/configuration.rb', line 204 def location_adapter @location_adapter || :fulfil end |
#logger ⇒ Logger
Logger that will be used for HTTP operations on Client
152 153 154 |
# File 'lib/erp_integration/configuration.rb', line 152 def logger @logger end |
#product_adapter ⇒ Object
208 209 210 |
# File 'lib/erp_integration/configuration.rb', line 208 def product_adapter @product_adapter || :fulfil end |
#product_category_adapter ⇒ Object
212 213 214 |
# File 'lib/erp_integration/configuration.rb', line 212 def product_category_adapter @product_category_adapter || :fulfil end |
#product_template_adapter ⇒ Object
216 217 218 |
# File 'lib/erp_integration/configuration.rb', line 216 def product_template_adapter @product_template_adapter || :fulfil end |
#production_order_adapter ⇒ Object
220 221 222 |
# File 'lib/erp_integration/configuration.rb', line 220 def production_order_adapter @production_order_adapter || :fulfil end |
#purchase_order_adapter ⇒ Object
224 225 226 |
# File 'lib/erp_integration/configuration.rb', line 224 def purchase_order_adapter @purchase_order_adapter || :fulfil end |
#purchase_order_line_adapter ⇒ Object
228 229 230 |
# File 'lib/erp_integration/configuration.rb', line 228 def purchase_order_line_adapter @purchase_order_line_adapter || :fulfil end |
#purchase_request_adapter ⇒ Object
232 233 234 |
# File 'lib/erp_integration/configuration.rb', line 232 def purchase_request_adapter @purchase_request_adapter || :fulfil end |
#sales_order_adapter ⇒ Object
240 241 242 |
# File 'lib/erp_integration/configuration.rb', line 240 def sales_order_adapter @sales_order_adapter || :fulfil end |
#sales_order_line_adapter ⇒ Object
236 237 238 |
# File 'lib/erp_integration/configuration.rb', line 236 def sales_order_line_adapter @sales_order_line_adapter || :fulfil end |
#sales_return_reason_adapter ⇒ Object
244 245 246 |
# File 'lib/erp_integration/configuration.rb', line 244 def sales_return_reason_adapter @sales_return_reason_adapter || :fulfil end |
#stock_bin_transfer_adapter ⇒ Object
252 253 254 |
# File 'lib/erp_integration/configuration.rb', line 252 def stock_bin_transfer_adapter @stock_bin_transfer_adapter || :fulfil end |
#stock_move_adapter ⇒ Object
256 257 258 |
# File 'lib/erp_integration/configuration.rb', line 256 def stock_move_adapter @stock_move_adapter || :fulfil end |
#supplier_shipment_adapter ⇒ Object
248 249 250 |
# File 'lib/erp_integration/configuration.rb', line 248 def supplier_shipment_adapter @supplier_shipment_adapter || :fulfil end |
#task_adapter ⇒ Object
260 261 262 |
# File 'lib/erp_integration/configuration.rb', line 260 def task_adapter @task_adapter || :fulfil end |
#tracking_number_adapter ⇒ Object
264 265 266 |
# File 'lib/erp_integration/configuration.rb', line 264 def tracking_number_adapter @tracking_number_adapter || :fulfil end |
Instance Method Details
#box_type_adapter ⇒ Object
180 181 182 |
# File 'lib/erp_integration/configuration.rb', line 180 def box_type_adapter @box_type_adapter || :fulfil end |
#carrier_adapter ⇒ Object
160 161 162 |
# File 'lib/erp_integration/configuration.rb', line 160 def carrier_adapter @carrier_adapter || :fulfil end |
#carrier_service_adapter ⇒ Object
164 165 166 |
# File 'lib/erp_integration/configuration.rb', line 164 def carrier_service_adapter @carrier_service_adapter || :fulfil end |
#webhook_adapter ⇒ Object
268 269 270 |
# File 'lib/erp_integration/configuration.rb', line 268 def webhook_adapter @webhook_adapter || :fulfil end |