Sha256: 0a955db1aaa8d1c6763691fc29773973c82ddf758ec8d738a23f09a693607d71

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

require 'jwt'

module FriendlyShipping
  module Services
    class USPSShip
      # Represents an access token returned by USPS Ship. The access token can be
      # used to make API requests. Once it expires, a new token must be created.
      class AccessToken < FriendlyShipping::AccessToken
        # @return [String] the token's type
        attr_reader :token_type

        # @param token_type [String] the token's type (typically "Bearer")
        def initialize(token_type:, **other_kwargs)
          @token_type = token_type
          super(**other_kwargs)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
friendly_shipping-0.10.1 lib/friendly_shipping/services/usps_ship/access_token.rb
friendly_shipping-0.10.0 lib/friendly_shipping/services/usps_ship/access_token.rb