Skip to content

v7.0.0

Latest
Compare
Choose a tag to compare
@Justintime50 Justintime50 released this 30 Apr 20:36
16cced5

See our Upgrade Guide for more details.

  • Minimum .NET Framework is now v4.7.2
  • Adds custom webhook headers when creating/updating a webhook
  • Adds the following functions to assist ReferralCustomer in adding credit cards and bank accounts:
    • Beta.ReferralCustomer.CreateCreditCardClientSecret
    • Beta.ReferralCustomer.CreateBankAccountClientSecret
    • ReferralCustomer.AddCreditCardFromStripe
    • ReferralCustomer.AddBankAccountFromStripe
  • Adds MerchantId as Shipment option (closes #592)
  • Adds missing tracker props
  • Routes AmazonShippingAccount to the correct endpoint on create
  • Fixes error parsing
    • Allows for alternative format of errors field (previously we deserialized the errors field into a list of Error objects; however, sometimes the errors are simply a list of strings. This change make the errors field a list of objects allowing for either the new FieldError object or a list of strings. Users will need to check for the type of error returned and handle appropriately)
    • Removed the unused Error model
    • Added an explicit AddressVerificationFieldError model
    • The PaymentRefund class now uses a list of FieldError instead of Error for the errors field
  • Remove previously-marked obsolete parameter, functions and classes:
    • EasyPost.Models.API.DeliveryDateForZipPairEstimate.EasyPostTimeInTransitData property (use EasyPost.Models.API.DeliveryDateForZipPairEstimate.TimeInTransitDetails instead)
    • EasyPost.Models.API.Options.BillReceiverAccount property (use EasyPost.Models.API.Options.Payment instead)
    • EasyPost.Models.API.Options.BillReceiverPostalCode property (use EasyPost.Models.API.Options.Payment instead)
    • EasyPost.Models.API.Options.BillThirdPartyAccount property (use EasyPost.Models.API.Options.Payment instead)
    • EasyPost.Models.API.Options.BillThirdPartyCountry property (use EasyPost.Models.API.Options.Payment instead)
    • EasyPost.Models.API.Options.BillThirdPartyPostalCode property (use EasyPost.Models.API.Options.Payment instead)
    • EasyPost.Models.API.Rate.EstDeliveryDays property (use EasyPost.Models.API.Rate.DeliveryDays instead)
    • EasyPost.Models.API.SmartRate.EstDeliveryDays property (use EasyPost.Models.API.SmartRate.DeliveryDays instead)
    • EasyPost.Models.API.RateWithEstimatedDeliveryDate.EasyPostTimeInTransitData property (use EasyPost.Models.API.RateWithEstimatedDeliveryDate.TimeInTransitDetails instead)
    • EasyPost.Models.API.RecommendShipDateForShipmentResult.EasyPostTimeInTransitData property (use EasyPost.Models.API.RecommendShipDateForShipmentResult.TimeInTransitDetails instead)
    • EasyPost.Models.API.ShipDateForZipPairRecommendation.EasyPostTimeInTransitData property (use EasyPost.Models.API.ShipDateForZipPairRecommendation.TimeInTransitDetails instead)
    • EasyPost.Models.API.Tracker.TrackingUpdatedAt property (use EasyPost.Models.API.Tracker.UpdatedAt instead)
    • EasyPost.Models.API.TimeInTransitDetails class (use EasyPost.Models.API.TimeInTransitDetailsForDeliveryDateEstimate instead)
    • EasyPost.Parameters.Tracker.CreateList class (related function was removed in v6.8.0)
    • EasyPost.Constants.CarrierAccounts.FedExAccount variable (use EasyPost.Models.API.CarrierAccountType.FedEx instead)
    • EasyPost.Constants.CarrierAccounts.UpsAccount variable (use EasyPost.Models.API.CarrierAccountType.Ups instead)