Class: Pago::V2026_04::Models::OrganizationDetails

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  about: "about",
  product_description: "product_description",
  selling_categories: "selling_categories",
  pricing_models: "pricing_models",
  intended_use: "intended_use",
  customer_acquisition: "customer_acquisition",
  future_annual_revenue: "future_annual_revenue",
  switching: "switching",
  switching_from: "switching_from",
  previous_annual_revenue: "previous_annual_revenue"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
[].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw

Constructor Details

#initialize(about: ::Pago::UNSET, product_description: ::Pago::UNSET, selling_categories: ::Pago::UNSET, pricing_models: ::Pago::UNSET, intended_use: ::Pago::UNSET, customer_acquisition: ::Pago::UNSET, future_annual_revenue: ::Pago::UNSET, switching: ::Pago::UNSET, switching_from: ::Pago::UNSET, previous_annual_revenue: ::Pago::UNSET) ⇒ OrganizationDetails

Returns a new instance of OrganizationDetails.

Parameters:

  • about: (String, nil) (defaults to: ::Pago::UNSET)
  • product_description: (String, nil) (defaults to: ::Pago::UNSET)
  • selling_categories: (Array[String], nil) (defaults to: ::Pago::UNSET)
  • pricing_models: (Array[String], nil) (defaults to: ::Pago::UNSET)
  • intended_use: (String, nil) (defaults to: ::Pago::UNSET)
  • customer_acquisition: (Array[String], nil) (defaults to: ::Pago::UNSET)
  • future_annual_revenue: (Integer, nil) (defaults to: ::Pago::UNSET)
  • switching: (Boolean, nil) (defaults to: ::Pago::UNSET)
  • switching_from: (Object) (defaults to: ::Pago::UNSET)
  • previous_annual_revenue: (Integer, nil) (defaults to: ::Pago::UNSET)


34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
# File 'lib/pago/v2026_04/models.rb', line 34737

def initialize(
  about: ::Pago::UNSET,
  product_description: ::Pago::UNSET,
  selling_categories: ::Pago::UNSET,
  pricing_models: ::Pago::UNSET,
  intended_use: ::Pago::UNSET,
  customer_acquisition: ::Pago::UNSET,
  future_annual_revenue: ::Pago::UNSET,
  switching: ::Pago::UNSET,
  switching_from: ::Pago::UNSET,
  previous_annual_revenue: ::Pago::UNSET
)
  super()
  assign(:about, about)
  assign(:product_description, product_description)
  assign(:selling_categories, selling_categories)
  assign(:pricing_models, pricing_models)
  assign(:intended_use, intended_use)
  assign(:customer_acquisition, customer_acquisition)
  assign(:future_annual_revenue, future_annual_revenue)
  assign(:switching, switching)
  assign(:switching_from, switching_from)
  assign(:previous_annual_revenue, previous_annual_revenue)
end

Instance Attribute Details

#aboutString? (readonly)

Deprecated.

Brief information about you and your business.

Returns:

  • (String, nil)


34695
34696
34697
# File 'lib/pago/v2026_04/models.rb', line 34695

def about
  @about
end

#customer_acquisitionArray<String> (readonly)

Deprecated.

Main customer acquisition channels.

Returns:

  • (Array<String>)


34717
34718
34719
# File 'lib/pago/v2026_04/models.rb', line 34717

def customer_acquisition
  @customer_acquisition
end

#future_annual_revenueInteger? (readonly)

Deprecated.

Estimated revenue in the next 12 months

Returns:

  • (Integer, nil)


34722
34723
34724
# File 'lib/pago/v2026_04/models.rb', line 34722

def future_annual_revenue
  @future_annual_revenue
end

#intended_useString? (readonly)

Deprecated.

How the organization will integrate and use Pago.

Returns:

  • (String, nil)


34712
34713
34714
# File 'lib/pago/v2026_04/models.rb', line 34712

def intended_use
  @intended_use
end

#previous_annual_revenueInteger? (readonly)

Deprecated.

Revenue from last year if applicable.

Returns:

  • (Integer, nil)


34735
34736
34737
# File 'lib/pago/v2026_04/models.rb', line 34735

def previous_annual_revenue
  @previous_annual_revenue
end

#pricing_modelsArray<String> (readonly)

Pricing models used by the organization.

Returns:

  • (Array<String>)


34707
34708
34709
# File 'lib/pago/v2026_04/models.rb', line 34707

def pricing_models
  @pricing_models
end

#product_descriptionString? (readonly)

Description of digital products being sold.

Returns:

  • (String, nil)


34699
34700
34701
# File 'lib/pago/v2026_04/models.rb', line 34699

def product_description
  @product_description
end

#selling_categoriesArray<String> (readonly)

Categories of products being sold.

Returns:

  • (Array<String>)


34703
34704
34705
# File 'lib/pago/v2026_04/models.rb', line 34703

def selling_categories
  @selling_categories
end

#switchingBoolean (readonly)

Switching from another platform?

Returns:

  • (Boolean)


34726
34727
34728
# File 'lib/pago/v2026_04/models.rb', line 34726

def switching
  @switching
end

#switching_fromString? (readonly)

Which platform the organization is migrating from.

Returns:

  • (String, nil)


34730
34731
34732
# File 'lib/pago/v2026_04/models.rb', line 34730

def switching_from
  @switching_from
end

Class Method Details

.from_json(data) ⇒ OrganizationDetails?

Parameters:

  • data (Hash, String, nil)

Returns:



34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
# File 'lib/pago/v2026_04/models.rb', line 34764

def self.from_json(data)
  data = ::JSON.parse(data) if data.is_a?(String)
  data = ::Pago::Serde.object(data)
  return nil if data.nil?

  wrap_raw(
    new(
      about: (data.key?("about") ? data["about"] : ::Pago::UNSET),
      product_description: (data.key?("product_description") ? data["product_description"] : ::Pago::UNSET),
      selling_categories: (data.key?("selling_categories") ? data["selling_categories"] : ::Pago::UNSET),
      pricing_models: (data.key?("pricing_models") ? data["pricing_models"] : ::Pago::UNSET),
      intended_use: (data.key?("intended_use") ? data["intended_use"] : ::Pago::UNSET),
      customer_acquisition: (data.key?("customer_acquisition") ? data["customer_acquisition"] : ::Pago::UNSET),
      future_annual_revenue: (data.key?("future_annual_revenue") ? data["future_annual_revenue"] : ::Pago::UNSET),
      switching: (data.key?("switching") ? data["switching"] : ::Pago::UNSET),
      switching_from: (data.key?("switching_from") ? data["switching_from"] : ::Pago::UNSET),
      previous_annual_revenue: (data.key?("previous_annual_revenue") ? data["previous_annual_revenue"] : ::Pago::UNSET)
    ),
    data
  )
end