Class: Orb::Models::ItemUpdateParams::ExternalConnection

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/item_update_params.rb

Defined Under Namespace

Modules: ExternalConnectionName

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(external_connection_name: , external_entity_id: ) ⇒ Object

Parameters:



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/orb/models/item_update_params.rb', line 42

class ExternalConnection < Orb::Internal::Type::BaseModel
  # @!attribute external_connection_name
  #
  #   @return [Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName]
  required :external_connection_name,
           enum: -> { Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName }

  # @!attribute external_entity_id
  #
  #   @return [String]
  required :external_entity_id, String

  # @!method initialize(external_connection_name:, external_entity_id:)
  #   @param external_connection_name [Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName]
  #   @param external_entity_id [String]

  # @see Orb::Models::ItemUpdateParams::ExternalConnection#external_connection_name
  module ExternalConnectionName
    extend Orb::Internal::Type::Enum

    STRIPE = :stripe
    QUICKBOOKS = :quickbooks
    BILL_COM = :"bill.com"
    NETSUITE = :netsuite
    TAXJAR = :taxjar
    AVALARA = :avalara
    ANROK = :anrok

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#external_connection_nameSymbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName



46
47
# File 'lib/orb/models/item_update_params.rb', line 46

required :external_connection_name,
enum: -> { Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName }

#external_entity_idString

Returns:

  • (String)


52
# File 'lib/orb/models/item_update_params.rb', line 52

required :external_entity_id, String