Sha256: 95a9903a3a12ebe5c661705996c35453b4121f099d760762fcaa0e2b30c6be75
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true EasyPost.api_key = 'YOUR_API_KEY_HERE' SolidusEasypost.configure do |config| # Purchase labels from EasyPost when shipping shipments in Solidus? # config.purchase_labels = true # Create a tracker in EasyPost and receive webhooks for all cartons? # config.track_all_cartons = false # A class that responds to `#compute`, accepting an `EasyPost::Rate` # instance and returning the cost for that rate. # config.shipping_rate_calculator_class = 'SolidusEasypost::ShippingRateCalculator' # A class that responds to `#shipping_method_for`, accepting an # `EasyPost::Rate` instance and returning the shipping method for # that rate. # config.shipping_method_selector_class = 'SolidusEasypost::ShippingMethodSelector' # A class that responds to '#compute', accepting a `SolidusEasypost::ReturnAuthorization` # instance or a `Spree::Stock::Package` instance and returing the `SolidusEasypost::ParcelDimension` object. # The `SolidusEasypost::Calculator::BaseDimensionCalculator` class can be extended to have a common # functionality. # config.parcel_dimension_calculator_class = 'SolidusEasypost::Calculator::WeightDimensionCalculator' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_easypost-3.0.0 | lib/generators/solidus_easypost/install/templates/initializer.rb |