Sha256: 26d8341602b25800a6fb06633308ca54611f504f1f2168b0ad8955f2521c98f2
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require 'jwt' module FriendlyShipping module Services class TForceFreight # Represents an access token returned by TForce Freight. 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 # @return [Integer] the token's extended expiration attr_reader :ext_expires_in # @param token_type [String] the token's type (typically "Bearer") # @param ext_expires_in [Integer] the token's extended expiration (only applicable during a service outage) # @see https://github.com/AzureAD/azure-activedirectory-library-for-android/issues/675 Service Outage Resiliency Support def initialize(token_type:, ext_expires_in:, **other_kwargs) @token_type = token_type @ext_expires_in = ext_expires_in 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/tforce_freight/access_token.rb |
friendly_shipping-0.10.0 | lib/friendly_shipping/services/tforce_freight/access_token.rb |