<commit_before>module Shipstation
  class Shipment < ApiResource
    extend Shipstation::APIOperations::List

    class << self
      def get_rates(params = {})
        response = Shipstation.request(:post, "shipments/getrates", params)

        return response
      end

      def create_label(params = {})
        response = Shipstation.request(:post, 'shipments/createlabel', params)

        response
      end
    end
  end
end<commit_msg>add voidlabel endpoint for shipments > * https://www.shipstation.com/developer-api/#/reference/shipments/create-shipment-label/void-label<commit_after>module Shipstation
  class Shipment < ApiResource
    extend Shipstation::APIOperations::List

    class << self
      def get_rates(params = {})
        Shipstation.request(:post, "shipments/getrates", params)
      end

      def create_label(params = {})
        Shipstation.request(:post, 'shipments/createlabel', params)
      end

      def void_label(params = {})
        Shipstation.request(:post, 'shipments/voidlabel', params)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10377358490566038, 'fraction_numerical': 0.0, 'mean_word_length': 3.080769230769231, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2459543', 'n_tokens_mistral': 302, 'n_tokens_neox': 302, 'n_words': 63}