diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c10a1b9..3c6d405 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -131,6 +131,7 @@ docs/SetTalk.md docs/Sms.md docs/StartRecordCall.md docs/TFN.md +docs/TFNCampaign.md docs/TerminateConference.md docs/TranscribeReason.md docs/TranscribeTermReason.md @@ -277,6 +278,7 @@ lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb lib/freeclimb/models/start_record_call.rb lib/freeclimb/models/terminate_conference.rb lib/freeclimb/models/tfn.rb +lib/freeclimb/models/tfn_campaign.rb lib/freeclimb/models/transcribe_reason.rb lib/freeclimb/models/transcribe_term_reason.rb lib/freeclimb/models/transcribe_utterance.rb @@ -417,6 +419,7 @@ spec/models/sms_toll_free_campaign_spec.rb spec/models/sms_toll_free_campaigns_list_result_spec.rb spec/models/start_record_call_spec.rb spec/models/terminate_conference_spec.rb +spec/models/tfn_campaign_spec.rb spec/models/tfn_spec.rb spec/models/transcribe_reason_spec.rb spec/models/transcribe_term_reason_spec.rb diff --git a/.rubocop.yml b/.rubocop.yml index 6acbeaf..a2709cc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,7 @@ # This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) # Automatically generated by OpenAPI Generator (https://openapi-generator.tech) +require: rubocop-rspec + AllCops: TargetRubyVersion: 2.4 # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a06c92..1bb6774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,19 +9,30 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [5.1.0] - 2025-02-05 + +### Added + +- CampaignTFN and MessageResultsAllOfTfn models + ## [5.0.0] - 2025-01-08 ### Added + - Webhook classes - More idiomated Enum management ### Changed + - Use upgraded openapi generator ### Removed -- *AllOf model files + +- \*AllOf model files diff --git a/Gemfile b/Gemfile index cca8483..a0659a2 100644 --- a/Gemfile +++ b/Gemfile @@ -5,8 +5,9 @@ gemspec group :development, :test do gem 'rake', '~> 13.0.6' gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' + gem 'rubocop', '~> 1.71.1' gem "webmock", "~> 3.14" gem "factory_bot", "~> 6.2" gem "facets", "~> 3.1" + gem 'rubocop-rspec', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 7b1a4c4..aac150d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,13 +1,13 @@ PATH remote: . specs: - freeclimb (5.0.0) + freeclimb (5.1.0) typhoeus (~> 1.0, >= 1.0.1) GEM remote: https://rubygems.org/ specs: - activesupport (8.0.1) + activesupport (7.2.2.1) base64 benchmark (>= 0.3) bigdecimal @@ -19,7 +19,6 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) - uri (>= 0.13.1) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ast (2.4.2) @@ -33,7 +32,6 @@ GEM crack (1.0.0) bigdecimal rexml - date (3.4.1) diff-lcs (1.5.1) drb (2.2.1) ethon (0.16.0) @@ -42,25 +40,26 @@ GEM factory_bot (6.5.0) activesupport (>= 5.0.0) ffi (1.17.1) - ffi (1.17.1-aarch64-linux-gnu) + ffi (1.17.1-aarch64-linux) ffi (1.17.1-aarch64-linux-musl) - ffi (1.17.1-arm-linux-gnu) + ffi (1.17.1-arm-linux) ffi (1.17.1-arm-linux-musl) ffi (1.17.1-arm64-darwin) - ffi (1.17.1-x86-linux-gnu) + ffi (1.17.1-x86-linux) ffi (1.17.1-x86-linux-musl) ffi (1.17.1-x86_64-darwin) - ffi (1.17.1-x86_64-linux-gnu) + ffi (1.17.1-x86_64-linux) ffi (1.17.1-x86_64-linux-musl) hashdiff (1.1.2) i18n (1.14.6) concurrent-ruby (~> 1.0) - jaro_winkler (1.5.6) + json (2.9.1) + language_server-protocol (3.17.0.4) logger (1.6.4) method_source (1.1.0) minitest (5.25.4) parallel (1.26.3) - parser (3.3.6.0) + parser (3.3.7.0) ast (~> 2.4.1) racc pry (0.14.2) @@ -69,13 +68,11 @@ GEM pry-byebug (3.10.1) byebug (~> 11.0) pry (>= 0.13, < 0.15) - psych (5.2.2) - date - stringio public_suffix (6.0.1) racc (1.8.1) rainbow (3.1.1) rake (13.0.6) + regexp_parser (2.10.0) rexml (3.4.0) rspec (3.13.0) rspec-core (~> 3.13.0) @@ -90,39 +87,45 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.2) - rubocop (0.66.0) - jaro_winkler (~> 1.5.1) + rubocop (1.71.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 2.5, != 2.5.1.1) - psych (>= 3.1.0) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 1.6) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.38.0) + parser (>= 3.3.1.0) + rubocop-rspec (3.4.0) + rubocop (~> 1.61) ruby-progressbar (1.13.0) securerandom (0.4.1) - stringio (3.1.2) typhoeus (1.4.1) ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (1.5.0) - uri (1.0.2) + unicode-display_width (3.1.4) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) webmock (3.24.0) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) PLATFORMS - aarch64-linux-gnu + aarch64-linux aarch64-linux-musl - arm-linux-gnu + arm-linux arm-linux-musl arm64-darwin ruby - x86-linux-gnu + x86-linux x86-linux-musl x86_64-darwin - x86_64-linux-gnu + x86_64-linux x86_64-linux-musl DEPENDENCIES @@ -132,7 +135,8 @@ DEPENDENCIES pry-byebug rake (~> 13.0.6) rspec (~> 3.6, >= 3.6.0) - rubocop (~> 0.66.0) + rubocop (~> 1.71.1) + rubocop-rspec webmock (~> 3.14) BUNDLED WITH diff --git a/README.md b/README.md index 0974d4e..d076855 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 5.0.0 +- Package version: 5.1.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/) @@ -15,7 +15,7 @@ For more information, please visit [https://www.freeclimb.com/support/](https:// Add this to the Gemfile: - gem 'freeclimb', '~> 5.0.0' + gem 'freeclimb', '~> 5.1.0' and run from your terminal @@ -44,9 +44,9 @@ gem build freeclimb.gemspec Then either install the gem locally: ```shell -gem install ./freeclimb-5.0.0.gem +gem install ./freeclimb-5.1.0.gem ``` -(for development, run `gem install --dev ./freeclimb-5.0.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./freeclimb-5.1.0.gem` to install the development dependencies) ## Getting Started @@ -286,6 +286,7 @@ Class | Method | HTTP request | Description - [Freeclimb::Sms](docs/Sms.md) - [Freeclimb::StartRecordCall](docs/StartRecordCall.md) - [Freeclimb::TFN](docs/TFN.md) + - [Freeclimb::TFNCampaign](docs/TFNCampaign.md) - [Freeclimb::TerminateConference](docs/TerminateConference.md) - [Freeclimb::TranscribeReason](docs/TranscribeReason.md) - [Freeclimb::TranscribeTermReason](docs/TranscribeTermReason.md) diff --git a/docs/MessageResult.md b/docs/MessageResult.md index d0e3bdf..17979b1 100644 --- a/docs/MessageResult.md +++ b/docs/MessageResult.md @@ -20,6 +20,9 @@ | **campaign_id** | **String** | The unique identifier for the campaign associated with the message | [optional] | | **segment_count** | **Float** | The number of segments into which the message was split | [optional] | | **media_urls** | **Array<String>** | an array of HTTP URLs which were attached this this message | [optional] | +| **tfn** | [**TFN**](TFN.md) | | [optional] | +| **phone_number_id** | **String** | String that uniquely identifies the phoneNumber resource used to send this Message | [optional] | +| **application_id** | **String** | String that uniquely identifies the Application resource used to send this Message | [optional] | ## Example @@ -42,7 +45,10 @@ instance = Freeclimb::MessageResult.new( brand_id: null, campaign_id: null, segment_count: null, - media_urls: null + media_urls: null, + tfn: null, + phone_number_id: null, + application_id: null ) ``` diff --git a/docs/TFNCampaign.md b/docs/TFNCampaign.md new file mode 100644 index 0000000..dc35eba --- /dev/null +++ b/docs/TFNCampaign.md @@ -0,0 +1,34 @@ +# Freeclimb::TFNCampaign + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **account_id** | **String** | ID of the account that created this participant. | | +| **campaign_id** | **String** | TFNCampaignId | | +| **use_case** | **String** | | | +| **registration_status** | [**SMSTollFreeCampaignRegistrationStatus**](SMSTollFreeCampaignRegistrationStatus.md) | | | +| **date_created** | **String** | | | +| **date_updated** | **String** | | | +| **date_created_iso** | **String** | | | +| **date_updated_iso** | **String** | | | +| **revision** | **Integer** | | | + +## Example + +```ruby +require 'freeclimb' + +instance = Freeclimb::TFNCampaign.new( + account_id: null, + campaign_id: cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a, + use_case: null, + registration_status: null, + date_created: null, + date_updated: null, + date_created_iso: null, + date_updated_iso: null, + revision: null +) +``` + diff --git a/lib/freeclimb.rb b/lib/freeclimb.rb index 1af48f6..4e2b5fb 100644 --- a/lib/freeclimb.rb +++ b/lib/freeclimb.rb @@ -98,6 +98,7 @@ require 'freeclimb/models/sms_toll_free_campaign_registration_status' require 'freeclimb/models/sms_toll_free_campaigns_list_result' require 'freeclimb/models/tfn' +require 'freeclimb/models/tfn_campaign' require 'freeclimb/models/transcribe_reason' require 'freeclimb/models/transcribe_term_reason' require 'freeclimb/models/transcribe_utterance_record' diff --git a/lib/freeclimb/configuration.rb b/lib/freeclimb/configuration.rb index b0f8318..93db346 100644 --- a/lib/freeclimb/configuration.rb +++ b/lib/freeclimb/configuration.rb @@ -236,8 +236,7 @@ def server_settings end def operation_server_settings - { - } + {} end # Returns URL based on server settings diff --git a/lib/freeclimb/models/dequeue.rb b/lib/freeclimb/models/dequeue.rb index 48754b1..2857745 100644 --- a/lib/freeclimb/models/dequeue.rb +++ b/lib/freeclimb/models/dequeue.rb @@ -18,8 +18,7 @@ module Freeclimb class Dequeue < PerclCommand # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map - { - } + {} end # Returns all the JSON keys this model knows about, including the ones defined in its parent(s) @@ -29,8 +28,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types - { - } + {} end # List of attributes with nullable: true diff --git a/lib/freeclimb/models/message_result.rb b/lib/freeclimb/models/message_result.rb index 07d0a8b..8446278 100644 --- a/lib/freeclimb/models/message_result.rb +++ b/lib/freeclimb/models/message_result.rb @@ -62,6 +62,14 @@ class MessageResult # an array of HTTP URLs which were attached this this message attr_accessor :media_urls + attr_accessor :tfn + + # String that uniquely identifies the phoneNumber resource used to send this Message + attr_accessor :phone_number_id + + # String that uniquely identifies the Application resource used to send this Message + attr_accessor :application_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -102,7 +110,10 @@ def self.attribute_map :'brand_id' => :'brandId', :'campaign_id' => :'campaignId', :'segment_count' => :'segmentCount', - :'media_urls' => :'mediaUrls' + :'media_urls' => :'mediaUrls', + :'tfn' => :'tfn', + :'phone_number_id' => :'phoneNumberId', + :'application_id' => :'applicationId' } end @@ -129,7 +140,10 @@ def self.openapi_types :'brand_id' => :'String', :'campaign_id' => :'String', :'segment_count' => :'Float', - :'media_urls' => :'Array' + :'media_urls' => :'Array', + :'tfn' => :'TFN', + :'phone_number_id' => :'String', + :'application_id' => :'String' } end @@ -147,7 +161,9 @@ def self.openapi_nullable :'brand_id', :'campaign_id', :'segment_count', - :'media_urls' + :'media_urls', + :'phone_number_id', + :'application_id' ]) end @@ -238,6 +254,18 @@ def initialize(attributes = {}) self.media_urls = value end end + + if attributes.key?(:'tfn') + self.tfn = attributes[:'tfn'] + end + + if attributes.key?(:'phone_number_id') + self.phone_number_id = attributes[:'phone_number_id'] + end + + if attributes.key?(:'application_id') + self.application_id = attributes[:'application_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -278,7 +306,10 @@ def ==(o) brand_id == o.brand_id && campaign_id == o.campaign_id && segment_count == o.segment_count && - media_urls == o.media_urls + media_urls == o.media_urls && + tfn == o.tfn && + phone_number_id == o.phone_number_id && + application_id == o.application_id end # @see the `==` method @@ -290,7 +321,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [uri, date_created, date_updated, revision, account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count, media_urls].hash + [uri, date_created, date_updated, revision, account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count, media_urls, tfn, phone_number_id, application_id].hash end # Builds the object from hash diff --git a/lib/freeclimb/models/remove_from_conference.rb b/lib/freeclimb/models/remove_from_conference.rb index 74c172f..ec41176 100644 --- a/lib/freeclimb/models/remove_from_conference.rb +++ b/lib/freeclimb/models/remove_from_conference.rb @@ -18,8 +18,7 @@ module Freeclimb class RemoveFromConference < PerclCommand # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map - { - } + {} end # Returns all the JSON keys this model knows about, including the ones defined in its parent(s) @@ -29,8 +28,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types - { - } + {} end # List of attributes with nullable: true diff --git a/lib/freeclimb/models/start_record_call.rb b/lib/freeclimb/models/start_record_call.rb index 78cbd41..3989817 100644 --- a/lib/freeclimb/models/start_record_call.rb +++ b/lib/freeclimb/models/start_record_call.rb @@ -18,8 +18,7 @@ module Freeclimb class StartRecordCall < PerclCommand # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map - { - } + {} end # Returns all the JSON keys this model knows about, including the ones defined in its parent(s) @@ -29,8 +28,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types - { - } + {} end # List of attributes with nullable: true diff --git a/lib/freeclimb/models/terminate_conference.rb b/lib/freeclimb/models/terminate_conference.rb index a9ba6c2..46fa333 100644 --- a/lib/freeclimb/models/terminate_conference.rb +++ b/lib/freeclimb/models/terminate_conference.rb @@ -18,8 +18,7 @@ module Freeclimb class TerminateConference < PerclCommand # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map - { - } + {} end # Returns all the JSON keys this model knows about, including the ones defined in its parent(s) @@ -29,8 +28,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types - { - } + {} end # List of attributes with nullable: true diff --git a/lib/freeclimb/models/tfn_campaign.rb b/lib/freeclimb/models/tfn_campaign.rb new file mode 100644 index 0000000..915fadb --- /dev/null +++ b/lib/freeclimb/models/tfn_campaign.rb @@ -0,0 +1,370 @@ +=begin +#FreeClimb API + +#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + +The version of the OpenAPI document: 1.0.0 +Contact: support@freeclimb.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.9.0 + +=end + +require 'date' +require 'time' + +module Freeclimb + class TFNCampaign + # ID of the account that created this participant. + attr_accessor :account_id + + # TFNCampaignId + attr_accessor :campaign_id + + attr_accessor :use_case + + attr_accessor :registration_status + + attr_accessor :date_created + + attr_accessor :date_updated + + attr_accessor :date_created_iso + + attr_accessor :date_updated_iso + + attr_accessor :revision + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'account_id' => :'accountId', + :'campaign_id' => :'campaignId', + :'use_case' => :'useCase', + :'registration_status' => :'registrationStatus', + :'date_created' => :'dateCreated', + :'date_updated' => :'dateUpdated', + :'date_created_iso' => :'dateCreatedISO', + :'date_updated_iso' => :'dateUpdatedISO', + :'revision' => :'revision' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'account_id' => :'String', + :'campaign_id' => :'String', + :'use_case' => :'String', + :'registration_status' => :'SMSTollFreeCampaignRegistrationStatus', + :'date_created' => :'String', + :'date_updated' => :'String', + :'date_created_iso' => :'String', + :'date_updated_iso' => :'String', + :'revision' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'account_id', + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::TFNCampaign` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::TFNCampaign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'account_id') + self.account_id = attributes[:'account_id'] + end + + if attributes.key?(:'campaign_id') + self.campaign_id = attributes[:'campaign_id'] + end + + if attributes.key?(:'use_case') + self.use_case = attributes[:'use_case'] + end + + if attributes.key?(:'registration_status') + self.registration_status = attributes[:'registration_status'] + end + + if attributes.key?(:'date_created') + self.date_created = attributes[:'date_created'] + end + + if attributes.key?(:'date_updated') + self.date_updated = attributes[:'date_updated'] + end + + if attributes.key?(:'date_created_iso') + self.date_created_iso = attributes[:'date_created_iso'] + end + + if attributes.key?(:'date_updated_iso') + self.date_updated_iso = attributes[:'date_updated_iso'] + end + + if attributes.key?(:'revision') + self.revision = attributes[:'revision'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @campaign_id.nil? + invalid_properties.push('invalid value for "campaign_id", campaign_id cannot be nil.') + end + + pattern = Regexp.new(/cmptfn_[a-fA-F0-9]{40}/) + if @campaign_id !~ pattern + invalid_properties.push("invalid value for \"campaign_id\", must conform to the pattern #{pattern}.") + end + + if @use_case.nil? + invalid_properties.push('invalid value for "use_case", use_case cannot be nil.') + end + + if @registration_status.nil? + invalid_properties.push('invalid value for "registration_status", registration_status cannot be nil.') + end + + if @date_created.nil? + invalid_properties.push('invalid value for "date_created", date_created cannot be nil.') + end + + if @date_updated.nil? + invalid_properties.push('invalid value for "date_updated", date_updated cannot be nil.') + end + + if @date_created_iso.nil? + invalid_properties.push('invalid value for "date_created_iso", date_created_iso cannot be nil.') + end + + if @date_updated_iso.nil? + invalid_properties.push('invalid value for "date_updated_iso", date_updated_iso cannot be nil.') + end + + if @revision.nil? + invalid_properties.push('invalid value for "revision", revision cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + + if @account_id.nil? + false + else + list_invalid_properties.length() == 0 + end + end + + # Custom attribute writer method with validation + # @param [Object] campaign_id Value to be assigned + def campaign_id=(campaign_id) + if campaign_id.nil? + fail ArgumentError, 'campaign_id cannot be nil' + end + + pattern = Regexp.new(/cmptfn_[a-fA-F0-9]{40}/) + if campaign_id !~ pattern + fail ArgumentError, "invalid value for \"campaign_id\", must conform to the pattern #{pattern}." + end + + @campaign_id = campaign_id + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + account_id == o.account_id && + campaign_id == o.campaign_id && + use_case == o.use_case && + registration_status == o.registration_status && + date_created == o.date_created && + date_updated == o.date_updated && + date_created_iso == o.date_created_iso && + date_updated_iso == o.date_updated_iso && + revision == o.revision + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [account_id, campaign_id, use_case, registration_status, date_created, date_updated, date_created_iso, date_updated_iso, revision].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Freeclimb.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/freeclimb/models/unpark.rb b/lib/freeclimb/models/unpark.rb index b82bae2..d8b6ace 100644 --- a/lib/freeclimb/models/unpark.rb +++ b/lib/freeclimb/models/unpark.rb @@ -18,8 +18,7 @@ module Freeclimb class Unpark < PerclCommand # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map - { - } + {} end # Returns all the JSON keys this model knows about, including the ones defined in its parent(s) @@ -29,8 +28,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types - { - } + {} end # List of attributes with nullable: true diff --git a/lib/freeclimb/version.rb b/lib/freeclimb/version.rb index 739fa79..a22e824 100644 --- a/lib/freeclimb/version.rb +++ b/lib/freeclimb/version.rb @@ -11,5 +11,5 @@ =end module Freeclimb - VERSION = '5.0.0' + VERSION = '5.1.0' end diff --git a/openapi.json b/openapi.json index 16e3520..0302013 100644 --- a/openapi.json +++ b/openapi.json @@ -151,12 +151,7 @@ }, "GetDigitsReason": { "type": "string", - "enum": [ - "finishKey", - "timeout", - "maxDigits", - "tone" - ], + "enum": ["finishKey", "timeout", "maxDigits", "tone"], "description": "This field explains how the GetDigits action ended. The value is one of the below: •finishKey - The finish key as specified had been pressed by the caller. Digit string has all keys up to, but not including, the finish key. •timeout - The timeout limit was reached prior to any other criteria being met. If any digits were collected, they will be included. •maxDigits - The maximum number of digits was reached and digit collection ended. •tone - Answering machine or fax tone detection occurred, interrupting digit collection. Any digits received up to this point are included in this webhook." }, "ConferenceStatus": { @@ -420,12 +415,7 @@ "SMSTenDLCBrandIdentityStatus": { "type": "string", "description": "TCR assessment of the brand identification status.", - "enum": [ - "SELF_DECLARED", - "UNVERIFIED", - "VERIFIED", - "VETTED_VERIFIED" - ] + "enum": ["SELF_DECLARED", "UNVERIFIED", "VERIFIED", "VETTED_VERIFIED"] }, "CompletionResultStatus": { "type": "string", @@ -494,32 +484,32 @@ "Webhook": { "type": "object", "discriminator": { - "propertyName": "requestType", - "mapping": { - "addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook", - "addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook", - "callControl": "#/components/schemas/CallControlWebhook", - "callStatus": "#/components/schemas/CallStatusWebhook", - "conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook", - "conferenceStatus": "#/components/schemas/ConferenceStatusWebhook", - "createConference": "#/components/schemas/CreateConferenceWebhook", - "dequeue": "#/components/schemas/DequeueWebhook", - "getDigits": "#/components/schemas/GetDigitsWebhook", - "getSpeech": "#/components/schemas/GetSpeechWebhook", - "inboundCall": "#/components/schemas/InboundCallWebhook", - "leaveConference": "#/components/schemas/LeaveConferenceWebhook", - "machineDetected": "#/components/schemas/MachineDetectedWebhook", - "messageDelivery": "#/components/schemas/MessageDeliveryWebhook", - "messageStatus": "#/components/schemas/MessageStatusWebhook", - "outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook", - "outDialConnect": "#/components/schemas/OutDialConnectWebhook", - "outDialStart": "#/components/schemas/OutDialStartWebhook", - "queueWait": "#/components/schemas/QueueWaitWebhook", - "record": "#/components/schemas/RecordWebhook", - "redirect": "#/components/schemas/RedirectWebhook", - "removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook", - "transcribe": "#/components/schemas/TranscribeWebhook" - } + "propertyName": "requestType", + "mapping": { + "addToConferenceNotification": "#/components/schemas/AddToConferenceNotificationWebhook", + "addToQueueNotification": "#/components/schemas/AddToQueueNotificationWebhook", + "callControl": "#/components/schemas/CallControlWebhook", + "callStatus": "#/components/schemas/CallStatusWebhook", + "conferenceRecordingStatus": "#/components/schemas/ConferenceRecordingStatusWebhook", + "conferenceStatus": "#/components/schemas/ConferenceStatusWebhook", + "createConference": "#/components/schemas/CreateConferenceWebhook", + "dequeue": "#/components/schemas/DequeueWebhook", + "getDigits": "#/components/schemas/GetDigitsWebhook", + "getSpeech": "#/components/schemas/GetSpeechWebhook", + "inboundCall": "#/components/schemas/InboundCallWebhook", + "leaveConference": "#/components/schemas/LeaveConferenceWebhook", + "machineDetected": "#/components/schemas/MachineDetectedWebhook", + "messageDelivery": "#/components/schemas/MessageDeliveryWebhook", + "messageStatus": "#/components/schemas/MessageStatusWebhook", + "outDialApiConnect": "#/components/schemas/OutDialApiConnectWebhook", + "outDialConnect": "#/components/schemas/OutDialConnectWebhook", + "outDialStart": "#/components/schemas/OutDialStartWebhook", + "queueWait": "#/components/schemas/QueueWaitWebhook", + "record": "#/components/schemas/RecordWebhook", + "redirect": "#/components/schemas/RedirectWebhook", + "removeFromQueueNotification": "#/components/schemas/RemoveFromQueueNotificationWebhook", + "transcribe": "#/components/schemas/TranscribeWebhook" + } }, "properties": { "requestType": { @@ -3596,11 +3586,76 @@ "format": "uri" }, "nullable": true + }, + "tfn": { + "$ref": "#/components/schemas/TFN", + "nullable": true + }, + "phoneNumberId": { + "type": "string", + "description": "String that uniquely identifies the phoneNumber resource used to send this Message", + "nullable": true + }, + "applicationId": { + "type": "string", + "description": "String that uniquely identifies the Application resource used to send this Message", + "nullable": true } } } ] }, + "TFNCampaign": { + "type": "object", + "required": [ + "accountId", + "campaignId", + "useCase", + "registrationStatus", + "dateCreated", + "dateUpdated", + "dateCreatedISO", + "dateUpdatedISO", + "revision" + ], + "properties": { + "accountId": { + "type": "string", + "description": "ID of the account that created this participant.", + "nullable": true + }, + "campaignId": { + "$ref": "#/components/schemas/TFNCampaignId" + }, + "useCase": { + "type": "string" + }, + "registrationStatus": { + "$ref": "#/components/schemas/SMSTollFreeCampaignRegistrationStatus" + }, + "dateCreated": { + "type": "string" + }, + "dateUpdated": { + "type": "string" + }, + "dateCreatedISO": { + "type": "string" + }, + "dateUpdatedISO": { + "type": "string" + }, + "revision": { + "type": "integer" + } + } + }, + "TFNCampaignId": { + "type": "string", + "description": "TFNCampaignId", + "pattern": "cmptfn_[a-fA-F0-9]{40}", + "example": "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a" + }, "CreateConferenceRequest": { "type": "object", "properties": { diff --git a/spec/api/default_api_spec.rb b/spec/api/default_api_spec.rb index b7ed052..e7805b0 100644 --- a/spec/api/default_api_spec.rb +++ b/spec/api/default_api_spec.rb @@ -279,9 +279,7 @@ result = @api_instance.buy_a_phone_number( buy_incoming_number_request, - { - - } + {} ) false @@ -401,9 +399,7 @@ result = @api_instance.delete_a_recording( recording_id, - { - - } + {} ) false @@ -425,9 +421,7 @@ result = @api_instance.delete_an_application( application_id, - { - - } + {} ) false @@ -449,9 +443,7 @@ result = @api_instance.delete_an_incoming_number( phone_number_id, - { - - } + {} ) false @@ -475,9 +467,7 @@ result = @api_instance.dequeue_a_member( queue_id, call_id, - { - - } + {} ) false @@ -499,9 +489,7 @@ result = @api_instance.dequeue_head_member( queue_id, - { - - } + {} ) false @@ -523,9 +511,7 @@ result = @api_instance.download_a_recording_file( recording_id, - { - - } + {} ) false @@ -547,9 +533,7 @@ result = @api_instance.filter_logs( filter_logs_request, - { - - } + {} ) false @@ -571,9 +555,7 @@ result = @api_instance.get_a_call( call_id, - { - - } + {} ) false @@ -595,9 +577,7 @@ result = @api_instance.get_a_conference( conference_id, - { - - } + {} ) false @@ -621,9 +601,7 @@ result = @api_instance.get_a_member( queue_id, call_id, - { - - } + {} ) false @@ -647,9 +625,7 @@ result = @api_instance.get_a_participant( conference_id, call_id, - { - - } + {} ) false @@ -671,9 +647,7 @@ result = @api_instance.get_a_queue( queue_id, - { - - } + {} ) false @@ -695,9 +669,7 @@ result = @api_instance.get_a_recording( recording_id, - { - - } + {} ) false @@ -717,9 +689,7 @@ result = @api_instance.get_an_account( - { - - } + {} ) false @@ -741,9 +711,7 @@ result = @api_instance.get_an_application( application_id, - { - - } + {} ) false @@ -765,9 +733,7 @@ result = @api_instance.get_an_incoming_number( phone_number_id, - { - - } + {} ) false @@ -789,9 +755,7 @@ result = @api_instance.get_an_sms_message( message_id, - { - - } + {} ) false @@ -813,9 +777,7 @@ result = @api_instance.get_head_member( queue_id, - { - - } + {} ) false @@ -837,9 +799,7 @@ result = @api_instance.get_ten_dlc_sms_brand( brand_id, - { - - } + {} ) false @@ -859,9 +819,7 @@ result = @api_instance.get_ten_dlc_sms_brands( - { - - } + {} ) false @@ -883,9 +841,7 @@ result = @api_instance.get_ten_dlc_sms_campaign( campaign_id, - { - - } + {} ) false @@ -931,9 +887,7 @@ result = @api_instance.get_ten_dlc_sms_partner_campaign( campaign_id, - { - - } + {} ) false @@ -979,9 +933,7 @@ result = @api_instance.get_toll_free_sms_campaign( campaign_id, - { - - } + {} ) false @@ -1001,9 +953,7 @@ result = @api_instance.get_toll_free_sms_campaigns( - { - - } + {} ) false @@ -1047,9 +997,7 @@ result = @api_instance.list_all_account_logs( - { - - } + {} ) false @@ -1137,9 +1085,7 @@ result = @api_instance.list_call_logs( call_id, - { - - } + {} ) false @@ -1337,9 +1283,7 @@ result = @api_instance.list_members( queue_id, - { - - } + {} ) false @@ -1481,9 +1425,7 @@ result = @api_instance.make_a_webrtc_jwt( create_web_rtc_token, - { - - } + {} ) true expect(result).to be_a String @@ -1507,9 +1449,7 @@ result = @api_instance.remove_a_participant( conference_id, call_id, - { - - } + {} ) false @@ -1531,9 +1471,7 @@ result = @api_instance.send_an_sms_message( message_request, - { - - } + {} ) false @@ -1555,9 +1493,7 @@ result = @api_instance.stream_a_recording_file( recording_id, - { - - } + {} ) false @@ -1607,9 +1543,7 @@ result = @api_instance.update_a_live_call( call_id, update_call_request, - { - - } + {} ) false @@ -1761,9 +1695,7 @@ result = @api_instance.filter_logs( filter_logs_request, - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1" next_page_result = @api_instance.get_next_page(result) @@ -1782,9 +1714,7 @@ result = @api_instance.get_ten_dlc_sms_brands( - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Messages/10DLC/Brands?cursor=1" next_page_result = @api_instance.get_next_page(result) @@ -1849,9 +1779,7 @@ result = @api_instance.get_toll_free_sms_campaigns( - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Messages/TollFree/Campaigns?cursor=1" next_page_result = @api_instance.get_next_page(result) @@ -1893,9 +1821,7 @@ result = @api_instance.list_all_account_logs( - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Logs?cursor=1" next_page_result = @api_instance.get_next_page(result) @@ -1980,9 +1906,7 @@ result = @api_instance.list_call_logs( call_id, - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Calls/{callId}/Logs?cursor=1" next_page_result = @api_instance.get_next_page(result) @@ -2174,9 +2098,7 @@ result = @api_instance.list_members( queue_id, - { - - } + {} ) result.next_page_uri = "/Accounts/{accountId}/Queues/{queueId}/Members?cursor=1" next_page_result = @api_instance.get_next_page(result) diff --git a/spec/models/account_request_spec.rb b/spec/models/account_request_spec.rb index 26cbb4d..52c475f 100644 --- a/spec/models/account_request_spec.rb +++ b/spec/models/account_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AccountRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,44 +29,68 @@ describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "label"' do it 'should work' do + instance.label = "TEST_STRING" expect(instance.label).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AccountRequest' do expect { instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -74,10 +99,16 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -94,34 +125,59 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + instance_1 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) instance_2 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) instance_2 = Freeclimb::AccountRequest.new( + _alias: "ST", + + + label: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -130,10 +186,16 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -142,16 +204,28 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) instance_2 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -160,26 +234,42 @@ describe 'test method "_deserialize"' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of label' do expect(instance._deserialize("String", instance.label)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -188,26 +278,45 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + instance_1 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) instance_2 = Freeclimb::AccountRequest.new( + _alias: "TS", + + + label: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -215,9 +324,11 @@ describe 'test method "_to_hash"' do instance = Freeclimb::AccountRequest.new( + _alias: "TS", + label: "TS", ) diff --git a/spec/models/account_result_spec.rb b/spec/models/account_result_spec.rb index a8f1f0f..caa10b4 100644 --- a/spec/models/account_result_spec.rb +++ b/spec/models/account_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AccountResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,38 +67,52 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "api_key"' do it 'should work' do + instance.api_key = "TEST_STRING" expect(instance.api_key).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "label"' do it 'should work' do + instance.label = "TEST_STRING" expect(instance.label).to eq("TEST_STRING") + + end end @@ -124,92 +148,187 @@ testObject = Object.new() instance.subresource_uris = testObject expect(instance.subresource_uris).to eq(testObject) + + + instance.subresource_uris = Object.new + expect(instance.subresource_uris).to be_instance_of(Object) + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AccountResult' do expect { instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) @@ -219,28 +338,58 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), ) @@ -259,57 +408,129 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + obj_Object = Object.new() + instance_1 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: obj, + + + subresource_uris: obj_Object, + ) instance_2 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: obj, + + + subresource_uris: obj_Object, + ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -317,57 +538,118 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + account_id: "TS", - api_key: "TS", - _alias: "TS", - label: "TS", + api_key: "TS", - type: Freeclimb::AccountType::TRIAL, - status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), + _alias: "TS", - ) - instance_2 = Freeclimb::AccountResult.new( - uri: "ST", - date_created: "ST", - date_updated: "ST", - revision: 1, + label: "TS", - account_id: "ST", - api_key: "ST", - _alias: "ST", - label: "ST", - type: nil, + type: Freeclimb::AccountType::TRIAL, - status: nil, - subresource_uris: nil, - ) + status: Freeclimb::AccountStatus::CLOSED, + + + + subresource_uris: Object.new(), + + subresource_uris: Object.new(), + + ) + instance_2 = Freeclimb::AccountResult.new( + + uri: "ST", + + + + + date_created: "ST", + + + + + date_updated: "ST", + + + + revision: 1, + + + + + account_id: "ST", + + + + + api_key: "ST", + + + + + _alias: "ST", + + + + + label: "ST", + + + + + + + type: nil, + + + + + status: nil, + + + + subresource_uris: Object.new(), + + + ) expect(instance_1.eql?(instance_2)).to eq(false) end end @@ -375,28 +657,58 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), ) @@ -407,54 +719,114 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), ) instance_2 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), ) @@ -465,86 +837,169 @@ describe 'test method "_deserialize"' do instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: Object.new(), ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of api_key' do expect(instance._deserialize("String", instance.api_key)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of label' do expect(instance._deserialize("String", instance.label)).to be_a_kind_of(String) end + + + + + + + + it 'deserializes the data of subresource_uris' do expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object) end + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_s).to eq(instance.to_hash.to_s) @@ -554,84 +1009,186 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do + + + + + + + + + + + obj = Object.new() + instance_1 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: obj, ) instance_2 = Freeclimb::AccountResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + api_key: "TS", + + + _alias: "TS", + + + label: "TS", + + type: Freeclimb::AccountType::TRIAL, + + status: Freeclimb::AccountStatus::CLOSED, + + + + + subresource_uris: obj, ) @@ -641,27 +1198,34 @@ describe 'test method "_to_hash"' do instance = Freeclimb::AccountResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + account_id: "TS", + api_key: "TS", + _alias: "TS", + label: "TS", @@ -673,7 +1237,6 @@ status: Freeclimb::AccountStatus::CLOSED, - subresource_uris: Object.new(), ) it 'returns uri in the form of hash' do diff --git a/spec/models/account_status_spec.rb b/spec/models/account_status_spec.rb index db23c8a..bb40df5 100644 --- a/spec/models/account_status_spec.rb +++ b/spec/models/account_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AccountStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/account_type_spec.rb b/spec/models/account_type_spec.rb index 8683042..722a06d 100644 --- a/spec/models/account_type_spec.rb +++ b/spec/models/account_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AccountType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/add_to_conference_notification_webhook_spec.rb b/spec/models/add_to_conference_notification_webhook_spec.rb index aedd223..49422bb 100644 --- a/spec/models/add_to_conference_notification_webhook_spec.rb +++ b/spec/models/add_to_conference_notification_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AddToConferenceNotificationWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -159,17 +181,23 @@ end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end @@ -180,108 +208,215 @@ instance.recording_duration_sec = 1 expect(instance.recording_duration_sec).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToConferenceNotificationWebhook' do expect { instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -290,35 +425,70 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.valid?).to eq(true) end @@ -335,66 +505,148 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + + + recording_duration_sec: 1, ) @@ -403,66 +655,136 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", - call_id: "TS", - account_id: "TS", - from: "TS", + + call_id: "TS", + + + + + account_id: "TS", + + + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 2, + + ) instance_2 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + + status: nil, + recording_url: "ST", + + + recording_id: "ST", + + recording_duration_sec: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -471,35 +793,70 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -508,66 +865,136 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -576,100 +1003,196 @@ describe 'test method "_deserialize"' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_sec' do expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -678,101 +1201,218 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -780,18 +1420,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::AddToConferenceNotificationWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -803,9 +1448,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", @@ -813,9 +1460,11 @@ status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + recording_id: "TS", diff --git a/spec/models/add_to_conference_spec.rb b/spec/models/add_to_conference_spec.rb index f831e79..ce36a1f 100644 --- a/spec/models/add_to_conference_spec.rb +++ b/spec/models/add_to_conference_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AddToConference # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,38 +32,52 @@ instance.allow_call_control = false expect(instance.allow_call_control).to eq(false) + + end end describe 'test attribute "call_control_sequence"' do it 'should work' do + instance.call_control_sequence = "TEST_STRING" expect(instance.call_control_sequence).to eq("TEST_STRING") + + end end describe 'test attribute "call_control_url"' do it 'should work' do + instance.call_control_url = "TEST_STRING" expect(instance.call_control_url).to eq("TEST_STRING") + + end end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "leave_conference_url"' do it 'should work' do + instance.leave_conference_url = "TEST_STRING" expect(instance.leave_conference_url).to eq("TEST_STRING") + + end end @@ -71,14 +86,19 @@ instance.listen = false expect(instance.listen).to eq(false) + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end @@ -87,6 +107,8 @@ instance.start_conf_on_enter = false expect(instance.start_conf_on_enter).to eq(false) + + end end @@ -95,6 +117,8 @@ instance.talk = false expect(instance.talk).to eq(false) + + end end @@ -103,6 +127,8 @@ instance.dtmf_pass_through = false expect(instance.dtmf_pass_through).to eq(false) + + end end @@ -111,48 +137,98 @@ expect { instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToConference' do expect { instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -160,24 +236,49 @@ expect { instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -188,24 +289,49 @@ instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance.valid?).to eq(true) end @@ -222,50 +348,109 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -274,46 +459,96 @@ instance_1 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::AddToConference.new( allow_call_control: false, + + + call_control_sequence: "ST", + + + call_control_url: "ST", + + + conference_id: "ST", + + + leave_conference_url: "ST", + + listen: false, + + + notification_url: "ST", + + start_conf_on_enter: false, + + talk: false, + + dtmf_pass_through: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -324,24 +559,49 @@ instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -352,46 +612,96 @@ instance_1 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -402,52 +712,97 @@ instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) + + it 'deserializes the data of allow_call_control' do expect(instance._deserialize("Boolean", instance.allow_call_control)).to be_a_kind_of(TrueClass) end it 'deserializes the data of call_control_sequence' do expect(instance._deserialize("String", instance.call_control_sequence)).to be_a_kind_of(String) end + + it 'deserializes the data of call_control_url' do expect(instance._deserialize("String", instance.call_control_url)).to be_a_kind_of(String) end + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of leave_conference_url' do expect(instance._deserialize("String", instance.leave_conference_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of listen' do expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass) end it 'deserializes the data of notification_url' do expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of start_conf_on_enter' do expect(instance._deserialize("Boolean", instance.start_conf_on_enter)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of talk' do expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of dtmf_pass_through' do expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass) end @@ -458,24 +813,49 @@ instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -486,72 +866,156 @@ instance = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::AddToConference.new( allow_call_control: true, + + + call_control_sequence: "TS", + + + call_control_url: "TS", + + + conference_id: "TS", + + + leave_conference_url: "TS", + + listen: true, + + + notification_url: "TS", + + start_conf_on_enter: true, + + talk: true, + + dtmf_pass_through: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -562,21 +1026,26 @@ allow_call_control: true, + call_control_sequence: "TS", + call_control_url: "TS", + conference_id: "TS", + leave_conference_url: "TS", listen: true, + notification_url: "TS", diff --git a/spec/models/add_to_queue_notification_webhook_spec.rb b/spec/models/add_to_queue_notification_webhook_spec.rb index f6db95e..c449223 100644 --- a/spec/models/add_to_queue_notification_webhook_spec.rb +++ b/spec/models/add_to_queue_notification_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AddToQueueNotificationWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,92 +140,173 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToQueueNotificationWebhook' do expect { instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -218,26 +315,51 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -254,98 +376,206 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -354,26 +584,51 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -382,48 +637,98 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -432,73 +737,141 @@ describe 'test method "_deserialize"' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -507,74 +880,157 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -582,18 +1038,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::AddToQueueNotificationWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -605,9 +1066,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", ) diff --git a/spec/models/answered_by_spec.rb b/spec/models/answered_by_spec.rb index 12fa23a..ab4450e 100644 --- a/spec/models/answered_by_spec.rb +++ b/spec/models/answered_by_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AnsweredBy # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/application_list_spec.rb b/spec/models/application_list_spec.rb index 4cc1707..a33b9dc 100644 --- a/spec/models/application_list_spec.rb +++ b/spec/models/application_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ApplicationList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.applications = ["ELEMENT_1", "ELEMENT_2"] expect(instance.applications).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationList' do expect { instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + applications: [], ) instance_2 = Freeclimb::ApplicationList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + applications: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::ApplicationList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + applications: [], ) instance_2 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + applications: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) instance_2 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of applications' do expect(instance._deserialize("Array", instance.applications)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) instance_2 = Freeclimb::ApplicationList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + applications: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/application_request_spec.rb b/spec/models/application_request_spec.rb index 5f0a538..08e5196 100644 --- a/spec/models/application_request_spec.rb +++ b/spec/models/application_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ApplicationRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,114 +29,198 @@ describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "voice_url"' do it 'should work' do + instance.voice_url = "TEST_STRING" expect(instance.voice_url).to eq("TEST_STRING") + + end end describe 'test attribute "voice_fallback_url"' do it 'should work' do + instance.voice_fallback_url = "TEST_STRING" expect(instance.voice_fallback_url).to eq("TEST_STRING") + + end end describe 'test attribute "call_connect_url"' do it 'should work' do + instance.call_connect_url = "TEST_STRING" expect(instance.call_connect_url).to eq("TEST_STRING") + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end describe 'test attribute "sms_url"' do it 'should work' do + instance.sms_url = "TEST_STRING" expect(instance.sms_url).to eq("TEST_STRING") + + end end describe 'test attribute "sms_fallback_url"' do it 'should work' do + instance.sms_fallback_url = "TEST_STRING" expect(instance.sms_fallback_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationRequest' do expect { instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -144,20 +229,41 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -174,74 +280,164 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationRequest.new( + _alias: "ST", + + + voice_url: "ST", + + + voice_fallback_url: "ST", + + + call_connect_url: "ST", + + + status_callback_url: "ST", + + + sms_url: "ST", + + + sms_fallback_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -250,20 +446,41 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -272,36 +489,78 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -310,61 +569,117 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of voice_url' do expect(instance._deserialize("String", instance.voice_url)).to be_a_kind_of(String) end + + it 'deserializes the data of voice_fallback_url' do expect(instance._deserialize("String", instance.voice_fallback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of call_connect_url' do expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String) end + + it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of sms_url' do expect(instance._deserialize("String", instance.sms_url)).to be_a_kind_of(String) end + + it 'deserializes the data of sms_fallback_url' do expect(instance._deserialize("String", instance.sms_fallback_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -373,56 +688,125 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationRequest.new( + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -430,24 +814,31 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ApplicationRequest.new( + _alias: "TS", + voice_url: "TS", + voice_fallback_url: "TS", + call_connect_url: "TS", + status_callback_url: "TS", + sms_url: "TS", + sms_fallback_url: "TS", ) diff --git a/spec/models/application_result_spec.rb b/spec/models/application_result_spec.rb index 05b36d8..d877a2b 100644 --- a/spec/models/application_result_spec.rb +++ b/spec/models/application_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ApplicationResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,171 +67,314 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "voice_url"' do it 'should work' do + instance.voice_url = "TEST_STRING" expect(instance.voice_url).to eq("TEST_STRING") + + end end describe 'test attribute "voice_fallback_url"' do it 'should work' do + instance.voice_fallback_url = "TEST_STRING" expect(instance.voice_fallback_url).to eq("TEST_STRING") + + end end describe 'test attribute "call_connect_url"' do it 'should work' do + instance.call_connect_url = "TEST_STRING" expect(instance.call_connect_url).to eq("TEST_STRING") + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end describe 'test attribute "sms_url"' do it 'should work' do + instance.sms_url = "TEST_STRING" expect(instance.sms_url).to eq("TEST_STRING") + + end end describe 'test attribute "sms_fallback_url"' do it 'should work' do + instance.sms_fallback_url = "TEST_STRING" expect(instance.sms_fallback_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationResult' do expect { instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -230,32 +383,70 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -272,61 +463,149 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationResult.new( + uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, - account_id: "TS", + date_created: "TS", - application_id: "TS", - _alias: "TS", - voice_url: "TS", - voice_fallback_url: "TS", + date_updated: "TS", - call_connect_url: "TS", - status_callback_url: "TS", - sms_url: "TS", - sms_fallback_url: "TS", + + revision: 1, + + + account_id: "TS", + + + + + application_id: "TS", + + + + + _alias: "TS", + + + + + voice_url: "TS", + + + + + voice_fallback_url: "TS", + + + + + call_connect_url: "TS", + + + + + status_callback_url: "TS", + + + + + sms_url: "TS", + + + + + sms_fallback_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -334,60 +613,136 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + account_id: "ST", + + + application_id: "ST", + + + _alias: "ST", + + + voice_url: "ST", + + + voice_fallback_url: "ST", + + + call_connect_url: "ST", + + + status_callback_url: "ST", + + + sms_url: "ST", + + + sms_fallback_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -396,32 +751,70 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -430,60 +823,136 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -492,103 +961,205 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of voice_url' do expect(instance._deserialize("String", instance.voice_url)).to be_a_kind_of(String) end + + it 'deserializes the data of voice_fallback_url' do expect(instance._deserialize("String", instance.voice_fallback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of call_connect_url' do expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String) end + + it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of sms_url' do expect(instance._deserialize("String", instance.sms_url)).to be_a_kind_of(String) end + + it 'deserializes the data of sms_fallback_url' do expect(instance._deserialize("String", instance.sms_fallback_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -597,92 +1168,218 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) instance_2 = Freeclimb::ApplicationResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + application_id: "TS", + + + _alias: "TS", + + + voice_url: "TS", + + + voice_fallback_url: "TS", + + + call_connect_url: "TS", + + + status_callback_url: "TS", + + + sms_url: "TS", + + + sms_fallback_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -690,42 +1387,54 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ApplicationResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + account_id: "TS", + application_id: "TS", + _alias: "TS", + voice_url: "TS", + voice_fallback_url: "TS", + call_connect_url: "TS", + status_callback_url: "TS", + sms_url: "TS", + sms_fallback_url: "TS", ) diff --git a/spec/models/available_number_list_spec.rb b/spec/models/available_number_list_spec.rb index 283aa9f..0f94713 100644 --- a/spec/models/available_number_list_spec.rb +++ b/spec/models/available_number_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AvailableNumberList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.available_phone_numbers = ["ELEMENT_1", "ELEMENT_2"] expect(instance.available_phone_numbers).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AvailableNumberList' do expect { instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + available_phone_numbers: [], ) instance_2 = Freeclimb::AvailableNumberList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + available_phone_numbers: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::AvailableNumberList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + available_phone_numbers: [], ) instance_2 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + available_phone_numbers: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) instance_2 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of available_phone_numbers' do expect(instance._deserialize("Array", instance.available_phone_numbers)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) instance_2 = Freeclimb::AvailableNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + available_phone_numbers: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/available_number_spec.rb b/spec/models/available_number_spec.rb index d1ddc9f..70c42e4 100644 --- a/spec/models/available_number_spec.rb +++ b/spec/models/available_number_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::AvailableNumber # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -29,24 +30,33 @@ describe 'test attribute "capabilities"' do it 'should work' do - instance.capabilities = Freeclimb::Capabilities.new - expect(instance.capabilities).to be_instance_of(Freeclimb::Capabilities) + + + instance.capabilities = Capabilities.new + expect(instance.capabilities).to be_instance_of(Capabilities) + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test attribute "phone_number"' do it 'should work' do + instance.phone_number = "TEST_STRING" expect(instance.phone_number).to eq("TEST_STRING") + + end end @@ -55,6 +65,8 @@ instance.voice_enabled = false expect(instance.voice_enabled).to eq(false) + + end end @@ -63,22 +75,30 @@ instance.sms_enabled = false expect(instance.sms_enabled).to eq(false) + + end end describe 'test attribute "region"' do it 'should work' do + instance.region = "TEST_STRING" expect(instance.region).to eq("TEST_STRING") + + end end describe 'test attribute "country"' do it 'should work' do + instance.country = "TEST_STRING" expect(instance.country).to eq("TEST_STRING") + + end end @@ -86,56 +106,113 @@ it 'properly initializes with values' do expect { instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::AvailableNumber' do expect { instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -145,19 +222,38 @@ it 'checks if properties are valid' do instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -174,74 +270,158 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + obj_Capabilities = Capabilities.new() + + + + + + + instance_1 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: obj_Capabilities, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) instance_2 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: obj_Capabilities, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) instance_2 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "ST", + + + phone_number: "ST", + + voice_enabled: false, + + sms_enabled: false, + + + region: "ST", + + + country: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -251,19 +431,38 @@ it 'calculates hash code' do instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -273,35 +472,73 @@ it 'builds equivalent model from hash code' do instance_1 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) instance_2 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -311,60 +548,113 @@ describe 'test method "_deserialize"' do instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) + + it 'deserializes the data of capabilities' do - expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Freeclimb::Capabilities) + expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Capabilities) end + it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + it 'deserializes the data of phone_number' do expect(instance._deserialize("String", instance.phone_number)).to be_a_kind_of(String) end + + + + it 'deserializes the data of voice_enabled' do expect(instance._deserialize("Boolean", instance.voice_enabled)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of sms_enabled' do expect(instance._deserialize("Boolean", instance.sms_enabled)).to be_a_kind_of(TrueClass) end it 'deserializes the data of region' do expect(instance._deserialize("String", instance.region)).to be_a_kind_of(String) end + + it 'deserializes the data of country' do expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -374,55 +664,120 @@ it 'returns the object in the form of hash' do instance = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + obj = Capabilities.new() + + + + + + + instance_1 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: obj, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) instance_2 = Freeclimb::AvailableNumber.new( - capabilities: Freeclimb::Capabilities.new, + + + capabilities: obj, + + campaign_id: "TS", + + + phone_number: "TS", + + voice_enabled: true, + + sms_enabled: true, + + + region: "TS", + + + country: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -432,9 +787,11 @@ instance = Freeclimb::AvailableNumber.new( + campaign_id: "TS", + phone_number: "TS", @@ -444,9 +801,11 @@ sms_enabled: true, + region: "TS", + country: "TS", ) diff --git a/spec/models/barge_in_reason_spec.rb b/spec/models/barge_in_reason_spec.rb index d5e2e43..bce8a40 100644 --- a/spec/models/barge_in_reason_spec.rb +++ b/spec/models/barge_in_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::BargeInReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/buy_incoming_number_request_spec.rb b/spec/models/buy_incoming_number_request_spec.rb index 31afc86..d2b12b1 100644 --- a/spec/models/buy_incoming_number_request_spec.rb +++ b/spec/models/buy_incoming_number_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::BuyIncomingNumberRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,58 +29,94 @@ describe 'test attribute "phone_number"' do it 'should work' do + instance.phone_number = "TEST_STRING" expect(instance.phone_number).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::BuyIncomingNumberRequest' do expect { instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -88,12 +125,21 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -110,42 +156,80 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) instance_2 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) instance_2 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "ST", + + + _alias: "ST", + + + application_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -154,12 +238,21 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -168,20 +261,38 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) instance_2 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -190,33 +301,57 @@ describe 'test method "_deserialize"' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) it 'deserializes the data of phone_number' do expect(instance._deserialize("String", instance.phone_number)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -225,32 +360,61 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) instance_2 = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + + + _alias: "TS", + + + application_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -258,12 +422,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::BuyIncomingNumberRequest.new( + phone_number: "TS", + _alias: "TS", + application_id: "TS", ) diff --git a/spec/models/call_control_webhook_spec.rb b/spec/models/call_control_webhook_spec.rb index 0bc59d2..3d90615 100644 --- a/spec/models/call_control_webhook_spec.rb +++ b/spec/models/call_control_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallControlWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,86 +35,146 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "digits"' do it 'should work' do + instance.digits = "TEST_STRING" expect(instance.digits).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CallControlWebhook' do expect { instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -122,16 +183,31 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -148,58 +224,122 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + instance_1 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) instance_2 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) instance_2 = Freeclimb::CallControlWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + conference_id: "ST", + + + digits: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -208,16 +348,31 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -226,28 +381,58 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) instance_2 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -256,47 +441,87 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of digits' do expect(instance._deserialize("String", instance.digits)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -305,44 +530,93 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + instance_1 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) instance_2 = Freeclimb::CallControlWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + conference_id: "TS", + + + digits: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -350,18 +624,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CallControlWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + conference_id: "TS", + digits: "TS", ) diff --git a/spec/models/call_direction_spec.rb b/spec/models/call_direction_spec.rb index 01dbfcd..03f0dc7 100644 --- a/spec/models/call_direction_spec.rb +++ b/spec/models/call_direction_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallDirection # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/call_ended_reason_spec.rb b/spec/models/call_ended_reason_spec.rb index 0cf9e9b..0368584 100644 --- a/spec/models/call_ended_reason_spec.rb +++ b/spec/models/call_ended_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallEndedReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/call_list_spec.rb b/spec/models/call_list_spec.rb index 305f33d..841ce9b 100644 --- a/spec/models/call_list_spec.rb +++ b/spec/models/call_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.calls = ["ELEMENT_1", "ELEMENT_2"] expect(instance.calls).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CallList' do expect { instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + calls: [], ) instance_2 = Freeclimb::CallList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + calls: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::CallList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + calls: [], ) instance_2 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + calls: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) instance_2 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of calls' do expect(instance._deserialize("Array", instance.calls)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) instance_2 = Freeclimb::CallList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + calls: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/call_result_spec.rb b/spec/models/call_result_spec.rb index 458d3a6..3d723da 100644 --- a/spec/models/call_result_spec.rb +++ b/spec/models/call_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,54 +67,74 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "phone_number_id"' do it 'should work' do + instance.phone_number_id = "TEST_STRING" expect(instance.phone_number_id).to eq("TEST_STRING") + + end end @@ -145,25 +175,34 @@ end describe 'test attribute "start_time"' do it 'should work' do + instance.start_time = "TEST_STRING" expect(instance.start_time).to eq("TEST_STRING") + + end end describe 'test attribute "connect_time"' do it 'should work' do + instance.connect_time = "TEST_STRING" expect(instance.connect_time).to eq("TEST_STRING") + + end end describe 'test attribute "end_time"' do it 'should work' do + instance.end_time = "TEST_STRING" expect(instance.end_time).to eq("TEST_STRING") + + end end @@ -174,6 +213,8 @@ instance.duration = 1 expect(instance.duration).to eq(1) + + end end @@ -184,6 +225,8 @@ instance.connect_duration = 1 expect(instance.connect_duration).to eq(1) + + end end @@ -219,158 +262,328 @@ testObject = Object.new() instance.subresource_uris = testObject expect(instance.subresource_uris).to eq(testObject) + + + instance.subresource_uris = Object.new + expect(instance.subresource_uris).to be_instance_of(Object) + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CallResult' do expect { instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, + application_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, + application_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -379,49 +592,103 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -438,190 +705,428 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + obj_Object = Object.new() + + instance_1 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: obj, + + + subresource_uris: obj_Object, + + application_id: "TS", + + ) instance_2 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: obj, + + + subresource_uris: obj_Object, + + application_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 2, + + connect_duration: 2, + + + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + subresource_uris: Object.new(), + subresource_uris: Object.new(), + application_id: "TS", + + ) instance_2 = Freeclimb::CallResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + call_id: "ST", + + + parent_call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + phone_number_id: "ST", + + + + call_status: nil, + start_time: "ST", + + + connect_time: "ST", + + + end_time: "ST", + + duration: 1, + + connect_duration: 1, + + + + direction: nil, + + answered_by: nil, - subresource_uris: nil, + + + subresource_uris: Object.new(), + + application_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -630,49 +1135,103 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -681,94 +1240,202 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + ) instance_2 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -777,149 +1444,298 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: Object.new(), + application_id: "TS", + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of phone_number_id' do expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of start_time' do expect(instance._deserialize("String", instance.start_time)).to be_a_kind_of(String) end + + it 'deserializes the data of connect_time' do expect(instance._deserialize("String", instance.connect_time)).to be_a_kind_of(String) end + + it 'deserializes the data of end_time' do expect(instance._deserialize("String", instance.end_time)).to be_a_kind_of(String) end + + it 'deserializes the data of duration' do expect(instance._deserialize("Integer", instance.duration)).to be_a_kind_of(Integer) end + + it 'deserializes the data of connect_duration' do expect(instance._deserialize("Integer", instance.connect_duration)).to be_a_kind_of(Integer) end + + + + + + + + it 'deserializes the data of subresource_uris' do expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object) end + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, + application_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -928,143 +1744,326 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, + application_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do + + + + + + + + + + + + + + + + + + + obj = Object.new() + + instance_1 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: obj, + application_id: "TS", + + ) instance_2 = Freeclimb::CallResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + call_id: "TS", + + + parent_call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + phone_number_id: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + + start_time: "TS", + + + connect_time: "TS", + + + end_time: "TS", + + duration: 1, + + connect_duration: 1, + + direction: Freeclimb::CallDirection::INBOUND, + + answered_by: Freeclimb::AnsweredBy::HUMAN, + + + + + subresource_uris: obj, + application_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -1072,33 +2071,42 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CallResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + call_id: "TS", + parent_call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", + phone_number_id: "TS", @@ -1106,12 +2114,15 @@ call_status: Freeclimb::CallStatus::QUEUED, + start_time: "TS", + connect_time: "TS", + end_time: "TS", @@ -1129,9 +2140,9 @@ answered_by: Freeclimb::AnsweredBy::HUMAN, - subresource_uris: Object.new(), + application_id: "TS", ) diff --git a/spec/models/call_status_spec.rb b/spec/models/call_status_spec.rb index 8c429bb..ac620fc 100644 --- a/spec/models/call_status_spec.rb +++ b/spec/models/call_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/call_status_webhook_spec.rb b/spec/models/call_status_webhook_spec.rb index f00f755..517da12 100644 --- a/spec/models/call_status_webhook_spec.rb +++ b/spec/models/call_status_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CallStatusWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -219,101 +235,188 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CallStatusWebhook' do expect { instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -322,29 +425,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -361,110 +491,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::CallStatusWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + call_ended_reason: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -473,29 +720,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -504,54 +778,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -560,79 +888,153 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -641,83 +1043,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + call_ended_reason: Freeclimb::CallEndedReason::BUSY, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -725,18 +1217,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CallStatusWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -752,9 +1249,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", ) diff --git a/spec/models/capabilities_spec.rb b/spec/models/capabilities_spec.rb index 5c712b3..e85f89b 100644 --- a/spec/models/capabilities_spec.rb +++ b/spec/models/capabilities_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Capabilities # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.voice = false expect(instance.voice).to eq(false) + + end end @@ -39,6 +42,8 @@ instance.sms = false expect(instance.sms).to eq(false) + + end end @@ -47,6 +52,8 @@ instance.toll_free = false expect(instance.toll_free).to eq(false) + + end end @@ -55,6 +62,8 @@ instance.ten_dlc = false expect(instance.ten_dlc).to eq(false) + + end end @@ -63,6 +72,8 @@ instance.short_code = false expect(instance.short_code).to eq(false) + + end end @@ -71,28 +82,48 @@ expect { instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Capabilities' do expect { instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -100,14 +131,24 @@ expect { instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -118,14 +159,24 @@ instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance.valid?).to eq(true) end @@ -142,30 +193,54 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + instance_1 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) instance_2 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -174,26 +249,46 @@ instance_1 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) instance_2 = Freeclimb::Capabilities.new( voice: false, + + sms: false, + + toll_free: false, + + ten_dlc: false, + + short_code: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -204,14 +299,24 @@ instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -222,26 +327,46 @@ instance_1 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) instance_2 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -252,27 +377,47 @@ instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) + + it 'deserializes the data of voice' do expect(instance._deserialize("Boolean", instance.voice)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of sms' do expect(instance._deserialize("Boolean", instance.sms)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of toll_free' do expect(instance._deserialize("Boolean", instance.toll_free)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of ten_dlc' do expect(instance._deserialize("Boolean", instance.ten_dlc)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of short_code' do expect(instance._deserialize("Boolean", instance.short_code)).to be_a_kind_of(TrueClass) end @@ -283,14 +428,24 @@ instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -301,42 +456,76 @@ instance = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + instance_1 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) instance_2 = Freeclimb::Capabilities.new( voice: true, + + sms: true, + + toll_free: true, + + ten_dlc: true, + + short_code: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/completion_request_spec.rb b/spec/models/completion_request_spec.rb index 8b45887..c9ca052 100644 --- a/spec/models/completion_request_spec.rb +++ b/spec/models/completion_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CompletionRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -39,21 +40,30 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CompletionRequest.new( + query: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CompletionRequest' do expect { instance = Freeclimb::CompletionRequest.new( + query: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CompletionRequest.new( + query: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -62,8 +72,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -80,26 +93,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) instance_2 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) instance_2 = Freeclimb::CompletionRequest.new( + query: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -108,8 +133,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -118,12 +146,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) instance_2 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -132,19 +166,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CompletionRequest.new( + query: "TS", + + ) it 'deserializes the data of query' do expect(instance._deserialize("String", instance.query)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -153,20 +195,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) instance_2 = Freeclimb::CompletionRequest.new( + query: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -174,6 +225,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CompletionRequest.new( + query: "TS", ) diff --git a/spec/models/completion_result_spec.rb b/spec/models/completion_result_spec.rb index d98bcf3..3e5fb55 100644 --- a/spec/models/completion_result_spec.rb +++ b/spec/models/completion_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CompletionResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "response"' do it 'should work' do + instance.response = "TEST_STRING" expect(instance.response).to eq("TEST_STRING") + + end end @@ -48,30 +52,45 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CompletionResult' do expect { instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -80,11 +99,16 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance.valid?).to eq(true) end @@ -101,18 +125,29 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + instance_1 = Freeclimb::CompletionResult.new( + response: "TS", + + + + status: Freeclimb::CompletionResultStatus::SUCCESS, ) instance_2 = Freeclimb::CompletionResult.new( + response: "TS", + + + + status: Freeclimb::CompletionResultStatus::SUCCESS, ) @@ -121,16 +156,26 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::CompletionResult.new( + response: "TS", + + + + status: Freeclimb::CompletionResultStatus::SUCCESS, ) instance_2 = Freeclimb::CompletionResult.new( + response: "ST", + + + + status: nil, ) @@ -141,11 +186,16 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -154,18 +204,28 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) instance_2 = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -174,25 +234,39 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) it 'deserializes the data of response' do expect(instance._deserialize("String", instance.response)).to be_a_kind_of(String) end + + + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -201,29 +275,45 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + instance_1 = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) instance_2 = Freeclimb::CompletionResult.new( + response: "TS", + + status: Freeclimb::CompletionResultStatus::SUCCESS, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -231,6 +321,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CompletionResult.new( + response: "TS", diff --git a/spec/models/completion_result_status_spec.rb b/spec/models/completion_result_status_spec.rb index 76cb8e7..4e156a0 100644 --- a/spec/models/completion_result_status_spec.rb +++ b/spec/models/completion_result_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CompletionResultStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/conference_list_spec.rb b/spec/models/conference_list_spec.rb index ebf60d5..6947741 100644 --- a/spec/models/conference_list_spec.rb +++ b/spec/models/conference_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.conferences = ["ELEMENT_1", "ELEMENT_2"] expect(instance.conferences).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceList' do expect { instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + conferences: [], ) instance_2 = Freeclimb::ConferenceList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + conferences: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::ConferenceList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + conferences: [], ) instance_2 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + conferences: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) instance_2 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of conferences' do expect(instance._deserialize("Array", instance.conferences)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) instance_2 = Freeclimb::ConferenceList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + conferences: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/conference_participant_list_spec.rb b/spec/models/conference_participant_list_spec.rb index 731e755..4ae7230 100644 --- a/spec/models/conference_participant_list_spec.rb +++ b/spec/models/conference_participant_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceParticipantList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.participants = ["ELEMENT_1", "ELEMENT_2"] expect(instance.participants).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceParticipantList' do expect { instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + participants: [], ) instance_2 = Freeclimb::ConferenceParticipantList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + participants: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::ConferenceParticipantList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + participants: [], ) instance_2 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + participants: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) instance_2 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of participants' do expect(instance._deserialize("Array", instance.participants)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) instance_2 = Freeclimb::ConferenceParticipantList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + participants: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/conference_participant_result_spec.rb b/spec/models/conference_participant_result_spec.rb index d3a0e6e..52f3d5b 100644 --- a/spec/models/conference_participant_result_spec.rb +++ b/spec/models/conference_participant_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceParticipantResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,30 +67,41 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end @@ -89,6 +110,8 @@ instance.talk = false expect(instance.talk).to eq(false) + + end end @@ -97,6 +120,8 @@ instance.listen = false expect(instance.listen).to eq(false) + + end end @@ -105,6 +130,8 @@ instance.dtmf_pass_through = false expect(instance.dtmf_pass_through).to eq(false) + + end end @@ -113,87 +140,173 @@ instance.start_conf_on_enter = false expect(instance.start_conf_on_enter).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceParticipantResult' do expect { instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -202,28 +315,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance.valid?).to eq(true) end @@ -240,105 +381,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) instance_2 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) instance_2 = Freeclimb::ConferenceParticipantResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + account_id: "ST", + + + conference_id: "ST", - call_id: "ST", - talk: false, - listen: false, - dtmf_pass_through: false, + call_id: "ST", + + + + talk: false, + + + + listen: false, + + + + dtmf_pass_through: false, + + + + start_conf_on_enter: false, + - start_conf_on_enter: false, ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -348,28 +611,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -378,52 +669,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) instance_2 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -432,59 +779,109 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of talk' do expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of listen' do expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of dtmf_pass_through' do expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of start_conf_on_enter' do expect(instance._deserialize("Boolean", instance.start_conf_on_enter)).to be_a_kind_of(TrueClass) end @@ -493,28 +890,56 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -523,80 +948,174 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) instance_2 = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + conference_id: "TS", + + + call_id: "TS", + + talk: true, + + listen: true, + + dtmf_pass_through: true, + + start_conf_on_enter: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -604,24 +1123,30 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ConferenceParticipantResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + account_id: "TS", + conference_id: "TS", + call_id: "TS", diff --git a/spec/models/conference_recording_status_webhook_spec.rb b/spec/models/conference_recording_status_webhook_spec.rb index 82a57e9..b683744 100644 --- a/spec/models/conference_recording_status_webhook_spec.rb +++ b/spec/models/conference_recording_status_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceRecordingStatusWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -159,17 +181,23 @@ end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end @@ -180,108 +208,215 @@ instance.recording_duration_sec = 1 expect(instance.recording_duration_sec).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceRecordingStatusWebhook' do expect { instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -290,35 +425,70 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.valid?).to eq(true) end @@ -335,66 +505,148 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + + + recording_duration_sec: 1, ) @@ -403,66 +655,136 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", - call_id: "TS", - account_id: "TS", - from: "TS", + + call_id: "TS", + + + + + account_id: "TS", + + + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 2, + + ) instance_2 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + + status: nil, + recording_url: "ST", + + + recording_id: "ST", + + recording_duration_sec: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -471,35 +793,70 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -508,66 +865,136 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -576,100 +1003,196 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_sec' do expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -678,101 +1201,218 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -780,18 +1420,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ConferenceRecordingStatusWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -803,9 +1448,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", @@ -813,9 +1460,11 @@ status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + recording_id: "TS", diff --git a/spec/models/conference_result_spec.rb b/spec/models/conference_result_spec.rb index b587c3e..f61d31e 100644 --- a/spec/models/conference_result_spec.rb +++ b/spec/models/conference_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,30 +67,41 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end @@ -108,6 +129,8 @@ instance.record = false expect(instance.record).to eq(false) + + end end @@ -132,25 +155,34 @@ end describe 'test attribute "wait_url"' do it 'should work' do + instance.wait_url = "TEST_STRING" expect(instance.wait_url).to eq("TEST_STRING") + + end end describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end @@ -160,110 +192,229 @@ testObject = Object.new() instance.subresource_uris = testObject expect(instance.subresource_uris).to eq(testObject) + + + instance.subresource_uris = Object.new + expect(instance.subresource_uris).to be_instance_of(Object) + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: Object.new(), )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceResult' do expect { instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) @@ -273,34 +424,72 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: Object.new(), ) @@ -319,137 +508,305 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + obj_Object = Object.new() + instance_1 = Freeclimb::ConferenceResult.new( + uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, - conference_id: "TS", + date_created: "TS", - account_id: "TS", - _alias: "TS", - play_beep: Freeclimb::PlayBeep::ALWAYS, + date_updated: "TS", - record: true, - status: Freeclimb::ConferenceStatus::EMPTY, + revision: 1, - wait_url: "TS", - action_url: "TS", - status_callback_url: "TS", - subresource_uris: obj, + conference_id: "TS", - ) - instance_2 = Freeclimb::ConferenceResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, + account_id: "TS", + - conference_id: "TS", - account_id: "TS", _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, - status: Freeclimb::ConferenceStatus::EMPTY, - wait_url: "TS", - action_url: "TS", - status_callback_url: "TS", - subresource_uris: obj, + status: Freeclimb::ConferenceStatus::EMPTY, - ) - expect(instance_1.eql?(instance_2)).to eq(true) - end - - it 'checks if objects are not equal' do - instance_1 = Freeclimb::ConferenceResult.new( - uri: "TS", - date_created: "TS", + wait_url: "TS", - date_updated: "TS", - revision: 2, - conference_id: "TS", - account_id: "TS", + action_url: "TS", - _alias: "TS", - play_beep: Freeclimb::PlayBeep::ALWAYS, + + status_callback_url: "TS", + + + + + + subresource_uris: obj_Object, + + + ) + instance_2 = Freeclimb::ConferenceResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + + revision: 1, + + + conference_id: "TS", + + + + + account_id: "TS", + + + + + _alias: "TS", + + + + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + + status: Freeclimb::ConferenceStatus::EMPTY, + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: obj_Object, + + + ) + expect(instance_1.eql?(instance_2)).to eq(true) + end + + it 'checks if objects are not equal' do + instance_1 = Freeclimb::ConferenceResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 2, + + + + + conference_id: "TS", + + + + + account_id: "TS", + + + + + _alias: "TS", + + + + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + + + + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + + + action_url: "TS", + + + + + status_callback_url: "TS", + + + + + + subresource_uris: Object.new(), + subresource_uris: Object.new(), ) instance_2 = Freeclimb::ConferenceResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + conference_id: "ST", + + + account_id: "ST", + + + _alias: "ST", + + + + play_beep: nil, record: false, + + + + status: nil, + wait_url: "ST", + + + action_url: "ST", + + + status_callback_url: "ST", - subresource_uris: nil, + + + + + subresource_uris: Object.new(), + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -459,34 +816,72 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: Object.new(), ) @@ -497,65 +892,141 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: Object.new(), ) instance_2 = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", - account_id: "TS", - _alias: "TS", - play_beep: Freeclimb::PlayBeep::ALWAYS, + account_id: "TS", + + + + + _alias: "TS", + + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + + + record: true, + + + + + status: Freeclimb::ConferenceStatus::EMPTY, + + + + + wait_url: "TS", + + + + + action_url: "TS", + + + - record: true, + status_callback_url: "TS", - status: Freeclimb::ConferenceStatus::EMPTY, - wait_url: "TS", - action_url: "TS", - status_callback_url: "TS", subresource_uris: Object.new(), @@ -567,107 +1038,212 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: Object.new(), ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of record' do expect(instance._deserialize("Boolean", instance.record)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of wait_url' do expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String) end + + it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of subresource_uris' do expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object) end + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_s).to eq(instance.to_hash.to_s) @@ -677,102 +1253,231 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do + + + + + + + + + + + + + + obj = Object.new() + instance_1 = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: obj, ) instance_2 = Freeclimb::ConferenceResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + conference_id: "TS", + + + account_id: "TS", + + + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + status: Freeclimb::ConferenceStatus::EMPTY, + + + wait_url: "TS", + + + action_url: "TS", + + + status_callback_url: "TS", + + + + + subresource_uris: obj, ) @@ -782,24 +1487,30 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ConferenceResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + conference_id: "TS", + account_id: "TS", + _alias: "TS", @@ -814,16 +1525,18 @@ status: Freeclimb::ConferenceStatus::EMPTY, + wait_url: "TS", + action_url: "TS", + status_callback_url: "TS", - subresource_uris: Object.new(), ) it 'returns uri in the form of hash' do diff --git a/spec/models/conference_status_spec.rb b/spec/models/conference_status_spec.rb index 12cdd74..f6d6089 100644 --- a/spec/models/conference_status_spec.rb +++ b/spec/models/conference_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/conference_status_webhook_spec.rb b/spec/models/conference_status_webhook_spec.rb index 0f6a5e1..f062d06 100644 --- a/spec/models/conference_status_webhook_spec.rb +++ b/spec/models/conference_status_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::ConferenceStatusWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -159,17 +181,23 @@ end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end @@ -180,108 +208,215 @@ instance.recording_duration_sec = 1 expect(instance.recording_duration_sec).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::ConferenceStatusWebhook' do expect { instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -290,35 +425,70 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.valid?).to eq(true) end @@ -335,66 +505,148 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + + + recording_duration_sec: 1, ) @@ -403,66 +655,136 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", - call_id: "TS", - account_id: "TS", - from: "TS", + + call_id: "TS", + + + + + account_id: "TS", + + + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 2, + + ) instance_2 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + + status: nil, + recording_url: "ST", + + + recording_id: "ST", + + recording_duration_sec: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -471,35 +793,70 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -508,66 +865,136 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -576,100 +1003,196 @@ describe 'test method "_deserialize"' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_sec' do expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -678,101 +1201,218 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -780,18 +1420,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::ConferenceStatusWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -803,9 +1448,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", @@ -813,9 +1460,11 @@ status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + recording_id: "TS", diff --git a/spec/models/create_conference_request_spec.rb b/spec/models/create_conference_request_spec.rb index 8e1f54b..5468a31 100644 --- a/spec/models/create_conference_request_spec.rb +++ b/spec/models/create_conference_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CreateConferenceRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end @@ -58,70 +62,117 @@ instance.record = false expect(instance.record).to eq(false) + + end end describe 'test attribute "wait_url"' do it 'should work' do + instance.wait_url = "TEST_STRING" expect(instance.wait_url).to eq("TEST_STRING") + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CreateConferenceRequest' do expect { instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -130,17 +181,30 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -157,62 +221,118 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + instance_1 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) instance_2 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) instance_2 = Freeclimb::CreateConferenceRequest.new( + _alias: "ST", + + + + play_beep: nil, record: false, + + + wait_url: "ST", + + + status_callback_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -221,17 +341,30 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -240,30 +373,56 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) instance_2 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -272,46 +431,82 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of record' do expect(instance._deserialize("Boolean", instance.record)).to be_a_kind_of(TrueClass) end it 'deserializes the data of wait_url' do expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String) end + + it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -320,47 +515,90 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + instance_1 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) instance_2 = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + wait_url: "TS", + + + status_callback_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -368,6 +606,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CreateConferenceRequest.new( + _alias: "TS", @@ -378,9 +617,11 @@ record: true, + wait_url: "TS", + status_callback_url: "TS", ) diff --git a/spec/models/create_conference_spec.rb b/spec/models/create_conference_spec.rb index 4b1391d..42c69b6 100644 --- a/spec/models/create_conference_spec.rb +++ b/spec/models/create_conference_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CreateConference # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end @@ -39,6 +43,8 @@ instance._alias = false expect(instance._alias).to eq(false) + + end end @@ -66,76 +72,129 @@ instance.record = false expect(instance.record).to eq(false) + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end describe 'test attribute "wait_url"' do it 'should work' do + instance.wait_url = "TEST_STRING" expect(instance.wait_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CreateConference' do expect { instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -144,19 +203,34 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -173,70 +247,135 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + instance_1 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::CreateConference.new( + action_url: "ST", + + _alias: false, + + + + play_beep: nil, record: false, + + + status_callback_url: "ST", + + + wait_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -245,19 +384,34 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -266,34 +420,64 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -302,53 +486,95 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of _alias' do expect(instance._deserialize("Boolean", instance._alias)).to be_a_kind_of(TrueClass) end + + + + it 'deserializes the data of record' do expect(instance._deserialize("Boolean", instance.record)).to be_a_kind_of(TrueClass) end it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of wait_url' do expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -357,53 +583,103 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + instance_1 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::CreateConference.new( + action_url: "TS", + + _alias: true, + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + record: true, + + + status_callback_url: "TS", + + + wait_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -411,6 +687,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CreateConference.new( + action_url: "TS", @@ -424,9 +701,11 @@ record: true, + status_callback_url: "TS", + wait_url: "TS", ) diff --git a/spec/models/create_conference_webhook_spec.rb b/spec/models/create_conference_webhook_spec.rb index 95532a7..44e6279 100644 --- a/spec/models/create_conference_webhook_spec.rb +++ b/spec/models/create_conference_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CreateConferenceWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -159,17 +181,23 @@ end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end @@ -180,108 +208,215 @@ instance.recording_duration_sec = 1 expect(instance.recording_duration_sec).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CreateConferenceWebhook' do expect { instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -290,35 +425,70 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.valid?).to eq(true) end @@ -335,66 +505,148 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + + + recording_duration_sec: 1, ) @@ -403,66 +655,136 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", - call_id: "TS", - account_id: "TS", - from: "TS", + + call_id: "TS", + + + + + account_id: "TS", + + + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 2, + + ) instance_2 = Freeclimb::CreateConferenceWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + + status: nil, + recording_url: "ST", + + + recording_id: "ST", + + recording_duration_sec: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -471,35 +793,70 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -508,66 +865,136 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -576,100 +1003,196 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_sec' do expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -678,101 +1201,218 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) instance_2 = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + status: Freeclimb::ConferenceStatus::EMPTY, + + + recording_url: "TS", + + + recording_id: "TS", + + recording_duration_sec: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -780,18 +1420,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CreateConferenceWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -803,9 +1448,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", @@ -813,9 +1460,11 @@ status: Freeclimb::ConferenceStatus::EMPTY, + recording_url: "TS", + recording_id: "TS", diff --git a/spec/models/create_web_rtc_token_spec.rb b/spec/models/create_web_rtc_token_spec.rb index 3c384a2..b23e34f 100644 --- a/spec/models/create_web_rtc_token_spec.rb +++ b/spec/models/create_web_rtc_token_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::CreateWebRTCToken # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,17 +29,23 @@ describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end @@ -50,39 +57,65 @@ + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::CreateWebRTCToken' do expect { instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -91,12 +124,20 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance.valid?).to eq(true) end @@ -113,20 +154,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) instance_2 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + + + uses: 1, ) @@ -135,20 +194,36 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1 + 1, + + ) instance_2 = Freeclimb::CreateWebRTCToken.new( + to: "ST", + + + from: "ST", + + uses: 1 + 2, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -157,12 +232,20 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -171,20 +254,36 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) instance_2 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -193,33 +292,55 @@ describe 'test method "_deserialize"' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of uses' do expect(instance._deserialize("Integer", instance.uses)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -228,32 +349,58 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) instance_2 = Freeclimb::CreateWebRTCToken.new( + to: "TS", + + + from: "TS", + + uses: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -261,9 +408,11 @@ describe 'test method "_to_hash"' do instance = Freeclimb::CreateWebRTCToken.new( + to: "TS", + from: "TS", diff --git a/spec/models/dequeue_spec.rb b/spec/models/dequeue_spec.rb index 4653454..5b77414 100644 --- a/spec/models/dequeue_spec.rb +++ b/spec/models/dequeue_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Dequeue # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/dequeue_webhook_spec.rb b/spec/models/dequeue_webhook_spec.rb index 5d677b3..471db6c 100644 --- a/spec/models/dequeue_webhook_spec.rb +++ b/spec/models/dequeue_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::DequeueWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,25 +140,34 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_result"' do it 'should work' do + instance.queue_result = "TEST_STRING" expect(instance.queue_result).to eq("TEST_STRING") + + end end @@ -153,93 +178,185 @@ instance.queue_time = 1 expect(instance.queue_time).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::DequeueWebhook' do expect { instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -248,30 +365,60 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance.valid?).to eq(true) end @@ -288,56 +435,126 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) instance_2 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + + + queue_time: 1, ) @@ -346,56 +563,116 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 2, + + ) instance_2 = Freeclimb::DequeueWebhook.new( + request_type: "ST", - call_id: "ST", - account_id: "ST", - from: "ST", - to: "ST", + call_id: "ST", - call_status: nil, - direction: nil, + account_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + + + + + + call_status: nil, + + + + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + queue_result: "ST", + + queue_time: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -404,30 +681,60 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -436,56 +743,116 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) instance_2 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -494,87 +861,169 @@ describe 'test method "_deserialize"' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_result' do expect(instance._deserialize("String", instance.queue_result)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_time' do expect(instance._deserialize("Integer", instance.queue_time)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -583,86 +1032,186 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) instance_2 = Freeclimb::DequeueWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_result: "TS", + + queue_time: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -670,18 +1219,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::DequeueWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -693,12 +1247,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + queue_result: "TS", diff --git a/spec/models/enqueue_spec.rb b/spec/models/enqueue_spec.rb index 2d79f33..3956c0c 100644 --- a/spec/models/enqueue_spec.rb +++ b/spec/models/enqueue_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Enqueue # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,72 +29,120 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "wait_url"' do it 'should work' do + instance.wait_url = "TEST_STRING" expect(instance.wait_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Enqueue' do expect { instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -102,14 +151,26 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -126,50 +187,101 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + instance_1 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::Enqueue.new( + action_url: "ST", + + + notification_url: "ST", + + + queue_id: "ST", + + + wait_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -178,14 +290,26 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -194,24 +318,48 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -220,40 +368,72 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of notification_url' do expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of wait_url' do expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -262,38 +442,77 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + instance_1 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) instance_2 = Freeclimb::Enqueue.new( + action_url: "TS", + + + notification_url: "TS", + + + queue_id: "TS", + + + wait_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -301,15 +520,19 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Enqueue.new( + action_url: "TS", + notification_url: "TS", + queue_id: "TS", + wait_url: "TS", ) diff --git a/spec/models/filter_logs_request_spec.rb b/spec/models/filter_logs_request_spec.rb index 380b685..cc76fff 100644 --- a/spec/models/filter_logs_request_spec.rb +++ b/spec/models/filter_logs_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::FilterLogsRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "pql"' do it 'should work' do + instance.pql = "TEST_STRING" expect(instance.pql).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::FilterLogsRequest' do expect { instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) instance_2 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) instance_2 = Freeclimb::FilterLogsRequest.new( + pql: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) instance_2 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) it 'deserializes the data of pql' do expect(instance._deserialize("String", instance.pql)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) instance_2 = Freeclimb::FilterLogsRequest.new( + pql: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::FilterLogsRequest.new( + pql: "TS", ) diff --git a/spec/models/get_digits_reason_spec.rb b/spec/models/get_digits_reason_spec.rb index 9377768..54b9fbe 100644 --- a/spec/models/get_digits_reason_spec.rb +++ b/spec/models/get_digits_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetDigitsReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/get_digits_spec.rb b/spec/models/get_digits_spec.rb index 7874ff6..0530221 100644 --- a/spec/models/get_digits_spec.rb +++ b/spec/models/get_digits_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetDigits # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end @@ -41,14 +45,19 @@ instance.digit_timeout_ms = 1 expect(instance.digit_timeout_ms).to eq(1) + + end end describe 'test attribute "finish_on_key"' do it 'should work' do + instance.finish_on_key = "TEST_STRING" expect(instance.finish_on_key).to eq("TEST_STRING") + + end end @@ -57,6 +66,8 @@ instance.flush_buffer = false expect(instance.flush_buffer).to eq(false) + + end end @@ -67,6 +78,8 @@ instance.initial_timeout_ms = 1 expect(instance.initial_timeout_ms).to eq(1) + + end end @@ -77,6 +90,8 @@ instance.max_digits = 1 expect(instance.max_digits).to eq(1) + + end end @@ -87,6 +102,8 @@ instance.min_digits = 1 expect(instance.min_digits).to eq(1) + + end end @@ -95,6 +112,8 @@ instance.prompts = ["ELEMENT_1", "ELEMENT_2"] expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -103,75 +122,137 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::GetDigits' do expect { instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -180,24 +261,44 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -214,90 +315,178 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + + + prompts: [], privacy_mode: true, + + ) instance_2 = Freeclimb::GetDigits.new( + action_url: "TS", + + + + digit_timeout_ms: 1, + finish_on_key: "TS", + + flush_buffer: true, + + + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: [], privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 2, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 2, + + max_digits: 2, + + min_digits: 2, + + + + prompts: [], privacy_mode: true, + + ) instance_2 = Freeclimb::GetDigits.new( + action_url: "ST", + + digit_timeout_ms: 1, + + + finish_on_key: "ST", + + flush_buffer: false, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + + + prompts: nil, privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -306,24 +495,44 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -332,44 +541,84 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -378,49 +627,87 @@ describe 'test method "_deserialize"' do instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of digit_timeout_ms' do expect(instance._deserialize("Integer", instance.digit_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of finish_on_key' do expect(instance._deserialize("String", instance.finish_on_key)).to be_a_kind_of(String) end + + + + it 'deserializes the data of flush_buffer' do expect(instance._deserialize("Boolean", instance.flush_buffer)).to be_a_kind_of(TrueClass) end it 'deserializes the data of initial_timeout_ms' do expect(instance._deserialize("Integer", instance.initial_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of max_digits' do expect(instance._deserialize("Integer", instance.max_digits)).to be_a_kind_of(Integer) end + + it 'deserializes the data of min_digits' do expect(instance._deserialize("Integer", instance.min_digits)).to be_a_kind_of(Integer) end + + it 'deserializes the data of prompts' do expect(instance._deserialize("Array", instance.prompts)).to be_a_kind_of(Array) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -429,24 +716,44 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -455,68 +762,136 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetDigits.new( + action_url: "TS", + + digit_timeout_ms: 1, + + + finish_on_key: "TS", + + flush_buffer: true, + + initial_timeout_ms: 1, + + max_digits: 1, + + min_digits: 1, + + prompts: Array.new(), + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -524,12 +899,14 @@ describe 'test method "_to_hash"' do instance = Freeclimb::GetDigits.new( + action_url: "TS", digit_timeout_ms: 1, + finish_on_key: "TS", diff --git a/spec/models/get_digits_webhook_spec.rb b/spec/models/get_digits_webhook_spec.rb index 7cf9c8c..c4bcb3c 100644 --- a/spec/models/get_digits_webhook_spec.rb +++ b/spec/models/get_digits_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetDigitsWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,25 +140,34 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "digits"' do it 'should work' do + instance.digits = "TEST_STRING" expect(instance.digits).to eq("TEST_STRING") + + end end @@ -167,105 +192,207 @@ end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::GetDigitsWebhook' do expect { instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -274,33 +401,66 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -317,126 +477,269 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + instance_1 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + parent_call_id: "TS", + + ) instance_2 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", - from: "TS", - to: "TS", - call_status: Freeclimb::CallStatus::QUEUED, + from: "TS", - direction: Freeclimb::CallDirection::INBOUND, - conference_id: "TS", - queue_id: "TS", + to: "TS", - digits: "TS", - reason: Freeclimb::GetDigitsReason::FINISH_KEY, - parent_call_id: "TS", - ) + + call_status: Freeclimb::CallStatus::QUEUED, + + + + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + + + queue_id: "TS", + + + + + digits: "TS", + + + + + + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + + + ) instance_2 = Freeclimb::GetDigitsWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + digits: "ST", + + + + reason: nil, + parent_call_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -445,33 +748,66 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -480,62 +816,128 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -544,93 +946,183 @@ describe 'test method "_deserialize"' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of digits' do expect(instance._deserialize("String", instance.digits)).to be_a_kind_of(String) end + + + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -639,95 +1131,205 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + instance_1 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + digits: "TS", + + reason: Freeclimb::GetDigitsReason::FINISH_KEY, + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -735,18 +1337,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::GetDigitsWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -758,12 +1365,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + digits: "TS", @@ -771,6 +1381,7 @@ reason: Freeclimb::GetDigitsReason::FINISH_KEY, + parent_call_id: "TS", ) diff --git a/spec/models/get_speech_reason_spec.rb b/spec/models/get_speech_reason_spec.rb index 0f8e1fd..b73ad30 100644 --- a/spec/models/get_speech_reason_spec.rb +++ b/spec/models/get_speech_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetSpeechReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/get_speech_spec.rb b/spec/models/get_speech_spec.rb index 70e7e37..0d94857 100644 --- a/spec/models/get_speech_spec.rb +++ b/spec/models/get_speech_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetSpeech # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end @@ -47,17 +51,23 @@ end describe 'test attribute "grammar_file"' do it 'should work' do + instance.grammar_file = "TEST_STRING" expect(instance.grammar_file).to eq("TEST_STRING") + + end end describe 'test attribute "grammar_rule"' do it 'should work' do + instance.grammar_rule = "TEST_STRING" expect(instance.grammar_rule).to eq("TEST_STRING") + + end end @@ -66,6 +76,8 @@ instance.play_beep = false expect(instance.play_beep).to eq(false) + + end end @@ -74,6 +86,8 @@ instance.prompts = ["ELEMENT_1", "ELEMENT_2"] expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -84,6 +98,8 @@ instance.no_input_timeout_ms = 1 expect(instance.no_input_timeout_ms).to eq(1) + + end end @@ -94,6 +110,8 @@ instance.recognition_timeout_ms = 1 expect(instance.recognition_timeout_ms).to eq(1) + + end end @@ -104,6 +122,8 @@ instance.confidence_threshold = 1.0 expect(instance.confidence_threshold).to eq(1.0) + + end end @@ -114,6 +134,8 @@ instance.sensitivity_level = 1.0 expect(instance.sensitivity_level).to eq(1.0) + + end end @@ -124,6 +146,8 @@ instance.speech_complete_timeout_ms = 1 expect(instance.speech_complete_timeout_ms).to eq(1) + + end end @@ -134,6 +158,8 @@ instance.speech_incomplete_timeout_ms = 1 expect(instance.speech_incomplete_timeout_ms).to eq(1) + + end end @@ -142,96 +168,185 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::GetSpeech' do expect { instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -240,33 +355,62 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + confidence_threshold: 1, + + sensitivity_level: 1, + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -283,118 +427,246 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::GetSpeech.new( + action_url: "TS", + + + + grammar_type: Freeclimb::GrammarType::URL, + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + + + prompts: [], no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetSpeech.new( + action_url: "TS", + + + + grammar_type: Freeclimb::GrammarType::URL, + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + + + prompts: [], + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::GetSpeech.new( + action_url: "TS", + + + + grammar_type: Freeclimb::GrammarType::URL, + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + + + prompts: [], no_input_timeout_ms: 2, + + recognition_timeout_ms: 2, + + + + + + speech_complete_timeout_ms: 2, + + speech_incomplete_timeout_ms: 2, + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetSpeech.new( + action_url: "ST", - grammar_type: nil, - grammar_file: "ST", - grammar_rule: "ST", - play_beep: false, - prompts: nil, + grammar_type: nil, - no_input_timeout_ms: 1, - recognition_timeout_ms: 1, + grammar_file: "ST", - speech_complete_timeout_ms: 1, - speech_incomplete_timeout_ms: 1, + grammar_rule: "ST", + + + + play_beep: false, + + + + + + prompts: nil, + + no_input_timeout_ms: 1, + + + + recognition_timeout_ms: 1, + + + + + + + + + + speech_complete_timeout_ms: 1, + + + + speech_incomplete_timeout_ms: 1, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -403,31 +675,60 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -436,58 +737,116 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -496,65 +855,120 @@ describe 'test method "_deserialize"' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of grammar_file' do expect(instance._deserialize("String", instance.grammar_file)).to be_a_kind_of(String) end + + it 'deserializes the data of grammar_rule' do expect(instance._deserialize("String", instance.grammar_rule)).to be_a_kind_of(String) end + + + + it 'deserializes the data of play_beep' do expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass) end it 'deserializes the data of prompts' do expect(instance._deserialize("Array", instance.prompts)).to be_a_kind_of(Array) end + + it 'deserializes the data of no_input_timeout_ms' do expect(instance._deserialize("Integer", instance.no_input_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of recognition_timeout_ms' do expect(instance._deserialize("Integer", instance.recognition_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of confidence_threshold' do expect(instance._deserialize("Float", instance.confidence_threshold)).to be_a_kind_of(Float) end + + it 'deserializes the data of sensitivity_level' do expect(instance._deserialize("Float", instance.sensitivity_level)).to be_a_kind_of(Float) end + + it 'deserializes the data of speech_complete_timeout_ms' do expect(instance._deserialize("Integer", instance.speech_complete_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of speech_incomplete_timeout_ms' do expect(instance._deserialize("Integer", instance.speech_incomplete_timeout_ms)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -563,31 +977,60 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -596,89 +1039,188 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + instance_1 = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::GetSpeech.new( + action_url: "TS", + + grammar_type: Freeclimb::GrammarType::URL, + + + grammar_file: "TS", + + + grammar_rule: "TS", + + play_beep: true, + + prompts: Array.new(), + + no_input_timeout_ms: 1, + + recognition_timeout_ms: 1, + + + + + + speech_complete_timeout_ms: 1, + + speech_incomplete_timeout_ms: 1, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -686,6 +1228,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::GetSpeech.new( + action_url: "TS", @@ -693,9 +1236,11 @@ grammar_type: Freeclimb::GrammarType::URL, + grammar_file: "TS", + grammar_rule: "TS", diff --git a/spec/models/get_speech_webhook_spec.rb b/spec/models/get_speech_webhook_spec.rb index a272989..217d7fb 100644 --- a/spec/models/get_speech_webhook_spec.rb +++ b/spec/models/get_speech_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GetSpeechWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -167,9 +189,12 @@ end describe 'test attribute "recognition_result"' do it 'should work' do + instance.recognition_result = "TEST_STRING" expect(instance.recognition_result).to eq("TEST_STRING") + + end end @@ -180,30 +205,41 @@ instance.confidence = 1 expect(instance.confidence).to eq(1) + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test attribute "completion_reason"' do it 'should work' do + instance.completion_reason = "TEST_STRING" expect(instance.completion_reason).to eq("TEST_STRING") + + end end describe 'test attribute "completion_cause"' do it 'should work' do + instance.completion_cause = "TEST_STRING" expect(instance.completion_cause).to eq("TEST_STRING") + + end end @@ -214,140 +250,283 @@ instance.mrcp_code = 1 expect(instance.mrcp_code).to eq(1) + + end end describe 'test attribute "mrcp_diagnostic"' do it 'should work' do + instance.mrcp_diagnostic = "TEST_STRING" expect(instance.mrcp_diagnostic).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::GetSpeechWebhook' do expect { instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -356,43 +535,89 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -409,166 +634,366 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", - call_id: "TS", - account_id: "TS", - from: "TS", - to: "TS", + call_id: "TS", - call_status: Freeclimb::CallStatus::QUEUED, - direction: Freeclimb::CallDirection::INBOUND, + account_id: "TS", - conference_id: "TS", - queue_id: "TS", - reason: Freeclimb::GetSpeechReason::ERROR, + from: "TS", + + + + + to: "TS", + + + + + + + call_status: Freeclimb::CallStatus::QUEUED, + + + + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + + + queue_id: "TS", + + + + + + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + + + confidence: 1, + - recognition_result: "TS", - confidence: 1, parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) instance_2 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + reason: Freeclimb::GetSpeechReason::ERROR, + recognition_result: "TS", + + + + confidence: 1, + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + + + mrcp_code: 1, + mrcp_diagnostic: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + reason: Freeclimb::GetSpeechReason::ERROR, + recognition_result: "TS", + + confidence: 2, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 2, + + + mrcp_diagnostic: "TS", + + ) instance_2 = Freeclimb::GetSpeechWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + + reason: nil, + recognition_result: "ST", + + confidence: 1, + + + parent_call_id: "ST", + + + completion_reason: "ST", + + + completion_cause: "ST", + + mrcp_code: 1, + + + mrcp_diagnostic: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -577,43 +1002,89 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -622,82 +1093,174 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) instance_2 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -706,128 +1269,254 @@ describe 'test method "_deserialize"' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, - parent_call_id: "TS", - completion_reason: "TS", + + + parent_call_id: "TS", + + + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of recognition_result' do expect(instance._deserialize("String", instance.recognition_result)).to be_a_kind_of(String) end + + it 'deserializes the data of confidence' do expect(instance._deserialize("Integer", instance.confidence)).to be_a_kind_of(Integer) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of completion_reason' do expect(instance._deserialize("String", instance.completion_reason)).to be_a_kind_of(String) end + + it 'deserializes the data of completion_cause' do expect(instance._deserialize("String", instance.completion_cause)).to be_a_kind_of(String) end + + it 'deserializes the data of mrcp_code' do expect(instance._deserialize("Integer", instance.mrcp_code)).to be_a_kind_of(Integer) end + + it 'deserializes the data of mrcp_diagnostic' do expect(instance._deserialize("String", instance.mrcp_diagnostic)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -836,125 +1525,279 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) instance_2 = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + reason: Freeclimb::GetSpeechReason::ERROR, + + + recognition_result: "TS", + + confidence: 1, + + + parent_call_id: "TS", + + + completion_reason: "TS", + + + completion_cause: "TS", + + mrcp_code: 1, + + + mrcp_diagnostic: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -962,18 +1805,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::GetSpeechWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -985,9 +1833,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", @@ -995,24 +1845,29 @@ reason: Freeclimb::GetSpeechReason::ERROR, + recognition_result: "TS", confidence: 1, + parent_call_id: "TS", + completion_reason: "TS", + completion_cause: "TS", mrcp_code: 1, + mrcp_diagnostic: "TS", ) diff --git a/spec/models/grammar_file_built_in_spec.rb b/spec/models/grammar_file_built_in_spec.rb index 0cabec3..12a4efe 100644 --- a/spec/models/grammar_file_built_in_spec.rb +++ b/spec/models/grammar_file_built_in_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GrammarFileBuiltIn # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/grammar_type_spec.rb b/spec/models/grammar_type_spec.rb index 804071b..931d946 100644 --- a/spec/models/grammar_type_spec.rb +++ b/spec/models/grammar_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::GrammarType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/hangup_spec.rb b/spec/models/hangup_spec.rb index d351f81..8942eb6 100644 --- a/spec/models/hangup_spec.rb +++ b/spec/models/hangup_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Hangup # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "reason"' do it 'should work' do + instance.reason = "TEST_STRING" expect(instance.reason).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Hangup.new( + reason: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Hangup' do expect { instance = Freeclimb::Hangup.new( + reason: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Hangup.new( + reason: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::Hangup.new( + reason: "TS", + + ) instance_2 = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Hangup.new( + reason: "TS", + + ) instance_2 = Freeclimb::Hangup.new( + reason: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Hangup.new( + reason: "TS", + + ) instance_2 = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Hangup.new( + reason: "TS", + + ) it 'deserializes the data of reason' do expect(instance._deserialize("String", instance.reason)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::Hangup.new( + reason: "TS", + + ) instance_2 = Freeclimb::Hangup.new( + reason: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Hangup.new( + reason: "TS", ) diff --git a/spec/models/if_machine_spec.rb b/spec/models/if_machine_spec.rb index 1a533e4..fd8b03b 100644 --- a/spec/models/if_machine_spec.rb +++ b/spec/models/if_machine_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::IfMachine # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/inbound_call_webhook_spec.rb b/spec/models/inbound_call_webhook_spec.rb index ac72a5b..b273892 100644 --- a/spec/models/inbound_call_webhook_spec.rb +++ b/spec/models/inbound_call_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::InboundCallWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,106 +140,199 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::InboundCallWebhook' do expect { instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -232,28 +341,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -270,106 +407,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::InboundCallWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + parent_call_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -378,28 +636,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -408,52 +694,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -462,80 +804,156 @@ describe 'test method "_deserialize"' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -544,80 +962,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -625,18 +1136,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::InboundCallWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -648,12 +1164,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + parent_call_id: "TS", ) diff --git a/spec/models/incoming_number_list_spec.rb b/spec/models/incoming_number_list_spec.rb index 0b1283f..38dc9bb 100644 --- a/spec/models/incoming_number_list_spec.rb +++ b/spec/models/incoming_number_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::IncomingNumberList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.incoming_phone_numbers = ["ELEMENT_1", "ELEMENT_2"] expect(instance.incoming_phone_numbers).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberList' do expect { instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + incoming_phone_numbers: [], ) instance_2 = Freeclimb::IncomingNumberList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + incoming_phone_numbers: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::IncomingNumberList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + incoming_phone_numbers: [], ) instance_2 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + incoming_phone_numbers: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) instance_2 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of incoming_phone_numbers' do expect(instance._deserialize("Array", instance.incoming_phone_numbers)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) instance_2 = Freeclimb::IncomingNumberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + incoming_phone_numbers: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/incoming_number_request_spec.rb b/spec/models/incoming_number_request_spec.rb index 470fa2e..5f5ce3a 100644 --- a/spec/models/incoming_number_request_spec.rb +++ b/spec/models/incoming_number_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::IncomingNumberRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,58 +29,94 @@ describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberRequest' do expect { instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -88,12 +125,21 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -110,42 +156,80 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) instance_2 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) instance_2 = Freeclimb::IncomingNumberRequest.new( + application_id: "ST", + + + _alias: "ST", + + + campaign_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -154,12 +238,21 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -168,20 +261,38 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) instance_2 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -190,33 +301,57 @@ describe 'test method "_deserialize"' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -225,32 +360,61 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) instance_2 = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + + + _alias: "TS", + + + campaign_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -258,12 +422,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::IncomingNumberRequest.new( + application_id: "TS", + _alias: "TS", + campaign_id: "TS", ) diff --git a/spec/models/incoming_number_result_spec.rb b/spec/models/incoming_number_result_spec.rb index a246a90..52d8707 100644 --- a/spec/models/incoming_number_result_spec.rb +++ b/spec/models/incoming_number_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::IncomingNumberResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,78 +67,107 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "capabilities"' do it 'should work' do - instance.capabilities = Freeclimb::Capabilities.new - expect(instance.capabilities).to be_instance_of(Freeclimb::Capabilities) + + + instance.capabilities = Capabilities.new + expect(instance.capabilities).to be_instance_of(Capabilities) + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test attribute "phone_number_id"' do it 'should work' do + instance.phone_number_id = "TEST_STRING" expect(instance.phone_number_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test attribute "phone_number"' do it 'should work' do + instance.phone_number = "TEST_STRING" expect(instance.phone_number).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end describe 'test attribute "region"' do it 'should work' do + instance.region = "TEST_STRING" expect(instance.region).to eq("TEST_STRING") + + end end describe 'test attribute "country"' do it 'should work' do + instance.country = "TEST_STRING" expect(instance.country).to eq("TEST_STRING") + + end end @@ -137,6 +176,8 @@ instance.voice_enabled = false expect(instance.voice_enabled).to eq(false) + + end end @@ -145,6 +186,8 @@ instance.sms_enabled = false expect(instance.sms_enabled).to eq(false) + + end end @@ -153,131 +196,277 @@ instance.offnet = false expect(instance.offnet).to eq(false) + + end end describe 'test attribute "tfn"' do it 'should work' do - instance.tfn = Freeclimb::TFN.new - expect(instance.tfn).to be_instance_of(Freeclimb::TFN) + + + instance.tfn = TFN.new + expect(instance.tfn).to be_instance_of(TFN) + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::IncomingNumberResult' do expect { instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: TFN.new, + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: TFN.new, + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -286,40 +475,87 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) expect(instance.valid?).to eq(true) end @@ -336,77 +572,191 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + obj_Capabilities = Capabilities.new() + + + + + + + + + + + + + + obj_TFN = TFN.new() + instance_1 = Freeclimb::IncomingNumberResult.new( + uri: "TS", - date_created: "TS", + + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: obj_Capabilities, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: obj_TFN, + ) instance_2 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + capabilities: obj_Capabilities, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: obj_TFN, + ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -414,75 +764,169 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) instance_2 = Freeclimb::IncomingNumberResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "ST", + + + phone_number_id: "ST", + + + account_id: "ST", + + + application_id: "ST", + + + phone_number: "ST", + + + _alias: "ST", + + + region: "ST", + + + country: "ST", + + voice_enabled: false, + + sms_enabled: false, + + offnet: false, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -492,40 +936,87 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -534,76 +1025,170 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) instance_2 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new(), + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new(), + + + + + tfn: TFN.new(), + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -612,131 +1197,261 @@ describe 'test method "_deserialize"' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: Capabilities.new(), + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, - sms_enabled: true, - offnet: true, + sms_enabled: true, + + + + offnet: true, + + + + + + + tfn: TFN.new(), - tfn: Freeclimb::TFN.new, ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of capabilities' do - expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Freeclimb::Capabilities) + expect(instance._deserialize("Object", instance.capabilities)).to be_a_kind_of(Capabilities) end + it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + it 'deserializes the data of phone_number_id' do expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + it 'deserializes the data of phone_number' do expect(instance._deserialize("String", instance.phone_number)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of region' do expect(instance._deserialize("String", instance.region)).to be_a_kind_of(String) end + + it 'deserializes the data of country' do expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String) end + + + + it 'deserializes the data of voice_enabled' do expect(instance._deserialize("Boolean", instance.voice_enabled)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of sms_enabled' do expect(instance._deserialize("Boolean", instance.sms_enabled)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of offnet' do expect(instance._deserialize("Boolean", instance.offnet)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of tfn' do - expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(Freeclimb::TFN) + expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN) end + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: TFN.new, + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -745,116 +1460,277 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: Capabilities.new, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: TFN.new, + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + obj = Capabilities.new() + + + + + + + + + + + + + + obj = TFN.new() + instance_1 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: obj, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: obj, + ) instance_2 = Freeclimb::IncomingNumberResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - capabilities: Freeclimb::Capabilities.new, + + + + + capabilities: obj, + + campaign_id: "TS", + + + phone_number_id: "TS", + + + account_id: "TS", + + + application_id: "TS", + + + phone_number: "TS", + + + _alias: "TS", + + + region: "TS", + + + country: "TS", + + voice_enabled: true, + + sms_enabled: true, + + offnet: true, - tfn: Freeclimb::TFN.new, + + + + + tfn: obj, + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -862,12 +1738,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::IncomingNumberResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", @@ -876,27 +1755,35 @@ + campaign_id: "TS", + phone_number_id: "TS", + account_id: "TS", + application_id: "TS", + phone_number: "TS", + _alias: "TS", + region: "TS", + country: "TS", diff --git a/spec/models/language_spec.rb b/spec/models/language_spec.rb index a9a25fd..a24760d 100644 --- a/spec/models/language_spec.rb +++ b/spec/models/language_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Language # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/leave_conference_webhook_spec.rb b/spec/models/leave_conference_webhook_spec.rb index 0c59cc4..bce5ca1 100644 --- a/spec/models/leave_conference_webhook_spec.rb +++ b/spec/models/leave_conference_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::LeaveConferenceWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,92 +140,173 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::LeaveConferenceWebhook' do expect { instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -218,26 +315,51 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -254,98 +376,206 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "ST", + + + call_id: "ST", + + + account_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -354,26 +584,51 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -382,48 +637,98 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -432,73 +737,141 @@ describe 'test method "_deserialize"' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -507,74 +880,157 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) instance_2 = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -582,18 +1038,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::LeaveConferenceWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -605,9 +1066,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", ) diff --git a/spec/models/log_level_spec.rb b/spec/models/log_level_spec.rb index 7faa805..1de3e6c 100644 --- a/spec/models/log_level_spec.rb +++ b/spec/models/log_level_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::LogLevel # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/log_list_spec.rb b/spec/models/log_list_spec.rb index cda6329..a95692e 100644 --- a/spec/models/log_list_spec.rb +++ b/spec/models/log_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::LogList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.logs = ["ELEMENT_1", "ELEMENT_2"] expect(instance.logs).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::LogList' do expect { instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + logs: [], ) instance_2 = Freeclimb::LogList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + logs: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::LogList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + logs: [], ) instance_2 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + logs: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) instance_2 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of logs' do expect(instance._deserialize("Array", instance.logs)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) instance_2 = Freeclimb::LogList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + logs: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/log_result_spec.rb b/spec/models/log_result_spec.rb index 8f7bb72..d3ca026 100644 --- a/spec/models/log_result_spec.rb +++ b/spec/models/log_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::LogResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.timestamp = 1 expect(instance.timestamp).to eq(1) + + end end @@ -53,33 +56,45 @@ end describe 'test attribute "request_id"' do it 'should work' do + instance.request_id = "TEST_STRING" expect(instance.request_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "message"' do it 'should work' do + instance.message = "TEST_STRING" expect(instance.message).to eq("TEST_STRING") + + end end @@ -89,6 +104,11 @@ testObject = Object.new() instance.metadata = testObject expect(instance.metadata).to eq(testObject) + + + instance.metadata = Object.new + expect(instance.metadata).to be_instance_of(Object) + end end @@ -98,16 +118,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), )}.not_to raise_error() @@ -117,17 +156,36 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: Object.new(), + + + + + + metadata: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) @@ -137,17 +195,36 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: Object.new(), + + + + + + metadata: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) @@ -160,16 +237,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), ) @@ -188,39 +284,85 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + obj_Object = Object.new() + instance_1 = Freeclimb::LogResult.new( timestamp: 1, + + + + level: Freeclimb::LogLevel::INFO, + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: obj, + + + + + metadata: obj_Object, + ) instance_2 = Freeclimb::LogResult.new( + + timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: obj, + + + + + metadata: obj_Object, + ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -231,16 +373,36 @@ timestamp: 2, + + + + level: Freeclimb::LogLevel::INFO, + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), + metadata: Object.new(), ) @@ -248,17 +410,36 @@ timestamp: 1, + + + + level: nil, + request_id: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + message: "ST", - metadata: nil, + + + + + metadata: Object.new(), + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -271,16 +452,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), ) @@ -294,16 +494,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), ) @@ -311,16 +530,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), ) @@ -334,37 +572,71 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: Object.new(), ) it 'deserializes the data of timestamp' do expect(instance._deserialize("Integer", instance.timestamp)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of request_id' do expect(instance._deserialize("String", instance.request_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of message' do expect(instance._deserialize("String", instance.message)).to be_a_kind_of(String) end + + + + it 'deserializes the data of metadata' do expect(instance._deserialize("Object", instance.metadata)).to be_a_kind_of(Object) end + end describe 'test method "to_s"' do @@ -373,17 +645,36 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: Object.new(), + + + + + + metadata: Object.new, ) expect(instance.to_s).to eq(instance.to_hash.to_s) @@ -396,37 +687,83 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", - metadata: Object.new(), + + + + + + metadata: Object.new, ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do + + + + + + + obj = Object.new() + instance_1 = Freeclimb::LogResult.new( timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: obj, ) @@ -434,16 +771,35 @@ timestamp: 1, + + level: Freeclimb::LogLevel::INFO, + + + request_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + message: "TS", + + + + + metadata: obj, ) @@ -460,19 +816,22 @@ level: Freeclimb::LogLevel::INFO, + request_id: "TS", + account_id: "TS", + call_id: "TS", + message: "TS", - metadata: Object.new(), ) it 'returns timestamp in the form of hash' do diff --git a/spec/models/machine_detected_webhook_spec.rb b/spec/models/machine_detected_webhook_spec.rb index 791fb09..72a66b3 100644 --- a/spec/models/machine_detected_webhook_spec.rb +++ b/spec/models/machine_detected_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MachineDetectedWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,25 +140,34 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end @@ -160,90 +185,180 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MachineDetectedWebhook' do expect { instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -252,31 +367,61 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance.valid?).to eq(true) end @@ -293,58 +438,128 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, ) instance_2 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, ) @@ -353,56 +568,116 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, ) instance_2 = Freeclimb::MachineDetectedWebhook.new( + request_type: "ST", - call_id: "ST", - account_id: "ST", - from: "ST", - to: "ST", + call_id: "ST", - call_status: nil, - direction: nil, + account_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + + + + + + call_status: nil, + + + + + direction: nil, + + + conference_id: "ST", + + + + + queue_id: "ST", + - conference_id: "ST", - queue_id: "ST", parent_call_id: "ST", + + + + machine_type: nil, ) @@ -413,31 +688,61 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -446,58 +751,118 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) instance_2 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -506,86 +871,168 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -594,89 +1041,189 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) instance_2 = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + + + call_id: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + machine_type: Freeclimb::MachineType::ANSWERING_MACHINE, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -684,18 +1231,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MachineDetectedWebhook.new( + request_type: "TS", + call_id: "TS", + account_id: "TS", + from: "TS", + to: "TS", @@ -707,12 +1259,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + parent_call_id: "TS", diff --git a/spec/models/machine_type_spec.rb b/spec/models/machine_type_spec.rb index 33df550..61251de 100644 --- a/spec/models/machine_type_spec.rb +++ b/spec/models/machine_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MachineType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/make_call_request_spec.rb b/spec/models/make_call_request_spec.rb index d6518f4..240b443 100644 --- a/spec/models/make_call_request_spec.rb +++ b/spec/models/make_call_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MakeCallRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,49 +29,67 @@ describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test attribute "send_digits"' do it 'should work' do + instance.send_digits = "TEST_STRING" expect(instance.send_digits).to eq("TEST_STRING") + + end end describe 'test attribute "if_machine"' do it 'should work' do + instance.if_machine = "TEST_STRING" expect(instance.if_machine).to eq("TEST_STRING") + + end end describe 'test attribute "if_machine_url"' do it 'should work' do + instance.if_machine_url = "TEST_STRING" expect(instance.if_machine_url).to eq("TEST_STRING") + + end end @@ -81,14 +100,19 @@ instance.timeout = 1 expect(instance.timeout).to eq(1) + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end @@ -97,89 +121,178 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test attribute "call_connect_url"' do it 'should work' do + instance.call_connect_url = "TEST_STRING" expect(instance.call_connect_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MakeCallRequest' do expect { instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -188,26 +301,54 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -224,99 +365,220 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) instance_2 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + + + timeout: 1, + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 2, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) instance_2 = Freeclimb::MakeCallRequest.new( + from: "ST", + + + to: "ST", + + + application_id: "ST", + + + send_digits: "ST", + + + if_machine: "ST", + + + if_machine_url: "ST", + + timeout: 1, - parent_call_id: "ST", - privacy_mode: false, - call_connect_url: "ST", - ) + parent_call_id: "ST", + + + + privacy_mode: false, + + + + + call_connect_url: "ST", + + + + ) expect(instance_1.eql?(instance_2)).to eq(false) end end @@ -324,26 +586,54 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -352,48 +642,104 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) instance_2 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -402,82 +748,158 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + it 'deserializes the data of send_digits' do expect(instance._deserialize("String", instance.send_digits)).to be_a_kind_of(String) end + + it 'deserializes the data of if_machine' do expect(instance._deserialize("String", instance.if_machine)).to be_a_kind_of(String) end + + it 'deserializes the data of if_machine_url' do expect(instance._deserialize("String", instance.if_machine_url)).to be_a_kind_of(String) end + + it 'deserializes the data of timeout' do expect(instance._deserialize("Integer", instance.timeout)).to be_a_kind_of(Integer) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end it 'deserializes the data of call_connect_url' do expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -486,74 +908,167 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) instance_2 = Freeclimb::MakeCallRequest.new( + from: "TS", + + + to: "TS", + + + application_id: "TS", + + + send_digits: "TS", + + + if_machine: "TS", + + + if_machine_url: "TS", + + timeout: 1, + + + parent_call_id: "TS", + + privacy_mode: true, + + + call_connect_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -561,33 +1076,41 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MakeCallRequest.new( + from: "TS", + to: "TS", + application_id: "TS", + send_digits: "TS", + if_machine: "TS", + if_machine_url: "TS", timeout: 1, + parent_call_id: "TS", privacy_mode: true, + call_connect_url: "TS", ) diff --git a/spec/models/message_delivery_webhook_spec.rb b/spec/models/message_delivery_webhook_spec.rb index c295be2..132dc5d 100644 --- a/spec/models/message_delivery_webhook_spec.rb +++ b/spec/models/message_delivery_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageDeliveryWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,156 +35,276 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "direction"' do it 'should work' do + instance.direction = "TEST_STRING" expect(instance.direction).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end describe 'test attribute "status"' do it 'should work' do + instance.status = "TEST_STRING" expect(instance.status).to eq("TEST_STRING") + + end end describe 'test attribute "phone_number_id"' do it 'should work' do + instance.phone_number_id = "TEST_STRING" expect(instance.phone_number_id).to eq("TEST_STRING") + + end end describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageDeliveryWebhook' do expect { instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -192,26 +313,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -228,98 +379,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) instance_2 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) instance_2 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "ST", - account_id: "ST", - from: "ST", - to: "ST", - text: "ST", + account_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + + + + text: "ST", + + + direction: "ST", + + + application_id: "ST", + + + status: "ST", + + + phone_number_id: "ST", + + + uri: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -328,26 +608,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -356,48 +666,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) instance_2 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -406,82 +776,162 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of text' do expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) end + + it 'deserializes the data of direction' do expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + it 'deserializes the data of status' do expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String) end + + it 'deserializes the data of phone_number_id' do expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String) end + + it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -490,74 +940,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) instance_2 = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + status: "TS", + + + phone_number_id: "TS", + + + uri: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -565,33 +1114,43 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MessageDeliveryWebhook.new( + request_type: "TS", + account_id: "TS", + from: "TS", + to: "TS", + text: "TS", + direction: "TS", + application_id: "TS", + status: "TS", + phone_number_id: "TS", + uri: "TS", ) diff --git a/spec/models/message_direction_spec.rb b/spec/models/message_direction_spec.rb index fe838ea..0dbe242 100644 --- a/spec/models/message_direction_spec.rb +++ b/spec/models/message_direction_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageDirection # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/message_request_spec.rb b/spec/models/message_request_spec.rb index 24ced45..da73966 100644 --- a/spec/models/message_request_spec.rb +++ b/spec/models/message_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,38 +67,52 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end @@ -97,75 +121,152 @@ instance.media_urls = ["ELEMENT_1", "ELEMENT_2"] expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageRequest' do expect { instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -174,24 +275,49 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -208,44 +334,102 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + + + media_urls: [], ) instance_2 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + + + media_urls: [], ) @@ -254,42 +438,92 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + + + media_urls: [], ) instance_2 = Freeclimb::MessageRequest.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + from: "ST", + + + to: "ST", + + + text: "ST", + + + notification_url: "ST", + + + + media_urls: nil, ) @@ -300,24 +534,49 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -326,44 +585,94 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) instance_2 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -372,75 +681,143 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of text' do expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) end + + it 'deserializes the data of notification_url' do expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) end + + it 'deserializes the data of media_urls' do expect(instance._deserialize("Array", instance.media_urls)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -449,68 +826,151 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) instance_2 = Freeclimb::MessageRequest.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + notification_url: "TS", + + media_urls: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -518,27 +978,34 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MessageRequest.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + from: "TS", + to: "TS", + text: "TS", + notification_url: "TS", diff --git a/spec/models/message_result_spec.rb b/spec/models/message_result_spec.rb index c82ae97..2005a56 100644 --- a/spec/models/message_result_spec.rb +++ b/spec/models/message_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,22 +67,30 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "message_id"' do it 'should work' do + instance.message_id = "TEST_STRING" expect(instance.message_id).to eq("TEST_STRING") + + end end @@ -125,57 +143,78 @@ end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "direction"' do it 'should work' do + instance.direction = "TEST_STRING" expect(instance.direction).to eq("TEST_STRING") + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end describe 'test attribute "brand_id"' do it 'should work' do + instance.brand_id = "TEST_STRING" expect(instance.brand_id).to eq("TEST_STRING") + + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end @@ -186,6 +225,8 @@ instance.segment_count = 1.0 expect(instance.segment_count).to eq(1.0) + + end end @@ -194,117 +235,329 @@ instance.media_urls = ["ELEMENT_1", "ELEMENT_2"] expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"]) + + + end + end + + describe 'test attribute "tfn"' do + it 'should work' do + + + + instance.tfn = TFN.new + expect(instance.tfn).to be_instance_of(TFN) + + end + end + + describe 'test attribute "phone_number_id"' do + it 'should work' do + + instance.phone_number_id = "TEST_STRING" + expect(instance.phone_number_id).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "application_id"' do + it 'should work' do + + instance.application_id = "TEST_STRING" + expect(instance.application_id).to eq("TEST_STRING") + + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + message_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", + + + + media_urls: Array.new(), + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageResult' do expect { instance = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + message_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", + + + + media_urls: Array.new(), + + + + + + tfn: TFN.new, + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + message_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", + + + + media_urls: Array.new(), + + + + + + tfn: TFN.new, + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -313,38 +566,97 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", - date_updated: "TS", - revision: 1, - account_id: "TS", - message_id: "TS", + date_updated: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", + revision: 1, - to: "TS", - text: "TS", - direction: "TS", - notification_url: "TS", + account_id: "TS", - brand_id: "TS", - campaign_id: "TS", - segment_count: 1, - media_urls: Array.new(), + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + segment_count: 1, + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + ) expect(instance.valid?).to eq(true) @@ -362,494 +674,1290 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + + obj_TFN = TFN.new() + + + instance_1 = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + message_id: "TS", + + + + status: Freeclimb::MessageStatus::NEW, + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", + + + + + + media_urls: [], + + + tfn: obj_TFN, + + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + ) instance_2 = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + account_id: "TS", + + + message_id: "TS", + + + + status: Freeclimb::MessageStatus::NEW, + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", + + + + + + media_urls: [], + + + tfn: obj_TFN, + + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + account_id: "TS", + + + message_id: "TS", + + + + status: Freeclimb::MessageStatus::NEW, + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", - media_urls: [], - ) - instance_2 = Freeclimb::MessageResult.new( - uri: "ST", - date_created: "ST", - date_updated: "ST", - revision: 1, - account_id: "ST", - message_id: "ST", + media_urls: [], - status: nil, - from: "ST", + tfn: TFN.new(), - to: "ST", - text: "ST", - direction: "ST", + phone_number_id: "TS", - notification_url: "ST", - brand_id: "ST", - campaign_id: "ST", + + application_id: "TS", - media_urls: nil, ) - expect(instance_1.eql?(instance_2)).to eq(false) - end - end - + instance_2 = Freeclimb::MessageResult.new( + + uri: "ST", + + + + + date_created: "ST", + + + + + date_updated: "ST", + + + + revision: 1, + + + + + account_id: "ST", + + + + + message_id: "ST", + + + + + + + status: nil, + + + from: "ST", + + + + + to: "ST", + + + + + text: "ST", + + + + + direction: "ST", + + + + + notification_url: "ST", + + + + + brand_id: "ST", + + + + + campaign_id: "ST", + + + + + + + + + media_urls: nil, + + + + tfn: TFN.new(), + + + + phone_number_id: "ST", + + + + + application_id: "ST", + + + + ) + expect(instance_1.eql?(instance_2)).to eq(false) + end + end + describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", - revision: 1, - account_id: "TS", - message_id: "TS", + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + expect(instance.hash).to be_a_kind_of(Integer) + end + end + + describe 'test method "build_from_hash"' do + it 'builds equivalent model from hash code' do + instance_1 = Freeclimb::MessageResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + instance_2 = Freeclimb::MessageResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + + expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) + end + end + + describe 'test method "_deserialize"' do + instance = Freeclimb::MessageResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new(), + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + it 'deserializes the data of uri' do + expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) + end + + + it 'deserializes the data of date_created' do + expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) + end + + + it 'deserializes the data of date_updated' do + expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) + end + + + it 'deserializes the data of revision' do + expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) + end + + + it 'deserializes the data of account_id' do + expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of message_id' do + expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of from' do + expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) + end + + + it 'deserializes the data of to' do + expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) + end + + + it 'deserializes the data of text' do + expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) + end + + + it 'deserializes the data of direction' do + expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String) + end + + + it 'deserializes the data of notification_url' do + expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) + end + + + it 'deserializes the data of brand_id' do + expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of campaign_id' do + expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of segment_count' do + expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float) + end + + + it 'deserializes the data of media_urls' do + expect(instance._deserialize("Array", instance.media_urls)).to be_a_kind_of(Array) + end + + + + + it 'deserializes the data of tfn' do + expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN) + end + + it 'deserializes the data of phone_number_id' do + expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of application_id' do + expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) + end + + + end + + describe 'test method "to_s"' do + it 'returns the string representation of the object' do + instance = Freeclimb::MessageResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new, + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + expect(instance.to_s).to eq(instance.to_hash.to_s) + end + end + + describe 'test method "to_hash"' do + it 'returns the object in the form of hash' do + instance = Freeclimb::MessageResult.new( + + uri: "TS", + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + revision: 1, + + + + + account_id: "TS", + + + + + message_id: "TS", + + + + + status: Freeclimb::MessageStatus::NEW, + + + + + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + notification_url: "TS", + + + + + brand_id: "TS", + + + + + campaign_id: "TS", + + + + + + + media_urls: Array.new(), + + + + + + + tfn: TFN.new, + + + phone_number_id: "TS", + + + + + application_id: "TS", + + + + ) + expect(instance.to_hash).to be_a_kind_of(Hash) + end + it 'creates equal hash for two equal objects' do + + + + + + + + - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", - text: "TS", - direction: "TS", - notification_url: "TS", - brand_id: "TS", - campaign_id: "TS", + obj = TFN.new() - media_urls: Array.new(), - ) - expect(instance.hash).to be_a_kind_of(Integer) - end - end - - describe 'test method "build_from_hash"' do - it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", + uri: "TS", - date_updated: "TS", - revision: 1, - account_id: "TS", - message_id: "TS", + date_created: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", + date_updated: "TS", - text: "TS", - direction: "TS", - notification_url: "TS", + revision: 1, - brand_id: "TS", - campaign_id: "TS", - media_urls: Array.new(), + account_id: "TS", - ) - instance_2 = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, + message_id: "TS", - account_id: "TS", - message_id: "TS", status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", - text: "TS", - direction: "TS", + from: "TS", - notification_url: "TS", - brand_id: "TS", - campaign_id: "TS", + to: "TS", - media_urls: Array.new(), - ) - - expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) - end - end - - describe 'test method "_deserialize"' do - instance = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", + text: "TS", - revision: 1, - account_id: "TS", - message_id: "TS", + direction: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", - text: "TS", + notification_url: "TS", + - direction: "TS", - notification_url: "TS", brand_id: "TS", + + + campaign_id: "TS", - media_urls: Array.new(), - ) - it 'deserializes the data of uri' do - expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) - end - it 'deserializes the data of date_created' do - expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) - end - it 'deserializes the data of date_updated' do - expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) - end - it 'deserializes the data of revision' do - expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) - end - it 'deserializes the data of account_id' do - expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) - end - it 'deserializes the data of message_id' do - expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String) - end - it 'deserializes the data of from' do - expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) - end - it 'deserializes the data of to' do - expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) - end - it 'deserializes the data of text' do - expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) - end - it 'deserializes the data of direction' do - expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String) - end - it 'deserializes the data of notification_url' do - expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) - end - it 'deserializes the data of brand_id' do - expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) - end - it 'deserializes the data of campaign_id' do - expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) - end - it 'deserializes the data of segment_count' do - expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float) - end - it 'deserializes the data of media_urls' do - expect(instance._deserialize("Array", instance.media_urls)).to be_a_kind_of(Array) - end - end - - describe 'test method "to_s"' do - it 'returns the string representation of the object' do - instance = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, + media_urls: Array.new(), - account_id: "TS", - message_id: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", + tfn: obj, - text: "TS", - direction: "TS", + phone_number_id: "TS", - notification_url: "TS", - brand_id: "TS", - campaign_id: "TS", + + application_id: "TS", - media_urls: Array.new(), ) - expect(instance.to_s).to eq(instance.to_hash.to_s) - end - end - - describe 'test method "to_hash"' do - it 'returns the object in the form of hash' do - instance = Freeclimb::MessageResult.new( + instance_2 = Freeclimb::MessageResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, - account_id: "TS", - message_id: "TS", - status: Freeclimb::MessageStatus::NEW, + account_id: "TS", - from: "TS", - to: "TS", - text: "TS", - direction: "TS", + message_id: "TS", - notification_url: "TS", - brand_id: "TS", - campaign_id: "TS", + status: Freeclimb::MessageStatus::NEW, - media_urls: Array.new(), - ) - expect(instance.to_hash).to be_a_kind_of(Hash) - end - it 'creates equal hash for two equal objects' do - obj = Object.new() - instance_1 = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", + from: "TS", - revision: 1, - account_id: "TS", - message_id: "TS", + to: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", text: "TS", + + + direction: "TS", + + + notification_url: "TS", + + + brand_id: "TS", + + + campaign_id: "TS", - media_urls: Array.new(), - ) - instance_2 = Freeclimb::MessageResult.new( - uri: "TS", - date_created: "TS", - date_updated: "TS", - revision: 1, + media_urls: Array.new(), - account_id: "TS", - message_id: "TS", - status: Freeclimb::MessageStatus::NEW, - from: "TS", - to: "TS", + tfn: obj, - text: "TS", - direction: "TS", + phone_number_id: "TS", - notification_url: "TS", - brand_id: "TS", - campaign_id: "TS", + + application_id: "TS", - media_urls: Array.new(), ) expect(instance_1.to_hash).to eq(instance_2.to_hash) @@ -858,21 +1966,26 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MessageResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + account_id: "TS", + message_id: "TS", @@ -880,24 +1993,31 @@ status: Freeclimb::MessageStatus::NEW, + from: "TS", + to: "TS", + text: "TS", + direction: "TS", + notification_url: "TS", + brand_id: "TS", + campaign_id: "TS", @@ -905,6 +2025,16 @@ media_urls: Array.new(), + + + + + phone_number_id: "TS", + + + + application_id: "TS", + ) it 'returns uri in the form of hash' do expect(instance._to_hash(instance.uri)).to eq(instance.uri) @@ -954,6 +2084,15 @@ it 'returns media_urls in the form of hash' do expect(instance._to_hash(instance.media_urls)).to eq(instance.media_urls) end + it 'returns tfn in the form of hash' do + expect(instance._to_hash(instance.tfn)).to eq(instance.tfn) + end + it 'returns phone_number_id in the form of hash' do + expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id) + end + it 'returns application_id in the form of hash' do + expect(instance._to_hash(instance.application_id)).to eq(instance.application_id) + end end end diff --git a/spec/models/message_status_spec.rb b/spec/models/message_status_spec.rb index 6ae3141..3902397 100644 --- a/spec/models/message_status_spec.rb +++ b/spec/models/message_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/message_status_webhook_spec.rb b/spec/models/message_status_webhook_spec.rb index 084d651..7d24f37 100644 --- a/spec/models/message_status_webhook_spec.rb +++ b/spec/models/message_status_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessageStatusWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,73 +35,100 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "message_id"' do it 'should work' do + instance.message_id = "TEST_STRING" expect(instance.message_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "direction"' do it 'should work' do + instance.direction = "TEST_STRING" expect(instance.direction).to eq("TEST_STRING") + + end end describe 'test attribute "application_id"' do it 'should work' do + instance.application_id = "TEST_STRING" expect(instance.application_id).to eq("TEST_STRING") + + end end @@ -153,93 +181,192 @@ end describe 'test attribute "phone_number_id"' do it 'should work' do + instance.phone_number_id = "TEST_STRING" expect(instance.phone_number_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageStatusWebhook' do expect { instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -248,29 +375,61 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -287,110 +446,248 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + + status: Freeclimb::MessageStatus::NEW, + phone_number_id: "TS", + + ) instance_2 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + + + status: Freeclimb::MessageStatus::NEW, + phone_number_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", - account_id: "TS", - message_id: "TS", - call_id: "TS", - from: "TS", + account_id: "TS", - to: "TS", - text: "TS", - direction: "TS", - application_id: "TS", + message_id: "TS", - status: Freeclimb::MessageStatus::NEW, - phone_number_id: "TS", - ) - instance_2 = Freeclimb::MessageStatusWebhook.new( - request_type: "ST", + call_id: "TS", - account_id: "ST", - message_id: "ST", - call_id: "ST", - from: "ST", + from: "TS", + + + + + to: "TS", + + + + + text: "TS", + + + + + direction: "TS", + + + + + application_id: "TS", + + + + + + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + + + ) + instance_2 = Freeclimb::MessageStatusWebhook.new( + + request_type: "ST", + + + + + account_id: "ST", + + + + + message_id: "ST", + + + + + call_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + - to: "ST", text: "ST", + + + direction: "ST", + + + application_id: "ST", + + + + status: nil, + phone_number_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -399,29 +696,61 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -430,54 +759,118 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) instance_2 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -486,88 +879,174 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of message_id' do expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of text' do expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) end + + it 'deserializes the data of direction' do expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String) end + + it 'deserializes the data of application_id' do expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of phone_number_id' do expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -576,83 +1055,189 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) instance_2 = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + message_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + text: "TS", + + + direction: "TS", + + + application_id: "TS", + + status: Freeclimb::MessageStatus::NEW, + + + phone_number_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -660,30 +1245,39 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MessageStatusWebhook.new( + request_type: "TS", + account_id: "TS", + message_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", + text: "TS", + direction: "TS", + application_id: "TS", @@ -691,6 +1285,7 @@ status: Freeclimb::MessageStatus::NEW, + phone_number_id: "TS", ) diff --git a/spec/models/messages_list_spec.rb b/spec/models/messages_list_spec.rb index d0e5de8..2ce5470 100644 --- a/spec/models/messages_list_spec.rb +++ b/spec/models/messages_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MessagesList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.messages = ["ELEMENT_1", "ELEMENT_2"] expect(instance.messages).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MessagesList' do expect { instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + messages: [], ) instance_2 = Freeclimb::MessagesList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + messages: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::MessagesList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + messages: [], ) instance_2 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + messages: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) instance_2 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of messages' do expect(instance._deserialize("Array", instance.messages)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) instance_2 = Freeclimb::MessagesList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + messages: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/mutable_resource_model_spec.rb b/spec/models/mutable_resource_model_spec.rb index 6f1f479..ea957e9 100644 --- a/spec/models/mutable_resource_model_spec.rb +++ b/spec/models/mutable_resource_model_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::MutableResourceModel # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,45 +67,80 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::MutableResourceModel' do expect { instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -104,14 +149,25 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.valid?).to eq(true) end @@ -128,24 +184,49 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + instance_1 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, ) @@ -154,24 +235,46 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + ) instance_2 = Freeclimb::MutableResourceModel.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -180,14 +283,25 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -196,24 +310,46 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -222,40 +358,70 @@ describe 'test method "_deserialize"' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -264,38 +430,74 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + instance_1 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::MutableResourceModel.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -303,12 +505,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::MutableResourceModel.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", diff --git a/spec/models/out_dial_api_connect_webhook_spec.rb b/spec/models/out_dial_api_connect_webhook_spec.rb index b366e60..32f255e 100644 --- a/spec/models/out_dial_api_connect_webhook_spec.rb +++ b/spec/models/out_dial_api_connect_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::OutDialApiConnectWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,106 +140,199 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::OutDialApiConnectWebhook' do expect { instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -232,28 +341,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -270,106 +407,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + parent_call_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -378,28 +636,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -408,52 +694,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -462,80 +804,156 @@ describe 'test method "_deserialize"' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -544,80 +962,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -625,18 +1136,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::OutDialApiConnectWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -648,12 +1164,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + parent_call_id: "TS", ) diff --git a/spec/models/out_dial_connect_webhook_spec.rb b/spec/models/out_dial_connect_webhook_spec.rb index 0335c66..de670aa 100644 --- a/spec/models/out_dial_connect_webhook_spec.rb +++ b/spec/models/out_dial_connect_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::OutDialConnectWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,106 +140,199 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::OutDialConnectWebhook' do expect { instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -232,28 +341,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -270,106 +407,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialConnectWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + parent_call_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -378,28 +636,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -408,52 +694,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -462,80 +804,156 @@ describe 'test method "_deserialize"' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -544,80 +962,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -625,18 +1136,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::OutDialConnectWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -648,12 +1164,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + parent_call_id: "TS", ) diff --git a/spec/models/out_dial_spec.rb b/spec/models/out_dial_spec.rb index e283cda..e96fb60 100644 --- a/spec/models/out_dial_spec.rb +++ b/spec/models/out_dial_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::OutDial # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,33 +29,45 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end describe 'test attribute "call_connect_url"' do it 'should work' do + instance.call_connect_url = "TEST_STRING" expect(instance.call_connect_url).to eq("TEST_STRING") + + end end describe 'test attribute "calling_number"' do it 'should work' do + instance.calling_number = "TEST_STRING" expect(instance.calling_number).to eq("TEST_STRING") + + end end describe 'test attribute "destination"' do it 'should work' do + instance.destination = "TEST_STRING" expect(instance.destination).to eq("TEST_STRING") + + end end @@ -71,25 +84,34 @@ end describe 'test attribute "if_machine_url"' do it 'should work' do + instance.if_machine_url = "TEST_STRING" expect(instance.if_machine_url).to eq("TEST_STRING") + + end end describe 'test attribute "send_digits"' do it 'should work' do + instance.send_digits = "TEST_STRING" expect(instance.send_digits).to eq("TEST_STRING") + + end end describe 'test attribute "status_callback_url"' do it 'should work' do + instance.status_callback_url = "TEST_STRING" expect(instance.status_callback_url).to eq("TEST_STRING") + + end end @@ -100,6 +122,8 @@ instance.timeout = 1 expect(instance.timeout).to eq(1) + + end end @@ -108,84 +132,167 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::OutDial' do expect { instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -194,27 +301,54 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -231,102 +365,219 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + + + if_machine: Freeclimb::IfMachine::REDIRECT, + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + + + if_machine: Freeclimb::IfMachine::REDIRECT, + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + + + timeout: 1, privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + + + if_machine: Freeclimb::IfMachine::REDIRECT, + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 2, + + privacy_mode: true, + + ) instance_2 = Freeclimb::OutDial.new( + action_url: "ST", + + + call_connect_url: "ST", + + + calling_number: "ST", + + + destination: "ST", + + + + if_machine: nil, + if_machine_url: "ST", + + + send_digits: "ST", + + + status_callback_url: "ST", + + timeout: 1, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -335,27 +586,54 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -364,50 +642,104 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -416,52 +748,99 @@ describe 'test method "_deserialize"' do instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of call_connect_url' do expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String) end + + it 'deserializes the data of calling_number' do expect(instance._deserialize("String", instance.calling_number)).to be_a_kind_of(String) end + + it 'deserializes the data of destination' do expect(instance._deserialize("String", instance.destination)).to be_a_kind_of(String) end + + + + it 'deserializes the data of if_machine_url' do expect(instance._deserialize("String", instance.if_machine_url)).to be_a_kind_of(String) end + + it 'deserializes the data of send_digits' do expect(instance._deserialize("String", instance.send_digits)).to be_a_kind_of(String) end + + it 'deserializes the data of status_callback_url' do expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String) end + + it 'deserializes the data of timeout' do expect(instance._deserialize("Integer", instance.timeout)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -470,27 +849,54 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -499,77 +905,167 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::OutDial.new( + action_url: "TS", + + + call_connect_url: "TS", + + + calling_number: "TS", + + + destination: "TS", + + if_machine: Freeclimb::IfMachine::REDIRECT, + + + if_machine_url: "TS", + + + send_digits: "TS", + + + status_callback_url: "TS", + + timeout: 1, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -577,15 +1073,19 @@ describe 'test method "_to_hash"' do instance = Freeclimb::OutDial.new( + action_url: "TS", + call_connect_url: "TS", + calling_number: "TS", + destination: "TS", @@ -593,12 +1093,15 @@ if_machine: Freeclimb::IfMachine::REDIRECT, + if_machine_url: "TS", + send_digits: "TS", + status_callback_url: "TS", diff --git a/spec/models/out_dial_start_webhook_spec.rb b/spec/models/out_dial_start_webhook_spec.rb index 0554171..5f49a32 100644 --- a/spec/models/out_dial_start_webhook_spec.rb +++ b/spec/models/out_dial_start_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::OutDialStartWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,120 +140,225 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "dial_call_id"' do it 'should work' do + instance.dial_call_id = "TEST_STRING" expect(instance.dial_call_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::OutDialStartWebhook' do expect { instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -246,30 +367,61 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -286,113 +438,247 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", - call_id: "TS", - from: "TS", - to: "TS", + call_id: "TS", - call_status: Freeclimb::CallStatus::QUEUED, - direction: Freeclimb::CallDirection::INBOUND, - conference_id: "TS", + from: "TS", - queue_id: "TS", - dial_call_id: "TS", - parent_call_id: "TS", - ) - instance_2 = Freeclimb::OutDialStartWebhook.new( - request_type: "ST", + to: "TS", - account_id: "ST", - call_id: "ST", - from: "ST", - to: "ST", - call_status: nil, + call_status: Freeclimb::CallStatus::QUEUED, - direction: nil, - conference_id: "ST", - queue_id: "ST", + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + + + queue_id: "TS", + + + + + dial_call_id: "TS", + + + + + parent_call_id: "TS", + + + + ) + instance_2 = Freeclimb::OutDialStartWebhook.new( + + request_type: "ST", + + + + + account_id: "ST", + + + + + call_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + + + + + + call_status: nil, + + + + + direction: nil, + + + conference_id: "ST", + + + + + queue_id: "ST", + + + + + dial_call_id: "ST", + + + + + parent_call_id: "ST", - dial_call_id: "ST", - parent_call_id: "ST", ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -402,30 +688,61 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -434,56 +751,118 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -492,87 +871,171 @@ describe 'test method "_deserialize"' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of dial_call_id' do expect(instance._deserialize("String", instance.dial_call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -581,86 +1044,189 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + dial_call_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -668,18 +1234,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::OutDialStartWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -691,15 +1262,19 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + dial_call_id: "TS", + parent_call_id: "TS", ) diff --git a/spec/models/pagination_model_spec.rb b/spec/models/pagination_model_spec.rb index 8908c53..ae69614 100644 --- a/spec/models/pagination_model_spec.rb +++ b/spec/models/pagination_model_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::PaginationModel # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,36 +115,66 @@ expect { instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::PaginationModel' do expect { instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -136,18 +182,33 @@ expect { instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -158,18 +219,33 @@ instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -186,38 +262,74 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) instance_2 = Freeclimb::PaginationModel.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -226,34 +338,64 @@ instance_1 = Freeclimb::PaginationModel.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + ) instance_2 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -264,18 +406,33 @@ instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -286,34 +443,64 @@ instance_1 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) instance_2 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -324,40 +511,69 @@ instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do @@ -365,18 +581,33 @@ instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -387,54 +618,105 @@ instance = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) instance_2 = Freeclimb::PaginationModel.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -460,6 +742,7 @@ page_size: 1, + next_page_uri: "TS", ) diff --git a/spec/models/park_spec.rb b/spec/models/park_spec.rb index d392956..2a00c44 100644 --- a/spec/models/park_spec.rb +++ b/spec/models/park_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Park # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,58 +29,94 @@ describe 'test attribute "wait_url"' do it 'should work' do + instance.wait_url = "TEST_STRING" expect(instance.wait_url).to eq("TEST_STRING") + + end end describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Park' do expect { instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -88,12 +125,21 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -110,42 +156,80 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Park.new( + wait_url: "ST", + + + action_url: "ST", + + + notification_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -154,12 +238,21 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -168,20 +261,38 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -190,33 +301,57 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) it 'deserializes the data of wait_url' do expect(instance._deserialize("String", instance.wait_url)).to be_a_kind_of(String) end + + it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of notification_url' do expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -225,32 +360,61 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Park.new( + wait_url: "TS", + + + action_url: "TS", + + + notification_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -258,12 +422,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Park.new( + wait_url: "TS", + action_url: "TS", + notification_url: "TS", ) diff --git a/spec/models/pause_spec.rb b/spec/models/pause_spec.rb index bdfcfb8..a3d7369 100644 --- a/spec/models/pause_spec.rb +++ b/spec/models/pause_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Pause # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.length = 1 expect(instance.length).to eq(1) + + end end @@ -41,12 +44,16 @@ expect { instance = Freeclimb::Pause.new( length: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Pause' do expect { instance = Freeclimb::Pause.new( length: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -54,6 +61,8 @@ expect { instance = Freeclimb::Pause.new( length: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -64,6 +73,8 @@ instance = Freeclimb::Pause.new( length: 1, + + ) expect(instance.valid?).to eq(true) end @@ -80,12 +91,16 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::Pause.new( length: 1, + + ) instance_2 = Freeclimb::Pause.new( + + length: 1, ) @@ -96,10 +111,14 @@ instance_1 = Freeclimb::Pause.new( length: 2, + + ) instance_2 = Freeclimb::Pause.new( length: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -110,6 +129,8 @@ instance = Freeclimb::Pause.new( length: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -120,10 +141,14 @@ instance_1 = Freeclimb::Pause.new( length: 1, + + ) instance_2 = Freeclimb::Pause.new( length: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -134,10 +159,14 @@ instance = Freeclimb::Pause.new( length: 1, + + ) it 'deserializes the data of length' do expect(instance._deserialize("Integer", instance.length)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do @@ -145,6 +174,8 @@ instance = Freeclimb::Pause.new( length: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -155,18 +186,24 @@ instance = Freeclimb::Pause.new( length: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::Pause.new( length: 1, + + ) instance_2 = Freeclimb::Pause.new( length: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/percl_command_spec.rb b/spec/models/percl_command_spec.rb index fc2dd61..bfceb49 100644 --- a/spec/models/percl_command_spec.rb +++ b/spec/models/percl_command_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::PerclCommand # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -30,21 +31,30 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::PerclCommand.new( + command: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::PerclCommand' do expect { instance = Freeclimb::PerclCommand.new( + command: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::PerclCommand.new( + command: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -53,8 +63,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -71,26 +84,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::PerclCommand.new( + command: "TS", + + ) instance_2 = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::PerclCommand.new( + command: "TS", + + ) instance_2 = Freeclimb::PerclCommand.new( + command: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -99,8 +124,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -109,12 +137,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::PerclCommand.new( + command: "TS", + + ) instance_2 = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -123,19 +157,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::PerclCommand.new( + command: "TS", + + ) it 'deserializes the data of command' do expect(instance._deserialize("String", instance.command)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -144,20 +186,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::PerclCommand.new( + command: "TS", + + ) instance_2 = Freeclimb::PerclCommand.new( + command: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -165,6 +216,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::PerclCommand.new( + command: "TS", ) diff --git a/spec/models/percl_script_spec.rb b/spec/models/percl_script_spec.rb index 6e0bc34..6c41058 100644 --- a/spec/models/percl_script_spec.rb +++ b/spec/models/percl_script_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::PerclScript # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.commands = ["ELEMENT_1", "ELEMENT_2"] expect(instance.commands).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -39,12 +42,16 @@ expect { instance = Freeclimb::PerclScript.new( commands: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::PerclScript' do expect { instance = Freeclimb::PerclScript.new( commands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -52,6 +59,8 @@ expect { instance = Freeclimb::PerclScript.new( commands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -62,6 +71,8 @@ instance = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -78,12 +89,16 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::PerclScript.new( + + commands: [], ) instance_2 = Freeclimb::PerclScript.new( + + commands: [], ) @@ -92,10 +107,14 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::PerclScript.new( + + commands: [], ) instance_2 = Freeclimb::PerclScript.new( + + commands: nil, ) @@ -108,6 +127,8 @@ instance = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -118,10 +139,14 @@ instance_1 = Freeclimb::PerclScript.new( commands: Array.new(), + + ) instance_2 = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -132,10 +157,14 @@ instance = Freeclimb::PerclScript.new( commands: Array.new(), + + ) it 'deserializes the data of commands' do expect(instance._deserialize("Array", instance.commands)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -143,6 +172,8 @@ instance = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -153,18 +184,24 @@ instance = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::PerclScript.new( commands: Array.new(), + + ) instance_2 = Freeclimb::PerclScript.new( commands: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/play_beep_spec.rb b/spec/models/play_beep_spec.rb index a382304..57640b4 100644 --- a/spec/models/play_beep_spec.rb +++ b/spec/models/play_beep_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::PlayBeep # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/play_early_media_spec.rb b/spec/models/play_early_media_spec.rb index 77edda3..e304eef 100644 --- a/spec/models/play_early_media_spec.rb +++ b/spec/models/play_early_media_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::PlayEarlyMedia # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "file"' do it 'should work' do + instance.file = "TEST_STRING" expect(instance.file).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::PlayEarlyMedia' do expect { instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) instance_2 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) instance_2 = Freeclimb::PlayEarlyMedia.new( + file: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) instance_2 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) it 'deserializes the data of file' do expect(instance._deserialize("String", instance.file)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) instance_2 = Freeclimb::PlayEarlyMedia.new( + file: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::PlayEarlyMedia.new( + file: "TS", ) diff --git a/spec/models/play_spec.rb b/spec/models/play_spec.rb index 8c0dbf2..5d4f979 100644 --- a/spec/models/play_spec.rb +++ b/spec/models/play_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Play # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "file"' do it 'should work' do + instance.file = "TEST_STRING" expect(instance.file).to eq("TEST_STRING") + + end end @@ -41,6 +45,8 @@ instance.loop = 1 expect(instance.loop).to eq(1) + + end end @@ -49,39 +55,62 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Play' do expect { instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -90,12 +119,19 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -112,42 +148,72 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Play.new( + file: "TS", + + + + loop: 1, privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Play.new( + file: "TS", + + loop: 2, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Play.new( + file: "ST", + + loop: 1, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -156,12 +222,19 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -170,20 +243,34 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -192,19 +279,32 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) it 'deserializes the data of file' do expect(instance._deserialize("String", instance.file)).to be_a_kind_of(String) end + + it 'deserializes the data of loop' do expect(instance._deserialize("Integer", instance.loop)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -213,12 +313,19 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -227,32 +334,55 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Play.new( + file: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -260,6 +390,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Play.new( + file: "TS", diff --git a/spec/models/queue_list_spec.rb b/spec/models/queue_list_spec.rb index 17320fb..1cc4dfd 100644 --- a/spec/models/queue_list_spec.rb +++ b/spec/models/queue_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.queues = ["ELEMENT_1", "ELEMENT_2"] expect(instance.queues).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueList' do expect { instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + queues: [], ) instance_2 = Freeclimb::QueueList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + queues: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::QueueList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + queues: [], ) instance_2 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + queues: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) instance_2 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of queues' do expect(instance._deserialize("Array", instance.queues)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) instance_2 = Freeclimb::QueueList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queues: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/queue_member_list_spec.rb b/spec/models/queue_member_list_spec.rb index 9ca1971..7c79528 100644 --- a/spec/models/queue_member_list_spec.rb +++ b/spec/models/queue_member_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueMemberList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.queue_members = ["ELEMENT_1", "ELEMENT_2"] expect(instance.queue_members).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueMemberList' do expect { instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + queue_members: [], ) instance_2 = Freeclimb::QueueMemberList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + queue_members: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::QueueMemberList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + queue_members: [], ) instance_2 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + queue_members: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) instance_2 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_members' do expect(instance._deserialize("Array", instance.queue_members)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) instance_2 = Freeclimb::QueueMemberList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + queue_members: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/queue_member_spec.rb b/spec/models/queue_member_spec.rb index fa95fab..b90baa9 100644 --- a/spec/models/queue_member_spec.rb +++ b/spec/models/queue_member_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueMember # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,17 +29,23 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end @@ -49,6 +56,8 @@ instance.wait_time = 1 expect(instance.wait_time).to eq(1) + + end end @@ -59,59 +68,103 @@ instance.position = 1 expect(instance.position).to eq(1) + + end end describe 'test attribute "date_enqueued"' do it 'should work' do + instance.date_enqueued = "TEST_STRING" expect(instance.date_enqueued).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueMember' do expect { instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -120,16 +173,29 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -146,58 +212,114 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + instance_1 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) instance_2 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + + + wait_time: 1, + + position: 1, + date_enqueued: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 2, + + position: 2, + + + date_enqueued: "TS", + + ) instance_2 = Freeclimb::QueueMember.new( + uri: "ST", + + + call_id: "ST", + + wait_time: 1, + + position: 1, + + + date_enqueued: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -206,16 +328,29 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -224,28 +359,54 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) instance_2 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -254,47 +415,83 @@ describe 'test method "_deserialize"' do instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of wait_time' do expect(instance._deserialize("Integer", instance.wait_time)).to be_a_kind_of(Integer) end + + it 'deserializes the data of position' do expect(instance._deserialize("Integer", instance.position)).to be_a_kind_of(Integer) end + + it 'deserializes the data of date_enqueued' do expect(instance._deserialize("String", instance.date_enqueued)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -303,44 +500,87 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + instance_1 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) instance_2 = Freeclimb::QueueMember.new( + uri: "TS", + + + call_id: "TS", + + wait_time: 1, + + position: 1, + + + date_enqueued: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -348,9 +588,11 @@ describe 'test method "_to_hash"' do instance = Freeclimb::QueueMember.new( + uri: "TS", + call_id: "TS", @@ -360,6 +602,7 @@ position: 1, + date_enqueued: "TS", ) diff --git a/spec/models/queue_request_spec.rb b/spec/models/queue_request_spec.rb index b692c1f..0b110fc 100644 --- a/spec/models/queue_request_spec.rb +++ b/spec/models/queue_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end @@ -41,33 +45,50 @@ instance.max_size = 1 expect(instance.max_size).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueRequest' do expect { instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -76,10 +97,15 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance.valid?).to eq(true) end @@ -96,16 +122,27 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + instance_1 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) instance_2 = Freeclimb::QueueRequest.new( + _alias: "TS", + + + + max_size: 1, ) @@ -114,16 +151,26 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 2, + + ) instance_2 = Freeclimb::QueueRequest.new( + _alias: "ST", + + max_size: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -132,10 +179,15 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -144,16 +196,26 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) instance_2 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -162,26 +224,40 @@ describe 'test method "_deserialize"' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of max_size' do expect(instance._deserialize("Integer", instance.max_size)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -190,26 +266,42 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + instance_1 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) instance_2 = Freeclimb::QueueRequest.new( + _alias: "TS", + + max_size: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -217,6 +309,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::QueueRequest.new( + _alias: "TS", diff --git a/spec/models/queue_result_spec.rb b/spec/models/queue_result_spec.rb index 11deb52..05af298 100644 --- a/spec/models/queue_result_spec.rb +++ b/spec/models/queue_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,30 +67,41 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end @@ -91,6 +112,8 @@ instance.max_size = 1 expect(instance.max_size).to eq(1) + + end end @@ -101,6 +124,8 @@ instance.current_size = 1 expect(instance.current_size).to eq(1) + + end end @@ -111,6 +136,8 @@ instance.average_queue_removal_time = 1 expect(instance.average_queue_removal_time).to eq(1) + + end end @@ -120,86 +147,178 @@ testObject = Object.new() instance.subresource_uris = testObject expect(instance.subresource_uris).to eq(testObject) + + + instance.subresource_uris = Object.new + expect(instance.subresource_uris).to be_instance_of(Object) + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueResult' do expect { instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, invalid_attribute: true )}.to raise_error(ArgumentError) @@ -209,26 +328,55 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), ) @@ -247,53 +395,123 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + obj_Object = Object.new() + instance_1 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: obj, + + + + + subresource_uris: obj_Object, + ) instance_2 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: obj, + + + subresource_uris: obj_Object, + ) expect(instance_1.eql?(instance_2)).to eq(true) @@ -301,51 +519,110 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 2, + + current_size: 2, + + average_queue_removal_time: 2, + + + + + subresource_uris: Object.new(), + subresource_uris: Object.new(), ) instance_2 = Freeclimb::QueueResult.new( + uri: "ST", - date_created: "ST", - date_updated: "ST", - revision: 1, - account_id: "ST", + date_created: "ST", + + + + + date_updated: "ST", + + + + revision: 1, + + + + + account_id: "ST", + + + + + queue_id: "ST", + + + + + _alias: "ST", - queue_id: "ST", - _alias: "ST", max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: nil, + + + + + subresource_uris: Object.new(), + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -355,26 +632,55 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), ) @@ -385,50 +691,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), ) instance_2 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), ) @@ -439,88 +803,169 @@ describe 'test method "_deserialize"' do instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: Object.new(), ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + it 'deserializes the data of max_size' do expect(instance._deserialize("Integer", instance.max_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of current_size' do expect(instance._deserialize("Integer", instance.current_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of average_queue_removal_time' do expect(instance._deserialize("Integer", instance.average_queue_removal_time)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of subresource_uris' do expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object) end + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_s).to eq(instance.to_hash.to_s) @@ -530,78 +975,177 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, - subresource_uris: Object.new(), + + + + + + subresource_uris: Object.new, ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do + + + + + + + + + + + obj = Object.new() + instance_1 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: obj, ) instance_2 = Freeclimb::QueueResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + account_id: "TS", + + + queue_id: "TS", + + + _alias: "TS", + + max_size: 1, + + current_size: 1, + + average_queue_removal_time: 1, + + + + + subresource_uris: obj, ) @@ -611,24 +1155,30 @@ describe 'test method "_to_hash"' do instance = Freeclimb::QueueResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + account_id: "TS", + queue_id: "TS", + _alias: "TS", @@ -641,7 +1191,6 @@ average_queue_removal_time: 1, - subresource_uris: Object.new(), ) it 'returns uri in the form of hash' do diff --git a/spec/models/queue_result_status_spec.rb b/spec/models/queue_result_status_spec.rb index 1e01c6b..8db7b9b 100644 --- a/spec/models/queue_result_status_spec.rb +++ b/spec/models/queue_result_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueResultStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/queue_wait_webhook_spec.rb b/spec/models/queue_wait_webhook_spec.rb index 26843ac..642646d 100644 --- a/spec/models/queue_wait_webhook_spec.rb +++ b/spec/models/queue_wait_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::QueueWaitWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,25 +140,34 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_position"' do it 'should work' do + instance.queue_position = "TEST_STRING" expect(instance.queue_position).to eq("TEST_STRING") + + end end @@ -153,6 +178,8 @@ instance.queue_time = 1 expect(instance.queue_time).to eq(1) + + end end @@ -163,99 +190,197 @@ instance.current_queue_size = 1 expect(instance.current_queue_size).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::QueueWaitWebhook' do expect { instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -264,32 +389,64 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance.valid?).to eq(true) end @@ -306,60 +463,135 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + instance_1 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) instance_2 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + + + queue_time: 1, + + current_queue_size: 1, ) @@ -368,60 +600,124 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", - account_id: "TS", - call_id: "TS", - from: "TS", - to: "TS", + account_id: "TS", - call_status: Freeclimb::CallStatus::QUEUED, - direction: Freeclimb::CallDirection::INBOUND, + call_id: "TS", - conference_id: "TS", - queue_id: "TS", - queue_position: "TS", - queue_time: 2, + from: "TS", - current_queue_size: 2, - ) - instance_2 = Freeclimb::QueueWaitWebhook.new( - request_type: "ST", - account_id: "ST", - call_id: "ST", + to: "TS", - from: "ST", - to: "ST", - call_status: nil, + + + call_status: Freeclimb::CallStatus::QUEUED, + + + + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + + + queue_id: "TS", + + + + + queue_position: "TS", + + + + queue_time: 2, + + + + current_queue_size: 2, + + + + ) + instance_2 = Freeclimb::QueueWaitWebhook.new( + + request_type: "ST", + + + + + account_id: "ST", + + + + + call_id: "ST", + + + + + from: "ST", + + + + + to: "ST", + + + + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + queue_position: "ST", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -430,32 +726,64 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -464,60 +792,124 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) instance_2 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -526,94 +918,182 @@ describe 'test method "_deserialize"' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_position' do expect(instance._deserialize("String", instance.queue_position)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_time' do expect(instance._deserialize("Integer", instance.queue_time)).to be_a_kind_of(Integer) end + + it 'deserializes the data of current_queue_size' do expect(instance._deserialize("Integer", instance.current_queue_size)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -622,92 +1102,199 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + instance_1 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) instance_2 = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + queue_position: "TS", + + queue_time: 1, + + current_queue_size: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -715,18 +1302,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::QueueWaitWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -738,12 +1330,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + queue_position: "TS", diff --git a/spec/models/record_utterance_spec.rb b/spec/models/record_utterance_spec.rb index 7a69e64..8810ae3 100644 --- a/spec/models/record_utterance_spec.rb +++ b/spec/models/record_utterance_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RecordUtterance # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end @@ -41,14 +45,19 @@ instance.silence_timeout_ms = 1 expect(instance.silence_timeout_ms).to eq(1) + + end end describe 'test attribute "finish_on_key"' do it 'should work' do + instance.finish_on_key = "TEST_STRING" expect(instance.finish_on_key).to eq("TEST_STRING") + + end end @@ -59,6 +68,8 @@ instance.max_length_sec = 1 expect(instance.max_length_sec).to eq(1) + + end end @@ -67,6 +78,8 @@ instance.play_beep = false expect(instance.play_beep).to eq(false) + + end end @@ -75,6 +88,8 @@ instance.auto_start = false expect(instance.auto_start).to eq(false) + + end end @@ -83,63 +98,113 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordUtterance' do expect { instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +213,36 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -178,74 +259,144 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + + + silence_timeout_ms: 1, + finish_on_key: "TS", + + + + max_length_sec: 1, play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 2, + + + finish_on_key: "TS", + + max_length_sec: 2, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordUtterance.new( + action_url: "ST", + + silence_timeout_ms: 1, + + + finish_on_key: "ST", + + max_length_sec: 1, + + play_beep: false, + + auto_start: false, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -254,20 +405,36 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -276,36 +443,68 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -314,39 +513,69 @@ describe 'test method "_deserialize"' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + it 'deserializes the data of silence_timeout_ms' do expect(instance._deserialize("Integer", instance.silence_timeout_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of finish_on_key' do expect(instance._deserialize("String", instance.finish_on_key)).to be_a_kind_of(String) end + + it 'deserializes the data of max_length_sec' do expect(instance._deserialize("Integer", instance.max_length_sec)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of play_beep' do expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of auto_start' do expect(instance._deserialize("Boolean", instance.auto_start)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -355,20 +584,36 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -377,56 +622,110 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordUtterance.new( + action_url: "TS", + + silence_timeout_ms: 1, + + + finish_on_key: "TS", + + max_length_sec: 1, + + play_beep: true, + + auto_start: true, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -434,12 +733,14 @@ describe 'test method "_to_hash"' do instance = Freeclimb::RecordUtterance.new( + action_url: "TS", silence_timeout_ms: 1, + finish_on_key: "TS", diff --git a/spec/models/record_utterance_term_reason_spec.rb b/spec/models/record_utterance_term_reason_spec.rb index 46e51e7..82f68b8 100644 --- a/spec/models/record_utterance_term_reason_spec.rb +++ b/spec/models/record_utterance_term_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RecordUtteranceTermReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/record_webhook_spec.rb b/spec/models/record_webhook_spec.rb index 110f200..acbfdfe 100644 --- a/spec/models/record_webhook_spec.rb +++ b/spec/models/record_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RecordWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,49 +140,67 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end describe 'test attribute "recording_size"' do it 'should work' do + instance.recording_size = "TEST_STRING" expect(instance.recording_size).to eq("TEST_STRING") + + end end describe 'test attribute "recording_format"' do it 'should work' do + instance.recording_format = "TEST_STRING" expect(instance.recording_format).to eq("TEST_STRING") + + end end @@ -177,6 +211,8 @@ instance.recording_duration_sec = 1 expect(instance.recording_duration_sec).to eq(1) + + end end @@ -201,9 +237,12 @@ end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end @@ -212,132 +251,272 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordWebhook' do expect { instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -346,43 +525,89 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -399,166 +624,366 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::RecordWebhook.new( + request_type: "TS", - account_id: "TS", - call_id: "TS", - from: "TS", - to: "TS", + account_id: "TS", - call_status: Freeclimb::CallStatus::QUEUED, - direction: Freeclimb::CallDirection::INBOUND, + call_id: "TS", - conference_id: "TS", - queue_id: "TS", - recording_id: "TS", - recording_url: "TS", + from: "TS", + + + + + to: "TS", + + + + + + + call_status: Freeclimb::CallStatus::QUEUED, + + + + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + + + queue_id: "TS", + + + + + recording_id: "TS", + + + + + recording_url: "TS", + + + + + recording_size: "TS", + + - recording_size: "TS", recording_format: "TS", + + recording_duration_sec: 1, + + + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + parent_call_id: "TS", + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 2, + + + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + parent_call_id: "TS", + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + recording_id: "ST", + + + recording_url: "ST", + + + recording_size: "ST", + + + recording_format: "ST", + + recording_duration_sec: 1, + + + + term_reason: nil, + parent_call_id: "ST", + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -567,43 +992,89 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -612,82 +1083,174 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -696,83 +1259,163 @@ describe 'test method "_deserialize"' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_size' do expect(instance._deserialize("String", instance.recording_size)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_format' do expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_sec' do expect(instance._deserialize("Integer", instance.recording_duration_sec)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -781,43 +1424,89 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -826,125 +1515,279 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) instance_2 = Freeclimb::RecordWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + recording_size: "TS", + + + recording_format: "TS", + + recording_duration_sec: 1, + + term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + parent_call_id: "TS", + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -952,18 +1795,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::RecordWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -975,21 +1823,27 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + recording_id: "TS", + recording_url: "TS", + recording_size: "TS", + recording_format: "TS", @@ -1000,6 +1854,7 @@ term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + parent_call_id: "TS", diff --git a/spec/models/recording_list_spec.rb b/spec/models/recording_list_spec.rb index 2d01793..100c451 100644 --- a/spec/models/recording_list_spec.rb +++ b/spec/models/recording_list_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RecordingList # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.recordings = ["ELEMENT_1", "ELEMENT_2"] expect(instance.recordings).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordingList' do expect { instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + recordings: [], ) instance_2 = Freeclimb::RecordingList.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + recordings: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::RecordingList.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + recordings: [], ) instance_2 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + recordings: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) instance_2 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of recordings' do expect(instance._deserialize("Array", instance.recordings)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) instance_2 = Freeclimb::RecordingList.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + recordings: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/recording_result_spec.rb b/spec/models/recording_result_spec.rb index eb984d6..eb9ea2b 100644 --- a/spec/models/recording_result_spec.rb +++ b/spec/models/recording_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RecordingResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "uri"' do it 'should work' do + instance.uri = "TEST_STRING" expect(instance.uri).to eq("TEST_STRING") + + end end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -57,30 +67,41 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end @@ -91,83 +112,163 @@ instance.duration_sec = 1 expect(instance.duration_sec).to eq(1) + + end end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RecordingResult' do expect { instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -176,24 +277,49 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -210,90 +336,198 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) instance_2 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + + duration_sec: 1, + conference_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 2, + + + conference_id: "TS", + + ) instance_2 = Freeclimb::RecordingResult.new( + uri: "ST", + + + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + + recording_id: "ST", + + + account_id: "ST", + + + call_id: "ST", + + duration_sec: 1, + + + conference_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -302,24 +536,49 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -328,44 +587,94 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) instance_2 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -374,75 +683,143 @@ describe 'test method "_deserialize"' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) it 'deserializes the data of uri' do expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String) end + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of duration_sec' do expect(instance._deserialize("Integer", instance.duration_sec)).to be_a_kind_of(Integer) end + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -451,68 +828,151 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + instance_1 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) instance_2 = Freeclimb::RecordingResult.new( + uri: "TS", + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + + recording_id: "TS", + + + account_id: "TS", + + + call_id: "TS", + + duration_sec: 1, + + + conference_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -520,30 +980,37 @@ describe 'test method "_to_hash"' do instance = Freeclimb::RecordingResult.new( + uri: "TS", + date_created: "TS", + date_updated: "TS", revision: 1, + recording_id: "TS", + account_id: "TS", + call_id: "TS", duration_sec: 1, + conference_id: "TS", ) diff --git a/spec/models/redirect_spec.rb b/spec/models/redirect_spec.rb index 7c813db..7be9249 100644 --- a/spec/models/redirect_spec.rb +++ b/spec/models/redirect_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Redirect # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Redirect.new( + action_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Redirect' do expect { instance = Freeclimb::Redirect.new( + action_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Redirect.new( + action_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::Redirect.new( + action_url: "TS", + + ) instance_2 = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Redirect.new( + action_url: "TS", + + ) instance_2 = Freeclimb::Redirect.new( + action_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Redirect.new( + action_url: "TS", + + ) instance_2 = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Redirect.new( + action_url: "TS", + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::Redirect.new( + action_url: "TS", + + ) instance_2 = Freeclimb::Redirect.new( + action_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Redirect.new( + action_url: "TS", ) diff --git a/spec/models/redirect_webhook_spec.rb b/spec/models/redirect_webhook_spec.rb index a06b94a..b6e1ea2 100644 --- a/spec/models/redirect_webhook_spec.rb +++ b/spec/models/redirect_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RedirectWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,106 +140,199 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end describe 'test attribute "parent_call_id"' do it 'should work' do + instance.parent_call_id = "TEST_STRING" expect(instance.parent_call_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RedirectWebhook' do expect { instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -232,28 +341,56 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -270,106 +407,227 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::RedirectWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", + + + to: "ST", + + + + call_status: nil, + + direction: nil, + conference_id: "ST", + + + queue_id: "ST", + + + parent_call_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -378,28 +636,56 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -408,52 +694,108 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -462,80 +804,156 @@ describe 'test method "_deserialize"' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + it 'deserializes the data of parent_call_id' do expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -544,80 +962,173 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + instance_1 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) instance_2 = Freeclimb::RedirectWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + + parent_call_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -625,18 +1136,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::RedirectWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -648,12 +1164,15 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", + parent_call_id: "TS", ) diff --git a/spec/models/reject_spec.rb b/spec/models/reject_spec.rb index 3999a7b..a9c2cef 100644 --- a/spec/models/reject_spec.rb +++ b/spec/models/reject_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Reject # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "reason"' do it 'should work' do + instance.reason = "TEST_STRING" expect(instance.reason).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Reject.new( + reason: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Reject' do expect { instance = Freeclimb::Reject.new( + reason: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Reject.new( + reason: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::Reject.new( + reason: "TS", + + ) instance_2 = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Reject.new( + reason: "TS", + + ) instance_2 = Freeclimb::Reject.new( + reason: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Reject.new( + reason: "TS", + + ) instance_2 = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Reject.new( + reason: "TS", + + ) it 'deserializes the data of reason' do expect(instance._deserialize("String", instance.reason)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::Reject.new( + reason: "TS", + + ) instance_2 = Freeclimb::Reject.new( + reason: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Reject.new( + reason: "TS", ) diff --git a/spec/models/remove_from_conference_spec.rb b/spec/models/remove_from_conference_spec.rb index af0c4c9..67b122a 100644 --- a/spec/models/remove_from_conference_spec.rb +++ b/spec/models/remove_from_conference_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RemoveFromConference # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/remove_from_queue_notification_webhook_spec.rb b/spec/models/remove_from_queue_notification_webhook_spec.rb index ad4134f..2055411 100644 --- a/spec/models/remove_from_queue_notification_webhook_spec.rb +++ b/spec/models/remove_from_queue_notification_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RemoveFromQueueNotificationWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,41 +35,56 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end @@ -124,17 +140,23 @@ end describe 'test attribute "conference_id"' do it 'should work' do + instance.conference_id = "TEST_STRING" expect(instance.conference_id).to eq("TEST_STRING") + + end end describe 'test attribute "queue_id"' do it 'should work' do + instance.queue_id = "TEST_STRING" expect(instance.queue_id).to eq("TEST_STRING") + + end end @@ -164,96 +186,185 @@ instance.queue_time = 1 expect(instance.queue_time).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::RemoveFromQueueNotificationWebhook' do expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -262,31 +373,60 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance.valid?).to eq(true) end @@ -303,58 +443,126 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, queue_time: 1, + + ) instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, ) @@ -363,57 +571,115 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + + + queue_id: "TS", + + + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, queue_time: 2, + + ) instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", - to: "ST", - call_status: nil, + to: "ST", - direction: nil, - conference_id: "ST", - queue_id: "ST", - queue_result: nil, - queue_time: 1, + call_status: nil, + + + + + direction: nil, + + + conference_id: "ST", + + + + + queue_id: "ST", + + + + + + + queue_result: nil, + + queue_time: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -423,31 +689,60 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -456,58 +751,116 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -516,86 +869,166 @@ describe 'test method "_deserialize"' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + + + + + it 'deserializes the data of conference_id' do expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String) end + + it 'deserializes the data of queue_id' do expect(instance._deserialize("String", instance.queue_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of queue_time' do expect(instance._deserialize("Integer", instance.queue_time)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -604,89 +1037,186 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) instance_2 = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + call_status: Freeclimb::CallStatus::QUEUED, + + direction: Freeclimb::CallDirection::INBOUND, + + + conference_id: "TS", + + + queue_id: "TS", + + queue_result: Freeclimb::QueueResultStatus::QUEUE_FULL, + + queue_time: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -694,18 +1224,23 @@ describe 'test method "_to_hash"' do instance = Freeclimb::RemoveFromQueueNotificationWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", @@ -717,9 +1252,11 @@ direction: Freeclimb::CallDirection::INBOUND, + conference_id: "TS", + queue_id: "TS", diff --git a/spec/models/request_type_spec.rb b/spec/models/request_type_spec.rb index a0b21f9..f573f98 100644 --- a/spec/models/request_type_spec.rb +++ b/spec/models/request_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::RequestType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/say_spec.rb b/spec/models/say_spec.rb index e6305e3..b00e24d 100644 --- a/spec/models/say_spec.rb +++ b/spec/models/say_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Say # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,17 +29,23 @@ describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "language"' do it 'should work' do + instance.language = "TEST_STRING" expect(instance.language).to eq("TEST_STRING") + + end end @@ -49,6 +56,8 @@ instance.loop = 1 expect(instance.loop).to eq(1) + + end end @@ -57,45 +66,77 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Say' do expect { instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -104,14 +145,24 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -128,50 +179,93 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + instance_1 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + + + loop: 1, privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 2, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Say.new( + text: "ST", + + + language: "ST", + + loop: 1, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -180,14 +274,24 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -196,24 +300,44 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -222,24 +346,42 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) it 'deserializes the data of text' do expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) end + + it 'deserializes the data of language' do expect(instance._deserialize("String", instance.language)).to be_a_kind_of(String) end + + it 'deserializes the data of loop' do expect(instance._deserialize("Integer", instance.loop)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -248,14 +390,24 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -264,38 +416,71 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + instance_1 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::Say.new( + text: "TS", + + + language: "TS", + + loop: 1, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -303,9 +488,11 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Say.new( + text: "TS", + language: "TS", diff --git a/spec/models/send_digits_spec.rb b/spec/models/send_digits_spec.rb index 87cd332..050a725 100644 --- a/spec/models/send_digits_spec.rb +++ b/spec/models/send_digits_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SendDigits # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "digits"' do it 'should work' do + instance.digits = "TEST_STRING" expect(instance.digits).to eq("TEST_STRING") + + end end @@ -41,6 +45,8 @@ instance.pause_ms = 1 expect(instance.pause_ms).to eq(1) + + end end @@ -49,39 +55,62 @@ instance.privacy_mode = false expect(instance.privacy_mode).to eq(false) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SendDigits' do expect { instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -90,12 +119,19 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance.valid?).to eq(true) end @@ -112,42 +148,72 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::SendDigits.new( + digits: "TS", + + + + pause_ms: 1, privacy_mode: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 2, + + privacy_mode: true, + + ) instance_2 = Freeclimb::SendDigits.new( + digits: "ST", + + pause_ms: 1, + + privacy_mode: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -156,12 +222,19 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -170,20 +243,34 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -192,19 +279,32 @@ describe 'test method "_deserialize"' do instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) it 'deserializes the data of digits' do expect(instance._deserialize("String", instance.digits)).to be_a_kind_of(String) end + + it 'deserializes the data of pause_ms' do expect(instance._deserialize("Integer", instance.pause_ms)).to be_a_kind_of(Integer) end + + + + it 'deserializes the data of privacy_mode' do expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass) end @@ -213,12 +313,19 @@ describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -227,32 +334,55 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) instance_2 = Freeclimb::SendDigits.new( + digits: "TS", + + pause_ms: 1, + + privacy_mode: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -260,6 +390,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SendDigits.new( + digits: "TS", diff --git a/spec/models/set_dtmf_pass_through_spec.rb b/spec/models/set_dtmf_pass_through_spec.rb index b3f6240..f326a9e 100644 --- a/spec/models/set_dtmf_pass_through_spec.rb +++ b/spec/models/set_dtmf_pass_through_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SetDTMFPassThrough # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.dtmf_pass_through = false expect(instance.dtmf_pass_through).to eq(false) + + end end @@ -39,12 +42,16 @@ expect { instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SetDTMFPassThrough' do expect { instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -52,6 +59,8 @@ expect { instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -62,6 +71,8 @@ instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance.valid?).to eq(true) end @@ -78,14 +89,18 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) instance_2 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -94,10 +109,14 @@ instance_1 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) instance_2 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -108,6 +127,8 @@ instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -118,10 +139,14 @@ instance_1 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) instance_2 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -132,7 +157,11 @@ instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) + + it 'deserializes the data of dtmf_pass_through' do expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass) end @@ -143,6 +172,8 @@ instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -153,18 +184,24 @@ instance = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) instance_2 = Freeclimb::SetDTMFPassThrough.new( dtmf_pass_through: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/set_listen_spec.rb b/spec/models/set_listen_spec.rb index 0056135..3d97f19 100644 --- a/spec/models/set_listen_spec.rb +++ b/spec/models/set_listen_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SetListen # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.listen = false expect(instance.listen).to eq(false) + + end end @@ -39,12 +42,16 @@ expect { instance = Freeclimb::SetListen.new( listen: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SetListen' do expect { instance = Freeclimb::SetListen.new( listen: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -52,6 +59,8 @@ expect { instance = Freeclimb::SetListen.new( listen: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -62,6 +71,8 @@ instance = Freeclimb::SetListen.new( listen: true, + + ) expect(instance.valid?).to eq(true) end @@ -78,14 +89,18 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::SetListen.new( listen: true, + + ) instance_2 = Freeclimb::SetListen.new( listen: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -94,10 +109,14 @@ instance_1 = Freeclimb::SetListen.new( listen: true, + + ) instance_2 = Freeclimb::SetListen.new( listen: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -108,6 +127,8 @@ instance = Freeclimb::SetListen.new( listen: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -118,10 +139,14 @@ instance_1 = Freeclimb::SetListen.new( listen: true, + + ) instance_2 = Freeclimb::SetListen.new( listen: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -132,7 +157,11 @@ instance = Freeclimb::SetListen.new( listen: true, + + ) + + it 'deserializes the data of listen' do expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass) end @@ -143,6 +172,8 @@ instance = Freeclimb::SetListen.new( listen: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -153,18 +184,24 @@ instance = Freeclimb::SetListen.new( listen: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::SetListen.new( listen: true, + + ) instance_2 = Freeclimb::SetListen.new( listen: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/set_talk_spec.rb b/spec/models/set_talk_spec.rb index ca5ff63..47e992f 100644 --- a/spec/models/set_talk_spec.rb +++ b/spec/models/set_talk_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SetTalk # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.talk = false expect(instance.talk).to eq(false) + + end end @@ -39,12 +42,16 @@ expect { instance = Freeclimb::SetTalk.new( talk: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SetTalk' do expect { instance = Freeclimb::SetTalk.new( talk: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -52,6 +59,8 @@ expect { instance = Freeclimb::SetTalk.new( talk: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -62,6 +71,8 @@ instance = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance.valid?).to eq(true) end @@ -78,14 +89,18 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::SetTalk.new( talk: true, + + ) instance_2 = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -94,10 +109,14 @@ instance_1 = Freeclimb::SetTalk.new( talk: true, + + ) instance_2 = Freeclimb::SetTalk.new( talk: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -108,6 +127,8 @@ instance = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -118,10 +139,14 @@ instance_1 = Freeclimb::SetTalk.new( talk: true, + + ) instance_2 = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -132,7 +157,11 @@ instance = Freeclimb::SetTalk.new( talk: true, + + ) + + it 'deserializes the data of talk' do expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass) end @@ -143,6 +172,8 @@ instance = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -153,18 +184,24 @@ instance = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::SetTalk.new( talk: true, + + ) instance_2 = Freeclimb::SetTalk.new( talk: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/sms_spec.rb b/spec/models/sms_spec.rb index e572fdf..a312763 100644 --- a/spec/models/sms_spec.rb +++ b/spec/models/sms_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Sms # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,72 +29,120 @@ describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "text"' do it 'should work' do + instance.text = "TEST_STRING" expect(instance.text).to eq("TEST_STRING") + + end end describe 'test attribute "notification_url"' do it 'should work' do + instance.notification_url = "TEST_STRING" expect(instance.notification_url).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Sms' do expect { instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -102,14 +151,26 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -126,50 +187,101 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + instance_1 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Sms.new( + to: "ST", + + + from: "ST", + + + text: "ST", + + + notification_url: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -178,14 +290,26 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -194,24 +318,48 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -220,40 +368,72 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of text' do expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String) end + + it 'deserializes the data of notification_url' do expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -262,38 +442,77 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + instance_1 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) instance_2 = Freeclimb::Sms.new( + to: "TS", + + + from: "TS", + + + text: "TS", + + + notification_url: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -301,15 +520,19 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Sms.new( + to: "TS", + from: "TS", + text: "TS", + notification_url: "TS", ) diff --git a/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb b/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb index 532adf8..f5b4716 100644 --- a/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +++ b/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandAltBusinessIdType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_brand_entity_type_spec.rb b/spec/models/sms_ten_dlc_brand_entity_type_spec.rb index 03038be..9e65927 100644 --- a/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +++ b/spec/models/sms_ten_dlc_brand_entity_type_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandEntityType # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_brand_identity_status_spec.rb b/spec/models/sms_ten_dlc_brand_identity_status_spec.rb index c639ef5..685ef2a 100644 --- a/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +++ b/spec/models/sms_ten_dlc_brand_identity_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandIdentityStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_brand_relationship_spec.rb b/spec/models/sms_ten_dlc_brand_relationship_spec.rb index 3031a55..40437ff 100644 --- a/spec/models/sms_ten_dlc_brand_relationship_spec.rb +++ b/spec/models/sms_ten_dlc_brand_relationship_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandRelationship # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_brand_spec.rb b/spec/models/sms_ten_dlc_brand_spec.rb index 6434e54..6e99a3e 100644 --- a/spec/models/sms_ten_dlc_brand_spec.rb +++ b/spec/models/sms_ten_dlc_brand_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrand # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end @@ -59,17 +63,23 @@ end describe 'test attribute "csp_id"' do it 'should work' do + instance.csp_id = "TEST_STRING" expect(instance.csp_id).to eq("TEST_STRING") + + end end describe 'test attribute "brand_id"' do it 'should work' do + instance.brand_id = "TEST_STRING" expect(instance.brand_id).to eq("TEST_STRING") + + end end @@ -408,9 +418,12 @@ end describe 'test attribute "universal_ein"' do it 'should work' do + instance.universal_ein = "TEST_STRING" expect(instance.universal_ein).to eq("TEST_STRING") + + end end @@ -430,6 +443,9 @@ testObject = Object.new() instance.optional_attributes = testObject expect(instance.optional_attributes).to eq(testObject) + + + end end @@ -438,6 +454,8 @@ instance.mock = false expect(instance.mock).to eq(false) + + end end @@ -465,222 +483,482 @@ instance.create_date = "2022-07-05T15:17:05Z" expect(instance.create_date).to eq("2022-07-05T15:17:05Z") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + website: "TS", + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + alt_business_id: "TS", + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCBrand' do expect { instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + website: "TS", + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + alt_business_id: "TS", + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", - stock_symbol: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", + stock_symbol: "TS", - website: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - alt_business_id: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", + ip_address: "TS", - reference_id: "TS", - optional_attributes: Hash.new(), - mock: true, + + website: "TS", + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + + optional_attributes: Hash.new(), + + + mock: true, + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, create_date: "2022-07-05T15:17:05Z", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -689,73 +967,159 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + website: "TS", + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + alt_business_id: "TS", + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + ) expect(instance.valid?).to eq(true) end @@ -772,940 +1136,2099 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + csp_id: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", - display_name: "TS", + brand_id: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", - phone: "TS", + first_name: "TS", - street: "TS", - city: "TS", - state: "TS", - postal_code: "TS", + last_name: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + display_name: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + company_name: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + ein: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", + ein_issuing_country: "TS", - mock: true, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + phone: "TS", - ) - instance_2 = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, - csp_id: "TS", + street: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", - display_name: "TS", + city: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", - phone: "TS", + state: "TS", - street: "TS", - city: "TS", - state: "TS", postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + ip_address: "TS", + + + website: "TS", + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + vertical: "TS", + + + alt_business_id: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", - mock: true, + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + universal_ein: "TS", - ) - expect(instance_1.eql?(instance_2)).to eq(true) - end - - it 'checks if objects are not equal' do - instance_1 = Freeclimb::SMSTenDLCBrand.new( + + + reference_id: "TS", + + + + + optional_attributes: Hash.new(), + + + + mock: true, + + + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + ) + instance_2 = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + ip_address: "TS", + + + website: "TS", + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + vertical: "TS", + + + alt_business_id: "TS", + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + universal_ein: "TS", + + + reference_id: "TS", + + + optional_attributes: Hash.new(), + + + mock: true, + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + ) - instance_2 = Freeclimb::SMSTenDLCBrand.new( - account_id: "ST", + expect(instance_1.eql?(instance_2)).to eq(true) + end + + it 'checks if objects are not equal' do + instance_1 = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", - entity_type: nil, - csp_id: "ST", - brand_id: "ST", - first_name: "ST", - last_name: "ST", - display_name: "ST", + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, - company_name: "ST", - ein: "ST", + csp_id: "TS", - ein_issuing_country: "ST", - phone: "ST", - street: "ST", - city: "ST", + brand_id: "TS", - state: "ST", - postal_code: "ST", - country: "ST", - email: "ST", + first_name: "TS", - stock_symbol: "ST", - stock_exchange: nil, - ip_address: "ST", + last_name: "TS", - website: "ST", - brand_relationship: nil, - vertical: "ST", + display_name: "TS", - alt_business_id: "ST", - alt_business_id_type: nil, - universal_ein: "ST", + company_name: "TS", - reference_id: "ST", - mock: false, + ein: "TS", - identity_status: nil, - ) - expect(instance_1.eql?(instance_2)).to eq(false) - end - end - - describe 'test method "hash"' do - it 'calculates hash code' do - instance = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - - - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, - - csp_id: "TS", - - brand_id: "TS", - - first_name: "TS", - - last_name: "TS", - - display_name: "TS", - - company_name: "TS", - - ein: "TS", - - ein_issuing_country: "TS", - - phone: "TS", - - street: "TS", - - city: "TS", - - state: "TS", - - postal_code: "TS", - - country: "TS", - - email: "TS", - - stock_symbol: "TS", - - - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - - ip_address: "TS", - - website: "TS", - - - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - - vertical: "TS", - - alt_business_id: "TS", - - - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - - universal_ein: "TS", - - reference_id: "TS", - - optional_attributes: Hash.new(), - - mock: true, - - - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, - - - create_date: "2022-07-05T15:17:05Z", - ) - expect(instance.hash).to be_a_kind_of(Integer) - end - end - - describe 'test method "build_from_hash"' do - it 'builds equivalent model from hash code' do - instance_1 = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - - - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, - - csp_id: "TS", - - brand_id: "TS", - - first_name: "TS", - - last_name: "TS", + + ein_issuing_country: "TS", + + + + + phone: "TS", + + + + + street: "TS", + + + + + city: "TS", + + + + + state: "TS", + + + + + postal_code: "TS", + + + + + country: "TS", + + + + + email: "TS", + + + + + stock_symbol: "TS", + + + + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + + + website: "TS", + + + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + optional_attributes: Hash.new(), + + + + mock: true, + + + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + ) + instance_2 = Freeclimb::SMSTenDLCBrand.new( + + account_id: "ST", + + + + + + + entity_type: nil, + + + csp_id: "ST", + + + + + brand_id: "ST", + + + + + first_name: "ST", + + + + + last_name: "ST", + + + + + display_name: "ST", + + + + + company_name: "ST", + + + + + ein: "ST", + + + + + ein_issuing_country: "ST", + + + + + phone: "ST", + + + + + street: "ST", + + + + + city: "ST", + + + + + state: "ST", + + + + + postal_code: "ST", + + + + + country: "ST", + + + + + email: "ST", + + + + + stock_symbol: "ST", + + + + + + + stock_exchange: nil, + + + ip_address: "ST", + + + + + website: "ST", + + + + + + + brand_relationship: nil, + + + vertical: "ST", + + + + + alt_business_id: "ST", + + + + + + + alt_business_id_type: nil, + + + universal_ein: "ST", + + + + + reference_id: "ST", + + + + + optional_attributes: Hash.new(), + + + + mock: false, + + + + + + + identity_status: nil, + + + + + ) + expect(instance_1.eql?(instance_2)).to eq(false) + end + end + + describe 'test method "hash"' do + it 'calculates hash code' do + instance = Freeclimb::SMSTenDLCBrand.new( + + account_id: "TS", + + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + + + csp_id: "TS", + + + + + brand_id: "TS", + + + + + first_name: "TS", + + + + + last_name: "TS", + + + + + display_name: "TS", + + + + + company_name: "TS", + + + + + ein: "TS", + + + + + ein_issuing_country: "TS", + + + + + phone: "TS", + + + + + street: "TS", + + + + + city: "TS", + + + + + state: "TS", + + + + + postal_code: "TS", + + + + + country: "TS", + + + + + email: "TS", + + + + + stock_symbol: "TS", + + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + + + ip_address: "TS", + + + + + website: "TS", + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + + optional_attributes: Hash.new(), + + + mock: true, + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + create_date: "2022-07-05T15:17:05Z", + + + ) + expect(instance.hash).to be_a_kind_of(Integer) + end + end + + describe 'test method "build_from_hash"' do + it 'builds equivalent model from hash code' do + instance_1 = Freeclimb::SMSTenDLCBrand.new( + + account_id: "TS", + + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + + + csp_id: "TS", + + + + + brand_id: "TS", + + + + + first_name: "TS", + + + + + last_name: "TS", + + + + + display_name: "TS", + + + + + company_name: "TS", + + + + + ein: "TS", + + + + + ein_issuing_country: "TS", + + + + + phone: "TS", + + + + + street: "TS", + + + + + city: "TS", + + + + + state: "TS", + + + + + postal_code: "TS", + + + + + country: "TS", + + + + + email: "TS", + + + + + stock_symbol: "TS", + + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + + + ip_address: "TS", + + + + + website: "TS", + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + + optional_attributes: Hash.new(), + + + mock: true, + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + create_date: "2022-07-05T15:17:05Z", + + + ) + instance_2 = Freeclimb::SMSTenDLCBrand.new( + + account_id: "TS", + + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + + + csp_id: "TS", + + + + + brand_id: "TS", + + + + + first_name: "TS", + + + + + last_name: "TS", + + + + + display_name: "TS", + + + + + company_name: "TS", + + + + + ein: "TS", + + + + + ein_issuing_country: "TS", + + + + + phone: "TS", + + + + + street: "TS", + + + + + city: "TS", + + + + + state: "TS", + + + + + postal_code: "TS", + + + + + country: "TS", + + + + + email: "TS", + + + + + stock_symbol: "TS", + + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + + + ip_address: "TS", + + + + + website: "TS", + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + + optional_attributes: Hash.new(), + + + mock: true, + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + create_date: "2022-07-05T15:17:05Z", + + + ) + + expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) + end + end + + describe 'test method "_deserialize"' do + instance = Freeclimb::SMSTenDLCBrand.new( + + account_id: "TS", + + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + + + csp_id: "TS", + + + + + brand_id: "TS", + + + + + first_name: "TS", + + + + + last_name: "TS", + + + + + display_name: "TS", + + + + + company_name: "TS", + + + + + ein: "TS", + + + + + ein_issuing_country: "TS", + + + + + phone: "TS", + + + + + street: "TS", + + + + + city: "TS", + + + + + state: "TS", + + + + + postal_code: "TS", + + + + + country: "TS", + + + + + email: "TS", + + + + + stock_symbol: "TS", + + + + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + + + ip_address: "TS", + + + + + website: "TS", + + + + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + + + vertical: "TS", + + + + + alt_business_id: "TS", + + + + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + + + universal_ein: "TS", + + + + + reference_id: "TS", + + + + + + optional_attributes: Hash.new(), + + + mock: true, + + + + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + + + + create_date: "2022-07-05T15:17:05Z", + + + ) + it 'deserializes the data of account_id' do + expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of csp_id' do + expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of brand_id' do + expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of first_name' do + expect(instance._deserialize("String", instance.first_name)).to be_a_kind_of(String) + end + + + it 'deserializes the data of last_name' do + expect(instance._deserialize("String", instance.last_name)).to be_a_kind_of(String) + end + + + it 'deserializes the data of display_name' do + expect(instance._deserialize("String", instance.display_name)).to be_a_kind_of(String) + end + + + it 'deserializes the data of company_name' do + expect(instance._deserialize("String", instance.company_name)).to be_a_kind_of(String) + end + + + it 'deserializes the data of ein' do + expect(instance._deserialize("String", instance.ein)).to be_a_kind_of(String) + end + + + it 'deserializes the data of ein_issuing_country' do + expect(instance._deserialize("String", instance.ein_issuing_country)).to be_a_kind_of(String) + end + + + it 'deserializes the data of phone' do + expect(instance._deserialize("String", instance.phone)).to be_a_kind_of(String) + end + + + it 'deserializes the data of street' do + expect(instance._deserialize("String", instance.street)).to be_a_kind_of(String) + end + + + it 'deserializes the data of city' do + expect(instance._deserialize("String", instance.city)).to be_a_kind_of(String) + end + + + it 'deserializes the data of state' do + expect(instance._deserialize("String", instance.state)).to be_a_kind_of(String) + end + + + it 'deserializes the data of postal_code' do + expect(instance._deserialize("String", instance.postal_code)).to be_a_kind_of(String) + end + + + it 'deserializes the data of country' do + expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String) + end + + + it 'deserializes the data of email' do + expect(instance._deserialize("String", instance.email)).to be_a_kind_of(String) + end + + + it 'deserializes the data of stock_symbol' do + expect(instance._deserialize("String", instance.stock_symbol)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of ip_address' do + expect(instance._deserialize("String", instance.ip_address)).to be_a_kind_of(String) + end + + + it 'deserializes the data of website' do + expect(instance._deserialize("String", instance.website)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of vertical' do + expect(instance._deserialize("String", instance.vertical)).to be_a_kind_of(String) + end + + + it 'deserializes the data of alt_business_id' do + expect(instance._deserialize("String", instance.alt_business_id)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of universal_ein' do + expect(instance._deserialize("String", instance.universal_ein)).to be_a_kind_of(String) + end + + + it 'deserializes the data of reference_id' do + expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String) + end + + + + it 'deserializes the data of optional_attributes' do + expect(instance._deserialize("Hash", instance.optional_attributes)).to be_a_kind_of(Hash) + end + + + + + it 'deserializes the data of mock' do + expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of create_date' do + expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time) + end + + + end + + describe 'test method "to_s"' do + it 'returns the string representation of the object' do + instance = Freeclimb::SMSTenDLCBrand.new( + + account_id: "TS", + + + + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + + + csp_id: "TS", + + + + + brand_id: "TS", + + + + + first_name: "TS", + + + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + country: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + + email: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + stock_symbol: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - optional_attributes: Hash.new(), - mock: true, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + ip_address: "TS", - create_date: "2022-07-05T15:17:05Z", - ) - instance_2 = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + website: "TS", - csp_id: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - display_name: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", + vertical: "TS", - phone: "TS", - street: "TS", - city: "TS", - state: "TS", + alt_business_id: "TS", - postal_code: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + universal_ein: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + reference_id: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + ) - - expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) + expect(instance.to_s).to eq(instance.to_hash.to_s) end end - describe 'test method "_deserialize"' do - instance = Freeclimb::SMSTenDLCBrand.new( + describe 'test method "to_hash"' do + it 'returns the object in the form of hash' do + instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + website: "TS", + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + alt_business_id: "TS", + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", - ) - it 'deserializes the data of account_id' do - expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) - end - it 'deserializes the data of csp_id' do - expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String) - end - it 'deserializes the data of brand_id' do - expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) - end - it 'deserializes the data of first_name' do - expect(instance._deserialize("String", instance.first_name)).to be_a_kind_of(String) - end - it 'deserializes the data of last_name' do - expect(instance._deserialize("String", instance.last_name)).to be_a_kind_of(String) - end - it 'deserializes the data of display_name' do - expect(instance._deserialize("String", instance.display_name)).to be_a_kind_of(String) - end - it 'deserializes the data of company_name' do - expect(instance._deserialize("String", instance.company_name)).to be_a_kind_of(String) - end - it 'deserializes the data of ein' do - expect(instance._deserialize("String", instance.ein)).to be_a_kind_of(String) - end - it 'deserializes the data of ein_issuing_country' do - expect(instance._deserialize("String", instance.ein_issuing_country)).to be_a_kind_of(String) - end - it 'deserializes the data of phone' do - expect(instance._deserialize("String", instance.phone)).to be_a_kind_of(String) - end - it 'deserializes the data of street' do - expect(instance._deserialize("String", instance.street)).to be_a_kind_of(String) - end - it 'deserializes the data of city' do - expect(instance._deserialize("String", instance.city)).to be_a_kind_of(String) - end - it 'deserializes the data of state' do - expect(instance._deserialize("String", instance.state)).to be_a_kind_of(String) - end - it 'deserializes the data of postal_code' do - expect(instance._deserialize("String", instance.postal_code)).to be_a_kind_of(String) - end - it 'deserializes the data of country' do - expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String) - end - it 'deserializes the data of email' do - expect(instance._deserialize("String", instance.email)).to be_a_kind_of(String) - end - it 'deserializes the data of stock_symbol' do - expect(instance._deserialize("String", instance.stock_symbol)).to be_a_kind_of(String) - end - it 'deserializes the data of ip_address' do - expect(instance._deserialize("String", instance.ip_address)).to be_a_kind_of(String) - end - it 'deserializes the data of website' do - expect(instance._deserialize("String", instance.website)).to be_a_kind_of(String) - end - it 'deserializes the data of vertical' do - expect(instance._deserialize("String", instance.vertical)).to be_a_kind_of(String) - end - it 'deserializes the data of alt_business_id' do - expect(instance._deserialize("String", instance.alt_business_id)).to be_a_kind_of(String) - end - it 'deserializes the data of universal_ein' do - expect(instance._deserialize("String", instance.universal_ein)).to be_a_kind_of(String) - end - it 'deserializes the data of reference_id' do - expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String) - end - it 'deserializes the data of optional_attributes' do - expect(instance._deserialize("Hash", instance.optional_attributes)).to be_a_kind_of(Hash) - end - it 'deserializes the data of mock' do - expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of create_date' do - expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time) + + + ) + expect(instance.to_hash).to be_a_kind_of(Hash) end - end - - describe 'test method "to_s"' do - it 'returns the string representation of the object' do - instance = Freeclimb::SMSTenDLCBrand.new( + it 'creates equal hash for two equal objects' do + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, - csp_id: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", + csp_id: "TS", - display_name: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", + brand_id: "TS", - phone: "TS", - street: "TS", - city: "TS", - state: "TS", + first_name: "TS", - postal_code: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + last_name: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + display_name: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + company_name: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", + ein: "TS", - optional_attributes: Hash.new(), - mock: true, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + ein_issuing_country: "TS", - create_date: "2022-07-05T15:17:05Z", - ) - expect(instance.to_s).to eq(instance.to_hash.to_s) - end - end - - describe 'test method "to_hash"' do - it 'returns the object in the form of hash' do - instance = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + phone: "TS", - csp_id: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", + street: "TS", - display_name: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", + city: "TS", - phone: "TS", - street: "TS", - city: "TS", state: "TS", - postal_code: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + postal_code: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + country: "TS", - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + email: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", - reference_id: "TS", + stock_symbol: "TS", - optional_attributes: Hash.new(), - mock: true, - identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - create_date: "2022-07-05T15:17:05Z", - ) - expect(instance.to_hash).to be_a_kind_of(Hash) - end - it 'creates equal hash for two equal objects' do - obj = Object.new() - instance_1 = Freeclimb::SMSTenDLCBrand.new( - account_id: "TS", - entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + ip_address: "TS", - csp_id: "TS", - brand_id: "TS", - first_name: "TS", - last_name: "TS", + website: "TS", - display_name: "TS", - company_name: "TS", - ein: "TS", - ein_issuing_country: "TS", + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - phone: "TS", - street: "TS", - city: "TS", - state: "TS", + vertical: "TS", - postal_code: "TS", - country: "TS", - email: "TS", - stock_symbol: "TS", + alt_business_id: "TS", - stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, - ip_address: "TS", - website: "TS", + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, - vertical: "TS", - alt_business_id: "TS", + universal_ein: "TS", - alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, - universal_ein: "TS", reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + ) instance_2 = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", + + entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + + + csp_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + ein: "TS", + + + ein_issuing_country: "TS", + + + phone: "TS", + + + street: "TS", + + + city: "TS", + + + state: "TS", + + + postal_code: "TS", + + + country: "TS", + + + email: "TS", + + + stock_symbol: "TS", + + stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + + + ip_address: "TS", + + + website: "TS", + + brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + + + vertical: "TS", + + + alt_business_id: "TS", + + alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + + + universal_ein: "TS", + + + reference_id: "TS", + + + + optional_attributes: Hash.new(), + mock: true, + + identity_status: Freeclimb::SMSTenDLCBrandIdentityStatus::SELF_DECLARED, + + create_date: "2022-07-05T15:17:05Z", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -1713,6 +3236,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SMSTenDLCBrand.new( + account_id: "TS", @@ -1720,51 +3244,67 @@ entity_type: Freeclimb::SMSTenDLCBrandEntityType::PRIVATE_PROFIT, + csp_id: "TS", + brand_id: "TS", + first_name: "TS", + last_name: "TS", + display_name: "TS", + company_name: "TS", + ein: "TS", + ein_issuing_country: "TS", + phone: "TS", + street: "TS", + city: "TS", + state: "TS", + postal_code: "TS", + country: "TS", + email: "TS", + stock_symbol: "TS", @@ -1772,9 +3312,11 @@ stock_exchange: Freeclimb::SMSTenDLCBrandStockExchange::NONE, + ip_address: "TS", + website: "TS", @@ -1782,9 +3324,11 @@ brand_relationship: Freeclimb::SMSTenDLCBrandRelationship::BASIC_ACCOUNT, + vertical: "TS", + alt_business_id: "TS", @@ -1792,9 +3336,11 @@ alt_business_id_type: Freeclimb::SMSTenDLCBrandAltBusinessIdType::NONE, + universal_ein: "TS", + reference_id: "TS", diff --git a/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb b/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb index 455a435..51ffdfe 100644 --- a/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +++ b/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandStockExchange # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_brands_list_result_spec.rb b/spec/models/sms_ten_dlc_brands_list_result_spec.rb index 9828779..2bb1613 100644 --- a/spec/models/sms_ten_dlc_brands_list_result_spec.rb +++ b/spec/models/sms_ten_dlc_brands_list_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCBrandsListResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.brands = ["ELEMENT_1", "ELEMENT_2"] expect(instance.brands).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCBrandsListResult' do expect { instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + brands: [], ) instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + brands: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + brands: [], ) instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + brands: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of brands' do expect(instance._deserialize("Array", instance.brands)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCBrandsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/sms_ten_dlc_campaign_spec.rb b/spec/models/sms_ten_dlc_campaign_spec.rb index 9f0d96f..ea4b698 100644 --- a/spec/models/sms_ten_dlc_campaign_spec.rb +++ b/spec/models/sms_ten_dlc_campaign_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCCampaign # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test attribute "csp_id"' do it 'should work' do + instance.csp_id = "TEST_STRING" expect(instance.csp_id).to eq("TEST_STRING") + + end end @@ -76,6 +86,8 @@ instance.create_date = "2022-07-05T15:17:05Z" expect(instance.create_date).to eq("2022-07-05T15:17:05Z") + + end end @@ -84,6 +96,8 @@ instance.auto_renewal = false expect(instance.auto_renewal).to eq(false) + + end end @@ -92,6 +106,8 @@ instance.billed_date = "2022-07-05T15:17:05Z" expect(instance.billed_date).to eq("2022-07-05T15:17:05Z") + + end end @@ -120,6 +136,8 @@ instance.sub_usecases = ["ELEMENT_1", "ELEMENT_2"] expect(instance.sub_usecases).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -138,6 +156,8 @@ instance.embedded_link = false expect(instance.embedded_link).to eq(false) + + end end @@ -146,6 +166,8 @@ instance.embedded_phone = false expect(instance.embedded_phone).to eq(false) + + end end @@ -154,6 +176,8 @@ instance.affiliate_marketing = false expect(instance.affiliate_marketing).to eq(false) + + end end @@ -162,6 +186,8 @@ instance.number_pool = false expect(instance.number_pool).to eq(false) + + end end @@ -170,6 +196,8 @@ instance.age_gated = false expect(instance.age_gated).to eq(false) + + end end @@ -178,6 +206,8 @@ instance.direct_lending = false expect(instance.direct_lending).to eq(false) + + end end @@ -186,6 +216,8 @@ instance.subscriber_optin = false expect(instance.subscriber_optin).to eq(false) + + end end @@ -194,6 +226,8 @@ instance.subscriber_optout = false expect(instance.subscriber_optout).to eq(false) + + end end @@ -202,6 +236,8 @@ instance.subscriber_help = false expect(instance.subscriber_help).to eq(false) + + end end @@ -340,6 +376,8 @@ instance.mock = false expect(instance.mock).to eq(false) + + end end @@ -348,240 +386,518 @@ instance.next_renewal_or_expiration_date = "2000-01-01" expect(instance.next_renewal_or_expiration_date).to eq("2000-01-01") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCCampaign' do expect { instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", - usecase: "TS", - sub_usecases: Array.new(), - description: "TS", + brand_id: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + usecase: "TS", - age_gated: true, - direct_lending: true, - subscriber_optin: true, + sub_usecases: Array.new(), + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + - subscriber_optout: true, subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -590,1124 +906,2462 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", - campaign_id: "TS", + account_id: "TS", - csp_id: "TS", - reseller_id: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + campaign_id: "TS", - create_date: "2022-07-05T15:17:05Z", - auto_renewal: true, - billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", + csp_id: "TS", - usecase: "TS", - sub_usecases: Array.new(), - description: "TS", - embedded_link: true, + reseller_id: "TS", - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, - age_gated: true, + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, - subscriber_help: true, + create_date: "2022-07-05T15:17:05Z", - sample1: "TS", - sample2: "TS", + auto_renewal: true, - sample3: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", + billed_date: "2022-07-05T15:17:05Z", - help_message: "TS", - optin_keywords: "TS", - optout_keywords: "TS", + brand_id: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", - reference_id: "TS", + usecase: "TS", - mock: true, - next_renewal_or_expiration_date: "2000-01-01", - ) - expect(instance.valid?).to eq(true) - end - - - skip 'checks if properties are invalid' do - instance = Freeclimb::SMSTenDLCCampaign.new( - - ) - expect(instance.valid?).to eq(false) - end - - end - - describe 'test method "eql?"' do - it 'checks if objects are equal' do - obj = Object.new() - instance_1 = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", + sub_usecases: Array.new(), - campaign_id: "TS", - csp_id: "TS", - reseller_id: "TS", + description: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - auto_renewal: true, + embedded_link: true, - brand_id: "TS", - usecase: "TS", + embedded_phone: true, - sub_usecases: [], - description: "TS", - embedded_link: true, + affiliate_marketing: true, - embedded_phone: true, - affiliate_marketing: true, number_pool: true, - age_gated: true, - direct_lending: true, - subscriber_optin: true, + age_gated: true, - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", + direct_lending: true, - sample2: "TS", - sample3: "TS", - sample4: "TS", + subscriber_optin: true, - sample5: "TS", - message_flow: "TS", - help_message: "TS", + subscriber_optout: true, - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", + subscriber_help: true, - optin_message: "TS", - optout_message: "TS", - reference_id: "TS", - mock: true, + sample1: "TS", - ) - instance_2 = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", - campaign_id: "TS", - csp_id: "TS", + sample2: "TS", - reseller_id: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + sample3: "TS", - auto_renewal: true, - brand_id: "TS", - usecase: "TS", + sample4: "TS", - sub_usecases: [], - description: "TS", - embedded_link: true, - embedded_phone: true, + sample5: "TS", - affiliate_marketing: true, - number_pool: true, - age_gated: true, - direct_lending: true, + message_flow: "TS", - subscriber_optin: true, - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", + help_message: "TS", - sample2: "TS", - sample3: "TS", - sample4: "TS", - sample5: "TS", + optin_keywords: "TS", - message_flow: "TS", - help_message: "TS", - optin_keywords: "TS", optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", - reference_id: "TS", + help_keywords: "TS", - mock: true, - ) - expect(instance_1.eql?(instance_2)).to eq(true) - end - - it 'checks if objects are not equal' do - instance_1 = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", - campaign_id: "TS", + optin_message: "TS", - csp_id: "TS", - reseller_id: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + optout_message: "TS", - auto_renewal: true, - brand_id: "TS", + reference_id: "TS", - usecase: "TS", - sub_usecases: [], - description: "TS", + mock: true, - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + next_renewal_or_expiration_date: "2000-01-01", + + + ) + expect(instance.valid?).to eq(true) + end + + + skip 'checks if properties are invalid' do + instance = Freeclimb::SMSTenDLCCampaign.new( + + ) + expect(instance.valid?).to eq(false) + end + + end + + describe 'test method "eql?"' do + it 'checks if objects are equal' do + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + auto_renewal: true, + + + + + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + + + sub_usecases: [], + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + + + ) instance_2 = Freeclimb::SMSTenDLCCampaign.new( - account_id: "ST", - campaign_id: "ST", + account_id: "TS", - csp_id: "ST", - reseller_id: "ST", - status: nil, + campaign_id: "TS", - auto_renewal: false, - brand_id: "ST", + csp_id: "TS", - usecase: "ST", - sub_usecases: nil, - description: "ST", - embedded_link: false, + reseller_id: "TS", - embedded_phone: false, - affiliate_marketing: false, - number_pool: false, - age_gated: false, - direct_lending: false, - subscriber_optin: false, + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - subscriber_optout: false, - subscriber_help: false, - sample1: "ST", - sample2: "ST", + auto_renewal: true, - sample3: "ST", - sample4: "ST", - sample5: "ST", - message_flow: "ST", - help_message: "ST", - optin_keywords: "ST", - optout_keywords: "ST", + brand_id: "TS", - help_keywords: "ST", - optin_message: "ST", - optout_message: "ST", - reference_id: "ST", + usecase: "TS", - mock: false, - ) - expect(instance_1.eql?(instance_2)).to eq(false) + + + sub_usecases: [], + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + + + ) + expect(instance_1.eql?(instance_2)).to eq(true) + end + + it 'checks if objects are not equal' do + instance_1 = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + auto_renewal: true, + + + + + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + + + sub_usecases: [], + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + + + ) + instance_2 = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "ST", + + + + + campaign_id: "ST", + + + + + csp_id: "ST", + + + + + reseller_id: "ST", + + + + + + + status: nil, + + + + + auto_renewal: false, + + + + + + + + brand_id: "ST", + + + + + usecase: "ST", + + + + + + sub_usecases: nil, + + + description: "ST", + + + + embedded_link: false, + + + + embedded_phone: false, + + + + affiliate_marketing: false, + + + + number_pool: false, + + + + age_gated: false, + + + + direct_lending: false, + + + + subscriber_optin: false, + + + + subscriber_optout: false, + + + + subscriber_help: false, + + + + + sample1: "ST", + + + + + sample2: "ST", + + + + + sample3: "ST", + + + + + sample4: "ST", + + + + + sample5: "ST", + + + + + message_flow: "ST", + + + + + help_message: "ST", + + + + + optin_keywords: "ST", + + + + + optout_keywords: "ST", + + + + + help_keywords: "ST", + + + + + optin_message: "ST", + + + + + optout_message: "ST", + + + + + reference_id: "ST", + + + + mock: false, + + + + + + + ) + expect(instance_1.eql?(instance_2)).to eq(false) + end + end + + describe 'test method "hash"' do + it 'calculates hash code' do + instance = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + create_date: "2022-07-05T15:17:05Z", + + + auto_renewal: true, + + + + + billed_date: "2022-07-05T15:17:05Z", + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + sub_usecases: Array.new(), + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + next_renewal_or_expiration_date: "2000-01-01", + + + ) + expect(instance.hash).to be_a_kind_of(Integer) + end + end + + describe 'test method "build_from_hash"' do + it 'builds equivalent model from hash code' do + instance_1 = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + create_date: "2022-07-05T15:17:05Z", + + + auto_renewal: true, + + + + + billed_date: "2022-07-05T15:17:05Z", + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + sub_usecases: Array.new(), + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + next_renewal_or_expiration_date: "2000-01-01", + + + ) + instance_2 = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + create_date: "2022-07-05T15:17:05Z", + + + auto_renewal: true, + + + + + billed_date: "2022-07-05T15:17:05Z", + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + sub_usecases: Array.new(), + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + next_renewal_or_expiration_date: "2000-01-01", + + + ) + + expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) + end + end + + describe 'test method "_deserialize"' do + instance = Freeclimb::SMSTenDLCCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + csp_id: "TS", + + + + + reseller_id: "TS", + + + + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + + + + create_date: "2022-07-05T15:17:05Z", + + + auto_renewal: true, + + + + + billed_date: "2022-07-05T15:17:05Z", + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + sub_usecases: Array.new(), + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + reference_id: "TS", + + + + mock: true, + + + + + next_renewal_or_expiration_date: "2000-01-01", + + + ) + it 'deserializes the data of account_id' do + expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of campaign_id' do + expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of csp_id' do + expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of reseller_id' do + expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of create_date' do + expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time) + end + + + + + it 'deserializes the data of auto_renewal' do + expect(instance._deserialize("Boolean", instance.auto_renewal)).to be_a_kind_of(TrueClass) + end + it 'deserializes the data of billed_date' do + expect(instance._deserialize("Time", instance.billed_date)).to be_a_kind_of(Time) + end + + + it 'deserializes the data of brand_id' do + expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of usecase' do + expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String) + end + + + it 'deserializes the data of sub_usecases' do + expect(instance._deserialize("Array", instance.sub_usecases)).to be_a_kind_of(Array) + end + + + it 'deserializes the data of description' do + expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of embedded_link' do + expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of embedded_phone' do + expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of affiliate_marketing' do + expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of number_pool' do + expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of age_gated' do + expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of direct_lending' do + expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of subscriber_optin' do + expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of subscriber_optout' do + expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass) + end + + + it 'deserializes the data of subscriber_help' do + expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass) + end + it 'deserializes the data of sample1' do + expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String) + end + + + it 'deserializes the data of sample2' do + expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String) + end + + + it 'deserializes the data of sample3' do + expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String) + end + + + it 'deserializes the data of sample4' do + expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String) + end + + + it 'deserializes the data of sample5' do + expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String) + end + + + it 'deserializes the data of message_flow' do + expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String) + end + + + it 'deserializes the data of help_message' do + expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String) + end + + + it 'deserializes the data of optin_keywords' do + expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String) end - end - - describe 'test method "hash"' do - it 'calculates hash code' do - instance = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", - - campaign_id: "TS", - - csp_id: "TS", - - reseller_id: "TS", - - - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - - - create_date: "2022-07-05T15:17:05Z", - auto_renewal: true, - - - billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", - - usecase: "TS", - - sub_usecases: Array.new(), - - description: "TS", - - embedded_link: true, - - embedded_phone: true, - - affiliate_marketing: true, - - number_pool: true, - - age_gated: true, - - direct_lending: true, - - subscriber_optin: true, - - subscriber_optout: true, - - subscriber_help: true, - - sample1: "TS", - - sample2: "TS", - - sample3: "TS", - - sample4: "TS", - - sample5: "TS", - - message_flow: "TS", - - help_message: "TS", - - optin_keywords: "TS", - - optout_keywords: "TS", - - help_keywords: "TS", - - optin_message: "TS", - - optout_message: "TS", - - reference_id: "TS", - - mock: true, - - - next_renewal_or_expiration_date: "2000-01-01", - ) - expect(instance.hash).to be_a_kind_of(Integer) + + + it 'deserializes the data of optout_keywords' do + expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String) + end + + + it 'deserializes the data of help_keywords' do + expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String) + end + + + it 'deserializes the data of optin_message' do + expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String) + end + + + it 'deserializes the data of optout_message' do + expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String) + end + + + it 'deserializes the data of reference_id' do + expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of mock' do + expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass) + end + it 'deserializes the data of next_renewal_or_expiration_date' do + expect(instance._deserialize("Date", instance.next_renewal_or_expiration_date)).to be_a_kind_of(Date) end + + end - describe 'test method "build_from_hash"' do - it 'builds equivalent model from hash code' do - instance_1 = Freeclimb::SMSTenDLCCampaign.new( + describe 'test method "to_s"' do + it 'returns the string representation of the object' do + instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + ) - instance_2 = Freeclimb::SMSTenDLCCampaign.new( + expect(instance.to_s).to eq(instance.to_hash.to_s) + end + end + + describe 'test method "to_hash"' do + it 'returns the object in the form of hash' do + instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", - sub_usecases: Array.new(), + + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", + subscriber_optout: true, - sample2: "TS", - sample3: "TS", - sample4: "TS", + subscriber_help: true, - sample5: "TS", - message_flow: "TS", - help_message: "TS", - optin_keywords: "TS", + sample1: "TS", - optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", + sample2: "TS", - reference_id: "TS", - mock: true, - next_renewal_or_expiration_date: "2000-01-01", - ) - - expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) - end - end - - describe 'test method "_deserialize"' do - instance = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", + sample3: "TS", - campaign_id: "TS", - csp_id: "TS", - reseller_id: "TS", + sample4: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - create_date: "2022-07-05T15:17:05Z", - auto_renewal: true, + sample5: "TS", - billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", - usecase: "TS", - sub_usecases: Array.new(), - description: "TS", + message_flow: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + help_message: "TS", - age_gated: true, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, + optin_keywords: "TS", - subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", + optout_keywords: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", + help_keywords: "TS", - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", - ) - it 'deserializes the data of account_id' do - expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) - end - it 'deserializes the data of campaign_id' do - expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) - end - it 'deserializes the data of csp_id' do - expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String) - end - it 'deserializes the data of reseller_id' do - expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String) - end - it 'deserializes the data of create_date' do - expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time) - end - it 'deserializes the data of auto_renewal' do - expect(instance._deserialize("Boolean", instance.auto_renewal)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of billed_date' do - expect(instance._deserialize("Time", instance.billed_date)).to be_a_kind_of(Time) - end - it 'deserializes the data of brand_id' do - expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) - end - it 'deserializes the data of usecase' do - expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String) - end - it 'deserializes the data of sub_usecases' do - expect(instance._deserialize("Array", instance.sub_usecases)).to be_a_kind_of(Array) - end - it 'deserializes the data of description' do - expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String) - end - it 'deserializes the data of embedded_link' do - expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of embedded_phone' do - expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of affiliate_marketing' do - expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of number_pool' do - expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of age_gated' do - expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of direct_lending' do - expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of subscriber_optin' do - expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of subscriber_optout' do - expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of subscriber_help' do - expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of sample1' do - expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String) - end - it 'deserializes the data of sample2' do - expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String) - end - it 'deserializes the data of sample3' do - expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String) - end - it 'deserializes the data of sample4' do - expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String) - end - it 'deserializes the data of sample5' do - expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String) - end - it 'deserializes the data of message_flow' do - expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String) - end - it 'deserializes the data of help_message' do - expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String) - end - it 'deserializes the data of optin_keywords' do - expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String) - end - it 'deserializes the data of optout_keywords' do - expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String) - end - it 'deserializes the data of help_keywords' do - expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String) - end - it 'deserializes the data of optin_message' do - expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String) - end - it 'deserializes the data of optout_message' do - expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String) - end - it 'deserializes the data of reference_id' do - expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String) - end - it 'deserializes the data of mock' do - expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass) - end - it 'deserializes the data of next_renewal_or_expiration_date' do - expect(instance._deserialize("Date", instance.next_renewal_or_expiration_date)).to be_a_kind_of(Date) + + + ) + expect(instance.to_hash).to be_a_kind_of(Hash) end - end - - describe 'test method "to_s"' do - it 'returns the string representation of the object' do - instance = Freeclimb::SMSTenDLCCampaign.new( + it 'creates equal hash for two equal objects' do + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", - csp_id: "TS", + + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", + subscriber_optout: true, - sample2: "TS", - sample3: "TS", - sample4: "TS", + subscriber_help: true, - sample5: "TS", - message_flow: "TS", - help_message: "TS", - optin_keywords: "TS", + sample1: "TS", - optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", + sample2: "TS", - reference_id: "TS", - mock: true, - next_renewal_or_expiration_date: "2000-01-01", - ) - expect(instance.to_s).to eq(instance.to_hash.to_s) - end - end - - describe 'test method "to_hash"' do - it 'returns the object in the form of hash' do - instance = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", + sample3: "TS", - campaign_id: "TS", - csp_id: "TS", - reseller_id: "TS", + sample4: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - create_date: "2022-07-05T15:17:05Z", - auto_renewal: true, + sample5: "TS", - billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", - usecase: "TS", - sub_usecases: Array.new(), - description: "TS", + message_flow: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + help_message: "TS", - age_gated: true, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, + optin_keywords: "TS", - subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", + optout_keywords: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", + help_keywords: "TS", - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + ) - expect(instance.to_hash).to be_a_kind_of(Hash) - end - it 'creates equal hash for two equal objects' do - obj = Object.new() - instance_1 = Freeclimb::SMSTenDLCCampaign.new( + instance_2 = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + csp_id: "TS", + + + reseller_id: "TS", + + status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + auto_renewal: true, + + billed_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + sub_usecases: Array.new(), + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", + subscriber_optout: true, - sample2: "TS", - sample3: "TS", - sample4: "TS", + subscriber_help: true, - sample5: "TS", - message_flow: "TS", - help_message: "TS", - optin_keywords: "TS", + sample1: "TS", - optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", + sample2: "TS", - reference_id: "TS", - mock: true, - next_renewal_or_expiration_date: "2000-01-01", - ) - instance_2 = Freeclimb::SMSTenDLCCampaign.new( - account_id: "TS", + sample3: "TS", - campaign_id: "TS", - csp_id: "TS", - reseller_id: "TS", + sample4: "TS", - status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE, - create_date: "2022-07-05T15:17:05Z", - auto_renewal: true, + sample5: "TS", - billed_date: "2022-07-05T15:17:05Z", - brand_id: "TS", - usecase: "TS", - sub_usecases: Array.new(), - description: "TS", + message_flow: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + help_message: "TS", - age_gated: true, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, + optin_keywords: "TS", - subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", + optout_keywords: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", + help_keywords: "TS", - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", optin_message: "TS", + + + optout_message: "TS", + + + reference_id: "TS", + + mock: true, + + next_renewal_or_expiration_date: "2000-01-01", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -1715,15 +3369,19 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SMSTenDLCCampaign.new( + account_id: "TS", + campaign_id: "TS", + csp_id: "TS", + reseller_id: "TS", @@ -1740,15 +3398,18 @@ billed_date: "2022-07-05T15:17:05Z", + brand_id: "TS", + usecase: "TS", sub_usecases: Array.new(), + description: "TS", @@ -1779,42 +3440,55 @@ subscriber_help: true, + sample1: "TS", + sample2: "TS", + sample3: "TS", + sample4: "TS", + sample5: "TS", + message_flow: "TS", + help_message: "TS", + optin_keywords: "TS", + optout_keywords: "TS", + help_keywords: "TS", + optin_message: "TS", + optout_message: "TS", + reference_id: "TS", diff --git a/spec/models/sms_ten_dlc_campaign_status_spec.rb b/spec/models/sms_ten_dlc_campaign_status_spec.rb index 79e7368..6ea6164 100644 --- a/spec/models/sms_ten_dlc_campaign_status_spec.rb +++ b/spec/models/sms_ten_dlc_campaign_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCCampaignStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb b/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb index 4573dce..c62dc01 100644 --- a/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +++ b/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCCampaignsListResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.campaigns = ["ELEMENT_1", "ELEMENT_2"] expect(instance.campaigns).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCCampaignsListResult' do expect { instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + campaigns: [], ) instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + campaigns: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + campaigns: [], ) instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + campaigns: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of campaigns' do expect(instance._deserialize("Array", instance.campaigns)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + campaigns: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb b/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb index 5ec15f9..431cf1c 100644 --- a/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +++ b/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCPartnerCampaignBrand # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,17 +29,23 @@ describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "brand_id"' do it 'should work' do + instance.brand_id = "TEST_STRING" expect(instance.brand_id).to eq("TEST_STRING") + + end end @@ -118,6 +125,9 @@ testObject = Object.new() instance.optional_attributes = testObject expect(instance.optional_attributes).to eq(testObject) + + + end end @@ -128,87 +138,185 @@ instance.evp_vetting_score = 1 expect(instance.evp_vetting_score).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaignBrand' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -217,28 +325,60 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance.valid?).to eq(true) end @@ -255,50 +395,126 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + optional_attributes: Hash.new(), + + + evp_vetting_score: 1, + + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + optional_attributes: Hash.new(), + + + + + evp_vetting_score: 1, ) @@ -307,49 +523,115 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", - email: "TS", - website: "TS", - evp_vetting_score: 2, + email: "TS", - ) - instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( - account_id: "ST", - brand_id: "ST", - first_name: "ST", - last_name: "ST", + website: "TS", - display_name: "ST", - company_name: "ST", - phone: "ST", - email: "ST", + optional_attributes: Hash.new(), - website: "ST", - evp_vetting_score: 1, + evp_vetting_score: 2, + + + + ) + instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + + account_id: "ST", + + + + + brand_id: "ST", + + + + + first_name: "ST", + + + + + last_name: "ST", + + + + + display_name: "ST", + + + + + company_name: "ST", + + + + + phone: "ST", + + + + + email: "ST", + + + + + website: "ST", + + + + + optional_attributes: Hash.new(), + + + + evp_vetting_score: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -359,28 +641,60 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -389,52 +703,116 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -443,89 +821,176 @@ describe 'test method "_deserialize"' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of brand_id' do expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) end + + it 'deserializes the data of first_name' do expect(instance._deserialize("String", instance.first_name)).to be_a_kind_of(String) end + + it 'deserializes the data of last_name' do expect(instance._deserialize("String", instance.last_name)).to be_a_kind_of(String) end + + it 'deserializes the data of display_name' do expect(instance._deserialize("String", instance.display_name)).to be_a_kind_of(String) end + + it 'deserializes the data of company_name' do expect(instance._deserialize("String", instance.company_name)).to be_a_kind_of(String) end + + it 'deserializes the data of phone' do expect(instance._deserialize("String", instance.phone)).to be_a_kind_of(String) end + + it 'deserializes the data of email' do expect(instance._deserialize("String", instance.email)).to be_a_kind_of(String) end + + it 'deserializes the data of website' do expect(instance._deserialize("String", instance.website)).to be_a_kind_of(String) end + + + it 'deserializes the data of optional_attributes' do expect(instance._deserialize("Hash", instance.optional_attributes)).to be_a_kind_of(Hash) end + + it 'deserializes the data of evp_vetting_score' do expect(instance._deserialize("Integer", instance.evp_vetting_score)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -534,80 +999,186 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + instance_1 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + + + brand_id: "TS", + + + first_name: "TS", + + + last_name: "TS", + + + display_name: "TS", + + + company_name: "TS", + + + phone: "TS", + + + email: "TS", + + + website: "TS", + + + + optional_attributes: Hash.new(), + evp_vetting_score: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -615,30 +1186,39 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SMSTenDLCPartnerCampaignBrand.new( + account_id: "TS", + brand_id: "TS", + first_name: "TS", + last_name: "TS", + display_name: "TS", + company_name: "TS", + phone: "TS", + email: "TS", + website: "TS", diff --git a/spec/models/sms_ten_dlc_partner_campaign_spec.rb b/spec/models/sms_ten_dlc_partner_campaign_spec.rb index d0c5aa8..488ec83 100644 --- a/spec/models/sms_ten_dlc_partner_campaign_spec.rb +++ b/spec/models/sms_ten_dlc_partner_campaign_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCPartnerCampaign # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,17 +29,23 @@ describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end @@ -58,6 +65,8 @@ instance.create_date = "2022-07-05T15:17:05Z" expect(instance.create_date).to eq("2022-07-05T15:17:05Z") + + end end @@ -96,6 +105,8 @@ instance.embedded_link = false expect(instance.embedded_link).to eq(false) + + end end @@ -104,6 +115,8 @@ instance.embedded_phone = false expect(instance.embedded_phone).to eq(false) + + end end @@ -112,6 +125,8 @@ instance.affiliate_marketing = false expect(instance.affiliate_marketing).to eq(false) + + end end @@ -120,6 +135,8 @@ instance.number_pool = false expect(instance.number_pool).to eq(false) + + end end @@ -128,6 +145,8 @@ instance.age_gated = false expect(instance.age_gated).to eq(false) + + end end @@ -136,6 +155,8 @@ instance.direct_lending = false expect(instance.direct_lending).to eq(false) + + end end @@ -144,6 +165,8 @@ instance.subscriber_optin = false expect(instance.subscriber_optin).to eq(false) + + end end @@ -152,6 +175,8 @@ instance.subscriber_optout = false expect(instance.subscriber_optout).to eq(false) + + end end @@ -160,6 +185,8 @@ instance.subscriber_help = false expect(instance.subscriber_help).to eq(false) + + end end @@ -286,267 +313,574 @@ describe 'test attribute "brand"' do it 'should work' do - instance.brand = Freeclimb::SMSTenDLCPartnerCampaignBrand.new - expect(instance.brand).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaignBrand) + + + instance.brand = SMSTenDLCPartnerCampaignBrand.new + expect(instance.brand).to be_instance_of(SMSTenDLCPartnerCampaignBrand) + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: SMSTenDLCPartnerCampaignBrand.new, + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, - invalid_attribute: true - )}.to raise_error(ArgumentError) - end - end + + + + + brand: SMSTenDLCPartnerCampaignBrand.new, + + invalid_attribute: true + )}.to raise_error(ArgumentError) + end + end describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + ) expect(instance.valid?).to eq(true) end @@ -563,249 +897,583 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + obj_SMSTenDLCPartnerCampaignBrand = SMSTenDLCPartnerCampaignBrand.new() + instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", - campaign_id: "TS", - status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + campaign_id: "TS", - brand_id: "TS", - usecase: "TS", - description: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, - number_pool: true, - age_gated: true, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, + brand_id: "TS", - subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", + usecase: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", + description: "TS", - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", + embedded_link: true, - optin_message: "TS", - optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + embedded_phone: true, - ) - instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( - account_id: "TS", - campaign_id: "TS", + affiliate_marketing: true, - status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, - brand_id: "TS", + number_pool: true, - usecase: "TS", - description: "TS", - embedded_link: true, + age_gated: true, - embedded_phone: true, - affiliate_marketing: true, - number_pool: true, + direct_lending: true, - age_gated: true, - direct_lending: true, subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", - sample4: "TS", + sample1: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", - optin_keywords: "TS", + sample2: "TS", - optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", + sample3: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), - ) - expect(instance_1.eql?(instance_2)).to eq(true) - end - - it 'checks if objects are not equal' do - instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new( - account_id: "TS", - campaign_id: "TS", + sample4: "TS", - status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, - brand_id: "TS", - usecase: "TS", + sample5: "TS", - description: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, + message_flow: "TS", - number_pool: true, - age_gated: true, - direct_lending: true, - subscriber_optin: true, + help_message: "TS", - subscriber_optout: true, - subscriber_help: true, - sample1: "TS", - sample2: "TS", + optin_keywords: "TS", - sample3: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", + optout_keywords: "TS", - help_message: "TS", - optin_keywords: "TS", - optout_keywords: "TS", help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), - ) - instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( - account_id: "ST", + optin_message: "TS", - campaign_id: "ST", - status: nil, + optout_message: "TS", - brand_id: "ST", - usecase: "ST", - description: "ST", - embedded_link: false, - embedded_phone: false, + brand: obj_SMSTenDLCPartnerCampaignBrand, - affiliate_marketing: false, - number_pool: false, + ) + instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( - age_gated: false, + account_id: "TS", - direct_lending: false, - subscriber_optin: false, - subscriber_optout: false, - subscriber_help: false, + campaign_id: "TS", - sample1: "ST", - sample2: "ST", - sample3: "ST", - sample4: "ST", - sample5: "ST", - message_flow: "ST", + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + + brand: obj_SMSTenDLCPartnerCampaignBrand, + + + ) + expect(instance_1.eql?(instance_2)).to eq(true) + end + + it 'checks if objects are not equal' do + instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new( + + account_id: "TS", + + + + + campaign_id: "TS", + + + + + + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + + + + + brand_id: "TS", + + + + + usecase: "TS", + + + + + description: "TS", + + + + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + + + optout_keywords: "TS", + + + + + help_keywords: "TS", + + + + + optin_message: "TS", + + + + + optout_message: "TS", + + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + + + ) + instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( + + account_id: "ST", + + + + + campaign_id: "ST", + + + + + + + status: nil, + + + + + + brand_id: "ST", + + + + + usecase: "ST", + + + + + description: "ST", + + + + embedded_link: false, + + + + embedded_phone: false, + + + + affiliate_marketing: false, + + + + number_pool: false, + + + + age_gated: false, + + + + direct_lending: false, + + + + subscriber_optin: false, + + + + subscriber_optout: false, + + + + subscriber_help: false, + + + + + sample1: "ST", + + + + + sample2: "ST", + + + + + sample3: "ST", + + + + + sample4: "ST", + + + + + sample5: "ST", + + + + + message_flow: "ST", + + + + + help_message: "ST", + + + + + optin_keywords: "ST", + - help_message: "ST", - optin_keywords: "ST", optout_keywords: "ST", + + + help_keywords: "ST", + + + optin_message: "ST", + + + optout_message: "ST", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + ) expect(instance_1.eql?(instance_2)).to eq(false) @@ -815,65 +1483,141 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -882,126 +1626,278 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", - embedded_link: true, - embedded_phone: true, - affiliate_marketing: true, + embedded_link: true, + + + + embedded_phone: true, + + + + affiliate_marketing: true, + + + + number_pool: true, + + + + age_gated: true, + + + + direct_lending: true, + + + + subscriber_optin: true, + + + + subscriber_optout: true, + + + + subscriber_help: true, + + + + + sample1: "TS", + + + + + sample2: "TS", + + + + + sample3: "TS", + + + + + sample4: "TS", + + + + + sample5: "TS", + + + + + message_flow: "TS", + + + + + help_message: "TS", + + + + + optin_keywords: "TS", + + + - number_pool: true, + optout_keywords: "TS", - age_gated: true, - direct_lending: true, - subscriber_optin: true, - subscriber_optout: true, + help_keywords: "TS", - subscriber_help: true, - sample1: "TS", - sample2: "TS", - sample3: "TS", + optin_message: "TS", - sample4: "TS", - sample5: "TS", - message_flow: "TS", - help_message: "TS", + optout_message: "TS", - optin_keywords: "TS", - optout_keywords: "TS", - help_keywords: "TS", - optin_message: "TS", - optout_message: "TS", + brand: SMSTenDLCPartnerCampaignBrand.new(), - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(), ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -1010,214 +1906,425 @@ describe 'test method "_deserialize"' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: SMSTenDLCPartnerCampaignBrand.new(), + ) it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + + + it 'deserializes the data of create_date' do expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time) end + + it 'deserializes the data of brand_id' do expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String) end + + it 'deserializes the data of usecase' do expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String) end + + it 'deserializes the data of description' do expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String) end + + + + it 'deserializes the data of embedded_link' do expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of embedded_phone' do expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of affiliate_marketing' do expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of number_pool' do expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of age_gated' do expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of direct_lending' do expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of subscriber_optin' do expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of subscriber_optout' do expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of subscriber_help' do expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass) end it 'deserializes the data of sample1' do expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String) end + + it 'deserializes the data of sample2' do expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String) end + + it 'deserializes the data of sample3' do expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String) end + + it 'deserializes the data of sample4' do expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String) end + + it 'deserializes the data of sample5' do expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String) end + + it 'deserializes the data of message_flow' do expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String) end + + it 'deserializes the data of help_message' do expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String) end + + it 'deserializes the data of optin_keywords' do expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String) end + + it 'deserializes the data of optout_keywords' do expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String) end + + it 'deserializes the data of help_keywords' do expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String) end + + it 'deserializes the data of optin_message' do expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String) end + + it 'deserializes the data of optout_message' do expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String) end + + + + it 'deserializes the data of brand' do - expect(instance._deserialize("Object", instance.brand)).to be_a_kind_of(Freeclimb::SMSTenDLCPartnerCampaignBrand) + expect(instance._deserialize("Object", instance.brand)).to be_a_kind_of(SMSTenDLCPartnerCampaignBrand) end + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: SMSTenDLCPartnerCampaignBrand.new, + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -1226,191 +2333,449 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: SMSTenDLCPartnerCampaignBrand.new, + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + obj = SMSTenDLCPartnerCampaignBrand.new() + instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: obj, + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE, + + create_date: "2022-07-05T15:17:05Z", + + + brand_id: "TS", + + + usecase: "TS", + + + description: "TS", + + embedded_link: true, + + embedded_phone: true, + + affiliate_marketing: true, + + number_pool: true, + + age_gated: true, + + direct_lending: true, + + subscriber_optin: true, + + subscriber_optout: true, + + subscriber_help: true, + + + sample1: "TS", + + + sample2: "TS", + + + sample3: "TS", + + + sample4: "TS", + + + sample5: "TS", + + + message_flow: "TS", + + + help_message: "TS", + + + optin_keywords: "TS", + + + optout_keywords: "TS", + + + help_keywords: "TS", + + + optin_message: "TS", + + + optout_message: "TS", - brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new, + + + + + brand: obj, + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -1418,9 +2783,11 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SMSTenDLCPartnerCampaign.new( + account_id: "TS", + campaign_id: "TS", @@ -1431,12 +2798,15 @@ create_date: "2022-07-05T15:17:05Z", + brand_id: "TS", + usecase: "TS", + description: "TS", @@ -1467,39 +2837,51 @@ subscriber_help: true, + sample1: "TS", + sample2: "TS", + sample3: "TS", + sample4: "TS", + sample5: "TS", + message_flow: "TS", + help_message: "TS", + optin_keywords: "TS", + optout_keywords: "TS", + help_keywords: "TS", + optin_message: "TS", + optout_message: "TS", diff --git a/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb b/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb index 64ed1a2..54aa7db 100644 --- a/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +++ b/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCPartnerCampaignStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb b/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb index 7bda01b..5b69269 100644 --- a/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +++ b/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTenDLCPartnerCampaignsListResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.partner_campaigns = ["ELEMENT_1", "ELEMENT_2"] expect(instance.partner_campaigns).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaignsListResult' do expect { instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + partner_campaigns: [], ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + partner_campaigns: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + partner_campaigns: [], ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + partner_campaigns: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of partner_campaigns' do expect(instance._deserialize("Array", instance.partner_campaigns)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) instance_2 = Freeclimb::SMSTenDLCPartnerCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + partner_campaigns: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/sms_toll_free_campaign_registration_status_spec.rb b/spec/models/sms_toll_free_campaign_registration_status_spec.rb index 96869bd..3577046 100644 --- a/spec/models/sms_toll_free_campaign_registration_status_spec.rb +++ b/spec/models/sms_toll_free_campaign_registration_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTollFreeCampaignRegistrationStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/sms_toll_free_campaign_spec.rb b/spec/models/sms_toll_free_campaign_spec.rb index f514932..db3b82f 100644 --- a/spec/models/sms_toll_free_campaign_spec.rb +++ b/spec/models/sms_toll_free_campaign_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTollFreeCampaign # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,25 +29,34 @@ describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test attribute "use_case"' do it 'should work' do + instance.use_case = "TEST_STRING" expect(instance.use_case).to eq("TEST_STRING") + + end end @@ -75,17 +85,23 @@ end describe 'test attribute "date_created"' do it 'should work' do + instance.date_created = "TEST_STRING" expect(instance.date_created).to eq("TEST_STRING") + + end end describe 'test attribute "date_updated"' do it 'should work' do + instance.date_updated = "TEST_STRING" expect(instance.date_updated).to eq("TEST_STRING") + + end end @@ -96,66 +112,125 @@ instance.revision = 1 expect(instance.revision).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTollFreeCampaign' do expect { instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -164,21 +239,40 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.valid?).to eq(true) end @@ -195,38 +289,82 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + date_created: "TS", + + + date_updated: "TS", + + + + revision: 1, ) @@ -235,38 +373,76 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + date_created: "TS", + + + date_updated: "TS", + + revision: 2, + + ) instance_2 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "ST", + + + campaign_id: "ST", + + + use_case: "ST", + + + + registration_status: nil, + date_created: "ST", + + + date_updated: "ST", + + revision: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -275,21 +451,40 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -298,38 +493,76 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -338,60 +571,112 @@ describe 'test method "_deserialize"' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + it 'deserializes the data of use_case' do expect(instance._deserialize("String", instance.use_case)).to be_a_kind_of(String) end + + + + it 'deserializes the data of date_created' do expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) end + + it 'deserializes the data of date_updated' do expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) end + + it 'deserializes the data of revision' do expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -400,59 +685,122 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + instance_1 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) instance_2 = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + + + campaign_id: "TS", + + + use_case: "TS", + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + date_updated: "TS", + + revision: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -460,12 +808,15 @@ describe 'test method "_to_hash"' do instance = Freeclimb::SMSTollFreeCampaign.new( + account_id: "TS", + campaign_id: "TS", + use_case: "TS", @@ -473,9 +824,11 @@ registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + date_created: "TS", + date_updated: "TS", diff --git a/spec/models/sms_toll_free_campaigns_list_result_spec.rb b/spec/models/sms_toll_free_campaigns_list_result_spec.rb index 6f3b811..2ce3eeb 100644 --- a/spec/models/sms_toll_free_campaigns_list_result_spec.rb +++ b/spec/models/sms_toll_free_campaigns_list_result_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::SMSTollFreeCampaignsListResult # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -33,6 +34,8 @@ instance.total = 1 expect(instance.total).to eq(1) + + end end @@ -43,6 +46,8 @@ instance.start = 1 expect(instance.start).to eq(1) + + end end @@ -53,6 +58,8 @@ instance._end = 1 expect(instance._end).to eq(1) + + end end @@ -63,6 +70,8 @@ instance.page = 1 expect(instance.page).to eq(1) + + end end @@ -73,6 +82,8 @@ instance.num_pages = 1 expect(instance.num_pages).to eq(1) + + end end @@ -83,14 +94,19 @@ instance.page_size = 1 expect(instance.page_size).to eq(1) + + end end describe 'test attribute "next_page_uri"' do it 'should work' do + instance.next_page_uri = "TEST_STRING" expect(instance.next_page_uri).to eq("TEST_STRING") + + end end @@ -99,6 +115,8 @@ instance.brands = ["ELEMENT_1", "ELEMENT_2"] expect(instance.brands).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end @@ -107,40 +125,74 @@ expect { instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTollFreeCampaignsListResult' do expect { instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -148,20 +200,37 @@ expect { instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -172,20 +241,37 @@ instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -202,40 +288,81 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + + + brands: [], ) instance_2 = Freeclimb::SMSTollFreeCampaignsListResult.new( + + total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + next_page_uri: "TS", + + + + brands: [], ) @@ -246,36 +373,70 @@ instance_1 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 2, + + start: 2, + + _end: 2, + + page: 2, + + num_pages: 2, + + page_size: 2, + + + next_page_uri: "TS", + + + + brands: [], ) instance_2 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "ST", + + + + brands: nil, ) @@ -288,20 +449,37 @@ instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -312,38 +490,72 @@ instance_1 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) instance_2 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -354,45 +566,78 @@ instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) it 'deserializes the data of total' do expect(instance._deserialize("Integer", instance.total)).to be_a_kind_of(Integer) end + + it 'deserializes the data of start' do expect(instance._deserialize("Integer", instance.start)).to be_a_kind_of(Integer) end + + it 'deserializes the data of _end' do expect(instance._deserialize("Integer", instance._end)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page' do expect(instance._deserialize("Integer", instance.page)).to be_a_kind_of(Integer) end + + it 'deserializes the data of num_pages' do expect(instance._deserialize("Integer", instance.num_pages)).to be_a_kind_of(Integer) end + + it 'deserializes the data of page_size' do expect(instance._deserialize("Integer", instance.page_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of next_page_uri' do expect(instance._deserialize("String", instance.next_page_uri)).to be_a_kind_of(String) end + + it 'deserializes the data of brands' do expect(instance._deserialize("Array", instance.brands)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do @@ -400,20 +645,37 @@ instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -424,60 +686,118 @@ instance = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + instance_1 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) instance_2 = Freeclimb::SMSTollFreeCampaignsListResult.new( total: 1, + + start: 1, + + _end: 1, + + page: 1, + + num_pages: 1, + + page_size: 1, + + + next_page_uri: "TS", + + brands: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -503,6 +823,7 @@ page_size: 1, + next_page_uri: "TS", diff --git a/spec/models/start_record_call_spec.rb b/spec/models/start_record_call_spec.rb index 5cc59ee..2e0a9ca 100644 --- a/spec/models/start_record_call_spec.rb +++ b/spec/models/start_record_call_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::StartRecordCall # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/terminate_conference_spec.rb b/spec/models/terminate_conference_spec.rb index 3056053..2858a5a 100644 --- a/spec/models/terminate_conference_spec.rb +++ b/spec/models/terminate_conference_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TerminateConference # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/tfn_campaign_spec.rb b/spec/models/tfn_campaign_spec.rb new file mode 100644 index 0000000..a830b12 --- /dev/null +++ b/spec/models/tfn_campaign_spec.rb @@ -0,0 +1,1089 @@ +=begin +#FreeClimb API + +#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + +The version of the OpenAPI document: 1.0.0 +Contact: support@freeclimb.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.9.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' +include Freeclimb + +# Unit tests for Freeclimb::TFNCampaign +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe Freeclimb::TFNCampaign do + let(:instance) { Freeclimb::TFNCampaign.new } + + describe 'test an instance of TFNCampaign' do + it 'should create an instance of TFNCampaign' do + expect(instance).to be_instance_of(Freeclimb::TFNCampaign) + end + end + + describe 'test attribute "account_id"' do + it 'should work' do + + instance.account_id = "TEST_STRING" + expect(instance.account_id).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "campaign_id"' do + it 'should work' do + + instance.campaign_id = "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a" + expect(instance.campaign_id).to eq("cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a") + + + + + end + end + + describe 'test attribute "use_case"' do + it 'should work' do + + instance.use_case = "TEST_STRING" + expect(instance.use_case).to eq("TEST_STRING") + + + + end + end + + + describe 'test attribute "registration_status"' do + it 'assigns value UNREGISTERED' do + instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED + expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED) + end + it 'assigns value INITIATED' do + instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED + expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED) + end + it 'assigns value PENDING' do + instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING + expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING) + end + it 'assigns value DECLINED' do + instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED + expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED) + end + it 'assigns value REGISTERED' do + instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED + expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED) + end + end + describe 'test attribute "date_created"' do + it 'should work' do + + instance.date_created = "TEST_STRING" + expect(instance.date_created).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "date_updated"' do + it 'should work' do + + instance.date_updated = "TEST_STRING" + expect(instance.date_updated).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "date_created_iso"' do + it 'should work' do + + instance.date_created_iso = "TEST_STRING" + expect(instance.date_created_iso).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "date_updated_iso"' do + it 'should work' do + + instance.date_updated_iso = "TEST_STRING" + expect(instance.date_updated_iso).to eq("TEST_STRING") + + + + end + end + + describe 'test attribute "revision"' do + it 'should work' do + + + instance.revision = 1 + expect(instance.revision).to eq(1) + + + + end + end + + describe 'test method "initialize"' do + it 'properly initializes with values' do + expect { instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + )}.not_to raise_error() + end + it 'fails to initialize with input argument that is not a hash in Freeclimb::TFNCampaign' do + expect { instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + invalid_attribute: true + )}.to raise_error(ArgumentError) + end + it 'fails to initialize with invalid attribute' do + expect { instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + invalid_attribute: true + )}.to raise_error(ArgumentError) + end + end + + describe 'test method "valid"' do + it 'checks if properties are valid' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + expect(instance.valid?).to eq(true) + end + + + skip 'checks if properties are invalid' do + instance = Freeclimb::TFNCampaign.new( + + ) + expect(instance.valid?).to eq(false) + end + + end + + describe 'test method "eql?"' do + it 'checks if objects are equal' do + + + + + + + + + + instance_1 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + instance_2 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + + + revision: 1, + + ) + expect(instance_1.eql?(instance_2)).to eq(true) + end + + it 'checks if objects are not equal' do + instance_1 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 2, + + + + ) + instance_2 = Freeclimb::TFNCampaign.new( + + account_id: "ST", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a1", + + + + + + use_case: "ST", + + + + + + + registration_status: nil, + + + date_created: "ST", + + + + + date_updated: "ST", + + + + + date_created_iso: "ST", + + + + + date_updated_iso: "ST", + + + + revision: 1, + + + + ) + expect(instance_1.eql?(instance_2)).to eq(false) + end + end + + describe 'test method "hash"' do + it 'calculates hash code' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + expect(instance.hash).to be_a_kind_of(Integer) + end + end + + describe 'test method "build_from_hash"' do + it 'builds equivalent model from hash code' do + instance_1 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + instance_2 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + + expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) + end + end + + describe 'test method "_deserialize"' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + it 'deserializes the data of account_id' do + expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of campaign_id' do + expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) + end + + + it 'deserializes the data of use_case' do + expect(instance._deserialize("String", instance.use_case)).to be_a_kind_of(String) + end + + + + + it 'deserializes the data of date_created' do + expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String) + end + + + it 'deserializes the data of date_updated' do + expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String) + end + + + it 'deserializes the data of date_created_iso' do + expect(instance._deserialize("String", instance.date_created_iso)).to be_a_kind_of(String) + end + + + it 'deserializes the data of date_updated_iso' do + expect(instance._deserialize("String", instance.date_updated_iso)).to be_a_kind_of(String) + end + + + it 'deserializes the data of revision' do + expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer) + end + + + end + + describe 'test method "to_s"' do + it 'returns the string representation of the object' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + expect(instance.to_s).to eq(instance.to_hash.to_s) + end + end + + describe 'test method "to_hash"' do + it 'returns the object in the form of hash' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + expect(instance.to_hash).to be_a_kind_of(Hash) + end + it 'creates equal hash for two equal objects' do + + + + + + + + + + instance_1 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + instance_2 = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + + use_case: "TS", + + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + + date_created: "TS", + + + + + date_updated: "TS", + + + + + date_created_iso: "TS", + + + + + date_updated_iso: "TS", + + + + revision: 1, + + + + ) + expect(instance_1.to_hash).to eq(instance_2.to_hash) + end + end + + describe 'test method "_to_hash"' do + instance = Freeclimb::TFNCampaign.new( + + account_id: "TS", + + + + campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a", + + + + + use_case: "TS", + + + + registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED, + + + + date_created: "TS", + + + + date_updated: "TS", + + + + date_created_iso: "TS", + + + + date_updated_iso: "TS", + + + revision: 1, + + ) + it 'returns account_id in the form of hash' do + expect(instance._to_hash(instance.account_id)).to eq(instance.account_id) + end + it 'returns campaign_id in the form of hash' do + expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id) + end + it 'returns use_case in the form of hash' do + expect(instance._to_hash(instance.use_case)).to eq(instance.use_case) + end + it 'returns registration_status in the form of hash' do + expect(instance._to_hash(instance.registration_status)).to eq(instance.registration_status) + end + it 'returns date_created in the form of hash' do + expect(instance._to_hash(instance.date_created)).to eq(instance.date_created) + end + it 'returns date_updated in the form of hash' do + expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated) + end + it 'returns date_created_iso in the form of hash' do + expect(instance._to_hash(instance.date_created_iso)).to eq(instance.date_created_iso) + end + it 'returns date_updated_iso in the form of hash' do + expect(instance._to_hash(instance.date_updated_iso)).to eq(instance.date_updated_iso) + end + it 'returns revision in the form of hash' do + expect(instance._to_hash(instance.revision)).to eq(instance.revision) + end + end + +end diff --git a/spec/models/tfn_spec.rb b/spec/models/tfn_spec.rb index f50f80e..21d1bd4 100644 --- a/spec/models/tfn_spec.rb +++ b/spec/models/tfn_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TFN # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,30 +29,42 @@ describe 'test attribute "campaign_id"' do it 'should work' do + instance.campaign_id = "TEST_STRING" expect(instance.campaign_id).to eq("TEST_STRING") + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::TFN.new( + campaign_id: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::TFN' do expect { instance = Freeclimb::TFN.new( + campaign_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::TFN.new( + campaign_id: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -60,8 +73,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -78,26 +94,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) instance_2 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) instance_2 = Freeclimb::TFN.new( + campaign_id: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -106,8 +134,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -116,12 +147,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) instance_2 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -130,19 +167,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::TFN.new( + campaign_id: "TS", + + ) it 'deserializes the data of campaign_id' do expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -151,20 +196,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) instance_2 = Freeclimb::TFN.new( + campaign_id: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -172,6 +226,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::TFN.new( + campaign_id: "TS", ) diff --git a/spec/models/transcribe_reason_spec.rb b/spec/models/transcribe_reason_spec.rb index 8fb26d9..46bb011 100644 --- a/spec/models/transcribe_reason_spec.rb +++ b/spec/models/transcribe_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TranscribeReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/transcribe_term_reason_spec.rb b/spec/models/transcribe_term_reason_spec.rb index 1d978d4..79ee45a 100644 --- a/spec/models/transcribe_term_reason_spec.rb +++ b/spec/models/transcribe_term_reason_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TranscribeTermReason # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/transcribe_utterance_record_spec.rb b/spec/models/transcribe_utterance_record_spec.rb index 4332d42..4ac5eab 100644 --- a/spec/models/transcribe_utterance_record_spec.rb +++ b/spec/models/transcribe_utterance_record_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TranscribeUtteranceRecord # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.save_recording = false expect(instance.save_recording).to eq(false) + + end end @@ -41,6 +44,8 @@ + + end end @@ -51,6 +56,8 @@ + + end end @@ -59,20 +66,32 @@ expect { instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtteranceRecord' do expect { instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -80,10 +99,16 @@ expect { instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -94,10 +119,16 @@ instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance.valid?).to eq(true) end @@ -114,20 +145,34 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) instance_2 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, ) @@ -138,18 +183,30 @@ instance_1 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60 - 1, + + rcrd_termination_silence_time_ms: 3000 - 1, + + ) instance_2 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: false, + + max_length_sec: 60 - 2, + + rcrd_termination_silence_time_ms: 3000 - 2, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -160,10 +217,16 @@ instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -174,18 +237,30 @@ instance_1 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) instance_2 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -196,20 +271,32 @@ instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) + + it 'deserializes the data of save_recording' do expect(instance._deserialize("Boolean", instance.save_recording)).to be_a_kind_of(TrueClass) end it 'deserializes the data of max_length_sec' do expect(instance._deserialize("Integer", instance.max_length_sec)).to be_a_kind_of(Integer) end + + it 'deserializes the data of rcrd_termination_silence_time_ms' do expect(instance._deserialize("Integer", instance.rcrd_termination_silence_time_ms)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do @@ -217,10 +304,16 @@ instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -231,30 +324,50 @@ instance = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) instance_2 = Freeclimb::TranscribeUtteranceRecord.new( save_recording: true, + + max_length_sec: 60, + + rcrd_termination_silence_time_ms: 3000, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/transcribe_utterance_spec.rb b/spec/models/transcribe_utterance_spec.rb index 6bee054..ec9b358 100644 --- a/spec/models/transcribe_utterance_spec.rb +++ b/spec/models/transcribe_utterance_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TranscribeUtterance # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "action_url"' do it 'should work' do + instance.action_url = "TEST_STRING" expect(instance.action_url).to eq("TEST_STRING") + + end end @@ -39,14 +43,19 @@ instance.play_beep = false expect(instance.play_beep).to eq(false) + + end end describe 'test attribute "record"' do it 'should work' do - instance.record = Freeclimb::TranscribeUtteranceRecord.new - expect(instance.record).to be_instance_of(Freeclimb::TranscribeUtteranceRecord) + + + instance.record = TranscribeUtteranceRecord.new + expect(instance.record).to be_instance_of(TranscribeUtteranceRecord) + end end @@ -55,6 +64,8 @@ instance.privacy_for_logging = false expect(instance.privacy_for_logging).to eq(false) + + end end @@ -63,6 +74,8 @@ instance.privacy_for_recording = false expect(instance.privacy_for_recording).to eq(false) + + end end @@ -71,57 +84,101 @@ instance.prompts = ["ELEMENT_1", "ELEMENT_2"] expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"]) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtterance' do expect { instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: TranscribeUtteranceRecord.new, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: TranscribeUtteranceRecord.new, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -130,18 +187,32 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance.valid?).to eq(true) end @@ -158,32 +229,67 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + obj_TranscribeUtteranceRecord = TranscribeUtteranceRecord.new() + + + + instance_1 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: obj_TranscribeUtteranceRecord, + privacy_for_logging: true, + + privacy_for_recording: true, + + + + prompts: [], ) instance_2 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: obj_TranscribeUtteranceRecord, + privacy_for_logging: true, + + privacy_for_recording: true, + + + + prompts: [], ) @@ -192,30 +298,58 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + + + prompts: [], ) instance_2 = Freeclimb::TranscribeUtterance.new( + action_url: "ST", + + play_beep: false, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: false, + + privacy_for_recording: false, + + + + prompts: nil, ) @@ -226,18 +360,32 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -246,32 +394,60 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) instance_2 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new(), + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -280,54 +456,95 @@ describe 'test method "_deserialize"' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: TranscribeUtteranceRecord.new(), + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) it 'deserializes the data of action_url' do expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String) end + + + + it 'deserializes the data of play_beep' do expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of record' do - expect(instance._deserialize("Object", instance.record)).to be_a_kind_of(Freeclimb::TranscribeUtteranceRecord) + expect(instance._deserialize("Object", instance.record)).to be_a_kind_of(TranscribeUtteranceRecord) end + + + it 'deserializes the data of privacy_for_logging' do expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of privacy_for_recording' do expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass) end it 'deserializes the data of prompts' do expect(instance._deserialize("Array", instance.prompts)).to be_a_kind_of(Array) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: TranscribeUtteranceRecord.new, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -336,50 +553,99 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: TranscribeUtteranceRecord.new, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + obj = TranscribeUtteranceRecord.new() + + + + instance_1 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: obj, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) instance_2 = Freeclimb::TranscribeUtterance.new( + action_url: "TS", + + play_beep: true, - record: Freeclimb::TranscribeUtteranceRecord.new, + + + + + record: obj, + privacy_for_logging: true, + + privacy_for_recording: true, + + prompts: Array.new(), + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -387,6 +653,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::TranscribeUtterance.new( + action_url: "TS", diff --git a/spec/models/transcribe_webhook_spec.rb b/spec/models/transcribe_webhook_spec.rb index 33d0a4d..09f535b 100644 --- a/spec/models/transcribe_webhook_spec.rb +++ b/spec/models/transcribe_webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::TranscribeWebhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -34,57 +35,78 @@ describe 'test attribute "request_type"' do it 'should work' do + instance.request_type = "TEST_STRING" expect(instance.request_type).to eq("TEST_STRING") + + end end describe 'test attribute "account_id"' do it 'should work' do + instance.account_id = "TEST_STRING" expect(instance.account_id).to eq("TEST_STRING") + + end end describe 'test attribute "call_id"' do it 'should work' do + instance.call_id = "TEST_STRING" expect(instance.call_id).to eq("TEST_STRING") + + end end describe 'test attribute "from"' do it 'should work' do + instance.from = "TEST_STRING" expect(instance.from).to eq("TEST_STRING") + + end end describe 'test attribute "to"' do it 'should work' do + instance.to = "TEST_STRING" expect(instance.to).to eq("TEST_STRING") + + end end describe 'test attribute "recording_id"' do it 'should work' do + instance.recording_id = "TEST_STRING" expect(instance.recording_id).to eq("TEST_STRING") + + end end describe 'test attribute "recording_url"' do it 'should work' do + instance.recording_url = "TEST_STRING" expect(instance.recording_url).to eq("TEST_STRING") + + end end @@ -95,14 +117,19 @@ instance.recording_size = 1 expect(instance.recording_size).to eq(1) + + end end describe 'test attribute "recording_format"' do it 'should work' do + instance.recording_format = "TEST_STRING" expect(instance.recording_format).to eq("TEST_STRING") + + end end @@ -113,6 +140,8 @@ instance.recording_duration_ms = 1 expect(instance.recording_duration_ms).to eq(1) + + end end @@ -148,9 +177,12 @@ end describe 'test attribute "digit"' do it 'should work' do + instance.digit = "TEST_STRING" expect(instance.digit).to eq("TEST_STRING") + + end end @@ -159,6 +191,8 @@ instance.privacy_for_logging = false expect(instance.privacy_for_logging).to eq(false) + + end end @@ -167,6 +201,8 @@ instance.privacy_for_recording = false expect(instance.privacy_for_recording).to eq(false) + + end end @@ -192,6 +228,8 @@ instance.barged_in_prompt_no = 1 expect(instance.barged_in_prompt_no).to eq(1) + + end end @@ -202,6 +240,8 @@ instance.barged_in_prompt_ms = 1 expect(instance.barged_in_prompt_ms).to eq(1) + + end end @@ -212,6 +252,8 @@ instance.barged_in_prompt_loop_no = 1 expect(instance.barged_in_prompt_loop_no).to eq(1) + + end end @@ -222,14 +264,19 @@ instance.barge_in_time_ms = 1 expect(instance.barge_in_time_ms).to eq(1) + + end end describe 'test attribute "transcript"' do it 'should work' do + instance.transcript = "TEST_STRING" expect(instance.transcript).to eq("TEST_STRING") + + end end @@ -263,171 +310,341 @@ instance.transcription_duration_ms = 1 expect(instance.transcription_duration_ms).to eq(1) + + end end describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeWebhook' do expect { instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -436,56 +653,112 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, - barged_in_prompt_no: 1, + + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance.valid?).to eq(true) end @@ -502,108 +775,242 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, transcription_duration_ms: 1, + + ) instance_2 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + + + recording_size: 1, + recording_format: "TS", + + + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + transcript: "TS", + + + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, ) @@ -612,108 +1019,220 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 2, + + + recording_format: "TS", + + recording_duration_ms: 2, + + + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, barged_in_prompt_no: 2, + + barged_in_prompt_ms: 2, + + barged_in_prompt_loop_no: 2, + + barge_in_time_ms: 2, + + + transcript: "TS", + + + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, transcription_duration_ms: 2, + + ) instance_2 = Freeclimb::TranscribeWebhook.new( + request_type: "ST", + + + account_id: "ST", + + + call_id: "ST", + + + from: "ST", + + + to: "ST", + + + recording_id: "ST", + + + recording_url: "ST", + + recording_size: 1, + + + recording_format: "ST", + + recording_duration_ms: 1, + + + + term_reason: nil, + + record_term_reason: nil, + digit: "ST", + + privacy_for_logging: false, + + privacy_for_recording: false, + + + + barge_in_reason: nil, barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "ST", + + + + transcribe_reason: nil, transcription_duration_ms: 1, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -722,56 +1241,112 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", - to: "TS", + + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -780,108 +1355,220 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) instance_2 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -890,169 +1577,327 @@ describe 'test method "_deserialize"' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + it 'deserializes the data of account_id' do expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String) end + + it 'deserializes the data of call_id' do expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String) end + + it 'deserializes the data of from' do expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String) end + + it 'deserializes the data of to' do expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_id' do expect(instance._deserialize("String", instance.recording_id)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_url' do expect(instance._deserialize("String", instance.recording_url)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_size' do expect(instance._deserialize("Integer", instance.recording_size)).to be_a_kind_of(Integer) end + + it 'deserializes the data of recording_format' do expect(instance._deserialize("String", instance.recording_format)).to be_a_kind_of(String) end + + it 'deserializes the data of recording_duration_ms' do expect(instance._deserialize("Integer", instance.recording_duration_ms)).to be_a_kind_of(Integer) end + + + + + + it 'deserializes the data of digit' do expect(instance._deserialize("String", instance.digit)).to be_a_kind_of(String) end + + + + it 'deserializes the data of privacy_for_logging' do expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of privacy_for_recording' do expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of barged_in_prompt_no' do expect(instance._deserialize("Integer", instance.barged_in_prompt_no)).to be_a_kind_of(Integer) end + + it 'deserializes the data of barged_in_prompt_ms' do expect(instance._deserialize("Integer", instance.barged_in_prompt_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of barged_in_prompt_loop_no' do expect(instance._deserialize("Integer", instance.barged_in_prompt_loop_no)).to be_a_kind_of(Integer) end + + it 'deserializes the data of barge_in_time_ms' do expect(instance._deserialize("Integer", instance.barge_in_time_ms)).to be_a_kind_of(Integer) end + + it 'deserializes the data of transcript' do expect(instance._deserialize("String", instance.transcript)).to be_a_kind_of(String) end + + + + it 'deserializes the data of transcription_duration_ms' do expect(instance._deserialize("Integer", instance.transcription_duration_ms)).to be_a_kind_of(Integer) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -1061,164 +1906,354 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + + + + + + + + + + + + + + + + + + + + + instance_1 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) instance_2 = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + + + account_id: "TS", + + + call_id: "TS", + + + from: "TS", + + + to: "TS", + + + recording_id: "TS", + + + recording_url: "TS", + + recording_size: 1, + + + recording_format: "TS", + + recording_duration_ms: 1, + + term_reason: Freeclimb::TranscribeTermReason::ERROR, + + record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + + + digit: "TS", + + privacy_for_logging: true, + + privacy_for_recording: true, + + barge_in_reason: Freeclimb::BargeInReason::NO_BARGE_IN, + + barged_in_prompt_no: 1, + + barged_in_prompt_ms: 1, + + barged_in_prompt_loop_no: 1, + + barge_in_time_ms: 1, + + + transcript: "TS", + + transcribe_reason: Freeclimb::TranscribeReason::INTERNAL_ERROR, + + transcription_duration_ms: 1, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -1226,30 +2261,38 @@ describe 'test method "_to_hash"' do instance = Freeclimb::TranscribeWebhook.new( + request_type: "TS", + account_id: "TS", + call_id: "TS", + from: "TS", + to: "TS", + recording_id: "TS", + recording_url: "TS", recording_size: 1, + recording_format: "TS", @@ -1264,6 +2307,7 @@ record_term_reason: Freeclimb::RecordUtteranceTermReason::FINISH_KEY, + digit: "TS", @@ -1289,6 +2333,7 @@ barge_in_time_ms: 1, + transcript: "TS", diff --git a/spec/models/unpark_spec.rb b/spec/models/unpark_spec.rb index 68d6232..2588ae2 100644 --- a/spec/models/unpark_spec.rb +++ b/spec/models/unpark_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Unpark # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/update_call_request_spec.rb b/spec/models/update_call_request_spec.rb index b5e0133..c02b4fa 100644 --- a/spec/models/update_call_request_spec.rb +++ b/spec/models/update_call_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::UpdateCallRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -43,6 +44,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::UpdateCallRequest' do @@ -50,6 +53,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -58,6 +63,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -69,6 +76,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance.valid?).to eq(true) end @@ -85,14 +94,18 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::UpdateCallRequest.new( + + status: Freeclimb::UpdateCallRequestStatus::CANCELED, ) instance_2 = Freeclimb::UpdateCallRequest.new( + + status: Freeclimb::UpdateCallRequestStatus::CANCELED, ) @@ -102,11 +115,15 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::UpdateCallRequest.new( + + status: Freeclimb::UpdateCallRequestStatus::CANCELED, ) instance_2 = Freeclimb::UpdateCallRequest.new( + + status: nil, ) @@ -120,6 +137,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -131,11 +150,15 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) instance_2 = Freeclimb::UpdateCallRequest.new( status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -147,7 +170,11 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) + + end describe 'test method "to_s"' do @@ -156,6 +183,8 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -167,20 +196,26 @@ status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::UpdateCallRequest.new( status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) instance_2 = Freeclimb::UpdateCallRequest.new( status: Freeclimb::UpdateCallRequestStatus::CANCELED, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/update_call_request_status_spec.rb b/spec/models/update_call_request_status_spec.rb index 77ba6e0..65d4856 100644 --- a/spec/models/update_call_request_status_spec.rb +++ b/spec/models/update_call_request_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::UpdateCallRequestStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/update_conference_participant_request_spec.rb b/spec/models/update_conference_participant_request_spec.rb index 348bd13..fc86076 100644 --- a/spec/models/update_conference_participant_request_spec.rb +++ b/spec/models/update_conference_participant_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::UpdateConferenceParticipantRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -31,6 +32,8 @@ instance.talk = false expect(instance.talk).to eq(false) + + end end @@ -39,6 +42,8 @@ instance.listen = false expect(instance.listen).to eq(false) + + end end @@ -47,6 +52,8 @@ instance.dtmf_pass_through = false expect(instance.dtmf_pass_through).to eq(false) + + end end @@ -55,20 +62,32 @@ expect { instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::UpdateConferenceParticipantRequest' do expect { instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -76,10 +95,16 @@ expect { instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -90,10 +115,16 @@ instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance.valid?).to eq(true) end @@ -110,22 +141,36 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance_1.eql?(instance_2)).to eq(true) end @@ -134,18 +179,30 @@ instance_1 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: false, + + listen: false, + + dtmf_pass_through: false, + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -156,10 +213,16 @@ instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -170,18 +233,30 @@ instance_1 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -192,17 +267,29 @@ instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) + + it 'deserializes the data of talk' do expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of listen' do expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass) end + + it 'deserializes the data of dtmf_pass_through' do expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass) end @@ -213,10 +300,16 @@ instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -227,30 +320,50 @@ instance = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) instance_2 = Freeclimb::UpdateConferenceParticipantRequest.new( talk: true, + + listen: true, + + dtmf_pass_through: true, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end diff --git a/spec/models/update_conference_request_spec.rb b/spec/models/update_conference_request_spec.rb index 3adb39a..b4baea4 100644 --- a/spec/models/update_conference_request_spec.rb +++ b/spec/models/update_conference_request_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::UpdateConferenceRequest # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -28,9 +29,12 @@ describe 'test attribute "_alias"' do it 'should work' do + instance._alias = "TEST_STRING" expect(instance._alias).to eq("TEST_STRING") + + end end @@ -67,39 +71,60 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::UpdateConferenceRequest' do expect { instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -108,14 +133,21 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance.valid?).to eq(true) end @@ -132,24 +164,40 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + + + instance_1 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, ) instance_2 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, ) @@ -158,22 +206,36 @@ it 'checks if objects are not equal' do instance_1 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, ) instance_2 = Freeclimb::UpdateConferenceRequest.new( + _alias: "ST", + + + + play_beep: nil, + + status: nil, ) @@ -184,14 +246,21 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -200,24 +269,38 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) instance_2 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -226,31 +309,51 @@ describe 'test method "_deserialize"' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) it 'deserializes the data of _alias' do expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String) end + + + + + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -259,38 +362,61 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + + + instance_1 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) instance_2 = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", + + play_beep: Freeclimb::PlayBeep::ALWAYS, + + status: Freeclimb::UpdateConferenceRequestStatus::EMPTY, + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -298,6 +424,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::UpdateConferenceRequest.new( + _alias: "TS", diff --git a/spec/models/update_conference_request_status_spec.rb b/spec/models/update_conference_request_status_spec.rb index f2b4b32..4a4e366 100644 --- a/spec/models/update_conference_request_status_spec.rb +++ b/spec/models/update_conference_request_status_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::UpdateConferenceRequestStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) diff --git a/spec/models/webhook_spec.rb b/spec/models/webhook_spec.rb index 65ebe77..6adb5e0 100644 --- a/spec/models/webhook_spec.rb +++ b/spec/models/webhook_spec.rb @@ -13,6 +13,7 @@ require 'spec_helper' require 'json' require 'date' +include Freeclimb # Unit tests for Freeclimb::Webhook # Automatically generated by openapi-generator (https://openapi-generator.tech) @@ -30,21 +31,30 @@ describe 'test method "initialize"' do it 'properly initializes with values' do expect { instance = Freeclimb::Webhook.new( + request_type: "TS", + + )}.not_to raise_error() end it 'fails to initialize with input argument that is not a hash in Freeclimb::Webhook' do expect { instance = Freeclimb::Webhook.new( + request_type: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end it 'fails to initialize with invalid attribute' do expect { instance = Freeclimb::Webhook.new( + request_type: "TS", + + invalid_attribute: true )}.to raise_error(ArgumentError) end @@ -53,8 +63,11 @@ describe 'test method "valid"' do it 'checks if properties are valid' do instance = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance.valid?).to eq(true) end @@ -71,26 +84,38 @@ describe 'test method "eql?"' do it 'checks if objects are equal' do - obj = Object.new() + instance_1 = Freeclimb::Webhook.new( + request_type: "TS", + + ) instance_2 = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance_1.eql?(instance_2)).to eq(true) end it 'checks if objects are not equal' do instance_1 = Freeclimb::Webhook.new( + request_type: "TS", + + ) instance_2 = Freeclimb::Webhook.new( + request_type: "ST", + + ) expect(instance_1.eql?(instance_2)).to eq(false) end @@ -99,8 +124,11 @@ describe 'test method "hash"' do it 'calculates hash code' do instance = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance.hash).to be_a_kind_of(Integer) end @@ -109,12 +137,18 @@ describe 'test method "build_from_hash"' do it 'builds equivalent model from hash code' do instance_1 = Freeclimb::Webhook.new( + request_type: "TS", + + ) instance_2 = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash)) @@ -123,19 +157,27 @@ describe 'test method "_deserialize"' do instance = Freeclimb::Webhook.new( + request_type: "TS", + + ) it 'deserializes the data of request_type' do expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String) end + + end describe 'test method "to_s"' do it 'returns the string representation of the object' do instance = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance.to_s).to eq(instance.to_hash.to_s) end @@ -144,20 +186,29 @@ describe 'test method "to_hash"' do it 'returns the object in the form of hash' do instance = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance.to_hash).to be_a_kind_of(Hash) end it 'creates equal hash for two equal objects' do - obj = Object.new() + instance_1 = Freeclimb::Webhook.new( + request_type: "TS", + + ) instance_2 = Freeclimb::Webhook.new( + request_type: "TS", + + ) expect(instance_1.to_hash).to eq(instance_2.to_hash) end @@ -165,6 +216,7 @@ describe 'test method "_to_hash"' do instance = Freeclimb::Webhook.new( + request_type: "TS", )