Class: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider
- Defined in:
- lib/orb/models/customer.rb,
sig/orb/models/customer.rbs
Defined Under Namespace
Modules: ProviderType
Instance Attribute Summary collapse
- #external_provider_id ⇒ String?
- #provider_type ⇒ Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType
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_provider_id:, provider_type:) ⇒ Object
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
# File 'lib/orb/models/customer.rb', line 454 class AccountingProvider < Orb::Internal::Type::BaseModel # @!attribute external_provider_id # # @return [String, nil] required :external_provider_id, String, nil?: true # @!attribute provider_type # # @return [Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] required :provider_type, enum: -> { Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType } # @!method initialize(external_provider_id:, provider_type:) # @param external_provider_id [String, nil] # @param provider_type [Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType] # @see Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider#provider_type module ProviderType extend Orb::Internal::Type::Enum QUICKBOOKS = :quickbooks NETSUITE = :netsuite # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#external_provider_id ⇒ String?
458 |
# File 'lib/orb/models/customer.rb', line 458 required :external_provider_id, String, nil?: true |
#provider_type ⇒ Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType
463 464 |
# File 'lib/orb/models/customer.rb', line 463 required :provider_type, enum: -> { Orb::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType } |
Instance Method Details
#to_hash ⇒ {
224 |
# File 'sig/orb/models/customer.rbs', line 224
def to_hash: -> {
|