Sha256: d19b60cbf3003774e7b42e2f41b5c028398cb6603fddc569eb5490fe6661090b

Contents?: true

Size: 1.88 KB

Versions: 5

Compression:

Stored size: 1.88 KB

Contents

=begin
#Fatture in Cloud API v2 - API Reference

#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.0.27
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.5.0

=end

require 'spec_helper'
require 'json'
require 'date'

# Unit tests for FattureInCloud_Ruby_Sdk::WebhooksSubscription
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe FattureInCloud_Ruby_Sdk::WebhooksSubscription do
  instance = FattureInCloud_Ruby_Sdk::WebhooksSubscription.new
  instance.id = 'SUB123'
  instance.sink = 'https://endpoint.test'
  instance.verified = true
  instance.types = ['it.fattureincloud.webhooks.cashbook.create']
  instance.config = {
    mapping: 'structured'
  }

  describe 'test an instance of WebhooksSubscription' do
    it 'should create an instance of WebhooksSubscription' do
      expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::WebhooksSubscription)
    end
  end
  describe 'test attribute "id"' do
    it 'should work' do
      expect(instance.id).to be_a_kind_of(String)
    end
  end

  describe 'test attribute "sink"' do
    it 'should work' do
      expect(instance.sink).to be_a_kind_of(String)
    end
  end

  describe 'test attribute "verified"' do
    it 'should work' do
      expect(instance.verified).to be(true).or be(false)
    end
  end

  describe 'test attribute "types"' do
    it 'should work' do
      expect(instance.types).to be_a_kind_of(Object)
    end
  end

  describe 'test attribute "config"' do
    it 'should work' do
      expect(instance.config).to be_a_kind_of(Object)
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.1.1 spec/models/webhooks_subscription_spec.rb
fattureincloud_ruby_sdk-2.1.0 spec/models/webhooks_subscription_spec.rb
fattureincloud_ruby_sdk-2.0.20 spec/models/webhooks_subscription_spec.rb
fattureincloud_ruby_sdk-2.0.19 spec/models/webhooks_subscription_spec.rb
fattureincloud_ruby_sdk-2.0.18 spec/models/webhooks_subscription_spec.rb