Sha256: 625d2a718f5e0648d01a40bc0326c3725b572c5f807639dc7cec70bd5d0733de

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

=begin
#Fatture in Cloud API v2 - API Reference

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

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

=end

require 'date'
require 'time'

module FattureInCloud_Ruby_Sdk
  class ReceivedDocumentType
    EXPENSE = "expense".freeze
    PASSIVE_CREDIT_NOTE = "passive_credit_note".freeze
    PASSIVE_DELIVERY_NOTE = "passive_delivery_note".freeze
    SELF_INVOICE = "self_invoice".freeze

    def self.all_vars
      @all_vars ||= [EXPENSE, PASSIVE_CREDIT_NOTE, PASSIVE_DELIVERY_NOTE, SELF_INVOICE].freeze
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if ReceivedDocumentType.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #ReceivedDocumentType"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.1.1 lib/fattureincloud_ruby_sdk/models/received_document_type.rb