Sha256: c0a30f6ead25c3dbcae5b6e0a47678aa1b1fb0d3db33fcdd55f09de8f471ea84

Contents?: true

Size: 1.8 KB

Versions: 22

Compression:

Stored size: 1.8 KB

Contents

=begin
#Square Connect API

OpenAPI spec version: 2.0
Contact: developers@squareup.com
Generated by: https://github.com/swagger-api/swagger-codegen.git

=end

require 'spec_helper'
require 'json'

# Unit tests for SquareConnect::MobileAuthorizationApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'MobileAuthorizationApi' do
  before do
    # run before each test
    @instance = SquareConnect::MobileAuthorizationApi.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of MobileAuthorizationApi' do
    it 'should create an instact of MobileAuthorizationApi' do
      expect(@instance).to be_instance_of(SquareConnect::MobileAuthorizationApi)
    end
  end

  # unit tests for create_mobile_authorization_code
  # CreateMobileAuthorizationCode
  # Generates code to authorize a mobile application to connect to a Square card reader  Authorization codes are one-time-use and expire __60 minutes__ after being issued.  __Important:__ The `Authorization` header you provide to this endpoint must have the following format:  ``` Authorization: Bearer ACCESS_TOKEN ```  Replace `ACCESS_TOKEN` with a [valid production authorization credential](https://docs.connect.squareup.com/get-started#step-4-understand-the-different-application-credentials).
  # @param body An object containing the fields to POST for the request.  See the corresponding object definition for field details.
  # @param [Hash] opts the optional parameters
  # @return [CreateMobileAuthorizationCodeResponse]
  describe 'create_mobile_authorization_code test' do
    it "should work" do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
square_connect-2.20190724.1.334 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190724.0.331 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190724.0.330 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190724.0.325 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190710.0.321 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190612.1.314 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190612.0.311 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190612.0.309 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190508.0.304 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190410.1.300 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190410.0.296 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190327.1.292 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190313.1.282 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190313.0.278 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20190213.0.274 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20181212.0.267 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20181205.0.263 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20180918.1.251 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20180918.0.244 spec/api/mobile_authorization_api_spec.rb
square_connect-2.20180712.2.237 spec/api/mobile_authorization_api_spec.rb