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