예제 #1
0
 /// <summary>
 /// AustraliaPostShippingProvider constructor
 /// </summary>
 /// <param name="clientId">client id value</param>
 /// <param name="secret">secret value</param>
 /// <param name="shippingCostCalculator">order shipping cost calculator instance</param>
 /// <param name="customsHandlingOptions">order customs handling options instance</param>
 /// <param name="insuranceOptions">order insurance options instance</param>
 public AustraliaPostShippingProvider(string clientId, string secret,
                                      ShippingCostCalculator shippingCostCalculator,
                                      CustomsHandlingOptions customsHandlingOptions, InsuranceOptions insuranceOptions)
 {
     this.ShippingCostCalculator = shippingCostCalculator;
     this.CustomsHandlingOptions = customsHandlingOptions;
     this.InsuranceOptions       = insuranceOptions;
     this._clientId = clientId;
     this._secret   = secret;
 }
 /// <summary>
 /// SwedishPostalServiceShippingProvider constructor
 /// </summary>
 /// <param name="apiKey">API key value</param>
 /// <param name="shippingCostCalculator">order shipping cost calculator instance</param>
 /// <param name="customsHandlingOptions">order customs handling options instance</param>
 /// <param name="insuranceOptions">order insurance options instance</param>
 public SwedishPostalServiceShippingProvider(string apiKey, ShippingCostCalculator shippingCostCalculator,
                                             CustomsHandlingOptions customsHandlingOptions, InsuranceOptions insuranceOptions)
 {
     this.ShippingCostCalculator = shippingCostCalculator;
     this.CustomsHandlingOptions = customsHandlingOptions;
     this.InsuranceOptions       = insuranceOptions;
     this._apiKey = apiKey;
 }